/*---------------- LICHTSTUDIEAANVRAAG: homepageblok, venster en wizard ----------------*/

.ls-form [hidden],
.ls-dialog [hidden],
.ls-cta [hidden] {
    display: none !important;
}

/* ---- blok op de homepage / thema's ---- */
.ls-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
    margin-top: 40px;
    padding: 44px 48px;
    background: var(--blue);
    border-radius: 14px;
    color: #fff;
    font-family: var(--font-site);
}

.ls-cta__copy {
    min-width: 0;
}

.ls-cta__eyebrow {
    margin: 0 0 14px;
    color: #c9d8ea;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    line-height: 1.5;
    text-transform: uppercase;
}

.ls-cta h2.ls-cta__title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.ls-cta__text {
    max-width: 62ch;
    margin: 0;
    color: #e6edf6;
    font-size: 17px;
    line-height: 1.6;
}

.ls-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}

.ls-cta__button {
    justify-content: space-between;
    border-radius: 7px;
}

.ls-cta__button--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 52px;
    padding: 15px 23px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff !important;
    font: 600 15px/1.4 var(--font-site);
    text-decoration: none;
    transition: background 0.2s ease;
}

.ls-cta__button--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

.ls-cta__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* smalle kaart: een vierde van de paginabreedte (projecten, productoverzicht) */
.ls-cta--side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 28px;
    margin-top: 0;
    padding: 28px 24px;
}

.ls-cta--side h2.ls-cta__title {
    font-size: 26px;
    margin-bottom: 14px;
}

.ls-cta--side .ls-cta__text {
    font-size: 15px;
}

.ls-cta--side .ls-cta__actions {
    min-width: 0;
}

.ls-cta--side .ls-cta__button,
.ls-cta--side .ls-cta__button--ghost {
    gap: 12px;
    padding: 14px 18px;
}

/* blok naast de projectfoto's of de productfilters */
.page-split {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* productoverzicht: verkorte kaart (titel en knoppen) zodat ze even hoog is als het filterblok */
.ls-cta--compact {
    padding: 24px;
}

.ls-cta--compact h2.ls-cta__title {
    margin-bottom: 0;
    font-size: 22px;
}

.ls-cta--compact .ls-cta__text--short {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.45;
}

/* breed blok onderaan een pagina (cataloog, downloads) */
.page-cta {
    margin: 56px 0 0;
}

/* pagina's die met het blok eindigen: geen dubbele witruimte (onderpadding van de pagina + bovenmarge van de footer) */
.page-ends-cta .page-main {
    padding-bottom: 0;
}

.page-ends-cta .site-footer {
    margin-top: 56px;
}

@media screen and (max-width: 767px) {
    .page-ends-cta .site-footer {
        margin-top: 40px;
    }
}

.page-cta .ls-cta {
    margin-top: 0;
}

.page-split > :first-child {
    min-width: 0;
}

@media screen and (max-width: 1100px) {
    .page-split {
        grid-template-columns: 1fr;
    }

    .ls-cta--side {
        gap: 24px;
    }

    .ls-cta--side .ls-cta__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ls-cta--side .ls-cta__button,
    .ls-cta--side .ls-cta__button--ghost {
        flex: 1 1 220px;
    }
}

@media screen and (max-width: 900px) {
    .ls-cta {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 24px;
    }

    .ls-cta h2.ls-cta__title {
        font-size: 28px;
    }

    .ls-cta__actions {
        min-width: 0;
    }
}

/* ---- venster ---- */
html.ls-modal-open {
    overflow: hidden;
}

.ls-dialog {
    width: min(760px, calc(100% - 48px));
    max-width: none;
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 0;
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 20, 50, 0.35);
    color: var(--black);
    font-family: var(--font-site);
    overflow: hidden;
}

.ls-dialog[open] {
    display: flex;
    animation: ls-dialog-in 0.28s ease-out both;
}

.ls-dialog::backdrop {
    background: rgba(0, 25, 60, 0.55);
}

.ls-dialog[open]::backdrop {
    animation: ls-fade-in 0.25s ease-out both;
}

.ls-dialog__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    max-height: calc(100vh - 48px);
}

.ls-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex: none;
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--grey);
}

.ls-dialog__head h2 {
    margin: 0;
    color: var(--blue);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.ls-eyebrow {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ls-dialog__close {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -6px -8px 0 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--black);
    cursor: pointer;
}

.ls-dialog__close:hover {
    background: var(--white);
}

.ls-dialog__close svg,
.ls-files__remove svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.ls-dialog__body {
    min-height: 0;
    padding: 24px 32px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media screen and (max-width: 640px) {
    .ls-dialog {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }

    .ls-dialog__panel {
        max-height: none;
        height: 100%;
    }

    .ls-dialog__head {
        padding: 20px 20px 16px;
    }

    .ls-dialog__head h2 {
        font-size: 24px;
    }

    .ls-dialog__body {
        padding: 20px 20px 28px;
    }
}

@keyframes ls-dialog-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
}

@keyframes ls-fade-in {
    from {
        opacity: 0;
    }
}

/* ---- eigen pagina ---- */
.ls-page {
    max-width: 760px;
    margin-bottom: 64px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--grey);
    border-radius: 14px;
}

