/* =============================================================
   2084 Nepali New Year Festival — participation form page
   Builds on the Contact Us styles (.contact-form-card, .contact-field*,
   .contact-submit) in custom.css. Palette: primary #0E4C65, soft #4C7A8C,
   ink #1D1D1D, slate #495A69, mist #D8E8EE, line #BFCDD9.
   ============================================================= */

/* ---- Poster banner: natural image ratio, no forced height --- */
.page-banner.page-banner--poster { min-height: 0; }

/* ---- Layout: info | form card ------------------------------ */
.fest-grid {
    display: grid;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .fest-grid {
        grid-template-columns: 547fr 650fr;
        gap: clamp(3rem, 5.75vw, 83px);
        align-items: start;
    }
    .fest-form-wrap {
        position: sticky;
        top: 105px;            /* 81px header + breathing room */
    }
}
#register { scroll-margin-top: 100px; }

/* ---- Event info column ------------------------------------- */
.fest-eyebrow {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0E4C65;
}
.fest-title {
    margin: 0.5rem 0 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1D1D1D;
}
@media (min-width: 1024px) { .fest-title { font-size: 2.25rem; } }

.fest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}
.fest-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    background: #D8E8EE;
    color: #0E4C65;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Mobile/tablet shortcut to the form (form sits below the info column) */
.fest-jump { margin-top: 1.25rem; }
@media (min-width: 1024px) { .fest-jump { display: none !important; } }

.fest-text {
    margin: 1rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #495A69;
}

.fest-subtitle {
    margin: 2.25rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1D1D1D;
}

/* Highlights — chip grid */
.fest-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 640px) { .fest-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fest-highlights li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid #E0E7EB;
    border-radius: 10px;
    background: #fff;
    color: #1D1D1D;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}
.fest-emoji { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }

/* Who we welcome */
.fest-welcome {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.fest-welcome li {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #E0E7EB;
}
.fest-welcome li:last-child { border-bottom: 0; }
.fest-welcome__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #D8E8EE;
    font-size: 1.25rem;
}
.fest-welcome__title {
    margin: 0;
    font-weight: 700;
    color: #1D1D1D;
}
.fest-welcome__desc {
    margin: 0.25rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #495A69;
}

.fest-together {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: #0E4C65;
}
.fest-together .fest-subtitle { margin-top: 0; color: #FAFAFA; }
.fest-together .fest-text { color: rgba(250, 250, 250, 0.85); }

/* ---- Form card ---------------------------------------------- */
.fest-card .contact-form { margin-top: 1.75rem; }

/* Step indicator */
.fest-steps {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}
.fest-steps__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495A69;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}
.fest-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #BFCDD9;
    border-radius: 50%;
    font-size: 0.8125rem;
    transition: background-color 200ms, border-color 200ms, color 200ms;
}
.fest-steps__item.is-active,
.fest-steps__item.is-done { color: #0E4C65; }
.fest-steps__item.is-active .fest-steps__num,
.fest-steps__item.is-done .fest-steps__num {
    border-color: #0E4C65;
    background: #0E4C65;
    color: #FAFAFA;
}
.fest-steps__bar {
    flex: 1;
    height: 2px;
    min-width: 1.5rem;
    background: #BFCDD9;
    transition: background-color 200ms;
}
.fest-steps.is-step-2 .fest-steps__bar { background: #0E4C65; }

/* Steps */
.fest-step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.fest-step[hidden] { display: none; }
.fest-step__title {
    padding: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1D1D1D;
}
.fest-step__desc {
    margin: 0.375rem 0 1.75rem;
    color: #495A69;
    font-size: 0.9375rem;
}
.fest-help {
    margin: 0.125rem 0 0;
    font-size: 0.8125rem;
    color: #495A69;
}

/* Business-only fields hidden for volunteers */
.fest-biz[hidden] { display: none; }

/* Participation option cards */
.fest-options {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.875rem;
}
/* 2 columns where the card is wide enough (tablet, and large desktop) */
@media (min-width: 640px) and (max-width: 1023px), (min-width: 1280px) {
    .fest-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fest-option { position: relative; display: block; cursor: pointer; }
.fest-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.fest-option__box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 56px;
    padding: 0.75rem 1rem;
    border: 1px solid #BFCDD9;
    border-radius: 8px;
    background: #fff;
    transition: border-color 200ms, background-color 200ms, box-shadow 200ms;
}
.fest-option:hover .fest-option__box { border-color: #4C7A8C; }
.fest-option input:focus-visible + .fest-option__box {
    outline: 2px solid #0E4C65;
    outline-offset: 2px;
}
.fest-option input:checked + .fest-option__box {
    border-color: #0E4C65;
    background: rgba(14, 76, 101, 0.06);
    box-shadow: inset 0 0 0 1px #0E4C65;
}
.fest-option__icon { font-size: 1.25rem; line-height: 1; }
.fest-option__label { flex: 1; font-weight: 600; color: #1D1D1D; }
.fest-option__check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #BFCDD9;
    border-radius: 50%;
    transition: border-color 200ms, box-shadow 200ms;
}
.fest-option input:checked + .fest-option__box .fest-option__check {
    border-color: #0E4C65;
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 9px #0E4C65;
}
.contact-field.has-error .fest-option__box { border-color: #D41717; }

/* Actions */
.fest-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.9375rem;
}
.fest-actions .contact-submit { margin-top: 0; }
.fest-actions--end .contact-submit { width: 100%; }
@media (min-width: 640px) {
    .fest-actions .fest-btn { width: auto; min-width: 180px; padding: 0 2rem; margin-left: auto; }
}
.fest-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 53px;
    padding: 0 1.25rem;
    border: 1px solid #BFCDD9;
    border-radius: 8px;
    background: #fff;
    color: #0E4C65;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 200ms, background-color 200ms;
}
.fest-back:hover { border-color: #0E4C65; background: rgba(14, 76, 101, 0.05); }
@media (max-width: 639px) {
    .fest-actions:not(.fest-actions--end) .contact-submit { flex: 1; }
}

/* Thank-you panel */
.fest-done {
    margin-top: 1.75rem;
    padding: 2rem 1.25rem;
    border-radius: 12px;
    background: rgba(14, 76, 101, 0.06);
    text-align: center;
    outline: none;
}
.fest-done[hidden] { display: none; }
.fest-done__icon { font-size: 3rem; line-height: 1; }
.fest-done__title {
    margin: 0.75rem 0 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0E4C65;
}
.fest-done__sign {
    margin: 1.25rem 0 0;
    font-weight: 700;
    color: #1D1D1D;
}

#fest-form-status[hidden] { display: none; }
