/* ==========================================================================
   Account Stop 1 & 2 — page-specific styles
   Prefix: kps-
   Depends on shared.css
   ========================================================================== */


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  SHARED LAYOUT (both Stop 1 & 2)                                     ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kps-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 16px 40px;
}

.kps-content__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.kps-page-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    color: var(--color-text);
    /* Kop/subkop op de gedeelde paginaheader-breedte (batch-1 item 8): de
       titel zit hier IN .kps-content (60px inset), dus de negatieve marge
       trekt hem naar dezelfde --kp-pageheader-pad-x inset als elke andere
       pagina. */
    margin: 0 calc(var(--kp-pageheader-pad-x) - 60px) 4px;
    line-height: 1.1;
}

.kps-page-sub {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    margin: 0 calc(var(--kp-pageheader-pad-x) - 60px) 24px;
}

.kps-heading {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.15;
    color: var(--color-text);
    margin: 0 0 16px;
}

.kps-intro {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 24px;
}
.kps-intro p { margin: 0 0 4px; }
.kps-intro p:last-child { margin-bottom: 0; }

/* Stop 2 right column: looser paragraph spacing for the cancellation explainer */
.kps-right--stop2 .kps-intro {
    font-family: var(--font-body);
    line-height: 1.55;
}
.kps-right--stop2 .kps-intro p { margin: 0 0 22px; }
.kps-right--stop2 .kps-intro p:last-child { margin-bottom: 0; }


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  STOP 1 — OPTION CARDS                                               ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kps-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.kps-option {
    display: block;
    text-decoration: none;
    border-radius: var(--radius-card);
    padding: 20px 24px;
    transition: transform 0.2s;
}
.kps-option:hover {
    transform: translateY(-3px);
}

.kps-option__label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 28px;
    margin: 0 0 10px;
    line-height: 1.2;
}

.kps-option__text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.55;
    margin: 0;
    opacity: 0.9;
}

.kps-back-btn {
    /* Ruimte tussen de terug-knop en het opzeg-formulier eronder (batch-1 item 5). */
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 197px;
    height: 32px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14.4px;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-text);
    border-radius: var(--radius-btn);
    text-decoration: none;
    margin-bottom: 24px;
    transition: background 0.2s;
}
.kps-back-btn:hover {
    background: var(--color-grey-light);
}

.kps-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-family: var(--font-body);
    font-size: 14.4px;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 24px;
    cursor: pointer;
}
.kps-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--color-primary);
}
.kps-consent > span {
    display: block;
    flex: 1;
}
.kps-consent span p {
    margin: 0;
}

.kps-back {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: var(--radius-btn);
    transition: background 0.2s;
}
.kps-back:hover {
    background: #f0f0f0;
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  YELLOW BLOCK (photo inset + importance text)                         ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kps-left--stop2 {
    position: relative;
}

.kps-yellow-block {
    background: var(--color-accent);
    border-radius: var(--radius-card);
    width: 520px;
    margin-left: 60px;
    padding: 28px 28px 60px;
    padding-top: 560px;
    position: relative;
}

.kps-yellow-block__photo {
    position: absolute;
    top: 40px;
    left: -60px;
    z-index: 2;
    border-radius: var(--radius-card);
    overflow: hidden;
    width: 660px;
}

.kps-yellow-block__photo img {
    width: 100%;
    aspect-ratio: 732 / 549;
    object-fit: cover;
    display: block;
}

.kps-yellow-block__content {
    padding: 0 8px;
}

.kps-reading__title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 21px;
    color: var(--color-text);
    margin: 0 0 12px;
}

.kps-reading__text {
    font-family: var(--font-body);
    font-size: 14.4px;
    color: var(--color-text);
    line-height: 1.5;
}
.kps-reading__text p { margin: 0 0 10px; }
.kps-reading__text p:last-child { margin-bottom: 0; }

.kps-reading__btn {
    display: inline-block;
    margin-top: 16px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 14.4px;
    padding: 10px 24px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: transform 0.2s;
}
.kps-reading__btn:hover {
    transform: scale(1.04);
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  ORANGE BLOCK — Stop 1 right column                                  ║
   ║  Photo overflows on top, orange box starts halfway down the photo    ║
   ║  and extends below the CTA button. Both have rounded corners.        ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kps-right {
    position: relative;
}

.kps-right > .kps-photo {
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    z-index: 2;
    border-radius: var(--radius-card);
    overflow: hidden;
}
.kps-right > .kps-photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.kps-right > .kps-reading {
    background: var(--color-primary);
    border-radius: var(--radius-card);
    margin-top: 130px;          /* photo top sits above; this offsets the box so photo overlaps halfway */
    padding: 210px 40px 36px;   /* top padding pushes text below photo bottom */
    color: var(--color-white);
    position: relative;
}

.kps-right > .kps-reading .kps-reading__title,
.kps-right > .kps-reading .kps-reading__text,
.kps-right > .kps-reading .kps-reading__text p {
    color: var(--color-white);
}

.kps-right > .kps-reading .kps-reading__text,
.kps-right > .kps-reading .kps-reading__text p {
    font-size: 17px;
    line-height: 1.55;
}

.kps-right > .kps-reading .kps-reading__btn {
    background: #FF4000;
    color: var(--color-white);
    border: 3px solid var(--color-white);
    padding: 6px 24px;          /* slimmer button, font-size unchanged */
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  STOP 2 — TITLE + FORM                                               ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kps-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    color: var(--color-text);
    margin: 0 0 6px;
    line-height: 1.1;
}

.kps-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    margin: 0 0 24px;
}


