.Step1content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}
.contentText {
    width: 200%;
}
.contentImage img{
    width: 100%;
    height: auto;
    padding: 10px 10px;
}

/* ==========================================================================
   Step 1: how many skaters
   Phone / tablet: a form column like step 2 and 3.
   Computer: one start card in the middle, the download card under it.
   ========================================================================== */

.stepOneWrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 632px; /* not wider than the step 3 form */
    margin: 0 auto;
    padding: 20px 16px 32px;
    font-family: Arial, sans-serif;
}
.stepOneWrapper > br,
.details-container > br {
    display: none;
}

.wrapperRight {
    order: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 20px 16px 22px;
    border-radius: 14px;
    background: var(--glass-background); /* glass card (style.css) */
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge);
    text-align: left;
}
.counter-label {
    margin: 0;
    padding: 0;
}
/* The question */
.wrapperRight > .counter-label:first-child {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.2;
    color: #101826;
}

/* Number buttons 1 to 10, like the gender buttons in step 3 */
.count-choices {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 0 0 12px;
}
.count-choice {
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 1.5px 1.5px #ccc;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: bold;
    color: #101826;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.count-choice:hover {
    box-shadow: 0 0 0 1.5px #6566ED;
}
.count-choice.selected {
    background-color: #EFEFFE;
    box-shadow: 0 0 0 2px #6566ED;
}
.count-choice:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #6566ED, 0 0 12px rgba(108, 99, 255, 0.35);
}
/* "More than 10 skaters?": asks about reserves */
.count-more {
    align-self: flex-start;
    margin: 0 0 26px;
    padding: 0;
    border: 0;
    background: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #6566ED;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.count-more:hover {
    color: #5455C6;
}

/* Maximum per club: small purple title with the value under it */
.max-label {
    margin: 0 0 4px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #847EC1;
}
.details-container > h2 {
    margin: 0 0 22px;
    font-size: 16px;
    color: #101826;
}

/* "I also want to register reserves": a row like the gender buttons */
#reserveCheckboxContainer {
    margin: 0 0 24px;
}
.container-checkbox {
    position: relative;
    font-size: 15px;
    -webkit-user-select: none;
    user-select: none;
}
.container-checkbox label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 1.5px 1.5px #ccc;
    color: #000;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.container-checkbox label:hover {
    box-shadow: 0 0 0 1.5px #6566ED;
}
.container-checkbox label:has(input:checked) {
    background: #EFEFFE;
    box-shadow: 0 0 0 2px #6566ED;
    font-weight: bold;
    color: #101826;
}
.container-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.container-checkbox .checkmark {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px #bbb;
}
.container-checkbox input:checked ~ .checkmark {
    background: #6566ED;
    box-shadow: none;
}
.container-checkbox input:focus-visible ~ .checkmark {
    box-shadow: inset 0 0 0 1.5px #6566ED, 0 0 0 3px rgba(101, 102, 237, 0.3);
}
.container-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.container-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Next: full width */
.apply-btn {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background-color: #6566ED;
    box-shadow: 0 0 1.5px 1.5px #5455C6;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.apply-btn:hover {
    background-color: #5F60DE;
}

/* Download: a file card like the music / PDF cards in step 3 */
.stepOneWrapper > a {
    order: 2;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    margin: 28px 0 0;
    padding: 8px 8px 8px 10px;
    border-radius: 8px;
    background: var(--glass-background);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge);
    color: #101826;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}
.stepOneWrapper > a::before {
    content: "";
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EFEFFE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236566ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E") center / 17px no-repeat;
}
.stepOneWrapper > a::after {
    content: "";
    flex: none;
    width: 34px;
    height: 34px;
    margin-left: auto;
    border-radius: 8px;
    background: #EFEFFE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236566ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center / 16px no-repeat;
    transition: background-color 0.2s ease;
}
.stepOneWrapper > a:hover::after {
    background-color: #E1E1FC;
}

