/* =========================
   BASIS
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background: #f5f8fc;
    color: #071d49;

    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================
   SCREENREADER ONLY
========================= */

.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;
}


/* =========================
   TOPBAR
========================= */

.topbar {
    background: #071d49;
    color: white;
}

.topbar-inner {
    width: min(1400px, calc(100% - 60px));

    min-height: 42px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.location {
    font-size: 12px;
    font-weight: 700;
}

.location-dot {
    margin-right: 8px;
}

.socials {
    display: flex;

    gap: 18px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.socials img {
    width: 18px;
    height: 18px;

    display: block;
}


/* =========================
   HEADER
========================= */

.header {
    position: relative;

    z-index: 10000;

    background: white;

    border-bottom:
        1px solid #e7ebf1;
}

.nav-container {
    width: min(1400px, calc(100% - 60px));

    min-height: 104px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    width: 90px;

    display: block;
}


/* =========================
   DESKTOP MENU
========================= */

.nav {
    display: flex;
    align-items: center;

    gap:
        clamp(30px, 3.5vw, 58px);
}

.nav a {
    position: relative;

    color: #071d49;

    text-decoration: none;
    text-transform: uppercase;

    font-size: 13px;
    font-weight: 800;

    padding: 12px 0;
}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 2px;

    width: 0;
    height: 3px;

    background: #1171df;

    transition:
        width 0.2s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}


/* =========================
   HAMBURGER
========================= */

.menu-toggle {
    display: none;

    width: 46px;
    height: 46px;

    border: 0;

    background: transparent;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 6px;

    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 4px;

    background: #071d49;

    border-radius: 10px;

    transition: 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform:
        translateY(10px)
        rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform:
        translateY(-10px)
        rotate(-45deg);
}

.mobile-nav {
    display: none;
}


/* =========================
   INTRO
========================= */

.registration-intro {
    color: white;

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(63, 151, 255, 0.18),
            transparent 35%
        ),
        linear-gradient(
            115deg,
            #041a43 0%,
            #083c84 55%,
            #1268ce 100%
        );
}

.registration-intro-inner {
    width:
        min(1080px, calc(100% - 60px));

    margin: 0 auto;

    padding:
        48px 0
        52px;
}

.page-kicker {
    margin-bottom: 12px;

    color: #69adff;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 5px;
}

.registration-intro h1 {
    max-width: 820px;

    color: white;

    font-size:
        clamp(42px, 4.5vw, 62px);

    line-height: 1.03;

    font-weight: 900;

    letter-spacing: -1.5px;
}

.registration-intro h1 span {
    display: block;

    color: #75b6ff;
}

.intro-text {
    max-width: 680px;

    margin-top: 18px;

    color:
        rgba(255, 255, 255, 0.86);

    font-size: 15px;

    line-height: 1.65;
}


/* =========================
   FORMULIERSECTIE
========================= */

.registration-section {
    padding:
        55px 20px
        90px;

    background: #f4f7fb;
}

.registration-wrapper {
    width:
        min(920px, 100%);

    margin: 0 auto;

    padding:
        42px
        46px
        46px;

    background: white;

    border-radius:
        10px
        24px
        10px
        24px;

    box-shadow:
        0 22px 60px
        rgba(7, 29, 73, 0.09);
}


/* =========================
   TITELS
========================= */

.form-kicker {
    margin-bottom: 8px;

    color: #1474e5;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 4px;
}

.form-heading h2,
.step-heading h2 {
    color: #071d49;

    font-size:
        clamp(28px, 3vw, 36px);

    line-height: 1.12;

    font-weight: 900;
}

.form-heading-text {
    margin-top: 12px;

    color: #758196;

    font-size: 15px;

    line-height: 1.6;
}


/* =========================
   REEKSEN
========================= */

.age-section {
    margin-top: 32px;

    border: 0;
}

.age-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}

.age-card {
    position: relative;

    cursor: pointer;
}

