:root {
    --mhw-teal: #008ab7;
    --mhw-teal-dark: #006f93;
    --mhw-ink: #2b3336;
    --mhw-muted: #718287;
    --mhw-line: #d7dee1;
    --mhw-bg: #f3f7f9;
    --mhw-card: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--mhw-ink);
    background: #fff;
    line-height: 1.55;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    z-index: 10;
    padding: 8px 12px;
    background: #000;
    color: #fff;
}

.skip-link:focus {
    top: 12px;
}

.page {
    width: min(1110px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.topbar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 26px;
    padding: 8px 0 26px;
    border-bottom: 2px solid #f0eff7;
}

.back-link {
    color: var(--mhw-muted);
    font-size: 0.92rem;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus {
    color: var(--mhw-teal);
}

.brand-logo {
    width: min(354px, 74%);
    height: auto;
}

.intro {
    padding: 58px 0 34px;
    text-align: center;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
}

h1 strong {
    font-weight: 700;
}

.lede {
    margin: 0 auto;
    max-width: 36rem;
    color: var(--mhw-muted);
}

.event-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 760px;
    margin: 30px auto 0;
    border-top: 1px solid var(--mhw-line);
    border-bottom: 1px solid var(--mhw-line);
}

.event-details > div {
    padding: 18px 24px;
}

.event-details > div + div {
    border-left: 1px solid var(--mhw-line);
}

.event-label {
    display: block;
    margin-bottom: 3px;
    color: var(--mhw-teal);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card {
    max-width: 980px;
    margin: 0 auto;
    padding: 42px 52px 48px;
    background: var(--mhw-card);
    border-top: 5px solid var(--mhw-teal);
    box-shadow: 0 14px 44px rgba(43, 51, 54, 0.09);
}

h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 650;
}

.hint {
    margin: 0 0 22px;
    color: var(--mhw-muted);
    font-size: 0.92rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

label,
legend {
    font-weight: 650;
    font-size: 0.95rem;
}

input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--mhw-line);
    border-radius: 10px;
    background: #fff;
    color: var(--mhw-ink);
    font: inherit;
}

input[type="text"]:focus,
.choice:focus-within,
.privacy input:focus-visible,
.btn:focus-visible,
a:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.choice-group {
    margin: 8px 0 20px;
    padding: 0;
    border: 0;
}

.choice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.choice-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.choice {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid var(--mhw-line);
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

.choice input {
    margin: 0 10px 0 0;
    accent-color: var(--mhw-teal);
    width: 18px;
    height: 18px;
}

.choice:has(input:checked) {
    border-color: var(--mhw-teal);
    background: #eef8fb;
    box-shadow: inset 4px 0 0 var(--mhw-teal);
}

.privacy {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 8px 0 18px;
    font-weight: 400;
}

.privacy input {
    margin-top: 4px;
    accent-color: var(--mhw-teal);
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.privacy a {
    color: var(--mhw-teal);
    font-weight: 700;
}

.form-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdecec;
    color: #8a1f1f;
}

.btn {
    appearance: none;
    width: auto;
    min-width: 230px;
    min-height: 52px;
    border: 0;
    border-radius: 4px;
    background: var(--mhw-teal);
    color: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.btn:hover:not(:disabled) {
    background: var(--mhw-teal-dark);
}

.btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.confirmation {
    text-align: left;
}

.confirm-kicker {
    margin: 0 0 8px;
    color: var(--mhw-teal);
    font-weight: 700;
}

.summary {
    display: grid;
    gap: 14px;
    margin: 22px 0;
    padding: 0;
}

.summary div {
    padding-bottom: 12px;
    border-bottom: 1px solid #e8eef1;
}

.summary dt {
    color: var(--mhw-muted);
    font-size: 0.85rem;
}

.summary dd {
    margin: 2px 0 0;
    font-weight: 700;
    font-size: 1.05rem;
}

.confirm-note {
    color: var(--mhw-muted);
}

.confirm-note a {
    color: var(--mhw-teal);
}

.footer {
    margin-top: 36px;
    padding-top: 25px;
    border-top: 2px solid #f0eff7;
    text-align: center;
    color: var(--mhw-muted);
    font-size: 0.85rem;
}

.footer a {
    color: var(--mhw-muted);
}

@media (max-width: 640px) {
    .page {
        width: min(100% - 20px, 720px);
        padding-top: 18px;
    }

    .card {
        padding: 28px 18px 32px;
    }

    .grid,
    .choice-cards {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: center;
        text-align: center;
    }

    .intro {
        padding: 38px 0 24px;
    }

    .event-details {
        grid-template-columns: 1fr;
    }

    .event-details > div + div {
        border-top: 1px solid var(--mhw-line);
        border-left: 0;
    }

    .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
