/* TNPSA – event detail polish, event registration, thank-you page and membership form.
   Loaded after style.css and reuses its colour tokens (--forest, --emerald, --gold, --line ...). */

/* ---------- Event detail page: sidebar facts ---------- */
.evd__facts > div { padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.evd__facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.evd__mode {
    display: inline-block; padding: 3px 14px; border-radius: 999px;
    font-size: .86rem; font-weight: 600; line-height: 1.6;
}
.evd__mode--online   { background: var(--emerald-l); color: var(--emerald-d); }
.evd__mode--inperson { background: var(--gold-l);    color: var(--gold-d); }
.evd__btn { padding-block: 15px; font-size: 1.02rem; box-shadow: 0 10px 24px rgba(242, 169, 0, .28); }
.evd__card { transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.evd__card:hover { box-shadow: 0 24px 50px rgba(13, 21, 45, .14); }

/* Register button shown above the content on tablet / mobile, where the sidebar sits at the bottom */
.evd__cta-mobile { display: none; width: 100%; justify-content: center; margin: 0 0 26px; }
@media (max-width: 1050px) { .evd__cta-mobile { display: flex; } }

/* ---------- Event registration + thank-you ---------- */
.evreg { max-width: 850px; display: grid; gap: 26px; }
.evreg__event {
    background: var(--mint); border: 1px solid var(--line); border-left: 5px solid var(--gold);
    border-radius: 20px; padding: 26px 28px;
}
.evreg__label {
    display: block; font-size: .76rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--emerald); margin-bottom: 6px;
}
.evreg__title { margin: 0 0 16px; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.3; }
.evreg__meta {
    list-style: none; margin: 0 0 16px; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 22px;
}
.evreg__meta li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-weight: 500; }
.evreg__meta .ic { flex: 0 0 auto; margin-top: 3px; color: var(--emerald); }
.evreg__meta small {
    display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted);
}
.evreg__desc { margin: 0 0 12px; color: var(--text); }
.evreg__back { font-weight: 600; font-size: .92rem; }
.evreg__form h2 { font-size: 1.5rem; margin-top: 0; }
.evreg__form .btn { min-width: 220px; justify-content: center; }

.evthanks {
    text-align: center; background: #fff; border: 1px solid var(--line);
    border-radius: 24px; padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow);
}
.evthanks__tick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--emerald-l); color: var(--emerald-d); margin-bottom: 14px;
}
.evthanks h2 { margin: 0 0 8px; }
.evthanks__lead { max-width: 56ch; margin: 0 auto 24px; }
.evthanks__event { text-align: left; margin-bottom: 26px; }
.evthanks__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Membership application form ---------- */
.memform__lead { margin: 0 0 22px; color: var(--muted); }
.memform .field small { font-weight: 400; color: var(--muted); }
.memform .form-row { align-items: start; }
.memform .field--full { grid-column: 1 / -1; }
.memform textarea { min-height: 110px; }
.memform .btn { min-width: 220px; justify-content: center; }
.memform input:user-invalid, .memform textarea:user-invalid, .memform select:user-invalid { border-color: #d9573b; }

@media (max-width: 700px) {
    .evreg__event { padding: 22px 20px; }
    .evreg__form .btn, .memform .btn { width: 100%; }
    .evthanks__actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .evd__card { transition: none; } }