/* ---------- Popup ("U wilt 3 schaatsers inschrijven. Klopt dat?") ----------
   Phone: a sheet from the bottom, centred, full-width Ja, Nee as a text button (like the category list on a phone).
   Computer: a dialog with a light footer bar, Nee / Ja on the right (like "Choose a category"). */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: rgba(16, 24, 38, 0.6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: step1-fade-in 0.2s ease-out;
}
#popup {
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1000;
    box-sizing: border-box;
    width: 100%;
    padding: 28px 24px calc(18px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 -12px 40px rgba(16, 24, 38, 0.25);
    font-family: Arial, sans-serif;
    font-size: 0; /* no gap between the buttons */
    text-align: center;
    animation: step1-sheet-in 0.22s ease-out;
}
/* White tile with the skate, like the icon tile of the info boxes */
#popup::before {
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236566ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 2.5h4.5v6.5l5 1.7a3.3 3.3 0 0 1 2.3 3.1V15.5H6.5z'/%3E%3Cpath d='M8.5 15.5v3M15.5 15.5v3'/%3E%3Cpath d='M4 18.5h13.5a3 3 0 0 0 3-3'/%3E%3C/svg%3E") center / 26px no-repeat;
    box-shadow: inset 0 0 0 1.5px #D5D5FB;
}
#popup-message {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.45;
    color: #101826;
}
#popup button {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background-color: #6566ED;
    box-shadow: 0 0 1.5px 1.5px #5455C6;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
#popup button:hover {
    background-color: #5F60DE;
}
/* Nee */
#popup button + button {
    height: 40px;
    margin-top: 8px;
    background: none;
    box-shadow: none;
    color: #6566ED;
}
#popup button + button:hover {
    background-color: #EFEFFE;
}

@keyframes step1-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes step1-sheet-in {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: none; }
}
@keyframes step1-dialog-in {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(0.98); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ---------- Computer: the start card ---------- */
@media (min-width: 981px) {
    .stepOneWrapper {
        align-items: center;
        padding: 48px 24px;
    }
    .wrapperRight {
        width: min(440px, 100%);
        padding: 32px 28px 28px;
        text-align: center;
    }
    .wrapperRight > .counter-label:first-child {
        margin: 0 0 24px;
        font-size: 22px;
        line-height: 1.3;
    }
    .count-more {
        align-self: center;
    }
    /* Maximum: grey line with the value as a lavender label */
    .max-label {
        margin: 0 0 8px;
        font-size: 13px;
        font-weight: normal;
        letter-spacing: 0;
        text-transform: none;
        color: #777E8D;
    }
    .details-container > h2 {
        display: inline-block;
        padding: 4px 14px;
        border-radius: 999px;
        background: #EFEFFE;
        font-size: 14px;
        color: #6566ED;
    }
    /* Tick box: just the box and the text, centred */
    .container-checkbox label,
    .container-checkbox label:hover,
    .container-checkbox label:has(input:checked) {
        display: inline-flex;
        gap: 10px;
        min-height: 0;
        padding: 0;
        background: none;
        box-shadow: none;
        font-weight: normal;
        color: #333;
    }
    .stepOneWrapper > a {
        width: min(440px, 100%);
        margin-top: 20px;
    }

    /* Popup as a dialog with a footer bar */
    #popup {
        top: 50%;
        left: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: min(420px, calc(100% - 32px));
        overflow: hidden;
        padding: 24px 24px 14px;
        border-radius: 14px;
        box-shadow: 0 24px 60px rgba(16, 24, 38, 0.35);
        text-align: left;
        animation: step1-dialog-in 0.22s ease-out;
    }
    #popup::before {
        width: 40px;
        height: 40px;
        margin: 0 0 14px;
        border-radius: 10px;
        background-size: 22px;
    }
    #popup::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 72px;
        border-top: 1px solid #ececf3;
        background-color: #fafafd;
    }
    #popup-message {
        margin: 0 0 38px;
        font-size: 17px;
    }
    /* Ja on the right, Nee next to it */
    #popup button,
    #popup button + button {
        position: relative;
        z-index: 1;
        float: right;
        width: auto;
        min-width: 96px;
        height: 44px;
        margin: 0 0 0 10px;
    }
    #popup button + button {
        background-color: #fff;
        box-shadow: inset 0 0 0 1.5px #ccc;
        color: #333;
    }
    #popup button + button:hover {
        background-color: #f2f2f2;
    }
}

@media (prefers-reduced-motion: reduce) {
    #overlay,
    #popup {
        animation: none;
    }
}
