/* ===================================================
   Elementor Advanced Form Builder v2 — Frontend CSS
   =================================================== */

.fsb-form *, .fsb-form *::before, .fsb-form *::after { box-sizing: border-box; }
.fsb-form-wrapper { width: 100%; position: relative; }

/* ── Grid ── */
.fsb-fields-row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.fsb-field-wrap  { padding: 0 8px; margin-bottom: 16px; width: 100%; }
.fsb-col-100 { width: 100%; }
.fsb-col-75  { width: 75%; }
.fsb-col-66  { width: 66.6666%; }
.fsb-col-50  { width: 50%; }
.fsb-col-33  { width: 33.3333%; }
.fsb-col-25  { width: 25%; }
@media (max-width: 1024px) {
    .fsb-col-33 { width: 50%; }
    .fsb-col-25 { width: 50%; }
    .fsb-col-tablet-100 { width: 100%; }
    .fsb-col-tablet-75  { width: 75%; }
    .fsb-col-tablet-66  { width: 66.6666%; }
    .fsb-col-tablet-50  { width: 50%; }
    .fsb-col-tablet-33  { width: 33.3333%; }
    .fsb-col-tablet-25  { width: 25%; }
}
@media (max-width: 767px) {
    .fsb-col-75,.fsb-col-66,.fsb-col-50,.fsb-col-33,.fsb-col-25 { width: 100%; }
}

/* ── Progress / Steps ── */
.fsb-progress-wrapper { margin-bottom: 24px; }

