/**
 * Kinderrijck Party Booking - front-end styles.
 *
 * Everything is scoped under .kpb. Colours and surfaces use the theme's custom properties where
 * they exist (--text, --border, --surface) and fall back to the values of the legacy
 * reserveren.css. Override the accent on any ancestor:  .kpb { --kpb-accent: #123456; }
 */

.kpb {
    --kpb-accent: #524da4;
    --kpb-accent-soft: #a69fde;
    --kpb-on-accent: #ffffff;
    --kpb-text: var(--text, #3a3a3a);
    --kpb-border: var(--border, #e7e7e7);
    --kpb-surface: var(--surface, #f8f8f8);
    --kpb-muted: #e0e0e0;
    --kpb-error: #ff0000;
    --kpb-radius: 10px;

    color: var(--kpb-text);
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
}

.kpb *,
.kpb *::before,
.kpb *::after {
    box-sizing: inherit;
}

.kpb .clear { clear: both; }
.kpb [hidden],
.kpb .kpb-hidden { display: none !important; }

/* Icon font: Material Symbols Outlined like the legacy page, self-hosted subset (no Google request). */
@font-face {
    font-family: 'Material Symbols Outlined KPB';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/material-symbols-outlined-kpb.woff2') format('woff2');
}
.kpb .material-symbols-outlined {
    font-family: 'Material Symbols Outlined KPB', 'Material Symbols Outlined', sans-serif !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
}

/* Layout: wizard column + overview column. */
.kpb__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}
.kpb__layout .progress-wizard { grid-column: 1 / -1; }
.kpb__layout > .clear { display: none; }
@media (min-width: 992px) {
    .kpb__layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
}

/* Progress wizard (hidden below 992px like the legacy page). */
.kpb .progress-wizard {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}
@media (min-width: 992px) {
    .kpb .progress-wizard { display: flex; }
}
.kpb .progress-wizard > .progress-wizard-step {
    flex: 1 1 0;
    position: relative;
    height: 100px;
    padding: 0;
}
.kpb .progress-wizard .progress {
    position: relative;
    height: 5px;
    margin: 1.25rem 0;
    border-radius: 0;
    background: var(--kpb-surface);
    box-shadow: none;
}
.kpb .progress-wizard .progress-bar {
    width: 0;
    height: 100%;
    background: var(--kpb-accent);
    border-radius: 0;
}
.kpb .progress-wizard-step.complete .progress-bar { width: 100%; }
.kpb .progress-wizard-step.active .progress-bar { width: 50%; }
.kpb .progress-wizard-step:first-child.active .progress-bar { width: 0; }
.kpb .progress-wizard-step:last-child.active .progress-bar { width: 100%; }
.kpb .progress-wizard-step:first-child .progress { left: 50%; width: 50%; }
.kpb .progress-wizard-step:last-child .progress { width: 50%; }
.kpb .progress-wizard-dot {
    position: absolute;
    top: -1.88rem;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    padding: 5px;
    border: 5px solid var(--kpb-accent);
    border-radius: 100%;
    background: #fff;
    text-align: center;
}
.kpb .progress-wizard-dot i {
    display: block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 100%;
    background: #ededed;
    color: var(--kpb-accent);
    font-size: 1.5rem;
}
.kpb .progress-wizard-step.incomplete .progress-wizard-dot { border-color: var(--kpb-surface); }
.kpb .progress-wizard-step.incomplete .progress-wizard-dot i { color: #666; }
.kpb .progress-wizard-step.complete .progress-wizard-dot i {
    background: var(--kpb-accent);
    color: var(--kpb-on-accent);
}
.kpb .progress-info { padding-top: 25px; text-align: center; font-weight: 600; font-size: 1rem; }

/* Wizard blocks. */
.kpb .wizard {
    display: none;
    width: 100%;
    margin: 0 0 20px;
    text-align: center;
    position: relative;
}
.kpb .wizard.is-active { display: block; }
.kpb .wizardHeader {
    padding: 20px;
    background: var(--kpb-accent);
    border-top-left-radius: var(--kpb-radius);
    border-top-right-radius: var(--kpb-radius);
    text-align: left;
}
.kpb .wizardHeader h2 {
    margin: 0;
    color: var(--kpb-on-accent);
    font-size: 24px;
    line-height: 40px;
}
.kpb .wizard .inner,
.kpb .wizardOverview .inner {
    padding: 15px;
    border: 1px solid var(--kpb-border);
    border-top: 0;
    border-bottom-left-radius: var(--kpb-radius);
    border-bottom-right-radius: var(--kpb-radius);
    background: var(--kpb-surface);
}
.kpb .laatstegegevens { text-align: left; }

/* Formula cards. */
.kpb .formules { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 0; padding: 15px; }
.kpb .formule {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 140px;
    min-height: 100px;
    line-height: 100px;
    border: 1px solid var(--kpb-accent);
    border-radius: 15px;
    background: var(--kpb-accent-soft);
    color: var(--kpb-accent);
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: 1s;
}
.kpb .formule:hover,
.kpb .formule:focus-visible { background: transparent; }
@media (max-width: 768px) {
    .kpb .formule { flex-basis: 45%; }
}
.kpb .chooseVestiging { display: none; }

/* Calendar. */
.kpb #calendar {
    display: grid;
    grid-template-columns: repeat(7, 35px);
    gap: 0 10px;
    justify-content: center;
    width: 100%;
}
.kpb #calendar a,
.kpb #calendar span {
    display: block;
    width: 35px;
    margin-bottom: 10px;
    line-height: 35px;
    text-align: center;
    color: #3a3a3a;
}
.kpb #calendar span { color: #000; }
.kpb #calendar a.nav { color: #000; cursor: pointer; }
.kpb #calendar a.nav .nav-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; fill: var(--kpb-accent); }
.kpb #calendar span.dt {
    grid-column: span 5;
    width: 215px;
    color: var(--kpb-accent);
    font-weight: bold;
}
.kpb #calendar a.available {
    background: var(--kpb-accent);
    color: #fff;
    border-radius: 180px;
    cursor: pointer;
    text-decoration: none;
}

