/* ==================================================================
   Home hero – moderne variant (partials/section-eyecatcher-modern.php)
   ================================================================== */

.hx {
    --hx-bg: #141414;
    --hx-text: #fff;
    --hx-text-soft: rgba(255, 255, 255, .86);
    --hx-text-muted: rgba(255, 255, 255, .7);
    --hx-card: #f5f2ec;
    --hx-field-border: #e2ddd3;
    --hx-green: #5fd068;
    --hx-radius: 14px;
}

/* Overschrijft de algemene sectie-achtergronden en de lichte hero-overlay. */
main > section.hero.hero--modern {
    background-color: var(--hx-bg) !important;
}

.hero.hero--modern {
    display: block;
    min-height: 0; /* hoogte volgt de inhoud, zodat de kenmerkenbalk direct onder de keuzehulp landt */
    color: var(--hx-text);
    isolation: isolate;
}

.hero.hero--modern::before {
    display: none;
}

/* ---------- Achtergrondfoto + overlay ---------- */
.hx__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hx__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}

.hx__media::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(16, 16, 16, .92) 0%, rgba(16, 16, 16, .78) 38%, rgba(16, 16, 16, .3) 68%, rgba(16, 16, 16, .1) 100%),
        linear-gradient(0deg, rgba(16, 16, 16, .75) 0%, rgba(16, 16, 16, 0) 35%),
        linear-gradient(180deg, rgba(16, 16, 16, .45) 0%, rgba(16, 16, 16, 0) 22%);
}

.hx__inner {
    position: relative;
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
    /* ruimte voor de bovenste helft van de kenmerkenbalk die over de hero valt */
    padding-bottom: calc(var(--hx-hero-overlap, 75px) + clamp(2rem, 3.5vw, 3rem));
}

.hx__content {
    max-width: 960px;
}

/* ---------- Tekst ---------- */
.hx__kicker {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    color: var(--hx-text);
    font-family: 'Inter', var(--px-font-body);
    font-size: clamp(.8rem, 1.2vw, 1.15rem);
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hx__kicker .site-mark {
    width: .7rem;
    height: 1.9rem;
}

.hx .hx__title {
    margin: 0 0 1.25rem;
    color: var(--hx-text) !important;
    font-family: var(--px-font-title);
    font-size: clamp(2.1rem, 4.1vw, 4rem);
    font-weight: 800 !important;
    letter-spacing: -.02em;
    line-height: 1.08;
    text-transform: none;
    text-wrap: balance;
}

.hx .hx__title span {
    color: var(--px-orange);
}

.hx__lead {
    margin-bottom: .9rem;
    color: var(--hx-text);
    font-family: 'Inter', var(--px-font-body);
    font-size: clamp(1.05rem, 1.55vw, 1.4rem);
    font-weight: 700;
    line-height: 1.35;
}

.hx__text {
    max-width: 720px;
    color: var(--hx-text-soft);
}

.hx__text p {
    margin: 0;
    color: inherit;
    font-size: clamp(.98rem, 1.2vw, 1.15rem) !important;
    line-height: 1.6 !important;
}

.hx__text p + p {
    margin-top: .6rem;
}

/* ---------- Vinkjes ---------- */
.hx__checks {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 2.5rem;
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
}

.hx__checks .hx__check {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--hx-text);
    font-family: 'Inter', var(--px-font-body);
    font-size: clamp(.95rem, 1.2vw, 1.1rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.hx__check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--hx-green);
    color: #0f3d14;
}

.hx__check-icon .hx-icon {
    width: 1.15rem;
    height: 1.15rem;
    stroke-width: 3;
}

/* ---------- Keuzehulp-kaart ---------- */
.quickstart.quickstart--hero {
    z-index: 2;
    max-width: 1060px;
    margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
}

/* .quickstart__bar (nodig voor de JS) heeft eigen grid-styling; die hier neutraliseren. */
.quickstart--hero .hx-form {
    display: block;
    grid-template-columns: none;
    padding: 1.5rem 1.75rem 1.1rem;
    border-radius: var(--hx-radius);
    background: var(--hx-card);
    color: var(--px-dark);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.hx .hx-form__title {
    margin: 0 0 1rem;
    color: var(--px-dark) !important;
    font-family: var(--px-font-title);
    font-size: clamp(1.25rem, 1.8vw, 1.6rem) !important;
    font-weight: 800 !important;
    letter-spacing: -.01em;
    line-height: 1.2 !important;
    text-transform: none;
}

.hx-form__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 1rem 1.5rem;
    align-items: end;
}

