/* ==========================================================================
   YAC Youth Summit registration (summit/register.html, register_done.html)
   Same visual language as events.css: deep green, orange accent, Urbanist headings.
   ========================================================================== */
.sm-page {
    --sm-ink: var(--primary-color, #021708);
    --sm-green: #21322e;
    --sm-green-2: #2b3f3a;
    --sm-accent: var(--accent-color, #F26B0F);
    --sm-accent-light: color-mix(in srgb, var(--accent-color, #F26B0F) 45%, #ffffff);
    --sm-accent-dark: #B04500;
    --sm-text: var(--text-color, #495762);
    --sm-surface: #F2F4F3;
    --sm-line: rgba(2, 23, 8, .16);
    --sm-error: #B42318;
    --sm-radius: 18px;
    color: var(--sm-text);
    background: var(--sm-surface);
    padding-bottom: 80px;
}
.sm-page h1, .sm-page h2, .sm-page h3 { font-family: var(--accent-font); color: var(--sm-ink); }
.sm-page :focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 3px; border-radius: 4px; }
.sm-muted { color: var(--sm-text); opacity: .85; font-size: 15px; }

/* ---------- Hero ---------- */
.sm-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(242, 107, 15, .22), transparent 45%),
        linear-gradient(135deg, var(--sm-green) 0%, var(--sm-green-2) 100%);
    color: #fff;
    padding: 150px 0 110px;
    position: relative;
    overflow: hidden;
}
.sm-hero::after { /* campaign stripes */
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
    background: repeating-linear-gradient(90deg, var(--sm-accent) 0 60px, #fff 60px 72px, var(--sm-ink) 72px 132px, #fff 132px 144px);
}
.sm-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 28px; font-size: 14px; }
.sm-crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.sm-crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sm-crumbs [aria-current] { color: rgba(255, 255, 255, .85); }
.sm-kicker {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
    font-family: var(--accent-font); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--sm-accent-light);
}
.sm-page .sm-title { color: #fff; font-size: clamp(34px, 6vw, 60px); font-weight: 800; line-height: 1.05; margin: 0 0 12px; max-width: 16ch; }
.sm-theme { font-size: clamp(17px, 2.2vw, 21px); color: rgba(255, 255, 255, .9); max-width: 46ch; margin: 0 0 22px; }
.sm-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.sm-meta li {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 100px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); font-weight: 600; font-size: 15px;
}
.sm-meta i { color: var(--sm-accent-light); }

/* ---------- Layout ---------- */
.sm-layout { display: grid; gap: 28px; margin-top: -56px; position: relative; z-index: 1; }

@media (min-width: 992px) {
    .sm-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
    .sm-aside { order: 0; position: sticky; top: 110px; }
}
.sm-card, .sm-form, .sm-intro, .sm-error-summary {
    background: #fff; border-radius: var(--sm-radius); box-shadow: 0 10px 30px rgba(2, 23, 8, .08);
}
.sm-card { padding: 24px; }
.sm-intro { padding: 28px 28px 20px; margin-bottom: 20px; }
.sm-intro h2 { font-size: 26px; margin: 0 0 8px; }
.sm-intro p { margin: 0 0 8px; }

/* ---------- Facts card ---------- */
.sm-card-title { font-size: 20px; margin: 0 0 14px; }
.sm-facts dl { margin: 0 0 16px; display: grid; gap: 12px; }
.sm-facts dl div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--sm-line); }
.sm-facts dt { font-weight: 700; color: var(--sm-ink); font-size: 14px; }
.sm-facts dt i { width: 16px; color: var(--sm-accent-dark); }
.sm-facts dd { margin: 0; font-size: 15px; }
.sm-contact h3 { font-size: 16px; margin: 16px 0 6px; }
.sm-contact p { margin: 0 0 4px; font-size: 15px; word-break: break-word; }
.sm-contact a, .sm-after a { color: var(--sm-accent-dark); text-decoration: underline; }
.sm-textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--sm-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.sm-textlink:hover { color: var(--sm-ink); }

/* ---------- Errors ---------- */
.sm-error-summary { padding: 22px 26px; margin-bottom: 20px; border-left: 6px solid var(--sm-error); }
.sm-error-summary h2 { font-size: 20px; margin: 0 0 8px; color: var(--sm-error); }
.sm-error-summary ul { margin: 0; padding-left: 20px; }
.sm-error-summary a { color: var(--sm-error); text-decoration: underline; }
.sm-error { color: var(--sm-error); font-weight: 600; font-size: 14px; margin: 0 0 6px; }

/* ---------- Form ---------- */
.sm-form { padding: 8px 28px 32px; }
.sm-section { padding: 26px 0; border-bottom: 1px solid var(--sm-line); }
.sm-section:last-child { border-bottom: 0; }
.sm-section-title { display: flex; align-items: center; gap: 12px; font-size: 22px; margin: 0 0 20px; }
.sm-step {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: var(--sm-accent); color: var(--sm-ink); font-size: 16px; font-weight: 800;
}
.sm-grid { display: grid; gap: 18px 20px; }
@media (min-width: 640px) {
    .sm-grid { grid-template-columns: 1fr 1fr; }
    .sm-field--wide { grid-column: 1 / -1; }
}
.sm-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.sm-label { display: block; font-weight: 700; color: var(--sm-ink); font-size: 15px; margin: 0 0 6px; padding: 0; }
.sm-req { color: var(--sm-accent-dark); }
.sm-help { font-size: 14px; margin: -2px 0 8px; line-height: 1.45; }
.sm-field input[type=text], .sm-field input[type=email], .sm-field input[type=tel], .sm-field input[type=number],
.sm-field select, .sm-field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--sm-ink);
    background: #fff; border: 1.5px solid rgba(2, 23, 8, .35); border-radius: 12px; box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.sm-field textarea { min-height: 96px; resize: vertical; }