.age-card input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.age-card-content {
    min-height: 135px;

    padding:
        20px
        14px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    border:
        1px solid #dfe6ef;

    border-radius:
        7px
        16px
        7px
        16px;

    background: #f8faff;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.age-card:hover .age-card-content {
    transform:
        translateY(-2px);

    border-color: #9dc9fa;

    background: white;
}


/* U6, U7, ... */

.age-name {
    color: #071d49;

    font-size: 29px;
    font-weight: 900;

    line-height: 1;
}


/* DATUM */

.age-date {
    margin-top: 4px;

    color: #718096;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.2;

    text-align: center;
}


/* STATUS */

.age-status {
    margin-top: 5px;

    color: #718096;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* GESELECTEERD */

.age-card input:checked
+ .age-card-content {
    color: white;

    background:
        linear-gradient(
            135deg,
            #071d49,
            #1474e5
        );

    border-color: #1474e5;

    box-shadow:
        0 12px 28px
        rgba(20, 116, 229, 0.20);
}

.age-card input:checked
+ .age-card-content
.age-name {
    color: white;
}

.age-card input:checked
+ .age-card-content
.age-date {
    color:
        rgba(255, 255, 255, 0.88);
}

.age-card input:checked
+ .age-card-content
.age-status {
    color:
        rgba(255, 255, 255, 0.72);
}


/* =========================
   STAP 2
========================= */

.form-step {
    margin-top: 45px;

    padding-top: 38px;

    border-top:
        1px solid #e1e7ef;
}

.step-heading {
    margin-bottom: 28px;
}


/* =========================
   FORMULIER VELDEN
========================= */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        20px
        18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column:
        1 / -1;
}