.hx-form__field label {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .55rem;
    color: var(--px-dark);
    font-family: 'Inter', var(--px-font-body);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.hx-form__field label .hx-icon {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    color: var(--px-dark);
}

.hx-form__optional {
    color: #8a857c;
    font-weight: 400;
}

.hx-form__field select,
.hx-form__field input {
    display: block;
    width: 100%;
    height: 3.25rem;
    padding: 0 1.1rem;
    border: 1px solid var(--hx-field-border);
    border-radius: 8px;
    background-color: #fff;
    color: var(--px-dark);
    font-family: 'Inter', var(--px-font-body);
    font-size: .98rem;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    -webkit-appearance: none;
    appearance: none;
}

.hx-form__field select {
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%23282829' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    cursor: pointer;
}

.hx-form__field select:invalid,
.hx-form__field select:has(option[value=""]:checked) {
    color: #8a857c;
}

.hx-form__field select option {
    color: var(--px-dark);
}

/* Native datepicker houden (iOS/Safari), alleen eigen placeholder erover. */
.hx-form__date {
    position: relative;
}

.hx-form__field input[type="date"] {
    -webkit-appearance: auto;
    appearance: auto;
    line-height: 3.25rem;
    cursor: pointer;
}

.hx-form__field input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

.hx-form__placeholder {
    position: absolute;
    top: 50%;
    left: 1.1rem;
    color: #8a857c;
    font-family: 'Inter', var(--px-font-body);
    font-size: .98rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.hx-form__date:not(.has-value) input:not(:focus)::-webkit-datetime-edit {
    color: transparent;
}

.hx-form__date.has-value .hx-form__placeholder,
.hx-form__date input:focus + .hx-form__placeholder {
    display: none;
}

.hx-form__field select:focus,
.hx-form__field input:focus {
    outline: none;
    border-color: var(--px-orange);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, .2);
}

.hx-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    height: 3.5rem;
    padding: 0 1.6rem;
    border: 0;
    border-radius: 8px;
    background: var(--px-orange);
    color: #fff;
    font-family: 'Inter', var(--px-font-body);
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.hx-form__submit .hx-icon {
    width: 1.2rem;
    height: 1.2rem;
    stroke-width: 2.2;
    transition: transform .2s ease;
}

.hx-form__submit:hover,
.hx-form__submit:focus-visible {
    background: #e85f00;
}

.hx-form__submit:hover .hx-icon {
    transform: translateX(3px);
}

.hx-form__submit:focus-visible {
    outline: 3px solid rgba(255, 106, 0, .35);
    outline-offset: 2px;
}

.hx-form .quickstart__error {
    margin: .75rem 0 0;
    font-size: .85rem !important;
    line-height: 1.4 !important;
}

.hx-form__note {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: .9rem;
    color: #6f6a62;
    font-family: 'Inter', var(--px-font-body);
    font-size: .88rem;
}

.hx-form__note .hx-icon {
    width: 1rem;
    height: 1rem;
    color: var(--px-orange);
    fill: currentColor;
}

/* ---------- Kenmerken- en prijsbalk (half over de onderrand van de hero) ---------- */
.hx-bar-wrap {
    --hx-radius: 14px;
    --hx-text: #fff;
    --hx-text-soft: rgba(255, 255, 255, .86);
    --hx-text-muted: rgba(255, 255, 255, .7);

    position: relative;
    z-index: 3;
    /* --hx-bar-overlap = halve balkhoogte (gezet via het scriptje in de partial); fallback 75px */
    margin-top: calc(-1 * var(--hx-bar-overlap, 75px));
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.hx__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: .75rem .75rem .75rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--hx-radius);
    background: #18181a;
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .45);
}

.hx__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0 1.5rem 0 0;
    border-right: 1px solid rgba(255, 255, 255, .18);
    list-style: none;
}

.hx__features .hx__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: .5rem .25rem;
    font-size: inherit !important;
    line-height: 1.35 !important;
    text-align: center;
}

.hx__feature .hx-icon {
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: .45rem;
    color: var(--hx-text);
    stroke-width: 1.5;
}