.sm-field select {
    appearance: none; padding-right: 40px; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat;
}
.sm-field input:focus, .sm-field select:focus, .sm-field textarea:focus {
    outline: none; border-color: var(--sm-green); box-shadow: 0 0 0 4px rgba(242, 107, 15, .28);
}
.has-error input, .has-error select, .has-error textarea { border-color: var(--sm-error); }

/* radios as tappable pills */
.sm-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.sm-choice {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px 10px 14px;
    border: 1.5px solid rgba(2, 23, 8, .35); border-radius: 100px; cursor: pointer; font-weight: 600; color: var(--sm-ink);
    transition: border-color .2s ease, background-color .2s ease;
}
.sm-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--sm-green); }
.sm-choice:has(input:checked) { border-color: var(--sm-green); background: rgba(33, 50, 46, .08); }
.sm-choice:has(input:focus-visible) { outline: 3px solid var(--sm-accent); outline-offset: 2px; }

/* checkboxes */
.sm-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; color: var(--sm-ink); line-height: 1.5; }
.sm-check input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--sm-green); }

/* guardian panel (shown for under-18s) */
.sm-guardian { margin-top: 20px; padding: 20px; border-radius: 14px; background: #FFF6EE; border: 1px solid rgba(242, 107, 15, .35); }
.sm-guardian h3 { font-size: 18px; margin: 0 0 4px; }
.js .sm-guardian[hidden], .js .sm-yac-club[hidden] { display: none; }

/* photo */
.sm-photo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sm-photo-preview {
    width: 88px; height: 108px; border-radius: 12px; background: var(--sm-surface); border: 1.5px dashed rgba(2, 23, 8, .3);
    display: grid; place-items: center; overflow: hidden; flex-shrink: 0; color: rgba(2, 23, 8, .3); font-size: 34px;
}
.sm-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.sm-photo-preview img:not([hidden]) + i { display: none; }
.sm-photo input[type=file] { max-width: 100%; font-size: 15px; }
.sm-photo input[type=file]::file-selector-button {
    margin-right: 12px; padding: 10px 16px; border-radius: 100px; border: 1.5px solid var(--sm-ink);
    background: #fff; color: var(--sm-ink); font-weight: 700; cursor: pointer;
}

.sm-human input { max-width: 160px; }
.sm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sm-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: #FFF6EE; color: var(--sm-ink); font-weight: 600; }

/* ---------- Buttons ---------- */
.sm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px;
    border: 2px solid transparent; border-radius: 100px; font-family: var(--accent-font); font-size: 16px; font-weight: 700;
    cursor: pointer; text-decoration: none; transition: background-color .25s ease, color .25s ease, transform .2s ease;
}
.sm-btn:active { transform: scale(.97); }
.sm-btn--primary { background: var(--sm-accent); color: var(--sm-ink); }
.sm-btn--primary:hover { background: var(--sm-ink); color: #fff; }
.sm-btn--outline { background: transparent; color: var(--sm-ink); border-color: var(--sm-ink); }
.sm-btn--outline:hover { background: var(--sm-ink); color: #fff; }
.sm-btn--lg { min-height: 58px; padding: 14px 32px; font-size: 18px; }
.sm-submit { margin-top: 26px; width: 100%; }
@media (min-width: 640px) { .sm-submit { width: auto; } }
.sm-submit[aria-busy=true] { opacity: .7; pointer-events: none; }

/* ---------- Thank-you page ---------- */
.sm-hero--done { padding-bottom: 100px; }
.sm-ticket { padding: 32px 28px; border-top: 8px solid var(--sm-accent); }
.sm-ticket-label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0; }
.sm-ticket-ref { font-family: var(--accent-font); font-size: clamp(34px, 7vw, 52px); font-weight: 800; color: var(--sm-ink); margin: 0 0 8px; letter-spacing: .03em; }
.sm-ticket-details { display: grid; gap: 14px; margin: 22px 0; padding: 20px 0; border-top: 1px dashed var(--sm-line); border-bottom: 1px dashed var(--sm-line); }
@media (min-width: 640px) { .sm-ticket-details { grid-template-columns: 1fr 1fr; } }
.sm-ticket-details dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.sm-ticket-details dd { margin: 2px 0 0; font-size: 17px; color: var(--sm-ink); font-weight: 600; }
.sm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sm-after { margin: 22px 4px 6px; }
.sm-closed { padding: 32px; }
.sm-closed h2 { margin-top: 0; }

@media (max-width: 575px) {
    .sm-hero { padding: 120px 0 90px; }
    .sm-form { padding: 4px 18px 24px; }
    .sm-intro { padding: 22px 18px 14px; }
    .sm-card { padding: 20px 18px; }
}
@media print {
    header, footer, .sm-aside, .sm-actions, .sm-crumbs, .sm-after, .sm-textlink { display: none !important; }
    .sm-hero { padding: 20px 0; background: none; color: #000; }
    .sm-page .sm-title, .sm-theme { color: #000; }
    .sm-layout { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .sm-page * { transition: none !important; } }
