:root {
    --event-red: #d9434b;
    --event-red-dark: #b92f38;
    --event-red-soft: #fdf0f1;
    --event-green: #26734a;
    --event-green-soft: #eaf5ef;
    --event-gold: #b87816;
    --event-blue: #3569a8;
    --event-ink: #172234;
    --event-muted: #667085;
    --event-line: #dfe4ea;
    --event-surface: #ffffff;
    --event-canvas: #f5f7f9;
    --event-shadow: 0 16px 42px rgba(23, 34, 52, 0.11);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--event-ink);
    background: var(--event-surface);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

body,
button,
input {
    letter-spacing: 0;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 9px 13px;
    transform: translateY(-150%);
    border-radius: 4px;
    color: #fff;
    background: var(--event-ink);
}

.skip-link:focus {
    transform: translateY(0);
}

.section-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.event-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px max(24px, calc((100% - 1180px) / 2));
    border-bottom: 1px solid rgba(23, 34, 52, 0.09);
    background: rgba(255, 255, 255, 0.97);
}

.school-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    color: var(--event-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.school-brand img {
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    object-fit: contain;
}

.header-register {
    color: var(--event-red-dark);
    font-size: 14px;
    font-weight: 600;
    text-underline-offset: 4px;
}

.event-hero {
    position: relative;
    display: flex;
    min-height: min(650px, calc(100svh - 110px));
    align-items: center;
    overflow: hidden;
    color: #fff;
    background-color: #243246;
    background-image:
        linear-gradient(90deg, rgba(17, 29, 45, 0.92) 0%, rgba(20, 32, 48, 0.78) 48%, rgba(20, 32, 48, 0.48) 100%),
        url('/media/default_page_media/family_fun_day copy.webp');
    background-position: center 42%;
    background-size: cover;
    border-bottom: 5px solid var(--event-red);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 66px 0 64px;
}

.event-kicker,
.section-kicker,
.success-kicker {
    margin: 0 0 12px;
    color: var(--event-red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.event-kicker {
    color: #ffd7da;
}

.event-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: 58px;
    line-height: 1.08;
    font-weight: 700;
}

.hero-summary {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.91);
    font-size: 18px;
    line-height: 1.65;
}

.hero-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 26px;
    margin-top: 30px;
}

.hero-details span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
}

.hero-details svg,
.submit-button svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-actions,
.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
summary:focus-visible,
.reference-block button:focus-visible,
.header-register:focus-visible {
    outline: 3px solid rgba(217, 67, 75, 0.3);
    outline-offset: 3px;
}

.button-primary {
    color: #fff;
    background: var(--event-red);
}

.button-primary:hover {
    background: var(--event-red-dark);
}

.button-secondary {
    border-color: var(--event-line);
    color: var(--event-ink);
    background: #fff;
}

.button-secondary:hover {
    border-color: #bcc5cf;
    background: #f8fafb;
}

.button-on-dark {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(18, 29, 44, 0.34);
}

.button-on-dark:hover {
    border-color: #fff;
    background: rgba(18, 29, 44, 0.62);
}

.entry-note {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.83);
    font-size: 13px;
}

.entry-note strong {
    color: #fff;
}

.action-section {
    padding-top: 88px;
    padding-bottom: 96px;
}

