/* Static MUN registration form styles. Matches the existing forest / sage palette. */
:root {
    --deep-forest: #1F3F29;
    --moss-green: #4B6B4A;
    --sage-green: #8FAF7A;
    --off-white: #FAFBF9;
    --card-bg: #FFFFFF;
    --rich-black: #111111;
    --text-muted: #666666;
    --border-color: #EAEAEA;
    --header-font: 'Libre Baskerville', serif;
    --body-font: 'Montserrat', sans-serif;
}

.registration-hero {
    position: relative;
    background-color: var(--deep-forest);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    height: 42vh;
    min-height: 280px;
    width: 100%;
}

.hero-kicker {
    display: block;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 10px;
    opacity: 0.85;
}

.header-title h1 {
    font-family: var(--header-font);
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 1px;
}

.registration-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 64px 20px 100px;
}

.registration-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 42px;
}

.eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--moss-green);
    margin-bottom: 10px;
}

.registration-intro h2 {
    font-family: var(--header-font);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.25;
    margin-bottom: 14px;
    /* Keep the heading on one line on wider screens */
    white-space: nowrap;
}
.registration-intro p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.registration-intro a {
    color: var(--moss-green);
}

.fee-badge {
    background: var(--deep-forest);
    color: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fee-badge span,
.fee-badge em {
    font-size: 0.8rem;
    opacity: 0.8;
    font-style: normal;
}

.fee-badge strong {
    font-family: var(--header-font);
    font-size: 2.1rem;
}

.fee-badge small {
    font-size: 0.95rem;
}

.form-section {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 22px;
}

.section-number {
    font-family: var(--header-font);
    font-size: 1.4rem;
    color: var(--moss-green);
}

.section-content h3,
.press-extra h4 {
    font-family: var(--header-font);
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.section-note,
.help-text,
.conduct-copy {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
}

.field.full,
.payment-card.full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.field label span {
    color: #b42318;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #d7ddd6;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: var(--body-font);
    font-size: 0.95rem;
    background: #fff;
}

.field textarea {
    resize: vertical;
    min-height: 90px;
}

.choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.choice-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin: 0;
}

.press-extra {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed #d7ddd6;
}

.payment-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    background: #f4f7f3;
    border-radius: 14px;
    padding: 22px;
}

.payment-details p {
    /* Each payment detail as a clean label-value row */
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 0;
    border-bottom: 1px dashed #d7ddd6;
}

    .payment-details p:last-child {
        border-bottom: none;
    }

    .payment-details p strong {
        color: var(--deep-forest);
    }
.submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.submit-row p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 520px;
}

.submit-button {
    border: 0;
    background: var(--deep-forest);
    color: #fff;
    font-family: var(--body-font);
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 14px 28px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

/* Hidden until submit. Do not force display, or ASP.NET display:none is overridden. */
.field-error {
    color: #c62828 !important;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
}

span.field-error[style*="inline"] {
    display: block !important;
}

.form-status.error {
    display: block;
    color: #c62828;
    background: #fdecec;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

/* Captcha: error stays under the answer box so the question does not shift. */
.captcha-pair {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
    align-items: start;
}

.captcha-pair label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.captcha-pair label span {
    color: #c62828;
}

.captcha-answer input {
    width: 100%;
    border: 1px solid #d7ddd6;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: var(--body-font);
    font-size: 0.95rem;
    background: #fff;
    height: 46px;
    box-sizing: border-box;
}

.captcha-question .captcha-box {
    height: 46px;
}

.field-error-slot {
    min-height: 22px;
    margin-top: 4px;
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid #d7ddd6;
    border-radius: 10px;
    background: #f4f7f3;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--moss-green);
}

.thankyou-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 36px 48px;
    overflow: visible;
}

.thankyou-card h2 {
    font-family: var(--header-font);
    margin-bottom: 14px;
}

.thankyou-card p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.thankyou-actions {
    display: block;
    width: 100%;
    margin-top: 36px;
    padding-top: 12px;
    clear: both;
    position: relative;
    z-index: 1;
}

.thankyou-actions .submit-button {
    display: inline-flex;
    align-items: center;
    position: relative;
    float: none;
}

.choice-list label {
    margin-right: 16px;
}

@media (max-width: 800px) {
    .registration-intro,
    .form-section,
    .form-grid,
    .payment-card,
    .submit-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .submit-row {
        gap: 14px;
    }

    /* Allow heading to wrap again on small screens so it does not overflow */
    .registration-intro h2 {
        white-space: normal;
    }

    .form-section {
        display: block;
    }

    .captcha-pair {
        grid-template-columns: 1fr;
    }
}
