/* =============================================
   EIFEC Design Register — Frontend
   ============================================= */

/* ── Form wrapper ──────────────────────────── */
.edr-form-wrap {
    background: #eef2f8;
    border-radius: 16px;
    padding: 50px;
}

/* ── Subtitle ──────────────────────────────── */
.edr-form-subtitle {
    font-size: 19px;
    font-weight: 800;
    color: #000;
    margin: 0 0 20px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* ── Form row ──────────────────────────────── */
.edr-form-row {
    margin-bottom: 30px;
}

.edr-form-row label {
    display: block;
    font-weight: 500;
    color: #000;
    margin-bottom: 12px;
    font-size: 20px;
}

.edr-form-row .req {
    color: #e53e3e;
}

.edr-form-row input,
.edr-form-row select,
.edr-form-row textarea {
    width: 100%;
    padding: 9px 14px;
    font-size: 14px;
    border: 1.5px solid #d5dce6;
    border-radius: 8px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    height: 60px;
}
.edr-form-row textarea {height: auto;}

.edr-form-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23034c9d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
    height: 60px;
    font-size: 18px;
}

.edr-form-row input:focus,
.edr-form-row select:focus,
.edr-form-row textarea:focus {
    outline: none;
    border-color: #034c9d;
    box-shadow: 0 0 0 3px rgba(3,76,157,0.12);
}

.edr-form-row textarea {
    resize: vertical;
}

/* ── Two-column layout ─────────────────────── */
.edr-form-cols {
    display: flex;
    gap: 14px;
}

.edr-form-cols .edr-form-row {
    flex: 1;
    min-width: 0;
}

/* ── Privacy note ──────────────────────────── */
.edr-privacy-note {
    font-size: 12px;
    color: #6b7a8d;
    margin: 4px 0 14px;

    line-height: 1.5;
}

/* ── Submit button ─────────────────────────── */
.edr-form-actions {
    margin-top: 6px;
    margin-bottom: 0;
}

.edr-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: #1e4db7;
    color: #fff;
    font-size: 14px;
    font-weight: 700;

    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.15s;
    text-transform: uppercase;
}

.edr-submit-btn:hover {
    background: #163fa0;
    transform: translateY(-1px);
}

.edr-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Spinner ───────────────────────────────── */
.edr-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: edrSpin 0.6s linear infinite;
    margin-right: 7px;
    vertical-align: middle;
    flex-shrink: 0;
}

@keyframes edrSpin {
    to { transform: rotate(360deg); }
}

/* ── Message box ───────────────────────────── */
.edr-message-box {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;

    text-align: center;
    line-height: 1.5;
}

.edr-message-box.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.edr-message-box.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 600px) {
    .edr-form-cols {
        flex-direction: column;
        gap: 0;
    }

    .edr-form-wrap {
        padding: 24px 18px;
        border-radius: 10px;
    }
}
