:root {
    --flyer-url: url('/img/flyer.png');
    --bg: #f7f7f8;
    --btn: #ff7a00;
    --btn-hover: #e56e00;
    --text-on-btn: #fff;
    --top-gap: 78vh;
    --bottom-gap: 12vh;
    --sticky-top: 12px;
}

@media (max-width: 1024px) {
    :root {
        --top-gap: 80vh;
        --bottom-gap: 10vh;
        --sticky-top: 10px;
    }
}

@media (max-width: 640px) {

    /* On mobile: button fixed at top with much smaller height */
    :root {
        --top-gap: 8vh;
        --bottom-gap: 100vh;
        --sticky-top: 10px;
    }

    .overlay {
        display: block;
    }

    .cta-wrap {
        position: fixed;
        top: 10px;
        left: 0;
        right: 0;
        justify-content: center;
        padding: 0 10px;
    }

    .cta {
        width: auto;
        max-width: none;
        padding: 4px 12px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: grid;
    place-items: stretch;
}

.stage {
    position: relative;
    min-height: 100dvh;
    background-image: var(--flyer-url);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.overlay {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: var(--top-gap) auto var(--bottom-gap);
    pointer-events: none;
    z-index: 1;
}

.cta-wrap {
    grid-row: 2;
    display: flex;
    justify-content: center;
    padding: 0 clamp(12px, 3vw, 28px);
    position: sticky;
    top: var(--sticky-top);
    pointer-events: none;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    appearance: none;
    border: none;
    border-radius: 12px;
    background: var(--btn);
    color: var(--text-on-btn);
    font-weight: 700;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
    line-height: 1.2;
    padding: clamp(12px, 1.8vh, 18px) clamp(18px, 2.4vw, 32px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background-color .25s ease, transform .15s ease, box-shadow .25s ease;
    max-width: min(92vw, 520px);
    pointer-events: auto;
}

.cta:hover {
    background: var(--btn-hover);
    transform: translateY(-1px);
}

.cta:active {
    transform: translateY(0);
}

.cta:focus-visible {
    outline: 3px solid #1f3bff;
    outline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0b0c;
    }

    body {
        background-color: var(--bg);
    }
}

@media print {
    .overlay {
        display: none;
    }
}

form .form-label {
    font-weight: bold;
}