/* 2026-11-27: paint the background across the viewport while keeping the form content centered. */
@font-face {
    font-family: "Negrita Pro";
    src: url("../fonts/NegritaPro.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Bebas Neue";
    src: url("../fonts/bebas-neue-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
:root { background: #061532; }
body.registration-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #061532 url("../images/home/background.jpg") center top / cover no-repeat; color: #fff8db; }
.registration-screen main { flex: 1 0 auto; display: flex; width: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; }
.registration-screen .skip:focus { z-index: 5; color: #061532; }
.registration-poster {
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    flex: 1;
    display: grid;
    grid-template-columns: 42% 56%;
    grid-template-rows: auto 1fr;
    align-content: start;
    row-gap: 16px;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding-block: clamp(24px, 2vw, 36px) 32px;
    overflow: clip;
    --registration-cream: #fff8db;
    --registration-green: #008451;
    --registration-purple: #2f2e82;
    --registration-label: clamp(112px, 11.7cqw, 160px);
}
.registration-heading { grid-column: 2; grid-row: 1; z-index: 1; min-width: 0; margin-left: -12cqw; }
.registration-heading h1 { margin: 0; font: 400 10cqw/.95 "Negrita Pro", Impact, sans-serif; text-transform: uppercase; white-space: nowrap; transform: rotate(-1deg); }
.registration-flourish { display: block; width: 61%; height: auto; margin: 8px 8% 0 auto; }
.registration-body { grid-column: 2; grid-row: 2; z-index: 1; align-self: start; min-width: 0; width: 100%; max-width: 660px; }
.registration-illustration { grid-column: 1; grid-row: 1 / 3; position: sticky; top: 24px; align-self: start; min-width: 0; }
.registration-art { display: block; padding-inline: 2cqw; pointer-events: none; }
.registration-art img { display: block; width: 100%; height: auto; max-height: calc(100svh - 24px); object-fit: contain; object-position: left top; }
.registration-brand { position: absolute; left: 0; bottom: 0; z-index: 1; display: flex; justify-content: flex-end; align-items: center; width: 88%; height: 7.5cqw; padding-right: 1.5cqw; border-radius: 0 1.6cqw 1.6cqw 0; background: var(--registration-purple); }
.registration-brand img { display: block; width: 84%; height: auto; }
.registration-screen a { color: inherit; }
.registration-screen a:focus-visible, .registration-form :is(input, button):focus-visible { outline: 3px solid #ffe500; outline-offset: 3px; }
.registration-form { margin: 0; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 700; line-height: 1.1; }
.registration-form fieldset { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.registration-form label { font-family: inherit; font-size: clamp(24px, 2.2cqw, 30px); font-weight: 700; line-height: 1; text-transform: uppercase; }
.registration-form label sup { font: 700 11px/1 system-ui, sans-serif; vertical-align: super; }
.registration-field { display: grid; grid-template-columns: var(--registration-label) minmax(0, 1fr); align-items: center; gap: 4px 10px; margin-bottom: 8px; }
.registration-field > label { text-align: right; margin: 0; white-space: nowrap; }
.registration-form input:not([type=checkbox]):not([type=hidden]) { width: 100%; min-width: 0; min-height: 44px; height: 44px; padding: 4px 9px; border: 0; border-radius: 0; background: #fff; color: var(--registration-green); font: 700 clamp(24px, 2.35cqw, 32px)/1.1 "Bebas Neue", Impact, sans-serif; text-transform: uppercase; }
.registration-form input::placeholder { color: #668576; opacity: .75; }
.registration-form input[type=date] { font-size: clamp(20px, 2.05cqw, 28px) !important; padding-inline: 7px !important; }
.registration-form input[type=date]::-webkit-calendar-picker-indicator { width: 16px; height: 16px; margin: 0 0 0 3px; padding: 0; opacity: .65; }
.registration-form input:user-invalid { color: #b40023 !important; outline: 2px solid #e97e87; outline-offset: 1px; }
.registration-phone { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; min-width: 0; }
.registration-field-help { grid-column: 2; font: 12px/1.3 system-ui, sans-serif; color: #d9e1ed; }
.registration-children legend { width: 100%; padding: 0 0 0 calc(var(--registration-label) + 10px); margin-bottom: 4px; color: var(--registration-cream); font: 700 30px/1.1 "Bebas Neue", Impact, sans-serif; text-align: left; text-transform: uppercase; }
.registration-child-help { margin: 0 0 10px; padding-left: calc(var(--registration-label) + 10px); color: #d9e1ed; font: 12px/1.3 system-ui, sans-serif; }
#children { container: child-fields / inline-size; }
.registration-form .child-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 88px; gap: 8px; align-items: end; padding: 0; margin-bottom: 8px; border: 0; }
.registration-form .child-row > div { display: grid; grid-column: auto; grid-template-columns: 160px minmax(0, 1fr); gap: 8px; align-items: center; min-width: 0; }
.registration-form .child-row > .registration-child-birth { grid-template-columns: 58px minmax(0, 1fr); }
.registration-form .child-row label { text-align: right; margin: 0; white-space: nowrap; font-size: clamp(20px, 4.5cqw, 30px); }
.registration-form #children input:not([type=date]) { font-size: clamp(24px, 4.8cqw, 32px); }
.registration-form #children input[type=date] { font-size: clamp(22px, 4.2cqw, 28px) !important; }
.registration-form button { min-height: 44px; padding: 7px 12px; border: 0; border-radius: 0; margin: 0; background: var(--registration-green); color: #fff; font: 700 28px/1.1 "Bebas Neue", Impact, sans-serif; text-transform: uppercase; }
.registration-form .child-actions { display: flex; justify-content: flex-end; align-self: end; }
.registration-form .child-row .child-action { grid-column: auto; grid-row: auto; align-self: end; display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--registration-cream); opacity: .8; }
.registration-form .child-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.registration-form .child-action:hover, .registration-form .child-action:focus-visible { opacity: 1; background: #fff8db0d; }
.registration-submit-row { display: flex; justify-content: center; padding: 0; margin: 16px 0 12px; }
.registration-consents { margin-top: 8px; }
.registration-form .checkbox { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 7px 0; margin: 0; font: 700 17px/1.2 "Bebas Neue", Impact, sans-serif; }
.registration-form .checkbox input { width: 22px; height: 22px; min-height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--registration-green); }
.registration-form .checkbox > span { min-width: 0; }
.registration-form .checkbox a { text-decoration: underline; text-underline-offset: 3px; }
.registration-pass-note { margin: 8px 0 0; color: #d9e1ed; font: 12px/1.4 system-ui, sans-serif; }
.registration-state { margin: 0; padding: 24px; border-left: 4px solid #ffe500; background: #071632e6; font: 16px/1.5 system-ui, sans-serif; }
.registration-state h2 { margin: 0 0 12px; color: var(--registration-cream); font: 400 30px/1.15 "Negrita Pro", Impact, sans-serif; }
.registration-state p { margin: 0; }
.registration-errors { margin: 0 0 20px; font: 14px/1.5 system-ui, sans-serif; }
.registration-sr-only { position: absolute; width: 1px; height: 1px; padding: 0 !important; margin: -1px !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* On phones the artwork follows the form, so it cannot cover a field or checkbox. */
@media (max-width: 900px), (max-width: 1100px) and (max-aspect-ratio: 5/4) {
    body.registration-screen { background-size: 100% 100%; }
    .registration-poster { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(180px, 1fr) auto; row-gap: 16px; padding-block: 24px; --registration-label: 64px; }
    .registration-heading { grid-column: 1; grid-row: 1; margin: 0 16px; }
    .registration-heading h1 { font-size: clamp(64px, 18.5cqw, 142px); line-height: .83; white-space: normal; transform: rotate(-1deg); }
    .registration-heading h1 span { display: block; }
    .registration-heading h1 span:first-child { margin-left: 12%; }
    .registration-heading h1 span:last-child { margin-right: 10%; text-align: right; }
    .registration-flourish { width: 82%; margin: 10px 1% 0 auto; }
    .registration-body { grid-column: 1; grid-row: 2; width: auto; max-width: 760px; margin: 0 18px; justify-self: stretch; }
    .registration-illustration { display: contents; }
    .registration-art { grid-column: 1; grid-row: 3 / 5; position: relative; inset: auto; justify-self: end; align-self: end; width: 57%; max-width: 460px; padding: 0; margin: -10px 0 -24px; z-index: 0; }
    .registration-art img { width: 100%; max-height: none; object-position: right bottom; transform: scaleX(-1); }
    .registration-brand { grid-column: 1; grid-row: 4; position: relative; bottom: auto; align-self: end; width: 72%; max-width: 600px; min-height: 70px; height: auto; padding: 12px 18px; border-radius: 0 14px 14px 0; margin-top: 0; }
    .registration-brand img { width: 84%; }
    .registration-form label { font-size: 22px; }
    .registration-form input:not([type=checkbox]):not([type=hidden]) { color: var(--registration-purple); font-size: 24px; padding-inline: 7px; }
    .registration-form input[type=date] { font-size: 22px !important; }
    .registration-form input::placeholder { color: #817eaa; }
    .registration-phone { grid-template-columns: 66px minmax(0, 1fr); gap: 8px; }
    .registration-field { gap: 4px 8px; }
    .registration-field-help { font-size: 12px; }
    .registration-children legend { padding-left: calc(var(--registration-label) + 8px); color: #ffe500; font-size: clamp(24px, 4cqw, 32px); }
    .registration-child-help { padding-left: calc(var(--registration-label) + 8px); text-align: left; }
    .registration-submit-row > button { width: min(100%, 360px); }
    .registration-form .checkbox { font-size: 18px; }
    .registration-pass-note { font-size: 13px; }
    .registration-state { margin-top: 4px; }
}
@media (min-width: 620px) and (max-width: 1100px) and (max-aspect-ratio: 5/4) {
    .registration-poster { --registration-label: 132px; }
    .registration-body { margin-inline: 36px; }
    .registration-form label { font-size: 28px; }
    .registration-phone { grid-template-columns: 100px minmax(0, 1fr); }
    .registration-form input:not([type=checkbox]):not([type=hidden]) { font-size: 30px; }
    .registration-form input[type=date] { font-size: 27px !important; }
}
@media (max-width: 379px) {
    .registration-body { margin-inline: 14px; }
    .registration-poster { --registration-label: 58px; }
    .registration-form .checkbox { font-size: 17px; }
}
/* Layout choices depend on the space for the child fields, regardless of device. */
@container child-fields (width < 620px) {
    .registration-form .child-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 12px 12px 6px; margin-bottom: 12px; border: 1px solid #fff8db30; border-radius: 8px; background: #ffffff05; }
    .registration-form .child-row > div, .registration-form .child-row > .registration-child-birth { grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .registration-form .child-row label { text-align: left; }
    .registration-form .child-actions { grid-column: 1 / -1; grid-row: auto; justify-self: end; min-width: 88px; align-self: end; }
}
@container child-fields (width < 450px) {
    .registration-form .child-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .registration-children legend, .registration-child-help { padding-left: 0; }
}
