@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ============================================
   ENQUETE AMBER — Stijlgids Amber Holtman
   ============================================ */

:root {
    --enq-terracotta: #B0453A;
    --enq-terracotta-dark: #963A30;
    --enq-brown-dark: #2A1714;
    --enq-brown-soft: #7C554B;
    --enq-brown-rust: #6E3A31;
    --enq-cream: #FAF1E9;
    --enq-offwhite: #FFFDFB;
    --enq-blush: #F4DDD2;
    --enq-blush-hover: #EFD1C3;
    --enq-rail: #F0DFD3;
    --enq-border: #EFDFD3;
    --enq-border-strong: #E2C9BA;
}

/* ---------- Basis ---------- */
#enq-modal *,
#enq-modal *::before,
#enq-modal *::after {
    box-sizing: border-box;
}

body.enq-no-scroll {
    overflow: hidden;
}

/* ---------- Trigger button ---------- */
.enq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 32px;
    background: var(--enq-terracotta);
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.enq-btn:hover {
    background: var(--enq-terracotta-dark);
    transform: translateY(-1px);
}

/* ---------- Overlay ---------- */
.enq-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(42, 23, 20, .45);
    padding: 24px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.enq-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Kaart ---------- */
.enq-card {
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 48px);
    background: var(--enq-cream);
    border-radius: 30px;
    box-shadow: 0 40px 90px -30px rgba(74, 33, 28, .6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: enqIn .35s cubic-bezier(.22, 1, .36, 1);
}

@keyframes enqIn {
    from { opacity: 0; transform: translateY(24px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Header ---------- */
.enq-head {
    padding: 22px 28px 0;
    flex-shrink: 0;
}

.enq-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.enq-eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--enq-terracotta);
    line-height: 1.2;
}

.enq-close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--enq-blush);
    color: var(--enq-brown-rust);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease;
}

.enq-close:hover {
    background: var(--enq-blush-hover);
}

/* ---------- Progressbar ---------- */
.enq-progress {
    height: 6px;
    background: var(--enq-rail);
    border-radius: 999px;
    overflow: hidden;
}

.enq-progress-fill {
    height: 100%;
    width: 20%;
    background: var(--enq-terracotta);
    border-radius: 999px;
    transition: width .45s cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Body ---------- */
.enq-body {
    padding: 24px 28px 8px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.enq-body::-webkit-scrollbar {
    width: 6px;
}

.enq-body::-webkit-scrollbar-thumb {
    background: var(--enq-border-strong);
    border-radius: 999px;
}

/* ---------- Stappen ---------- */
.enq-step {
    display: none;
}

.enq-step.is-active {
    display: block;
    animation: enqFade .3s ease;
}

@keyframes enqFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.enq-title {
    margin: 0 0 6px;
    font-family: 'Bricolage Grotesque', Georgia, serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--enq-brown-dark);
}

.enq-sub {
    margin: 0 0 20px;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--enq-brown-soft);
}

/* ---------- Keuze-opties ---------- */
.enq-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.enq-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--enq-offwhite);
    border-radius: 20px;
    box-shadow: inset 0 0 0 1.5px var(--enq-border);
    cursor: pointer;
    transition: box-shadow .2s ease, background-color .2s ease;
}

.enq-option:hover {
    box-shadow: inset 0 0 0 1.5px var(--enq-border-strong);
}

.enq-option.is-selected {
    box-shadow: inset 0 0 0 2px var(--enq-terracotta);
}

.enq-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 21px;
    height: 21px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--enq-offwhite);
    box-shadow: inset 0 0 0 1.5px var(--enq-border-strong);
    cursor: pointer;
    transition: box-shadow .2s ease;
}

.enq-option input[type="radio"]:checked {
    background: var(--enq-terracotta);
    box-shadow: inset 0 0 0 4px var(--enq-offwhite), inset 0 0 0 6px var(--enq-terracotta);
}

.enq-option-label {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--enq-brown-dark);
    line-height: 1.35;
}