/* Time slots. */
.kpb #starturen1,
.kpb #einduren1,
.kpb #lunch,
.kpb #starturen2,
.kpb #einduren2 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.kpb #starturen1 a,
.kpb #einduren1 a,
.kpb #lunch a,
.kpb #starturen2 a,
.kpb #einduren2 a {
    display: block;
    margin-bottom: 10px;
    padding: 5px 0;
    border-radius: var(--kpb-radius);
    color: var(--kpb-muted);
    text-align: center;
}
.kpb #starturen1 a.available,
.kpb #einduren1 a.available,
.kpb #lunch a.available { color: #000; text-decoration: none; cursor: pointer; }
.kpb #starturen1 a.available:hover,
.kpb #einduren1 a.available:hover,
.kpb #lunch a.available:hover { text-decoration: underline; }
.kpb #starturen2 .clear,
.kpb #einduren2 .clear,
.kpb #starturen1 .clear,
.kpb #einduren1 .clear,
.kpb #lunch .clear { display: none; }
.kpb #starturen2 h3,
.kpb #wizard6 h3 {
    grid-column: 1 / -1;
    color: #f00;
    font-weight: bold;
    text-align: center;
    font-size: 20px;
    max-width: 630px;
    margin: auto;
}

/* Form rows and inputs. */
.kpb .wizard .row { margin: 0 0 15px; }
.kpb .wizard .row label { display: inline-block; padding-left: 3px; margin-top: 15px; }
.kpb .wizard input[type=text],
.kpb .wizard input[type=tel],
.kpb .wizard input[type=email],
.kpb .wizard input[type=date],
.kpb .wizard textarea {
    width: 100%;
    margin: auto;
    padding: 10px;
    border: 1px solid var(--kpb-accent);
    border-radius: var(--kpb-radius);
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
}
.kpb .wizard textarea { height: 175px; resize: none; }
.kpb #wizard4 input[type=text] { width: 60px; text-align: center; }
.kpb .wizard .rradio input { width: auto; margin: 9px 3px 0; }
.kpb .wizard .rradio label { width: 95%; display: inline; font-weight: normal; }
.kpb .specials .row input { width: auto; }
.kpb .specials .row label { width: 80%; margin: 9px 0 0 5px; text-align: left; display: inline-block; }
.kpb .row label.error,
.kpb label.error { display: block; color: var(--kpb-error); }
.kpb input.error,
.kpb textarea.error { border-color: var(--kpb-error) !important; }
.kpb #errorkids,
.kpb #erroradults,
.kpb #errorjarige { display: none; color: var(--kpb-error); }
.kpb .kpb-form-error { margin: 10px 0; padding: 10px; border: 1px solid var(--kpb-error); border-radius: var(--kpb-radius); color: var(--kpb-error); }
.kpb .mt-6 { margin-top: 1.5rem; }

/* Birthday children rows. */
.kpb .jarige {
    display: none;
    gap: 15px;
    margin: 10px 0;
    padding-bottom: 10px;
    border-top: 1px solid var(--kpb-border);
}
.kpb .jarige .col { flex: 1 1 0; min-width: 0; }
@media (max-width: 600px) {
    .kpb .jarige { flex-direction: column; gap: 0; }
}

/* Buttons. */
.kpb #next5,
.kpb #submit,
.kpb #submitSpecials {
    display: block;
    width: 150px;
    margin: 20px 0 20px auto;
    padding: 10px;
    border-radius: var(--kpb-radius);
    background: var(--kpb-accent);
    color: var(--kpb-on-accent);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.kpb #submit,
.kpb #submitSpecials { width: 200px; }
.kpb #submit[aria-disabled=true] { opacity: .6; pointer-events: none; }

/* Overview ("Jouw reservatie"). */
.kpb .wizardOverview { display: none; }
.kpb .table { display: table; }
.kpb .table .tr { display: none; }
.kpb .table .tr .td {
    display: table-cell;
    width: 60%;
    background: none;
    text-transform: capitalize;
    vertical-align: top;
    line-height: 30px;
    text-align: left;
}
.kpb .table .tr .td.icon { width: 5%; padding-bottom: 5px; }
.kpb .table .td a { color: inherit; text-decoration: none; }
.kpb .table .td .material-symbols-outlined { color: var(--kpb-accent); padding-top: 3px; }

/* Honeypot: off-screen, not display:none (bots fill display:none less reliably). */
.kpb .kpb-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* "Thank you" popup. */
.kpb-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .6);
}
.kpb-popup[hidden] { display: none; }
.kpb-popup .popup-content {
    width: 100%;
    max-width: 520px;
    padding: 30px;
    border-radius: 15px;
    background: #fff;
    color: #3a3a3a;
    text-align: center;
}
.kpb-popup .button {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 10px;
    background: #524da4;
    color: #fff;
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    .kpb .formule { transition: none; }
}