.section-heading {
    max-width: 690px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-heading-left {
    margin-left: 0;
    text-align: left;
}

.section-heading h2,
.registration-intro h2,
.location-layout h2 {
    margin: 0;
    color: var(--event-ink);
    font-size: 36px;
    line-height: 1.22;
}

.section-heading > p:last-child,
.registration-intro > p,
.location-layout > div > p:last-child {
    margin: 14px 0 0;
    color: var(--event-muted);
    font-size: 16px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.experience-item {
    min-width: 0;
}

.experience-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.experience-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.experience-icon-red {
    color: var(--event-red-dark);
    background: var(--event-red-soft);
}

.experience-icon-green {
    color: var(--event-green);
    background: var(--event-green-soft);
}

.experience-icon-gold {
    color: var(--event-gold);
    background: #fff5dd;
}

.experience-icon-blue {
    color: var(--event-blue);
    background: #ecf3fb;
}

.experience-item h3 {
    margin: 18px 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.experience-item p {
    margin: 0;
    color: var(--event-muted);
    font-size: 14px;
}

.event-gallery {
    width: min(920px, 100%);
    margin: 64px auto 0;
}

.event-gallery figure {
    position: relative;
    min-width: 0;
    margin: 0;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: 8px;
    background: var(--event-canvas);
}

.event-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-gallery figcaption {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 9px 11px;
    border-radius: 4px;
    color: #fff;
    background: rgba(17, 28, 42, 0.78);
    font-size: 12px;
    font-weight: 600;
}

.registration-section {
    scroll-margin-top: 82px;
    padding: 94px 0;
    border-top: 1px solid var(--event-line);
    border-bottom: 1px solid var(--event-line);
    background: var(--event-canvas);
}

.registration-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1.15fr);
    align-items: start;
    gap: 76px;
}

.registration-intro {
    position: sticky;
    top: 112px;
    padding-top: 12px;
}

.registration-facts {
    margin: 34px 0 0;
}

.registration-facts div {
    padding: 18px 0;
    border-top: 1px solid #d8dde3;
}

.registration-facts dt,
.success-details dt {
    color: var(--event-muted);
    font-size: 12px;
    font-weight: 500;
}

.registration-facts dd,
.success-details dd {
    margin: 3px 0 0;
    font-size: 14px;
    font-weight: 600;
}

.registration-panel {
    min-width: 0;
    padding: 34px;
    border: 1px solid var(--event-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--event-shadow);
}

.form-heading {
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--event-line);
}

.form-heading h3,
.closed-state h3,
.success-state h3 {
    margin: 0;
    font-size: 23px;
    line-height: 1.3;
}

.form-heading p {
    margin: 5px 0 0;
    color: var(--event-muted);
    font-size: 12px;
}

.form-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-left: 3px solid var(--event-red);
    color: #8f242b;
    background: var(--event-red-soft);
    font-size: 13px;
}

.confirmation-email-info {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    margin: 0 0 14px;
    padding: 13px 14px;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    color: #536174;
    background: #f7f8fa;
}