/* ---------- Voorwaardelijk veld (Anders) ---------- */
.enq-conditional {
    display: none;
    margin-top: 14px;
    animation: enqFade .25s ease;
}

.enq-conditional.is-visible {
    display: block;
}

/* ---------- Velden ---------- */
.enq-field {
    margin-bottom: 14px;
}

.enq-field:last-child {
    margin-bottom: 0;
}

.enq-label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--enq-brown-dark);
}

.enq-modal input[type="text"],
.enq-modal input[type="email"],
.enq-modal input[type="tel"],
.enq-modal textarea {
    width: 100%;
    padding: 16px 18px;
    background: var(--enq-offwhite);
    border: none;
    border-radius: 20px;
    box-shadow: inset 0 0 0 1.5px var(--enq-border);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    color: var(--enq-brown-dark);
    line-height: 1.45;
    transition: box-shadow .2s ease;
}

.enq-modal textarea {
    resize: vertical;
    min-height: 120px;
}

.enq-modal input::placeholder,
.enq-modal textarea::placeholder {
    color: var(--enq-brown-soft);
    opacity: .55;
}

.enq-modal input:focus,
.enq-modal textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--enq-terracotta);
}

/* ---------- Alert ---------- */
.enq-alert {
    display: none;
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: 18px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
}

.enq-alert.is-visible {
    display: block;
    animation: enqFade .25s ease;
}

.enq-alert.is-error {
    background: rgba(176, 69, 58, .1);
    color: var(--enq-terracotta);
}

.enq-alert.is-success {
    background: rgba(124, 85, 75, .1);
    color: var(--enq-brown-rust);
}

/* ---------- Footer ---------- */
.enq-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px 28px;
    flex-shrink: 0;
}

.enq-btn-back {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--enq-blush);
    color: var(--enq-brown-rust);
    border: none;
    border-radius: 999px;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease;
}

.enq-btn-back.is-visible {
    display: flex;
}

.enq-btn-back:hover {
    background: var(--enq-blush-hover);
}

.enq-btn-next {
    flex: 1 1 auto;
    height: 52px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--enq-terracotta);
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, opacity .2s ease;
}

.enq-btn-next:hover:not(:disabled) {
    background: var(--enq-terracotta-dark);
}

.enq-btn-next:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .enq-modal {
        padding: 16px 12px;
    }

    .enq-card {
        max-width: 100%;
        max-height: calc(100vh - 32px);
        border-radius: 26px;
    }

    .enq-head {
        padding: 18px 20px 0;
    }

    .enq-head-top {
        margin-bottom: 16px;
    }

    .enq-close {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .enq-body {
        padding: 20px 20px 4px;
    }

    .enq-title {
        font-size: 22px;
    }

    .enq-option {
        padding: 15px 16px;
        border-radius: 18px;
    }

    .enq-modal input[type="text"],
    .enq-modal input[type="email"],
    .enq-modal input[type="tel"],
    .enq-modal textarea {
        padding: 15px 16px;
        border-radius: 18px;
        font-size: 16px; /* voorkomt inzoomen op iOS */
    }

    .enq-foot {
        padding: 16px 20px 22px;
        gap: 10px;
    }

    .enq-btn-back {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
    }

    .enq-btn-next {
        height: 50px;
        padding: 0 24px;
    }
}

@media (max-width: 380px) {
    .enq-card {
        border-radius: 22px;
    }

    .enq-head {
        padding: 16px 16px 0;
    }

    .enq-body {
        padding: 18px 16px 4px;
    }

    .enq-foot {
        padding: 14px 16px 18px;
    }

    .enq-title {
        font-size: 20px;
    }

    .enq-option {
        padding: 14px;
        gap: 12px;
    }

    .enq-option-label {
        font-size: 14px;
    }
}

/* Korte schermen (bv. liggend op mobiel) */
@media (max-height: 640px) {
    .enq-card {
        max-height: calc(100vh - 32px);
    }

    .enq-modal textarea {
        min-height: 90px;
    }
}