/* ── Voortgangsbalk (bar) ── */
.fsb-progress-track { width: 100%; height: 6px; background: #e5e7eb; border-radius: 99px; overflow: visible; position: relative; }
.fsb-progress-fill  { height: 100%; background: #6c63ff; border-radius: 99px; transition: width .4s cubic-bezier(.4,0,.2,1); position: relative; }
.fsb-progress-fill::after {
    content: ''; position: absolute; right: -4px; top: 50%;
    transform: translateY(-50%);
    width: 12px; height: 12px; border-radius: 50%;
    background: inherit; box-shadow: 0 0 0 3px rgba(108,99,255,.25);
    transition: all .4s;
}
.fsb-progress-label { margin-top: 10px; font-size: .85em; color: #6b7280; text-align: right; }
@keyframes fsb-pulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.fsb-progress-pulse { animation: fsb-pulse .4s ease; }

/* ── Stappenbalk (steps) ── */
.fsb-steps-nav { display: flex; align-items: center; gap: 0; margin-bottom: 24px; }
.fsb-step-item  { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; }
.fsb-step-meta  { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fsb-step-dot   {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid #e5e7eb; background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85em; color: #9ca3af;
    transition: all .3s cubic-bezier(.4,0,.2,1); cursor: default;
}
.fsb-step-dot svg, .fsb-step-dot i { width: 16px; height: 16px; font-size: 14px; }
.fsb-step-item.active .fsb-step-dot {
    background: #6c63ff; border-color: #6c63ff; color: #fff;
    box-shadow: 0 0 0 4px rgba(108,99,255,.2);
    transform: scale(1.1);
}
.fsb-step-item.done .fsb-step-dot {
    background: #6c63ff; border-color: #6c63ff; color: #fff;
}
.fsb-step-label { font-size: .75em; color: #6b7280; white-space: nowrap; font-weight: 500; }
.fsb-step-desc  { font-size: .7em; color: #9ca3af; white-space: nowrap; }
.fsb-step-item.active .fsb-step-label { color: #6c63ff; font-weight: 700; }
.fsb-step-item.done .fsb-step-label   { color: #6c63ff; }
.fsb-step-connector { flex: 1; height: 2px; background: #e5e7eb; min-width: 20px; transition: background .4s ease; margin-bottom: 22px; }
.fsb-step-connector.done { background: #6c63ff; }
@keyframes fsb-connector-in { from{transform:scaleX(0)} to{transform:scaleX(1)} }
.fsb-connector-animate { transform-origin: left; animation: fsb-connector-in .4s ease; }
.fsb-step-numbers { font-size: .9em; color: #6b7280; margin: 0 0 8px; }


/* ── Labels ── */
.fsb-label    { display: block; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.fsb-required { color: #e74c3c; margin-left: 3px; }

/* ── Input wrap ── */
.fsb-input-wrap { position: relative; }
.fsb-input-wrap.has-icon.icon-left .fsb-input,
.fsb-input-wrap.has-icon.icon-left .fsb-textarea,
.fsb-input-wrap.has-icon.icon-left .fsb-select  { padding-left: 44px; }
.fsb-input-wrap.has-icon.icon-right .fsb-input,
.fsb-input-wrap.has-icon.icon-right .fsb-textarea,
.fsb-input-wrap.has-icon.icon-right .fsb-select { padding-right: 44px; }
.fsb-input-icon { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; font-size: 16px; color: #9ca3af; pointer-events: none; display: flex; align-items: center; }
.fsb-input-icon svg { width: 1em; height: 1em; }
.fsb-input-icon--left  { left: 14px; }
.fsb-input-icon--right { right: 14px; }

/* ── Inputs ── */
.fsb-input,.fsb-textarea,.fsb-select {
    display: block; width: 100%; font-family: inherit; font-size: inherit;
    color: #111; background: #fff; border: 1.5px solid #d1d5db;
    border-radius: 8px; padding: 12px 16px;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none; appearance: none;
}
.fsb-input:focus,.fsb-textarea:focus,.fsb-select:focus {
    outline: none; border-color: #6c63ff; box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}
.fsb-input.fsb-error,.fsb-textarea.fsb-error,.fsb-select.fsb-error {
    border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.12);
}
.fsb-textarea { resize: vertical; min-height: 100px; }

/* ── Select ── */
.fsb-select-wrap  { position: relative; }
.fsb-select-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #9ca3af; font-size: 12px; }
.fsb-select-wrap .fsb-select { padding-right: 40px; cursor: pointer; }

/* ── Custom Select ── */
.fsb-custom-select { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 10; }
.fsb-custom-select-trigger { display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px 16px; cursor: pointer; background: #fff; border: 1.5px solid #d1d5db; border-radius: 8px; transition: border-color .2s; }
.fsb-custom-select.open .fsb-custom-select-trigger { border-color: #6c63ff; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.fsb-custom-select-trigger > i { margin-left: auto; transition: transform .2s; color: #9ca3af; }
.fsb-custom-select.open .fsb-custom-select-trigger > i { transform: rotate(180deg); }
.fsb-custom-select-preview { display: flex; align-items: center; }
.fsb-custom-select-preview img { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; }
.fsb-custom-select-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1.5px solid #6c63ff; border-top: none; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; max-height: 260px; overflow-y: auto; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.fsb-custom-select.open .fsb-custom-select-dropdown { display: block; }
.fsb-custom-option { display: flex; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer; transition: background .15s; }
.fsb-custom-option:hover { background: #f3f2ff; }
.fsb-custom-option.selected { background: #ede9ff; font-weight: 600; }
.fsb-option-image { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.fsb-option-icon  { display: flex; align-items: center; font-size: 20px; color: #6c63ff; flex-shrink: 0; }
.fsb-option-icon svg { width: 1.2em; height: 1.2em; }

/* ── Checkboxes & Radios ── */
.fsb-check-input { position: absolute; opacity: 0; width: 0; height: 0; }
.fsb-options-list .fsb-check-label { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; line-height: 1.4; position: relative; }
.fsb-check-indicator { width: 20px; height: 20px; border: 2px solid #d1d5db; border-radius: 4px; flex-shrink: 0; background: #fff; transition: all .2s; position: relative; display: inline-flex; align-items: center; justify-content: center; }
[type="radio"] + .fsb-check-indicator, [type="radio"] ~ .fsb-check-indicator { border-radius: 50%; }
.fsb-check-label.selected .fsb-check-indicator { background: var(--fsb-indicator-color, #6c63ff); border-color: var(--fsb-indicator-color, #6c63ff); }
.fsb-check-label.selected .fsb-check-indicator::after { content: ''; display: block; width: 5px; height: 9px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg) translate(-1px,-1px); }
/* In kaarten: indicator als badge rechtsboven OP de afbeelding */
.fsb-display-cards .fsb-check-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(2px);
}
.fsb-option-icon--inline { font-size: 16px; color: #6c63ff; }
.fsb-option-icon--inline svg { width: 1em; height: 1em; }

/* Cards */
/* Cards — max 4 per row, image always 100% wide */
.fsb-options-cards {
    display: grid;
    grid-template-columns: repeat(var(--fsb-card-cols, 4), 1fr);
    gap: 12px;
}
@media (max-width: 1024px) {
    /* Tablet: gebruik --fsb-card-cols-tablet als die gezet is, anders fallback */
    .fsb-options-cards[style*="--fsb-card-cols-tablet:1"] { grid-template-columns: repeat(1, 1fr); }
    .fsb-options-cards[style*="--fsb-card-cols-tablet:2"] { grid-template-columns: repeat(2, 1fr); }
    .fsb-options-cards[style*="--fsb-card-cols-tablet:3"] { grid-template-columns: repeat(3, 1fr); }
    .fsb-options-cards[style*="--fsb-card-cols-tablet:4"] { grid-template-columns: repeat(4, 1fr); }
    /* Geen tablet instelling: val terug op max 3 kolommen */
    .fsb-options-cards:not([style*="--fsb-card-cols-tablet"]) { grid-template-columns: repeat(min(var(--fsb-card-cols, 4), 3), 1fr); }
    .fsb-options-cards:not([style*="--fsb-card-cols-tablet"])[style*="--fsb-card-cols:4"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .fsb-options-cards:not([style*="--fsb-card-cols"]) { grid-template-columns: repeat(2, 1fr); }
    .fsb-options-cards[style*="--fsb-card-cols:4"],
    .fsb-options-cards[style*="--fsb-card-cols:3"]     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
    .fsb-options-cards { grid-template-columns: 1fr !important; }
}
.fsb-options-cards .fsb-check-label.fsb-display-cards {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    transition: border-color .2s, background .2s, transform .15s, box-shadow .15s;
    position: relative;
    height: 100%;
}
.fsb-options-cards .fsb-check-label.fsb-display-cards:hover  {
    border-color: #6c63ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(108,99,255,.12);
}
.fsb-options-cards .fsb-check-label.fsb-display-cards.selected {
    border-color: #6c63ff;
    background: rgba(108,99,255,.05);
}
/* Afbeelding: full-bleed, vult de volledige breedte */
.fsb-check-visual {
    display: block;
    width: 100%;
    flex-shrink: 0;
    position: relative; /* zodat indicator absoluut gepositioneerd kan worden */
}
/* Card-afbeelding: altijd 100% breed, hoogte instelbaar via Elementor */
.fsb-check-visual .fsb-option-image {
    width: 100% !important;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}
/* Als er geen afbeelding is maar wel een icon: centreer in een vlak */
.fsb-check-visual:not(:has(img)) {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 12px 0;
}
.fsb-check-visual .fsb-option-icon { font-size: 32px; }
/* Tekst-gedeelte onder de afbeelding */
.fsb-display-cards .fsb-check-text-wrap {
    padding: 10px 12px 12px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

/* Beschrijvingstekst per optie */
.fsb-check-text-wrap { display: flex; flex-direction: column; gap: 2px; }
.fsb-check-text { font-weight: 500; }
.fsb-check-desc {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.4;
}
/* In cards: beschrijving gecentreerd en iets kleiner */
.fsb-display-cards .fsb-check-text-wrap { align-items: center; }
.fsb-display-cards .fsb-check-desc { text-align: center; }
/* In list: beschrijving links uitgelijnd */
.fsb-display-list .fsb-check-text-wrap { align-items: flex-start; }
/* Geselecteerde staat: beschrijving iets donkerder */
.fsb-check-label.selected .fsb-check-desc { color: #374151; }

/* ── Payment opties: opsomming ──────────────────────────── */
.fsb-payopt-list {
    margin-top: 8px;
    text-align: left;
}

/* Payment grid: afbeelding cover met vaste hoogte */
.fsb-payopt-style-grid .fsb-payopt-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Payment cards-stijl: afbeelding full-width bovenaan, vaste hoogte */
.fsb-payopt-style-cards .fsb-payopt-card {
    flex-direction: column;
    align-items: stretch;
    height: 100%;
}
.fsb-payopt-style-cards .fsb-payopt-visual {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    border-radius: 0;
    overflow: hidden;
}
.fsb-payopt-style-cards .fsb-payopt-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}
.fsb-payopt-style-cards .fsb-payopt-body {
    flex: 1;
    padding: 12px 14px 4px;
    text-align: center;
}
.fsb-payopt-style-cards .fsb-payopt-price {
    justify-content: center;
    padding: 4px 14px 12px;
}
.fsb-payopt-style-cards .fsb-payopt-check {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,.9);
    border-color: #d1d5db;
}
.fsb-payopt-style-cards .fsb-payopt-card.selected .fsb-payopt-check {
    background: #6c63ff;
    border-color: #6c63ff;
}
.fsb-payopt-style-cards .fsb-payopt-badge {
    top: 8px;
    left: 12px;
}

/* Payment kaarten: button/bar selected state via .selected op label */
.fsb-payopt-card.selected .fsb-card-btn {
    background: var(--fsb-btn-color, #6c63ff);
    color: var(--fsb-btn-text, #fff);
}
.fsb-payopt-card.selected .fsb-card-btn-default  { display: none; }
.fsb-payopt-card.selected .fsb-card-btn-selected { display: block; }
.fsb-payopt-card.selected .fsb-card-bar {
    background: var(--fsb-btn-color, #6c63ff);
    color: var(--fsb-btn-text, #fff);
}

/* Payment grid: gelijke hoogte */
.fsb-payopt-style-grid .fsb-payopt-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.fsb-payopt-style-grid .fsb-payopt-body {
    flex: 1;
}
/* ── Kaart footer (prijs + button/bar) ───────────────────── */
.fsb-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px 12px;
    flex-shrink: 0;
}
.fsb-card-footer--bar-only {
    padding: 0;
}

/* Prijs-badge */
.fsb-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}
.selected .fsb-card-price {
    color: #6c63ff;
}

/* Button-stijl indicator */
.fsb-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--fsb-btn-color, #6c63ff);
    color: var(--fsb-btn-color, #6c63ff);
    background: transparent;
    transition: background .15s, color .15s;
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}
.fsb-card-btn-selected { display: none; }
.fsb-card-btn-default  { display: block; }

.selected .fsb-card-btn {
    background: #6c63ff;
    color: #fff;
}
.selected .fsb-card-btn-default  { display: none; }
.selected .fsb-card-btn-selected { display: block; }

/* Als er ook een prijs is naast de button */
.fsb-card-footer .fsb-card-price + .fsb-card-btn {
    flex: 0 0 auto;
}

/* Bar-stijl indicator — balk onderin de kaart */
.fsb-card-bar {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: #e5e7eb;
    color: transparent;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: background .15s, color .15s;
    border-radius: 0 0 8px 8px;
}
.selected .fsb-card-bar {
    background: #6c63ff;
    color: #fff;
}

/* Opsomming in kaart */
.fsb-check-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    text-align: left;
    width: 100%;
}
.fsb-check-list li {
    font-size: 12px;
    color: #6b7280;
    padding: 2px 0 2px 16px;
    position: relative;
    line-height: 1.4;
}
.fsb-check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6c63ff;
    font-weight: 700;
    font-size: 11px;
}
.selected .fsb-check-list li { color: #374151; }

/* Indicator verbergen als stijl 'none' of 'button'/'bar' is */
.fsb-card-ind-none    .fsb-check-indicator,
.fsb-card-ind-button  .fsb-check-indicator,
.fsb-card-ind-bar     .fsb-check-indicator { display: none !important; }


/* Pills */
.fsb-options-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fsb-options-pills .fsb-check-label.fsb-display-pills { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border: 2px solid #e5e7eb; border-radius: 50px; cursor: pointer; font-size: .9em; font-weight: 500; transition: all .2s; color: #374151; }
.fsb-options-pills .fsb-check-label.fsb-display-pills:hover { border-color: #6c63ff; color: #6c63ff; }
.fsb-options-pills .fsb-check-label.fsb-display-pills.selected { background: #6c63ff; border-color: #6c63ff; color: #fff; }

/* ── Calculation field ── */
.fsb-calc-wrap { display: flex; align-items: center; gap: 4px; padding: 12px 16px; background: #f9f9ff; border: 1.5px solid #d1d5db; border-radius: 8px; font-size: 1.1em; min-height: 48px; }
.fsb-calc-value { font-weight: 700; color: #6c63ff; min-width: 40px; }
.fsb-calc-prefix, .fsb-calc-suffix { color: #6b7280; }

/* ── Range ── */
.fsb-range-wrap { display: flex; align-items: center; gap: 12px; }
.fsb-range { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; background: #e5e7eb; border-radius: 3px; outline: none; cursor: pointer; }
.fsb-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: #6c63ff; border-radius: 50%; cursor: pointer; transition: transform .15s; }
.fsb-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.fsb-range-value { min-width: 36px; text-align: center; font-weight: 600; color: #6c63ff; }

/* ── File ── */
.fsb-file-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; }
.fsb-file-input { position: absolute; opacity: 0; width: 0.1px; height: 0.1px; overflow: hidden; z-index: -1; }
.fsb-file-label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: #f3f2ff; color: #6c63ff; border: 2px dashed #6c63ff; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .9em; transition: background .2s; }
.fsb-file-label:hover { background: #ede9ff; }
.fsb-file-name { font-size: .85em; color: #9ca3af; }

/* ── Page nav buttons ── */
.fsb-page-nav { display: flex; gap: 12px; margin-top: 16px; }
.fsb-page-nav-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; background: #6c63ff; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 1em; transition: background .2s, transform .15s; }
.fsb-page-nav-btn:hover { background: #5850e8; transform: translateY(-1px); }
.fsb-prev-btn { background: #f3f2ff; color: #6c63ff; }
.fsb-prev-btn:hover { background: #ede9ff; }

/* ── Payment blocks ── */
.fsb-payment-block { margin: 16px 0; padding: 20px; background: #f9f9ff; border: 1.5px solid #e5e7eb; border-radius: 8px; }
.fsb-mollie-info { display: flex; align-items: center; gap: 10px; color: #374151; font-size: .95em; margin: 0; }
.fsb-mollie-info .fa { color: #6c63ff; font-size: 1.2em; }
.fsb-stripe-card-element { padding: 12px; border: 1.5px solid #d1d5db; border-radius: 8px; background: #fff; min-height: 44px; }
.fsb-stripe-errors { color: #e74c3c; font-size: .85em; margin-top: 8px; min-height: 20px; }

/* ── Error ── */
.fsb-field-error { display: none; font-size: .8em; color: #e74c3c; margin-top: 4px; }
.fsb-field-wrap.has-error .fsb-field-error { display: block; }

/* ── Submit ── */
.fsb-submit-wrapper { margin-top: 8px; }
.fsb-label--hidden { display: none; }
.fsb-submit { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 1em; font-weight: 600; cursor: pointer; border: none; background: #6c63ff; color: #fff; padding: 14px 32px; border-radius: 8px; transition: background .2s, transform .15s, box-shadow .2s; position: relative; overflow: hidden; }
.fsb-submit:hover { background: #5850e8; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(108,99,255,.35); }
.fsb-submit:active { transform: translateY(0); }
.fsb-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.fsb-btn-icon--before,
.fsb-btn-icon--after { display: inline-flex; align-items: center; line-height: 1; flex-shrink: 0; }
.fsb-btn-icon--before { margin-right: -2px; }
.fsb-btn-icon--after  { margin-left:  -2px; }
/* SVG icons van Elementor in knop */
.fsb-btn-icon--before svg, .fsb-btn-icon--after svg { width: 1em; height: 1em; fill: currentColor; display: block; }
/* Font Awesome icons in knop */
.fsb-btn-icon--before i, .fsb-btn-icon--after i { font-size: 1em; line-height: 1; }

/* ── Spinner ── */
.fsb-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: fsb-spin .6s linear infinite; flex-shrink: 0; }
.fsb-submit.loading .fsb-spinner { display: inline-block; }
.fsb-submit.loading .fsb-submit-text { opacity: .7; }
@keyframes fsb-spin { to { transform: rotate(360deg); } }

/* ── Form message ── */
.fsb-form-message { margin-top: 16px; padding: 14px 18px; border-radius: 8px; font-weight: 500; display: none; animation: fsb-fade .3s ease; }
.fsb-form-message.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; display: block; }
.fsb-form-message.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; display: block; }
@keyframes fsb-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ── Honeypot (visually hidden, accessible to bots) ── */
.fsb-hp-wrap { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ════════════════════════════════════════════════════
   Betaalopties kaarten
   ════════════════════════════════════════════════════ */
.fsb-payment-options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fsb-payopt-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
    user-select: none;
}
.fsb-payopt-card:hover {
    border-color: #a5b4fc;
    box-shadow: 0 2px 8px rgba(108,99,255,.1);
}
.fsb-payopt-card.selected {
    border-color: #6c63ff;
    background: #f5f3ff;
    box-shadow: 0 2px 12px rgba(108,99,255,.15);
}

/* Hidden native checkbox */
.fsb-payopt-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Badge */
.fsb-payopt-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #6c63ff;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Visual (icon/image) */
.fsb-payopt-visual {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fsb-payopt-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}
.fsb-payopt-icon {
    font-size: 28px;
    color: #6c63ff;
    line-height: 1;
}
.fsb-payopt-icon svg { width: 1em; height: 1em; }

/* Body (naam + omschrijving) */
.fsb-payopt-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fsb-payopt-name {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
}
.fsb-payopt-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Prijs */
.fsb-payopt-price {
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-weight: 700;
    color: #2D2859;
}
.fsb-payopt-currency {
    font-size: 14px;
}
.fsb-payopt-amount {
    font-size: 20px;
}

/* Vinkje */
.fsb-payopt-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
    color: transparent;
    font-size: 11px;
}
.fsb-payopt-card.selected .fsb-payopt-check {
    background: #6c63ff;
    border-color: #6c63ff;
    color: #fff;
}

/* Totaalbalk */
.fsb-payopt-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 14px 20px;
    background: #2D2859;
    border-radius: 10px;
    color: #fff;
}
.fsb-payopt-total-label {
    font-size: 15px;
    font-weight: 500;
    opacity: .85;
}
.fsb-payopt-total-value {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-weight: 700;
}
.fsb-payopt-total-currency { font-size: 14px; }
.fsb-payopt-total-amount   { font-size: 24px; transition: transform .2s; }
.fsb-payopt-total-amount.bump { transform: scale(1.12); }

@media (max-width: 480px) {
    .fsb-payopt-card { flex-wrap: wrap; }
    .fsb-payopt-price { order: -1; margin-left: auto; }
}

/* ── Betaalopties: Grid stijl (afbeelding bovenaan) ── */
.fsb-payopt-style-grid {
    display: grid;
    grid-template-columns: repeat(var(--fsb-payopt-cols, 3), 1fr);
    gap: 14px;
}
@media (max-width: 600px) {
    .fsb-payopt-style-grid {
        grid-template-columns: repeat(min(var(--fsb-payopt-cols, 3), 2), 1fr);
    }
}
@media (max-width: 380px) {
    .fsb-payopt-style-grid {
        grid-template-columns: 1fr;
    }
}
.fsb-payopt-grid {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: visible;
}
.fsb-payopt-grid .fsb-payopt-visual {
    width: 100%;
    height: 200px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.fsb-payopt-grid .fsb-payopt-image {
    width: 100%;
    height: 200px;
    border-radius: 0;
    object-fit: cover;
}.fsb-payopt-grid .fsb-payopt-icon {
    font-size: 48px;
}
.fsb-payopt-grid .fsb-payopt-body {
    padding: 12px 14px 4px;
}
.fsb-payopt-grid .fsb-payopt-price {
    padding: 4px 14px 12px;
    justify-content: flex-start;
}
.fsb-payopt-grid .fsb-payopt-check {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,.9);
    border-color: #d1d5db;
}
.fsb-payopt-grid.selected .fsb-payopt-check {
    background: #6c63ff;
    border-color: #6c63ff;
}

.fsb-payopt-style-grid .fsb-payopt-card {
    margin-top: 10px;
}
.fsb-payopt-grid .fsb-payopt-badge {
    top: -10px;
    left: 12px;
}

/* ── Betaalopties: Lijst stijl (compact) ── */
.fsb-payopt-style-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fsb-payopt-list {
    padding: 12px 16px;
    border-radius: 8px;
}
.fsb-payopt-list .fsb-payopt-visual {
    width: 36px;
    height: 36px;
}
.fsb-payopt-list .fsb-payopt-image {
    width: 36px;
    height: 36px;
    border-radius: 4px;
}
.fsb-payopt-list .fsb-payopt-icon {
    font-size: 20px;
}
.fsb-payopt-list .fsb-payopt-name {
    font-size: 14px;
}
.fsb-payopt-list .fsb-payopt-desc {
    display: none;
}
.fsb-payopt-list .fsb-payopt-amount {
    font-size: 16px;
}

/* ════════════════════════════════════════════════════
   Repeater veld
   ════════════════════════════════════════════════════ */
.fsb-repeater-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.fsb-repeater-header {
    display: flex;
    background: #f3f2ff;
    border-bottom: 1px solid #e5e7eb;
}

.fsb-repeater-th {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #2D2859;
}

.fsb-repeater-rows { display: flex; flex-direction: column; }

.fsb-repeater-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
}
.fsb-repeater-row:nth-child(even) { background: #fafafa; }
.fsb-repeater-row:last-child { border-bottom: none; }

.fsb-repeater-cell {
    padding: 8px 10px;
}
.fsb-repeater-cell .fsb-input,
.fsb-repeater-cell .fsb-select,
.fsb-repeater-cell .fsb-textarea {
    margin-bottom: 0;
    font-size: 14px;
    padding: 8px 10px;
}

/* Column widths inside repeater */
.fsb-rep-col-100 { width: 100%; }
.fsb-rep-col-50  { width: 50%; }
.fsb-rep-col-33  { width: 33.3333%; }
.fsb-rep-col-25  { width: 25%; }
.fsb-rep-col-actions { width: 44px; flex-shrink: 0; text-align: center; padding: 8px 4px; }

/* Remove button */
.fsb-rep-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #ef4444;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: .7;
    transition: opacity .2s;
}
.fsb-rep-remove:hover { opacity: 1; }

/* Add button */
.fsb-rep-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 12px;
    padding: 8px 18px;
    background: transparent;
    border: 1px dashed #6c63ff;
    border-radius: 6px;
    color: #6c63ff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.fsb-rep-add-btn:hover {
    background: #6c63ff;
    color: #fff;
}
.fsb-rep-add-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .fsb-repeater-header { display: none; }
    .fsb-repeater-row    { flex-wrap: wrap; }
    .fsb-rep-col-33,
    .fsb-rep-col-25      { width: 50%; }
    .fsb-rep-col-actions { width: 100%; text-align: right; padding: 4px 10px 10px; }
}

/* ════════════════════════════════════════════════════
   Acceptance / akkoord veld
   ════════════════════════════════════════════════════ */
.fsb-acceptance-wrap {
    display: flex;
    align-items: flex-start;
}

.fsb-acceptance-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
}

/* Verberg native checkbox */
.fsb-acceptance-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Aangepast vinkje */
.fsb-acceptance-indicator {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
}
.fsb-acceptance-indicator::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0;
    transition: opacity .15s;
}

.fsb-acceptance-input:checked ~ .fsb-acceptance-indicator {
    background: #6c63ff;
    border-color: #6c63ff;
}
.fsb-acceptance-input:checked ~ .fsb-acceptance-indicator::after {
    opacity: 1;
}
.fsb-acceptance-input:focus-visible ~ .fsb-acceptance-indicator {
    outline: 2px solid #6c63ff;
    outline-offset: 2px;
}

/* Tekst en link */
.fsb-acceptance-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}
.fsb-acceptance-link {
    color: #6c63ff;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s;
}
.fsb-acceptance-link:hover {
    color: #4f46e5;
}

/* ════════════════════════════════════════════════════
   Order / Productbestelling veld
   ════════════════════════════════════════════════════ */

/* --- Tabel layout --- */
.fsb-order-table { width:100%; border-collapse:collapse; border:1px solid #e5e7eb; border-radius:10px; overflow:hidden; }
.fsb-order-thead { display:flex; background:#f3f2ff; border-bottom:2px solid #e5e7eb; }
.fsb-order-th    { padding:10px 12px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:#2D2859; }
.fsb-order-row   { display:flex; align-items:center; border-bottom:1px solid #f3f4f6; background:#fff; transition:background .15s; }
.fsb-order-row:last-child { border-bottom:none; }
.fsb-order-row:hover      { background:#fafafe; }

.fsb-order-col-product  { flex:1; min-width:160px; padding:12px; display:flex; align-items:center; gap:10px; }
.fsb-order-col-price    { width:90px; padding:12px; color:#6b7280; font-size:14px; }
.fsb-order-col-qty      { width:120px; padding:12px; }
.fsb-order-col-option   { width:150px; padding:12px; }
.fsb-order-col-subtotal { width:90px; padding:12px; font-weight:600; color:#2D2859; text-align:right; }

/* --- Product info --- */
.fsb-order-img { width:48px; height:48px; object-fit:cover; border-radius:6px; flex-shrink:0; }
.fsb-order-card-img { width:100%; height:160px; object-fit:cover; border-radius:8px 8px 0 0; }
.fsb-order-product-info { display:flex; flex-direction:column; gap:2px; }
.fsb-order-product-name { font-weight:600; font-size:14px; color:#111827; }
.fsb-order-sku  { font-size:11px; color:#9ca3af; }
.fsb-order-desc { font-size:12px; color:#6b7280; margin:2px 0 0; line-height:1.5; }
.fsb-order-desc a { color:#6c63ff; text-decoration:underline; }
.fsb-order-desc strong, .fsb-order-desc b { font-weight:600; color:#374151; }
.fsb-order-desc em, .fsb-order-desc i { font-style:italic; }
.fsb-order-desc ul, .fsb-order-desc ol { margin:4px 0 0 14px; padding:0; }
.fsb-prod-list { margin:6px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:3px; }
.fsb-prod-list li { font-size:12px; color:#6b7280; padding-left:14px; position:relative; line-height:1.4; }
.fsb-prod-list li::before { content:'•'; position:absolute; left:0; color:#6c63ff; font-weight:700; }
.fsb-order-desc li { margin-bottom:2px; }
/* Zorg dat fsb-order-desc en fsb-prod-list altijd dezelfde grootte hebben */
.fsb-order-desc, .fsb-prod-list li { font-size:12px; }
.fsb-order-unit-price { font-size:14px; }
.fsb-order-price-suffix { font-size:11px; color:#9ca3af; font-weight:400; margin-left:3px; }

/* --- Qty stepper --- */
.fsb-qty-wrap  { display:inline-flex; align-items:center; border:1.5px solid #e5e7eb; border-radius:8px; overflow:hidden; }
.fsb-qty-btn   { width:32px; height:32px; background:#f9fafb; border:none; cursor:pointer; font-size:18px; line-height:1; color:#374151; transition:background .15s; display:flex; align-items:center; justify-content:center; }
.fsb-qty-btn:hover { background:#ede9ff; color:#6c63ff; }
.fsb-qty-wrap input.fsb-qty-input,
.fsb-qty-wrap input.fsb-qty-input:not([type]),
input[type="number"].fsb-qty-input {
    width: 44px !important;
    height: 32px !important;
    border: none !important;
    border-left: 1.5px solid #e5e7eb !important;
    border-right: 1.5px solid #e5e7eb !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    -moz-appearance: textfield !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 32px !important;
}
.fsb-qty-wrap input.fsb-qty-input::-webkit-inner-spin-button,
.fsb-qty-wrap input.fsb-qty-input::-webkit-outer-spin-button { -webkit-appearance: none !important; margin: 0 !important; }
.fsb-qty-wrap input.fsb-qty-input:focus { background: #f5f3ff !important; }

/* --- Cards layout --- */
.fsb-order-cards { display:grid; grid-template-columns:repeat(var(--fsb-order-cols, 3), 1fr); gap:16px; width:100%; }
.fsb-order-card  { border:1.5px solid #e5e7eb; border-radius:10px; overflow:hidden; background:#fff; transition:box-shadow .2s, border-color .2s; display:flex; flex-direction:column; }
.fsb-order-card:hover { border-color:#a5b4fc; box-shadow:0 4px 16px rgba(108,99,255,.1); }
.fsb-order-card-body   { padding:14px; display:flex; flex-direction:column; gap:10px; flex:1; }
.fsb-order-card-header { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.fsb-order-card-footer { padding:10px 14px; background:#f9fafb; border-top:1px solid #f3f4f6; font-size:13px; color:#6b7280; display:flex; flex-direction:column; gap:8px; align-items:stretch; }
.fsb-order-card-footer .fsb-qty-wrap { align-self:flex-end; }
.fsb-order-card-footer > span { text-align:right; font-weight:600; color:#111827; }

/* --- Verzending --- */
.fsb-order-shipping-section { margin-top:20px; }
.fsb-order-shipping-options  { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.fsb-order-ship-option {
    display:flex; align-items:center; gap:10px;
    padding:10px 16px;
    border:1.5px solid #e5e7eb; border-radius:8px;
    cursor:pointer; transition:border-color .15s, background .15s;
    background:#fff;
}
.fsb-order-ship-option:has(input:checked) { border-color:#6c63ff; background:#f5f3ff; }
.fsb-order-ship-radio { accent-color:#6c63ff; }
.fsb-order-ship-label { font-size:14px; color:#374151; font-weight:500; }
.fsb-order-ship-price { font-size:13px; color:#6c63ff; font-weight:600; margin-left:auto; }

/* --- Samenvatting --- */
.fsb-order-summary {
    margin-top:20px;
    border:1.5px solid #e5e7eb;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
    max-width:360px;
    margin-left:auto;
}
.fsb-order-summary-row {
    display:flex; justify-content:space-between; align-items:center;
    padding:10px 16px;
    border-bottom:1px solid #f3f4f6;
    font-size:14px; color:#374151;
}
.fsb-order-summary-row:last-child { border-bottom:none; }
.fsb-order-total-row {
    background:#f3f2ff;
    font-weight:700; font-size:16px; color:#2D2859;
    padding:14px 16px;
}
.fsb-order-min-notice {
    padding:8px 16px;
    background:#fff3cd; color:#856404;
    font-size:12px; border-top:1px solid #ffc107;
}

/* Responsive */
@media (max-width:1024px) {
    .fsb-order-cards { grid-template-columns:repeat(var(--fsb-order-cols-tablet, 2), 1fr); }
}
@media (max-width:640px) {
    .fsb-order-thead { display:none; }
    .fsb-order-row   { flex-wrap:wrap; padding:12px; gap:8px; }
    .fsb-order-col-product,
    .fsb-order-col-price,
    .fsb-order-col-qty,
    .fsb-order-col-option,
    .fsb-order-col-subtotal { width:100%; padding:4px 0; }
    .fsb-order-col-subtotal { text-align:left; }
    .fsb-order-summary { max-width:100%; }
}
@media (max-width:600px) {
    .fsb-order-cards { grid-template-columns:repeat(var(--fsb-order-cols-mobile, 1), 1fr); }
}

/* ── Kortingscode ── */
.fsb-order-discount-section { margin-top:12px; }
.fsb-order-discount-wrap { display:flex; gap:8px; }
.fsb-discount-input {
    flex:1; height:38px; border:1.5px solid #e5e7eb; border-radius:8px;
    padding:0 12px; font-size:14px; transition:border-color .15s;
}
.fsb-discount-input:focus { outline:none; border-color:#6c63ff; }
.fsb-discount-apply-btn {
    height:38px; padding:0 16px; background:#2D2859; color:#fff;
    border:none; border-radius:8px; font-size:14px; font-weight:600;
    cursor:pointer; transition:background .15s; white-space:nowrap;
}
.fsb-discount-apply-btn:hover { background:#1a1640; }
.fsb-discount-msg { margin-top:6px; font-size:13px; }
.fsb-disc-ok  { color:#16a34a; }
.fsb-disc-err { color:#dc2626; }
.fsb-order-discount-display { color:#16a34a; font-weight:600; }

/* ── Captcha ── */
.fsb-recaptcha-wrap,
.fsb-turnstile-wrap { margin-bottom:14px; }
.fsb-submit-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.fsb-save-draft-btn {
    height:44px; padding:0 20px; background:#f5f3ff; color:#2D2859;
    border:2px solid #c4b5fd; border-radius:8px; font-size:14px; font-weight:600;
    cursor:pointer; transition:all .15s; white-space:nowrap;
}
.fsb-save-draft-btn:hover { background:#ede9ff; border-color:#a78bfa; }
.fsb-draft-notice {
    margin-top:8px; padding:8px 14px; background:#d1fae5; color:#065f46;
    border-radius:6px; font-size:13px; font-weight:600; display:none;
}

/* ── Frontend inzendingen widget ── */
.fsb-frontend-submissions { font-family:inherit; }
.fsb-no-submissions { text-align:center; padding:40px 20px; color:#6b7280; }
.fsb-no-sub-icon { font-size:40px; display:block; margin-bottom:12px; }
.fsb-sub-list { display:flex; flex-direction:column; gap:16px; }
.fsb-sub-card { border-radius:10px; overflow:hidden; border:1px solid #e5e7eb; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.fsb-sub-card-header {
    background:#2D2859; color:#fff;
    display:flex; align-items:center; justify-content:space-between;
    padding:12px 16px; gap:12px;
}
.fsb-sub-card-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.fsb-sub-number { font-size:16px; font-weight:700; color:#a78bfa; }
.fsb-sub-date { font-size:12px; opacity:.8; }
.fsb-sub-form { font-size:11px; background:rgba(255,255,255,.15); padding:2px 8px; border-radius:20px; }
.fsb-sub-card-aside { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.fsb-sub-amount { font-size:15px; font-weight:700; color:#a5f3fc; }
.fsb-sub-status { font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; }
.fsb-sub-status-completed { background:#d1fae5; color:#065f46; }
.fsb-sub-status-pending   { background:#fef3c7; color:#92400e; }
.fsb-sub-status-paid      { background:#dbeafe; color:#1e40af; }
.fsb-sub-status-failed    { background:#fee2e2; color:#991b1b; }
.fsb-sub-card-body { padding:14px 16px; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.fsb-sub-field, .fsb-sub-order-summary { display:flex; flex-direction:column; gap:2px; }
.fsb-sub-field-label { font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:#9ca3af; font-weight:700; }
.fsb-sub-field-value { font-size:13px; color:#111827; }

/* ════════════════════════════════════════════════════
   Terms & Conditions
   ════════════════════════════════════════════════════ */
.fsb-terms-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.fsb-terms-scroll {
    overflow-y: auto;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #4b5563;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}
.fsb-terms-scroll::-webkit-scrollbar { width: 6px; }
.fsb-terms-scroll::-webkit-scrollbar-track { background: #f9fafb; }
.fsb-terms-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.fsb-terms-checkbox-label {
    padding: 12px 16px;
    margin: 0;
    background: #fff;
}

/* ════════════════════════════════════════════════════
   GDPR Agreement
   ════════════════════════════════════════════════════ */
.fsb-gdpr-wrap {
    border-width: 1px;
    border-style: solid;
    border-radius: 8px;
    padding: 12px 16px;
}
.fsb-gdpr-shield {
    font-style: normal;
}
/* Zorg dat de label binnen gdpr-wrap en terms-wrap identiek uitgelijnd zijn */
.fsb-gdpr-wrap .fsb-acceptance-label,
.fsb-terms-checkbox-label {
    align-items: center;
    gap: 10px;
}

/* ════════════════════════════════════════════════════
   Checkable Grid
   ════════════════════════════════════════════════════ */
.fsb-grid-wrap {
    overflow-x: auto;
}
.fsb-grid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.fsb-grid-th {
    padding: 10px 14px;
    background: #f3f2ff;
    color: #2D2859;
    font-weight: 600;
    text-align: center;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}
.fsb-grid-th-empty {
    background: #fff;
    border-color: transparent;
}
.fsb-grid-row-label {
    padding: 10px 14px;
    font-weight: 500;
    color: #374151;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}
.fsb-grid-row-even { background: #fff; }
.fsb-grid-row-odd  { background: #fafafa; }
.fsb-grid-cell {
    text-align: center;
    padding: 8px;
    border: 1px solid #e5e7eb;
}
.fsb-grid-cell-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.fsb-grid-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.fsb-grid-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}
input[type="radio"] ~ .fsb-grid-indicator {
    border-radius: 50%;
}
.fsb-grid-input:checked ~ .fsb-grid-indicator {
    background: #6c63ff;
    border-color: #6c63ff;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.3 4.3a1 1 0 0 0-1.4 0L6.5 9.6 4.1 7.2a1 1 0 0 0-1.4 1.4l3.1 3.1a1 1 0 0 0 1.4 0l6-6a1 1 0 0 0 0-1.4z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}
input[type="radio"]:checked ~ .fsb-grid-indicator {
    background-image: none;
    box-shadow: inset 0 0 0 4px #fff;
}
.fsb-grid-cell-label:hover .fsb-grid-indicator {
    border-color: #6c63ff;
}
.fsb-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ════════════════════════════════════════════════════
   Section Break
   ════════════════════════════════════════════════════ */
.fsb-section-break {
    width: 100%;
    padding: 8px 0 4px;
}
.fsb-section-line {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin-bottom: 14px;
}
.fsb-section-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #2D2859;
}
.fsb-section-desc {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}
.fsb-section-style-boxed {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}
.fsb-section-style-colored {
    background: #f3f2ff;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #6c63ff;
}
.fsb-section-style-colored .fsb-section-title {
    color: #2D2859;
}

/* ════════════════════════════════════════════════════
   Rating (sterren / harten / duimen)
   ════════════════════════════════════════════════════ */
.fsb-rating-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.fsb-rating-item {
    font-size: 28px;
    cursor: pointer;
    color: #d1d5db;
    transition: color .15s, transform .1s;
    line-height: 1;
    user-select: none;
    position: relative;
    display: inline-block;
}
.fsb-rating-item:hover,
.fsb-rating-item.fsb-rating-active {
    transform: scale(1.15);
}
.fsb-rating-item.fsb-rating-filled { color: var(--fsb-rating-color, #f59e0b); }
.fsb-rating-item.fsb-rating-half-filled { color: var(--fsb-rating-color, #f59e0b); }
.fsb-rating-half {
    display: inline-block;
    width: 50%;
    overflow: hidden;
    position: absolute;
    top: 0;
    color: #d1d5db;
    font-size: 28px;
    line-height: 1;
}
.fsb-rating-half-left  { left: 0; }
.fsb-rating-half-right { left: 50%; }
.fsb-rating-half.fsb-rating-filled { color: var(--fsb-rating-color, #f59e0b); }
.fsb-rating-label-value {
    font-size: 13px;
    color: #6b7280;
    margin-left: 6px;
}

/* ════════════════════════════════════════════════════
   Signature (handtekening)
   ════════════════════════════════════════════════════ */
.fsb-signature-wrap {
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.fsb-signature-canvas {
    display: block;
    width: 100%;
    cursor: crosshair;
    touch-action: none;
}
.fsb-signature-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}
.fsb-signature-clear {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    color: #6b7280;
    transition: background .15s, color .15s;
}
.fsb-signature-clear:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.fsb-signature-hint {
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}
.fsb-signature-wrap.fsb-has-signature .fsb-signature-hint { display: none; }
.fsb-signature-wrap.fsb-error-sig { border-color: #ef4444; }

/* ════════════════════════════════════════════════════
   Address / postcodecheck
   ════════════════════════════════════════════════════ */
.fsb-address-wrap { display: flex; flex-direction: column; gap: 10px; }
.fsb-address-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.fsb-address-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 120px; }
.fsb-address-field-postcode { flex: 0 0 140px; }
.fsb-address-field-huisnr  { flex: 0 0 180px; }
.fsb-address-field-street  { flex: 2; }
.fsb-address-field-city    { flex: 1; min-width: 140px; }
.fsb-address-label { font-size: 12px; font-weight: 600; color: #6b7280; }
.fsb-address-hnr-wrap { display: flex; gap: 6px; }
.fsb-address-hnr-wrap .fsb-input:first-child { flex: 1; }
.fsb-address-hnr-wrap .fsb-input:last-child  { flex: 0 0 60px; }
.fsb-address-lookup-status {
    font-size: 12px;
    padding: 0 2px;
    min-height: 16px;
    transition: color .2s;
}
.fsb-address-lookup-status.fsb-addr-ok    { color: #059669; }
.fsb-address-lookup-status.fsb-addr-error { color: #dc2626; }
.fsb-address-lookup-status.fsb-addr-loading { color: #6b7280; }

/* ════════════════════════════════════════════════════
   Datumbereik
   ════════════════════════════════════════════════════ */
.fsb-daterange-wrap { display: flex; flex-direction: column; gap: 8px; }
.fsb-daterange-inputs {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.fsb-daterange-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.fsb-daterange-arrow {
    font-size: 20px;
    color: #9ca3af;
    padding-bottom: 10px;
    flex-shrink: 0;
}
.fsb-daterange-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.fsb-daterange-icon {
    position: absolute;
    left: 12px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}
.fsb-daterange-input-wrap .fsb-input {
    padding-left: 36px;
}
.fsb-daterange-summary {
    font-size: 13px;
    color: #6c63ff;
    font-weight: 500;
    min-height: 18px;
}

/* ════════════════════════════════════════════════════
   Quiz resultaat
   ════════════════════════════════════════════════════ */
.fsb-quiz-message { padding: 0 !important; background: transparent !important; }
.fsb-quiz-result {
    border: 2px solid #6c63ff;
    border-radius: 12px;
    padding: 24px;
    background: #fff;
    text-align: center;
}
.fsb-quiz-score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #6c63ff;
    margin-bottom: 16px;
}
.fsb-quiz-score-num   { font-size: 28px; font-weight: 700; line-height: 1; }
.fsb-quiz-score-label { font-size: 12px; color: #6b7280; }
.fsb-quiz-result-title   { font-size: 20px; margin: 0 0 8px; }
.fsb-quiz-result-message { font-size: 14px; color: #374151; margin-bottom: 16px; }
.fsb-quiz-breakdown {
    text-align: left;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fsb-quiz-field-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
}
.fsb-quiz-correct { background: #f0fdf4; color: #065f46; }
.fsb-quiz-wrong   { background: #fef2f2; color: #991b1b; }
.fsb-quiz-icon    { font-weight: 700; font-size: 14px; flex-shrink: 0; }
.fsb-quiz-field-name { font-weight: 600; }
.fsb-quiz-answer  { flex: 1; font-size: 12px; }
.fsb-quiz-pts     { margin-left: auto; font-size: 12px; font-weight: 600; white-space: nowrap; }


/* ═══════════════════════════════════════════════════════════════
   CONVERSATIONAL MODE
   ═══════════════════════════════════════════════════════════════ */

/* Inner skin wrapper — carries the color vars so Elementor's style attr on the outer div can't conflict */
.fsb-conv-skin {
    /* Defaults — all overridden by inline style from PHP/Elementor */
    --conv-bg: #0f172a;
    --conv-fg: #f8fafc;
    --conv-muted: #94a3b8;
    --conv-accent: #6366f1;
    --conv-input-bg: #1e293b;
    --conv-border: #334155;
    --conv-transition: 0.42s cubic-bezier(0.16, 1, 0.3, 1);

    background: var(--conv-bg);
    color: var(--conv-fg);
    border-radius: inherit;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Hide Elementor's own form bg when conv is active */
.fsb-form-wrapper[data-conversational="1"] {
    padding: 0 !important;
    background: transparent !important;
}

/* ── Progress bar ── */
.fsb-conv-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px 0;
    opacity: 0;
    transition: opacity 0.3s;
    flex-shrink: 0;
}
.fsb-conv-progress.visible { opacity: 1; }
.fsb-conv-progress-bar {
    flex: 1;
    height: 3px;
    background: var(--conv-border);
    border-radius: 99px;
    overflow: hidden;
}
.fsb-conv-progress-fill {
    height: 100%;
    background: var(--conv-accent);
    border-radius: 99px;
    transition: width 0.4s ease;
    width: 0%;
}
.fsb-conv-progress-label {
    font-size: 11px;
    color: var(--conv-muted);
    white-space: nowrap;
}

/* ── Intro screen ── */
.fsb-conv-intro {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--conv-bg);
    z-index: 20;
    padding: 40px 32px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.fsb-conv-intro.hiding {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}
.fsb-conv-intro-inner { max-width: 520px; text-align: center; }
.fsb-conv-intro-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--conv-fg);
    margin: 0 0 14px;
    line-height: 1.2;
}
.fsb-conv-intro-text {
    font-size: 1rem;
    color: var(--conv-muted);
    margin: 0 0 28px;
    line-height: 1.6;
}
.fsb-conv-start-btn {
    background: var(--conv-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.fsb-conv-start-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── Slide container ── */
.fsb-conv-slides {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

/* ── Individual slide (field or submit) ── */
.fsb-conv-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 32px;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity var(--conv-transition), transform var(--conv-transition);
    pointer-events: none;
}
.fsb-conv-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    z-index: 2;
}
.fsb-conv-slide.exiting {
    opacity: 0;
    transform: translateY(-28px);
    pointer-events: none;
    z-index: 1;
}

/* ── Question label ── */
.fsb-conv-slide .fsb-label {
    font-size: clamp(1.1rem, 3vw, 1.55rem) !important;
    font-weight: 600 !important;
    color: var(--conv-fg) !important;
    margin-bottom: 18px !important;
    display: block;
    line-height: 1.3;
}
.fsb-conv-slide .fsb-label::before {
    content: attr(data-conv-num) " →  ";
    color: var(--conv-accent);
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* ── Inputs ── */
.fsb-conv-slide input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=submit]):not([type=hidden]),
.fsb-conv-slide textarea,
.fsb-conv-slide select {
    background: var(--conv-input-bg) !important;
    border: 2px solid var(--conv-border) !important;
    color: var(--conv-fg) !important;
    font-size: 1.05rem !important;
    padding: 13px 16px !important;
    border-radius: 10px !important;
    transition: border-color 0.2s !important;
    max-width: 540px;
    width: 100%;
}
.fsb-conv-slide input:focus,
.fsb-conv-slide textarea:focus,
.fsb-conv-slide select:focus {
    border-color: var(--conv-accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.25) !important;
}
.fsb-conv-slide input::placeholder,
.fsb-conv-slide textarea::placeholder { color: var(--conv-muted) !important; }

/* ── OK button + key hint ── */
.fsb-conv-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}
.fsb-conv-ok-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--conv-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.fsb-conv-ok-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.fsb-conv-ok-btn svg { flex-shrink: 0; }
.fsb-conv-key-hint {
    font-size: 0.78rem;
    color: var(--conv-muted);
}
.fsb-conv-key-hint kbd {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--conv-border);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: inherit;
    font-size: 0.75rem;
}
.fsb-form-wrapper[data-conv-key-hint="0"] .fsb-conv-key-hint { display: none; }

/* ── Field error ── */
.fsb-conv-slide .fsb-field-error { color: #f87171 !important; font-size: 0.83rem; margin-top: 6px; }

/* ── Submit slide ── */
.fsb-conv-submit-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--conv-fg);
    margin: 0 0 22px;
}
.fsb-conv-slide .fsb-submit {
    margin-top: 4px;
}

/* ── Form success/error message ── */
.fsb-conv-skin .fsb-form-message {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 40px;
    text-align: center;
    z-index: 10;
    background: var(--conv-bg);
}
.fsb-conv-skin .fsb-form-message.success { color: #34d399; display: flex; }
.fsb-conv-skin .fsb-form-message.error   { color: #f87171; display: flex; }

/* ── Nav arrows (bottom right) ── */
.fsb-conv-nav {
    position: absolute;
    right: 20px;
    bottom: 16px;
    display: flex;
    gap: 6px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}
.fsb-conv-nav.visible { opacity: 1; }
.fsb-conv-nav-btn {
    width: 34px; height: 34px;
    border-radius: 7px;
    border: 1px solid var(--conv-border);
    background: rgba(255,255,255,0.06);
    color: var(--conv-fg);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
    font-size: 0.9rem;
    line-height: 1;
}
.fsb-conv-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.14); }
.fsb-conv-nav-btn:disabled { opacity: 0.25; cursor: default; }

/* ── Alignment ── */
.fsb-conv-align-center .fsb-conv-intro-inner { text-align: center; }
.fsb-conv-align-center .fsb-conv-slide       { align-items: center; text-align: center; }
.fsb-conv-align-center .fsb-conv-slide .fsb-label { text-align: center; }
.fsb-conv-align-center .fsb-conv-slide input,
.fsb-conv-align-center .fsb-conv-slide textarea,
.fsb-conv-align-center .fsb-conv-slide select { max-width: 540px; margin-left: auto !important; margin-right: auto !important; }
.fsb-conv-align-center .fsb-conv-slide .fsb-input-wrap { max-width: 540px; margin: 0 auto; }
.fsb-conv-align-center .fsb-conv-slide .fsb-field-wrap { width: 100%; }
.fsb-conv-align-center .fsb-conv-footer       { justify-content: center; }
.fsb-conv-align-center .fsb-conv-submit-slide { align-items: center; }

.fsb-conv-align-left .fsb-conv-intro-inner { text-align: left; }
.fsb-conv-align-left .fsb-conv-slide       { align-items: flex-start; text-align: left; }
.fsb-conv-align-left .fsb-conv-footer      { justify-content: flex-start; }
.fsb-conv-align-left .fsb-conv-submit-slide { align-items: flex-start; }