.confirmation-email-info svg {
    width: 21px;
    height: 21px;
    margin-top: 1px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.confirmation-email-info p,
.confirmation-email-info span {
    display: block;
    margin: 0;
}

.confirmation-email-info strong {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}

.confirmation-email-info span {
    color: #667085;
    font-size: 11px;
    line-height: 1.55;
}

.form-field {
    margin: 0 0 21px;
    padding: 0;
    border: 0;
}

.form-field > label,
.form-field legend,
.count-grid label {
    display: block;
    margin: 0 0 7px;
    color: #273448;
    font-size: 13px;
    font-weight: 600;
}

.form-field label span,
.form-field legend span {
    color: var(--event-muted);
    font-size: 11px;
    font-weight: 400;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field input[type="number"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd2da;
    border-radius: 5px;
    color: var(--event-ink);
    background: #fff;
    font-size: 14px;
}

.phone-input-wrapper {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
}

.phone-input-wrapper > input[type="tel"] {
    min-width: 0;
    border-radius: 0 5px 5px 0;
}

.phone-code-dropdown {
    position: relative;
    min-width: 0;
}

.phone-code-button {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid #cbd2da;
    border-right: 0;
    border-radius: 5px 0 0 5px;
    color: var(--event-ink);
    background: #f8fafb;
    cursor: pointer;
    font: inherit;
}

.phone-code-button:hover,
.phone-code-button[aria-expanded="true"] {
    border-color: #aeb8c2;
    background: #f2f5f7;
}

.phone-code-button:focus-visible {
    position: relative;
    z-index: 2;
    outline: 3px solid rgba(217, 67, 75, 0.18);
    outline-offset: 1px;
}

.phone-code-button img {
    width: 20px;
    height: 15px;
    flex: 0 0 auto;
    object-fit: cover;
}

.phone-code-button span {
    min-width: 0;
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.phone-code-button svg {
    width: 12px;
    height: 8px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.phone-code-list {
    position: absolute;
    z-index: 80;
    top: calc(100% + 6px);
    left: 0;
    width: min(330px, calc(100vw - 48px));
    overflow: hidden;
    border: 1px solid #cbd2da;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(23, 34, 52, 0.18);
}

.phone-code-search {
    width: calc(100% - 20px) !important;
    min-height: 40px !important;
    margin: 10px;
    padding: 8px 10px !important;
    font-size: 13px !important;
}

.phone-code-options {
    max-height: 260px;
    overflow-y: auto;
    padding: 0 6px 7px;
}

.phone-code-section-label {
    padding: 8px 9px 5px;
    color: #7a8593;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.phone-code-option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.phone-code-option:hover,
.phone-code-option.is-selected {
    background: #edf5f0;
}

.phone-code-option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

.phone-code-option-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone-code-option-code {
    color: var(--event-muted);
    font-size: 11px;
}

.phone-code-empty {
    margin: 0;
    padding: 18px 12px;
    color: var(--event-muted);
    font-size: 12px;
    text-align: center;
}

.form-field input:hover {
    border-color: #aeb8c2;
}

.form-field input:focus {
    border-color: var(--event-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 67, 75, 0.12);
}

.form-field input[aria-invalid="true"] {
    border-color: var(--event-red);
}

.field-help,
.field-error {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.5;
}

.field-help {
    color: var(--event-muted);
}

.field-error {
    min-height: 0;
    color: #b4232c;
}

.field-error:empty {
    display: none;
}

.count-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.checkbox-grid label {
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--event-line);
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.checkbox-grid label:has(input:checked) {
    border-color: #e29da2;
    background: var(--event-red-soft);
}

.checkbox-grid input,
.consent-row input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    accent-color: var(--event-red);
}

.consent-group {
    display: grid;
    gap: 13px;
    margin: 8px 0 24px;
    padding-top: 20px;
    border-top: 1px solid var(--event-line);
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #3d4959;
    cursor: pointer;
    font-size: 12px;
}

.consent-row input {
    margin-top: 2px;
}

.submit-button {
    width: 100%;
}

.submit-button[disabled] {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.closed-state,
.success-state {
    padding: 14px 0 4px;
    text-align: center;
}

.state-icon,
.success-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
}

.state-icon {
    color: var(--event-gold);
    background: #fff5dd;
}

.success-icon {
    color: var(--event-green);
    background: var(--event-green-soft);
}

.state-icon svg,
.success-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.closed-state > p,
.success-state > p {
    margin: 10px auto 0;
    color: var(--event-muted);
    font-size: 14px;
}

.closed-state .button {
    margin-top: 22px;
}

.success-kicker {
    margin-bottom: 8px !important;
    color: var(--event-green) !important;
}

.reference-block {
    margin: 25px 0 0;
    padding: 18px;
    border: 1px dashed #9eabb8;
    border-radius: 6px;
    background: #f8fafb;
}

.reference-block span {
    display: block;
    color: var(--event-muted);
    font-size: 11px;
}

.reference-block strong {
    display: block;
    margin-top: 5px;
    color: var(--event-ink);
    font-size: 27px;
}

.reference-block button {
    margin-top: 8px;
    padding: 0;
    border: 0;
    color: var(--event-red-dark);
    background: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.screenshot-note {
    padding: 11px 13px;
    border-left: 3px solid var(--event-green);
    text-align: left;
    background: var(--event-green-soft);
}

.success-email-note {
    padding: 11px 13px;
    border: 1px solid #b9d7c5;
    border-radius: 5px;
    color: #215f3b !important;
    text-align: left;
    background: var(--event-green-soft);
}

.success-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
    margin: 20px 0 0;
    text-align: left;
}

.success-details div {
    padding: 12px 0;
    border-top: 1px solid var(--event-line);
}

.success-details a {
    color: var(--event-red-dark);
}

.success-actions {
    justify-content: center;
    margin-top: 24px;
}

.faq-section {
    padding-top: 90px;
    padding-bottom: 94px;
}

.faq-list {
    max-width: 820px;
}

.faq-list details {
    border-top: 1px solid var(--event-line);
}

.faq-list details:last-child {
    border-bottom: 1px solid var(--event-line);
}

.faq-list summary {
    position: relative;
    padding: 20px 42px 20px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    position: absolute;
    top: 17px;
    right: 4px;
    content: "+";
    color: var(--event-red);
    font-size: 24px;
    font-weight: 400;
}

.faq-list details[open] summary::after {
    content: "-";
}

.faq-list details p {
    max-width: 700px;
    margin: -5px 0 21px;
    color: var(--event-muted);
    font-size: 14px;
}

.location-section {
    padding: 58px 0;
    border-top: 1px solid #d8e7de;
    background: var(--event-green-soft);
}

.location-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr auto;
    align-items: center;
    gap: 44px;
}

.location-layout h2 {
    max-width: 480px;
    font-size: 29px;
}

.location-layout address {
    display: grid;
    gap: 4px;
    color: #405146;
    font-size: 13px;
    font-style: normal;
}

.location-layout address strong {
    color: var(--event-ink);
}

.location-layout address a {
    color: var(--event-green);
    font-weight: 600;
}

.event-footer {
    display: flex;
    min-height: 102px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 20px 24px;
    color: #748091;
    background: #fff;
    font-size: 12px;
    text-align: center;
}

.event-footer img {
    width: 39px;
    height: 39px;
    object-fit: contain;
}

.mobile-register {
    display: none;
}

@media (max-width: 960px) {
    .event-hero h1 {
        font-size: 46px;
    }

    .experience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 28px;
    }

    .registration-layout {
        grid-template-columns: minmax(0, 0.72fr) minmax(430px, 1fr);
        gap: 42px;
    }

    .location-layout {
        grid-template-columns: 1fr 1fr;
    }

    .location-layout .button {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: 70px;
    }

    .section-shell,
    .hero-content {
        width: min(100% - 32px, 1180px);
    }

    .event-header {
        min-height: 64px;
        padding: 8px 16px;
    }

    .school-brand img {
        width: 40px;
        height: 40px;
    }

    .header-register {
        display: none;
    }

    .event-hero {
        min-height: min(590px, calc(100svh - 100px));
    }

    .hero-content {
        padding: 50px 0 48px;
    }

    .event-hero h1 {
        font-size: 38px;
        line-height: 1.12;
    }

    .hero-summary {
        font-size: 16px;
    }

    .hero-details {
        display: grid;
        gap: 10px;
    }

    .hero-actions .button {
        flex: 1 1 180px;
    }

    .action-section,
    .faq-section {
        padding-top: 68px;
        padding-bottom: 72px;
    }

    .section-heading {
        margin-bottom: 36px;
        text-align: left;
    }

    .section-heading h2,
    .registration-intro h2 {
        font-size: 30px;
    }

    .event-gallery {
        margin-top: 48px;
    }

    .registration-section {
        padding: 68px 0;
    }

    .registration-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .registration-intro {
        position: static;
        padding: 0;
    }

    .registration-facts {
        margin-top: 25px;
    }

    .registration-panel {
        padding: 25px;
    }

    .location-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .location-layout .button {
        grid-column: auto;
        justify-self: stretch;
    }

    .mobile-register {
        position: fixed;
        z-index: 40;
        right: 12px;
        bottom: 12px;
        left: 12px;
        display: flex;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        color: #fff;
        background: var(--event-red);
        box-shadow: 0 8px 24px rgba(126, 28, 34, 0.28);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-register.is-near-form {
        display: none;
    }
}

@media (max-width: 520px) {
    .school-brand span {
        max-width: 190px;
        font-size: 12px;
        line-height: 1.25;
    }

    .event-hero {
        min-height: min(560px, calc(100svh - 96px));
    }

    .event-hero h1 {
        font-size: 34px;
    }

    .hero-actions {
        display: grid;
        margin-top: 22px;
    }

    .hero-actions .button-on-dark {
        display: none;
    }

    .hero-summary {
        margin-top: 16px;
    }

    .hero-details {
        margin-top: 20px;
    }

    .entry-note {
        margin-top: 16px;
    }

    .experience-grid,
    .count-grid,
    .success-details {
        grid-template-columns: 1fr;
    }

    .experience-grid {
        gap: 30px;
    }

    .event-gallery {
        margin-top: 40px;
    }

    .event-gallery figure {
        aspect-ratio: 4 / 3;
    }

    .registration-panel {
        padding: 21px 17px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .success-actions {
        display: grid;
    }

    .event-footer {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