/* Form */
.kps-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.kps-form__row input,
.kps-form__row select,
.kps-form__row textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-text);
    outline: none;
    box-sizing: border-box;
}

.kps-form__row input:focus,
.kps-form__row select:focus,
.kps-form__row textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.15);
}

.kps-form__row input::placeholder,
.kps-form__row textarea::placeholder {
    color: var(--color-grey-mid);
}

.kps-form__row select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23a9a3a0' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px 7px;
    padding-right: 32px;
    color: var(--color-grey-mid);
}

.kps-form__row select:valid option:not(:disabled) {
    color: var(--color-text);
}

.kps-form__row textarea {
    resize: vertical;
    min-height: 100px;
}

.kps-form__row--2 {
    display: flex;
    gap: 24px;
    margin-bottom: 10px;
}

.kps-form__row {
    margin-bottom: 10px;
}

.kps-form__row--2 input {
    flex: 1;
    min-width: 0;
}

/* Address cluster (emitted by parts/adres-cluster-{nl,be}.php on
   kpstop2-main desktop). Rows inside the cluster wrapper flex
   horizontally so postcode/huisnr/toev (3-input) and straat/plaats
   (2-input) distribute evenly. Scoped to the cluster wrapper so
   sibling single-input rows above (klantnummer, naam) are unaffected. */
.kps-form__address .kps-form__row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.kps-form__address .kps-form__row > input {
    flex: 1 1 0;
    min-width: 0;
}

.kps-form__submit-wrap {
    margin-top: 8px;
}

.kps-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 197px;
    height: 32px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14.4px;
    color: var(--color-white);
    background: #00E1FF;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.2s;
}
.kps-form__submit:hover {
    background: #00c8e6;
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  AGE CATEGORIES BAND (Stop 2)                                        ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kps-ages {
    background: var(--color-primary);
    border-radius: var(--radius-card);
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 16px 40px;
}

.kps-ages__title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 21.6px;
    color: var(--color-white);
    margin: -20px 0 24px;
    text-align: center;
}

.kps-ages__grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
}

.kps-ages__pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 14px 40px;
    border-radius: var(--radius-card);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.kps-ages__pill:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 12px rgba(0,0,0,0.15);
}

.kps-ages__pill-label {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.1;
}

.kps-ages__pill-age {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.2;
    margin-top: 4px;
}

.kps-ages__pill--dreumes    { background: #AE00FF; color: var(--color-white); }
.kps-ages__pill--peuter     { background: #0044FF; color: var(--color-white); }
.kps-ages__pill--kleuter    { background: #00E1FF; color: var(--color-text); }
.kps-ages__pill--schoolkind { background: #00FF73; color: var(--color-text); }
.kps-ages__pill--tiener     { background: var(--color-accent); color: var(--color-text); }

.kps-ages__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.kps-ages__btn {
    display: block;
    margin-top: auto;
    padding-top: 4px;
    background: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 14.4px;
    padding: 4px 24px;
    border-radius: var(--radius-btn);
    border: none;
    text-decoration: none;
    transition: transform 0.2s;
}
.kps-ages__btn:hover {
    transform: scale(1.04);
}

.kps-ages__list {
    list-style: disc;
    padding: 12px 0 0 20px;
    margin: 0 0 16px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14.4px;
    color: var(--color-white);
    line-height: 1.5;
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  TABLET                                                               ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

@media (min-width: 768px) {
    .kps-content { padding: 40px 32px 48px; }




    .kps-page-title { font-size: 36px; }
    .kps-page-sub { font-size: 16px; }

    .kps-ages { padding: 48px 32px; }


}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  DESKTOP                                                              ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

@media (min-width: 1025px) {
    .kps-content { padding: 48px 60px 64px; }

    .kps-content__inner {
        flex-direction: row;
        gap: 48px;
    }

    /* Stop 1: left 50%, right 50% — right aligns with first button */
    .kps-left { flex: 0 0 calc(50% - 24px); }
    .kps-right { flex: 0 0 calc(50% - 24px); }

    /* Stop 2: left 42%, right 58% */
    .kps-content__inner--stop2 {
        gap: 100px;
    }
    .kps-left--stop2 { flex: 0 0 42%; }
    .kps-right--stop2 { flex: 0 0 calc(58% - 100px); padding: 0 40px; }

    .kps-left--stop2 { overflow: visible; }

    .kps-page-title { font-size: 44px; }
    .kps-page-sub { font-size: 16px; }

    .kps-option { padding: 24px 28px; }



    .kps-ages { padding: 56px 60px; }


}

/* Pre-submit note onder de knop (batch-1 item 4) — zelfde stijl als .kpc-confirm
   op de account-change pagina's. forms.js verbergt hem bij de success-state. */
.kps-confirm {
    font-family: var(--font-body);
    font-size: 14.4px;
    color: #00AA55;
    line-height: 1.5;
    margin: 16px 0 0;
}