.hx__feature-title {
    color: var(--hx-text);
    font-family: 'Inter', var(--px-font-body);
    font-size: .95rem;
    font-weight: 700;
}

.hx__feature-text {
    color: var(--hx-text-muted);
    font-family: 'Inter', var(--px-font-body);
    font-size: .85rem;
}

.hx__prices {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    min-width: 400px;
    padding: 1rem .5rem;
    border: 2px solid var(--px-orange);
    border-radius: var(--hx-radius);
}

.hx__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: 0 1.25rem;
    text-align: center;
}

.hx__price + .hx__price {
    border-left: 1px solid rgba(255, 255, 255, .22);
}

.hx__price-label {
    color: var(--hx-text-soft);
    font-family: 'Inter', var(--px-font-body);
    font-size: .95rem;
}

.hx__price-value {
    color: var(--hx-text);
    font-family: 'Inter', var(--px-font-body);
    font-size: clamp(1.75rem, 2.4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.15;
    white-space: nowrap;
}

.hx__price-note {
    color: var(--hx-text-muted);
    font-family: 'Inter', var(--px-font-body);
    font-size: .85rem;
}

.hx__price:last-child .hx__price-note {
    color: var(--hx-text);
    font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 1399.98px) {
    .hx__prices {
        min-width: 360px;
    }

    .hx__price {
        padding: 0 .85rem;
    }
}

@media (max-width: 1199.98px) {
    .quickstart.quickstart--hero {
        max-width: none;
    }

    .hx-form__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hx-form__submit {
        grid-column: 1 / -1;
    }

    .hx__bar {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .hx__features {
        padding: 0 0 1rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .18);
    }

    .hx__prices {
        min-width: 0;
    }
}

@media (max-width: 991.98px) {
    .hero.hero--modern {
        min-height: 0;
    }

    .hx {
        --hx-hero-overlap: 150px;
    }

    .hx__media::after {
        background:
            linear-gradient(90deg, rgba(16, 16, 16, .9) 0%, rgba(16, 16, 16, .72) 60%, rgba(16, 16, 16, .5) 100%),
            linear-gradient(0deg, rgba(16, 16, 16, .8) 0%, rgba(16, 16, 16, 0) 45%);
    }

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

@media (max-width: 767.98px) {
    .quickstart--hero .hx-form {
        padding: 1.25rem 1.1rem 1rem;
    }

    .hx-form__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: .9rem;
    }

    .hx-form__submit {
        width: 100%;
    }

    .hx__checks {
        flex-direction: column;
        gap: .6rem;
    }
}

@media (max-width: 575.98px) {
    .hx {
        --hx-hero-overlap: 260px;
    }

    .hx__media::after {
        background: linear-gradient(180deg, rgba(16, 16, 16, .78) 0%, rgba(16, 16, 16, .82) 100%);
    }

    .hx__kicker .site-mark {
        height: 1.4rem;
    }

    .hx__bar {
        padding: .75rem;
    }

    .hx__features {
        gap: .5rem;
    }

    .hx__feature .hx-icon {
        width: 1.9rem;
        height: 1.9rem;
    }

    .hx__feature-title {
        font-size: .92rem;
    }

    .hx__feature-text {
        font-size: .8rem;
    }

    .hx__prices {
        grid-auto-flow: row;
        padding: .25rem 1rem;
    }

    .hx__price {
        padding: .9rem 0;
    }

    .hx__price + .hx__price {
        border-top: 1px solid rgba(255, 255, 255, .22);
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hx-form__submit,
    .hx-form__submit .hx-icon {
        transition: none;
    }
}

/* ---------- Popup-knop ----------
   .btn-playground gebruikt Bootstrap 5-variabelen, maar de site laadt Bootstrap 4;
   daardoor bleef de offerteknop in de popup zonder achtergrond. Hier expliciet gemaakt. */
.quickstart-dialog .btn-playground {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .9rem 1.6rem;
    border: 1px solid var(--px-orange);
    border-radius: 0;
    background: var(--px-orange);
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    transform: skewX(-12deg);
    cursor: pointer;
    transition: background-color .2s ease;
}

.quickstart-dialog .btn-playground:hover,
.quickstart-dialog .btn-playground:focus-visible {
    background: #e85f00;
    border-color: #e85f00;
    color: #fff;
}

/* ==================================================================
   Kenmerken- en prijsbalk LOS onder de hero (geen overlap meer)
   Overschrijft de overlap-variant hierboven.
   ================================================================== */
.hero.hero--modern .hx__inner {
    padding-bottom: clamp(3rem, 5.5vw, 5rem);
}

.hx-bar-wrap {
    --hx-text: #141414;
    --hx-text-soft: #3d3a35;
    --hx-text-muted: #6b675f;

    margin-top: 0;
    margin-bottom: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem) 0;
    background: var(--px-cream, #eeeade);
}

.hx-bar-wrap .hx__bar {
    border: 1px solid rgba(17, 17, 17, .08);
    background: #fff;
    box-shadow: 0 20px 44px -30px rgba(17, 17, 17, .35);
}

.hx-bar-wrap .hx__features {
    border-right-color: rgba(17, 17, 17, .1);
}

.hx-bar-wrap .hx__feature .hx-icon {
    color: var(--px-orange);
}

.hx-bar-wrap .hx__prices {
    background: rgba(255, 106, 0, .05);
}

.hx-bar-wrap .hx__price + .hx__price {
    border-left-color: rgba(17, 17, 17, .12);
}

@media (max-width: 1199.98px) {
    .hx-bar-wrap .hx__features {
        border-bottom-color: rgba(17, 17, 17, .1);
    }
}

@media (max-width: 575.98px) {
    .hx-bar-wrap .hx__price + .hx__price {
        border-top-color: rgba(17, 17, 17, .12);
    }
}

/* ==================================================================
   Eigen keuzelijst (js/px-select.js) – alleen desktop; mobiel houdt de systeemkiezer
   ================================================================== */
/* uitklaplijst mag buiten de hero vallen */
.hero.hero--modern {
    position: relative;
    z-index: 5;
    overflow: visible;
}

.hx__media {
    overflow: hidden;
}

.px-select {
    position: relative;
}

.px-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.px-select__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    height: 3.25rem;
    padding: 0 1rem 0 1.1rem;
    border: 1px solid var(--hx-field-border, #e2ddd3);
    border-radius: 8px;
    background: #fff;
    color: var(--px-dark, #141414);
    font-family: 'Inter', var(--px-font-body);
    font-size: .98rem;
    font-weight: 500;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.px-select__button:hover {
    border-color: #cfc8ba;
}

.px-select__button:focus-visible,
.px-select.is-open .px-select__button {
    outline: none;
    border-color: var(--px-orange);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, .2);
}

.px-select.is-empty .px-select__value {
    color: #8a857c;
}

.px-select.is-invalid .px-select__button {
    border-color: #d93a2b;
}

.px-select__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.px-select__chevron {
    flex: 0 0 auto;
    width: 14px;
    height: 9px;
    color: #282829;
    transition: transform .25s ease;
}

.px-select.is-open .px-select__chevron {
    transform: rotate(180deg);
}

.px-select__list {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: min(22rem, 90vw);
    max-height: 18rem;
    margin: 0;
    padding: .4rem;
    overflow-y: auto;
    border: 1px solid rgba(17, 17, 17, .08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 50px -18px rgba(17, 17, 17, .35), 0 2px 6px rgba(17, 17, 17, .06);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(.98);
    transform-origin: top left;
    transition: opacity .18s ease, transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .22s;
    scrollbar-width: thin;
}

.px-select.opens-up .px-select__list {
    top: auto;
    bottom: calc(100% + 8px);
    transform-origin: bottom left;
    transform: translateY(6px) scale(.98);
}

.px-select.is-open .px-select__list {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .18s ease, transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}

.px-select__list:focus {
    outline: none;
}

.hx-form .px-select__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem .75rem;
    border-radius: 8px;
    color: #2a2824;
    font-family: 'Inter', var(--px-font-body);
    font-size: .95rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    cursor: pointer;
}

.px-select__option.is-active {
    background: rgba(255, 106, 0, .08);
    color: #141414;
}

.px-select__option[aria-selected="true"] {
    color: var(--px-orange);
    font-weight: 600 !important;
}

.px-select__check {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    color: var(--px-orange);
    opacity: 0;
}

.px-select__option[aria-selected="true"] .px-select__check {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .px-select__list,
    .px-select__chevron {
        transition: none;
    }
}
