/* ==========================================================================
   Garage leasing-overzicht ([garage_lease])
   ========================================================================== */

/* Intro / hoofding */
.garage-lease-intro {
    max-width: 820px;
    margin: 0 auto 28px;
    color: #374151;
    line-height: 1.6;
}

.garage-lease-intro__title {
    font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
    line-height: 1.25;
    color: #0052A1;
    margin: 0 0 16px;
}

.garage-lease-intro p {
    margin: 0 0 12px;
}

.garage-lease-intro__usps {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.garage-lease-intro__usps li {
    margin: 0 0 6px;
}

.garage-lease-intro a {
    color: #0052A1;
    font-weight: 600;
}

/* Inklapbaar deel van de intro — alleen actief wanneer JS draait.
   De eerste alinea's (t/m "afhalen") blijven altijd zichtbaar. */
.garage-lease-intro.is-collapsible .garage-lease-intro__more {
    display: none;
}

.garage-lease-intro.is-collapsible.is-expanded .garage-lease-intro__more {
    display: block;
}

.garage-lease-readmore {
    display: none;
    margin-top: 4px;
    padding: 4px 0;
    border: 0;
    background: none;
    color: #0052A1;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.garage-lease-readmore:hover {
    text-decoration: underline;
}

.garage-lease-intro.is-collapsible .garage-lease-readmore {
    display: inline-block;
}

.garage-lease-count {
    color: #4b5563;
    margin: 0 0 12px;
}

.garage-lease-empty {
    color: #4b5563;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

/* VAT-label "recupereerbaar" wat nadrukkelijker op de leasing-kaart */
.garage-card__vat--ok {
    color: #0a7c43;
    font-weight: 600;
}

/* "LEASING aanvragen"-knop */
.garage-lease-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 11px 14px;
    border: 0;
    border-radius: 8px;
    background: #0052A1;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .02em;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, transform .05s ease;
}

.garage-lease-btn:hover {
    background: #013f7d;
}

.garage-lease-btn:active {
    transform: translateY(1px);
}

.garage-lease-btn:focus-visible {
    outline: 2px solid #0052A1;
    outline-offset: 2px;
}

/* Variant op de detailpagina: niet over de volle breedte, wel prominent */
.garage-lease-btn--single {
    display: inline-block;
    width: auto;
    margin-top: 14px;
    padding: 13px 26px;
    font-size: 15px;
}

.garage-lease-btn:disabled {
    opacity: .6;
    cursor: default;
}

/* ==========================================================================
   Pop-up / modal
   ========================================================================== */
/* Vergrendel op html én body: sommige themes (Salient) scrollen via het html-element */
html.garage-lease-noscroll,
html.garage-lease-noscroll body,
body.garage-lease-noscroll {
    overflow: hidden !important;
}

.garage-lease-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.garage-lease-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.garage-lease-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .55);
}

.garage-lease-modal__dialog {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(480px, 100%);
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain; /* muiswiel boven de dialog scrollt nooit de pagina mee */
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 14px;
    padding: 26px 24px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.garage-lease-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #6b7280;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50% !important;
    box-shadow: none !important;
    transition: background-color .15s ease, color .15s ease;
}

.garage-lease-modal__close:hover,
.garage-lease-modal__close:focus,
.garage-lease-modal__close:focus-visible {
    background: #f3f4f6 !important;
    color: #111827;
    box-shadow: none !important;
    outline: none;
}

.garage-lease-modal__heading {
    margin: 0 0 4px;
    font-size: 1.35rem;
    color: #0052A1;
}

.garage-lease-modal__car {
    margin: 0 0 10px;
    font-weight: 600;
    color: #111827;
}

.garage-lease-modal__car:empty {
    display: none;
}

.garage-lease-modal__intro {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

/* Formulier */
.garage-lease-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.garage-lease-form input[type="text"],
.garage-lease-form input[type="tel"],
.garage-lease-form input[type="email"],
.garage-lease-form select {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 400;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
}

.garage-lease-form input:focus,
.garage-lease-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
}

.garage-lease-form__pref {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 16px;
}

.garage-lease-form__pref legend {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    padding: 0 4px;
}

.garage-lease-form__radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400 !important;
    margin: 4px 16px 4px 0 !important;
    cursor: pointer;
}

.garage-lease-form__radio input {
    margin: 0;
}

.garage-lease-form__gdpr {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    color: #4b5563;
    cursor: pointer;
}

.garage-lease-form__gdpr input {
    margin: 2px 0 0;
    flex: 0 0 auto;
}

.garage-lease-form__gdpr a {
    color: #0052A1;
    font-weight: 600;
}

.garage-lease-form__submit {
    margin-top: 4px;
}

.garage-lease-form__feedback {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
}

.garage-lease-form__feedback.is-error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 12px;
}

.garage-lease-form__feedback.is-success {
    color: #0a7c43;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 600;
}

@media (max-width: 520px) {
    .garage-lease-modal.is-open {
        padding: 12px;
    }
}