.form-group label {
    margin-bottom: 7px;

    color: #071d49;

    font-size: 11px;
    font-weight: 900;

    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border:
        1px solid #dce4ef;

    border-radius: 5px;

    outline: none;

    background: #f7f9fc;

    color: #071d49;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input,
.form-group select {
    height: 48px;

    padding:
        0 14px;
}

.form-group textarea {
    min-height: 135px;

    padding: 14px;

    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ba8bc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: white;

    border-color: #1474e5;

    box-shadow:
        0 0 0 3px
        rgba(20, 116, 229, 0.08);
}


/* =========================
   FOOTER
========================= */

.form-footer {
    margin-top: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.form-footer p {
    color: #8794a8;

    font-size: 11px;
}

.submit-button {
    min-height: 52px;

    padding:
        0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 22px;

    border: 0;

    border-radius: 4px;

    background: #071d49;

    color: white;

    font-size: 12px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.submit-button:hover {
    background: #1474e5;

    transform:
        translateY(-2px);
}

.submit-button span {
    font-size: 20px;
}


/* =========================================================
   INSCHRIJVINGEN TIJDELIJK GESLOTEN
========================================================= */

.registration-locked {
    filter: blur(7px);

    pointer-events: none;

    user-select: none;
}


/* OVERLAY */

.registration-closed-overlay {
    position: fixed;

    top: 146px;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 9000;

    padding:
        30px
        20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(4, 26, 67, 0.30);
}


/* POPUP */

.registration-closed-modal {
    width:
        min(520px, 100%);

    padding:
        38px
        42px
        40px;

    background: white;

    text-align: center;

    border-radius:
        12px
        32px
        12px
        32px;

    box-shadow:
        0 30px 80px
        rgba(4, 26, 67, 0.30);
}


/* LOGO */

.closed-modal-logo {
    width: 92px;

    margin:
        0 auto
        24px;
}


/* KICKER */

.closed-modal-kicker {
    margin-bottom: 12px;

    color: #1474e5;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 4px;

    text-transform: uppercase;
}


/* TITEL */

.registration-closed-modal h2 {
    margin: 0;

    color: #071d49;

    font-size:
        clamp(32px, 5vw, 46px);

    font-weight: 900;

    line-height: 1.04;

    letter-spacing: -1px;
}

.registration-closed-modal h2 span {
    display: block;

    color: #1474e5;
}


/* TEKST */

.closed-modal-text {
    max-width: 390px;

    margin:
        20px auto
        0;

    color: #718096;

    font-size: 15px;

    line-height: 1.6;
}


/* DATUM */

.closed-modal-dates {
    margin-top: 24px;

    padding:
        15px
        18px;

    color: #071d49;

    background: #f1f6fd;

    border:
        1px solid #dce9f8;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 2px;
}


/* HOME KNOP */

.closed-modal-button {
    min-height: 54px;

    margin-top: 24px;

    padding:
        0
        22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #071d49;

    color: white;

    border-radius: 5px;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 1px;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.closed-modal-button:hover {
    background: #1474e5;

    transform:
        translateY(-2px);
}

.button-arrow {
    font-size: 21px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {

    .nav {
        gap: 22px;
    }

    .nav a {
        font-size: 12px;
    }

}


/* =========================
   GSM
========================= */

@media (max-width: 800px) {

    body {
        padding-top:
            env(safe-area-inset-top);
    }


    /* TOPBAR WEG */

    .topbar {
        display: none;
    }


    /* HEADER */

    .nav-container {
        width: 100%;

        min-height: 98px;

        padding:
            10px
            max(
                22px,
                env(safe-area-inset-right)
            )
            10px
            max(
                22px,
                env(safe-area-inset-left)
            );
    }

    .brand img {
        width: 84px;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }


    /* MOBIEL MENU */

    .mobile-nav {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        padding:
            8px
            24px
            24px;

        background: white;

        flex-direction: column;

        box-shadow:
            0 15px 30px
            rgba(0, 0, 0, 0.13);
    }

    .mobile-nav.open {
        display: flex;
    }

    .mobile-nav a {
        padding:
            17px
            4px;

        color: #071d49;

        text-decoration: none;
        text-transform: uppercase;

        font-size: 16px;
        font-weight: 800;

        border-bottom:
            1px solid #e8ebef;
    }

    .mobile-nav a:last-child {
        border-bottom: 0;
    }

    .mobile-nav a.active {
        color: #1474e5;
    }


    /* INTRO */

    .registration-intro-inner {
        width:
            calc(100% - 40px);

        padding:
            50px
            0
            55px;
    }

    .registration-intro h1 {
        font-size:
            clamp(40px, 11vw, 52px);

        line-height: 1;
    }

    .intro-text {
        font-size: 15px;
    }


    /* FORMULIER */

    .registration-section {
        padding:
            36px
            18px
            65px;
    }

    .registration-wrapper {
        padding:
            30px
            22px
            32px;

        border-radius:
            8px
            20px
            8px
            20px;
    }

    .form-heading h2,
    .step-heading h2 {
        font-size: 29px;
    }


    /* REEKSEN */

    .age-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .age-card-content {
        min-height: 125px;

        padding:
            16px
            8px;

        gap: 6px;
    }

    .age-name {
        font-size: 27px;
    }

    .age-date {
        font-size: 11px;
    }

    .age-status {
        margin-top: 4px;

        font-size: 9px;
    }


    /* FORM VELDEN */

    .form-grid {
        grid-template-columns: 1fr;

        gap: 19px;
    }

    .form-group-full {
        grid-column: auto;
    }

    .form-group input,
    .form-group select {
        height: 52px;

        font-size: 16px;
    }

    .form-group textarea {
        min-height: 145px;

        font-size: 16px;
    }


    /* FOOTER */

    .form-footer {
        flex-direction: column;

        align-items: stretch;
    }

    .form-footer p {
        order: 2;

        text-align: center;
    }

    .submit-button {
        width: 100%;

        justify-content: space-between;
    }


    /* GESLOTEN OVERLAY */

    .registration-locked {
        filter: blur(5px);
    }

    .registration-closed-overlay {
        top: 98px;

        padding:
            24px
            18px;

        align-items: center;
    }

    .registration-closed-modal {
        padding:
            30px
            24px
            28px;

        border-radius:
            10px
            26px
            10px
            26px;
    }

    .closed-modal-logo {
        width: 78px;

        margin-bottom: 20px;
    }

    .registration-closed-modal h2 {
        font-size: 34px;
    }

    .closed-modal-text {
        font-size: 14px;
    }

    .closed-modal-dates {
        font-size: 10px;

        letter-spacing: 1.5px;
    }

}


/* =========================
   KLEINE GSM
========================= */

@media (max-width: 430px) {

    .nav-container {
        min-height: 92px;
    }

    .brand img {
        width: 78px;
    }

    .registration-intro h1 {
        font-size: 39px;
    }

    .registration-wrapper {
        padding-left: 18px;
        padding-right: 18px;
    }

    .age-name {
        font-size: 25px;
    }

    .age-date {
        font-size: 10px;
    }


    /* POPUP */

    .registration-closed-overlay {
        top: 92px;

        padding:
            18px
            14px;
    }

    .registration-closed-modal {
        padding:
            26px
            20px;
    }

    .closed-modal-logo {
        width: 70px;

        margin-bottom: 17px;
    }

    .closed-modal-kicker {
        font-size: 9px;

        letter-spacing: 3px;
    }

    .registration-closed-modal h2 {
        font-size: 31px;
    }

    .closed-modal-text {
        margin-top: 16px;
    }

    .closed-modal-dates {
        margin-top: 19px;

        padding:
            13px
            10px;
    }

    .closed-modal-button {
        margin-top: 19px;
    }

}

/* =========================
   INSTAGRAM IN MOBIEL MENU
========================= */

@media (max-width: 800px) {
    .mobile-nav .mobile-instagram {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        color: #071d49;
    }

    .mobile-nav .mobile-instagram img {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
        object-fit: contain;
    }

    .mobile-nav .mobile-instagram span {
        font-size: 16px;
        font-weight: 800;
        text-transform: uppercase;
    }
}



/* MOBIEL INSTAGRAM-ICOON ONDERAAN HAMBURGERMENU */
@media (max-width: 800px) {
    .mobile-nav .mobile-instagram {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 8px;
        padding: 22px 4px 6px;
        border-top: 1px solid #e8ebef;
        border-bottom: 0;
        gap: 0;
    }

    .mobile-nav .mobile-instagram img {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        object-fit: contain;
    }

    .mobile-nav .mobile-instagram span {
        display: none;
    }
}

/* Instagram-logo zichtbaar op witte mobiele navigatie */
@media (max-width: 800px) {
    .mobile-nav .mobile-instagram img {
        width: 44px;
        height: 44px;
        padding: 10px;
        flex: 0 0 44px;
        background: #071d49;
        border-radius: 50%;
        object-fit: contain;
    }
}


/* DEFINITIEVE MOBIELE INSTAGRAMKNOP */
@media (max-width: 800px) {
  .mobile-nav .mobile-instagram {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 22px 0 10px !important;
    border-top: 1px solid #e8ebef !important;
    border-bottom: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }
  .mobile-nav .mobile-instagram img {
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* MOBIEL INSTAGRAM - ENKELE LIJN + LINKS UITGELIJND */
@media (max-width: 800px) {
  .mobile-nav .mobile-instagram {
    justify-content: flex-start !important;
    margin: 8px 0 0 !important;
    padding: 22px 4px 10px !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
  }

  .mobile-nav .mobile-instagram img {
    margin: 0 !important;
  }
}


/* =========================
   LIVE BESCHIKBAARHEID + MELDINGEN
========================= */
.age-card.sold-out {
    opacity: 0.48;
    cursor: not-allowed;
}

.age-card.sold-out .age-status {
    font-weight: 900;
}

.submit-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.registration-message {
    display: none;
    width: min(920px, calc(100% - 40px));
    margin: 24px auto 50px;
    padding: 18px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.registration-message.show { display: block; }
.registration-message.success { background: #eaf7ef; color: #176b3a; }
.registration-message.error { background: #fff0f0; color: #9d2222; }