@media screen and (max-width: 640px) {
    .ls-page {
        padding: 24px 20px;
    }
}

/* ---- wizard ---- */
.ls-form {
    font-family: var(--font-site);
    color: var(--black);
}

.ls-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ls-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ls-progress {
    display: flex;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.ls-progress__item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    color: #5f666b;
    font-size: 13px;
    font-weight: 600;
}

.ls-progress__item::before {
    content: "";
    height: 4px;
    background: var(--grey);
    border-radius: 2px;
    transition: background 0.3s ease;
    order: -1;
}

.ls-progress__item.is-done::before,
.ls-progress__item.is-current::before {
    background: var(--blue);
}

.ls-progress__item.is-current {
    color: var(--blue);
}

.ls-progress__number {
    display: none;
}

.ls-progress__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 520px) {
    .ls-progress__item:not(.is-current) .ls-progress__label {
        visibility: hidden;
    }
}

.ls-step {
    min-width: 0;
}

.ls-form.is-enhanced .ls-step:not([hidden]) {
    animation: ls-step-in 0.3s ease-out both;
}

@keyframes ls-step-in {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
}

.ls-step__title {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.ls-step__title {
    width: fit-content;
}

.ls-step__title:focus {
    outline: none;
}

.ls-step__title:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
}

.ls-step__lead {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.55;
}

.ls-required {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.ls-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin-bottom: 20px;
}

.ls-field {
    display: block;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.ls-grid > .ls-field {
    margin-bottom: 0;
}

.ls-field input,
.ls-field select,
.ls-field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #b9bec2;
    border-radius: 8px;
    color: var(--black);
    font: 400 16px/1.4 var(--font-site);
    transition: border-color 0.15s ease;
}

.ls-field textarea {
    min-height: 140px;
    resize: vertical;
}

.ls-field input:focus,
.ls-field select:focus,
.ls-field textarea:focus {
    border-color: var(--blue);
    outline: 2px solid var(--blue);
    outline-offset: 0;
}

.ls-field [aria-invalid="true"],
.ls-choices [aria-invalid="true"] + span {
    border-color: #9c2424;
}

.ls-error {
    display: block;
    margin: 8px 0 0;
    color: #9c2424;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.ls-alert {
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #fbeeee;
    border-left: 3px solid #9c2424;
    color: #7a1c1c;
    font-size: 15px;
}

.ls-alert--success {
    background: var(--white);
    border-left-color: var(--blue);
    color: var(--black);
}

/* type project: keuzekaarten */
.ls-choices {
    min-width: 0;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.ls-choices legend {
    margin-bottom: 10px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
}

.ls-choices__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}

.ls-choice {
    display: block;
    position: relative;
}

.ls-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    pointer-events: none; /* klikken gaat via het label (of het invulveld bij "Andere") */
}

.ls-choice span {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #b9bec2;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.ls-choice:hover span {
    border-color: var(--blue);
}

/* "Andere": een invulveld dat eruitziet als de andere kaarten; de placeholder "Andere" lijkt het label */
.ls-choice__other {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #b9bec2;
    border-radius: 8px;
    color: var(--black);
    font: 500 15px/1.4 var(--font-site);
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.ls-choice__other::placeholder {
    color: var(--black);
    opacity: 1;
}

.ls-choice:hover .ls-choice__other {
    border-color: var(--blue);
}

.ls-choice input[type="radio"]:checked ~ .ls-choice__other {
    background: #eaf1f9;
    border-color: var(--blue);
    box-shadow: inset 0 0 0 1px var(--blue);
    color: var(--blue);
    font-weight: 600;
}

.ls-choice input[type="radio"]:checked ~ .ls-choice__other::placeholder {
    color: var(--blue);
}

.ls-choice__other:focus,
.ls-choice input[type="radio"]:focus-visible ~ .ls-choice__other {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.ls-choice [aria-invalid="true"] ~ .ls-choice__other {
    border-color: #9c2424;
}

.ls-choice input:checked + span {
    background: #eaf1f9;
    border-color: var(--blue);
    box-shadow: inset 0 0 0 1px var(--blue);
    color: var(--blue);
    font-weight: 600;
}

.ls-choice input:focus-visible + span {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* documenten */
.ls-drop {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 24px;
    background: var(--white);
    border: 2px dashed #b9bec2;
    border-radius: 12px;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.ls-drop.is-over {
    background: #eaf1f9;
    border-color: var(--blue);
}

.ls-drop:focus-within {
    border-color: var(--blue);
}

.ls-drop__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.ls-drop__button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--blue);
    border-radius: 7px;
    color: var(--blue);
    cursor: pointer;
    font: 600 15px/1.4 var(--font-site);
}

.ls-drop__button:hover {
    background: #eaf1f9;
}

.ls-drop__input:focus-visible + .ls-drop__button {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.ls-drop__text {
    font-size: 15px;
}

.ls-drop__rules {
    flex-basis: 100%;
    margin: 4px 0 0;
    color: #5f666b;
    font-size: 13px;
}

.ls-files {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.ls-files__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 10px 14px;
    border-bottom: 1px solid var(--grey);
    animation: ls-fade-in 0.2s ease-out both;
}

.ls-files__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.ls-files__size {
    flex: none;
    color: #5f666b;
    font-size: 13px;
}

.ls-files__remove {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--black);
    cursor: pointer;
}

.ls-files__remove:hover {
    background: var(--white);
    color: #9c2424;
}

.ls-files__count {
    margin: 10px 0 0;
    color: #5f666b;
    font-size: 13px;
}

.ls-captcha {
    margin: 4px 0 0;
}

.ls-privacy {
    margin: 16px 0 0;
    font-size: 13px;
}

.ls-privacy a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* knoppen */
.ls-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.ls-actions .ls-button--ghost:first-child {
    margin-right: auto;
}

.ls-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 26px;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    font: 600 15px/1.4 var(--font-site);
    text-decoration: none;
    transition:
        background 0.2s ease,
        scale 0.15s ease;
}

.ls-button:hover {
    background: #003a76;
    color: #fff;
}

.ls-button:active {
    scale: 0.98;
}

.ls-button:focus-visible,
.ls-dialog__close:focus-visible,
.ls-files__remove:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.ls-button--ghost {
    background: #fff;
    color: var(--blue);
}

.ls-button--ghost:hover {
    background: #eaf1f9;
    color: var(--blue);
}

.ls-button[disabled] {
    cursor: progress;
    opacity: 0.85;
}

.ls-button--send svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ls-button--send.is-sending svg {
    animation: ls-plane 1.1s ease-in-out infinite;
}

@keyframes ls-plane {
    0% {
        opacity: 1;
        transform: translate(0, 0);
    }

    45% {
        opacity: 0;
        transform: translate(26px, -14px);
    }

    46% {
        opacity: 0;
        transform: translate(-26px, 14px);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* resultaat */
.ls-success {
    padding: 24px 0 8px;
    text-align: center;
    animation: ls-fade-in 0.4s ease-out both;
}

.ls-success:focus {
    outline: none;
}

.ls-success__icon {
    fill: none;
    stroke: var(--blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ls-success__icon circle {
    stroke-dasharray: 63;
    stroke-dashoffset: 63;
    animation: ls-draw 0.6s 0.1s ease-out forwards;
}

.ls-success__icon path {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: ls-draw 0.4s 0.55s ease-out forwards;
}

@keyframes ls-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.ls-success h3 {
    margin: 16px 0 10px;
    color: var(--blue);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.ls-success p {
    max-width: 46ch;
    margin: 0 auto 24px;
    font-size: 16px;
    line-height: 1.6;
}

@media screen and (max-width: 640px) {
    .ls-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

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

    .ls-choice span {
        padding: 10px 12px;
        font-size: 14px;
    }

    .ls-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .ls-actions .ls-button--ghost:first-child {
        margin-right: 0;
    }

    .ls-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ls-dialog[open],
    .ls-dialog[open]::backdrop,
    .ls-form.is-enhanced .ls-step:not([hidden]),
    .ls-files__item,
    .ls-success,
    .ls-button--send.is-sending svg {
        animation: none;
    }

    .ls-success__icon circle,
    .ls-success__icon path {
        animation: none;
        stroke-dashoffset: 0;
    }

    .ls-button,
    .ls-choice span,
    .ls-field input,
    .ls-field select,
    .ls-field textarea,
    .ls-progress__item::before {
        transition: none;
    }

    .ls-button:active {
        scale: none;
    }
}

/* pijl (chevron) in de knoppen van het blok en van de wizard: schuift bij hover een stukje op */
.ls-cta__button--ghost > span[aria-hidden="true"],
.ls-button > span[aria-hidden="true"] {
    display: inline-block;
    transition: transform 0.2s ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .ls-cta__button--ghost:hover > span[aria-hidden="true"],
    .ls-button:hover:not(.ls-button--ghost) > span[aria-hidden="true"] {
        transform: translateX(3px);
    }

    .ls-button--ghost:hover > span[aria-hidden="true"]:first-child {
        transform: translateX(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ls-cta__button--ghost > span[aria-hidden="true"],
    .ls-button > span[aria-hidden="true"] {
        transition: none;
    }
}

/* gewone keuzelijst (zonder JavaScript en op aanraakschermen): eigen pijltje met ruimte tot de rand, zoals bij de productfilters */
.ls-field select {
    padding-right: 44px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23004996' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 12px 12px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* de eigen keuzelijst in de wizard: dezelfde hoogte en rand als de andere velden */
.ls-field .cs {
    margin-top: 8px;
}

.ls-field .cs__button {
    min-height: 48px;
    border-color: #b9bec2;
}

.ls-field .cs__button:hover,
.ls-field .cs.is-open .cs__button {
    border-color: var(--blue);
}