/* OptiForm — verdiepingsvloer op bovenaanzicht (15-10-2026). Hoort bij verdieping.js.
   Nieuw blok alleen bij "Offerte mét ontwerp"; oud Ja/Nee + m²-blok alleen bij "Direct een offerte". */
.vd-oud { display: none; }
body.pad-direct .vd-oud { display: block; }
body.pad-direct .vd-nieuw { display: none; }

.vd-nieuw { font-family: 'Montserrat', sans-serif; color: #141E28; display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.vd-nieuw [hidden] { display: none !important; }

.vd-kop { background: var(--petrol, #2A4A5E); color: #fff; border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vd-kop-tekst { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.vd-titel { font-size: 1.2rem; font-weight: 800; }
.vd-sub { font-size: 0.85rem; color: #dfe8ee; line-height: 1.45; }
.vd-schakel { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px 0 16px; border-radius: 26px; border: 2px solid #fff; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.vd-schakel-baan { width: 58px; height: 32px; border-radius: 16px; background: #5b6f7c; position: relative; display: block; transition: background .15s; }
.vd-schakel-knop { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 12px; background: #fff; transition: left .15s; }
.vd-schakel.aan .vd-schakel-baan { background: var(--rust, #B5541E); }
.vd-schakel.aan .vd-schakel-knop { left: 30px; }

.vd-leeg { padding: 12px 14px; background: #fff3e0; border: 1px solid #e0a060; border-radius: 10px; font-size: 0.85rem; color: #7d4533; }

.vd-label { font-weight: 700; font-size: 0.95rem; color: var(--petrol, #2A4A5E); }
.vd-aantal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vd-stepper { display: inline-flex; align-items: center; gap: 6px; }
.vd-stepper button, .vd-schuif-rij button { width: 44px; height: 44px; border-radius: 10px; border: 2px solid #c9c2b6; background: #fff; font-size: 1.2rem; font-weight: 700; color: var(--petrol, #2A4A5E); cursor: pointer; }
.vd-stepper button:disabled, .vd-schuif-rij button:disabled { opacity: .4; cursor: default; }
.vd-aantal-getal { min-width: 30px; text-align: center; font-size: 1.15rem; font-weight: 800; }
.vd-hint { font-size: 0.8rem; color: #5b646c; }

.vd-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.vd-tabs:empty { display: none; }
.vd-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 2px solid #e3ddd2; background: #fff; font: inherit; font-size: 0.85rem; font-weight: 700; color: #141E28; cursor: pointer; }
.vd-tab i { width: 12px; height: 12px; border-radius: 6px; display: inline-block; }
.vd-tab.actief { border-color: var(--petrol, #2A4A5E); background: #eef3f6; }
.vd-tab-let { color: #c62828; }

.vd-plan-kaart { background: #fff; border: 1px solid #e3ddd2; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.vd-plan-kop { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; font-weight: 700; color: var(--petrol, #2A4A5E); }
.vd-plan-kop span + span { font-weight: 500; color: #5b646c; }
.vd-plan { width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.vd-plan svg { width: 100%; height: auto; display: block; font-family: 'Montserrat', sans-serif; }
.vd-greep { cursor: grab; outline: none; }
.vd-greep:focus circle:nth-child(2) { stroke: #141E28; stroke-width: 4; }
body.vd-slepen, body.vd-slepen .vd-greep { cursor: grabbing; }
.vd-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.75rem; color: #3a4650; }
.vd-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.vd-legenda i { display: inline-block; }
.lg-greep { width: 14px; height: 14px; border-radius: 7px; background: #f59e0b; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #c9c2b6; }
.lg-kolom { width: 11px; height: 11px; background: #D47A3A; border: 2px solid #141E28; box-sizing: border-box; }
.lg-spant { width: 9px; height: 9px; background: #141E28; }
.lg-item { width: 18px; height: 6px; background: #2A4A5E; }
.lg-rood { width: 18px; height: 6px; background: #c62828; }
.vd-knop { align-self: flex-start; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 2px solid var(--petrol, #2A4A5E); background: #fff; color: var(--petrol, #2A4A5E); font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; }

.vd-hoogte { background: #fff; border: 1px solid #e3ddd2; border-radius: 14px; padding: 14px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.vd-hoogte:empty { display: none; }
.vd-hoogte-in { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.vd-schuif-rij { display: flex; align-items: center; gap: 8px; }
.vd-schuif-rij input[type=range] { flex: 1; height: 32px; accent-color: var(--rust, #B5541E); }
.vd-schuif-grenzen { display: flex; justify-content: space-between; font-size: 0.75rem; color: #5b646c; padding: 0 52px; }
.vd-schuif-uitleg { font-size: 0.75rem; color: #5b646c; }
.vd-hoogte-uit { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.vd-tegel { min-width: 120px; background: #F5F2EC; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 0.75rem; color: #5b646c; }
.vd-tegel b { font-size: 1.35rem; font-weight: 800; color: #141E28; }
.vd-tegel-boven { background: var(--rust, #B5541E); color: #fbe9dd; min-width: 150px; }
.vd-tegel-boven b { color: #fff; font-size: 1.6rem; }
.vd-tegel-boven.fout { background: #c62828; }
.vd-plus { display: flex; align-items: center; font-size: 0.72rem; color: #5b646c; }

.vd-totaal { background: #F5F2EC; border-radius: 14px; padding: 12px 14px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.vd-totaal:empty { display: none; }
.vd-totaal-getal { display: flex; flex-direction: column; }
.vd-totaal-getal span { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--petrol, #2A4A5E); }
.vd-totaal-getal b { font-size: 1.6rem; font-weight: 800; color: #7d4533; }
.vd-totaal-info { flex: 1 1 260px; font-size: 0.8rem; color: #141E28; line-height: 1.5; }
.vd-totaal-info span { color: #5b646c; font-size: 0.75rem; }

.vd-opm-kaart { background: #fff; border: 1px solid #e3ddd2; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.vd-melding { border-radius: 10px; padding: 10px 12px; font-size: 0.85rem; line-height: 1.5; }
.vd-melding.oranje { background: #fff3e0; border: 1px solid #e0a060; color: #7d4533; }
.vd-melding.rood { background: #ffebee; border: 2px solid #c62828; color: #b71c1c; font-weight: 600; }
#vd-meldingen { display: flex; flex-direction: column; gap: 8px; }
.vd-geen { font-size: 0.85rem; color: #3a4650; }
.vd-opm-label { font-size: 0.82rem; color: #3a4650; }
.vd-opm-veld { width: 100%; box-sizing: border-box; border: 2px solid #c9c2b6; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 0.9rem; resize: vertical; }

.vd-modus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vd-modus-knop { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 14px; min-height: 56px; border-radius: 12px; border: 2px solid #e3ddd2; background: #fff; font: inherit; color: #141E28; cursor: pointer; }
.vd-modus-knop b { font-size: 0.92rem; }
.vd-modus-knop span { font-size: 0.78rem; color: #5b646c; }
.vd-modus-knop.actief { border-color: var(--rust, #B5541E); background: #fdf3ec; }
@media (max-width: 480px) { .vd-modus { grid-template-columns: 1fr; } }
.vd-m2-kaart { background: #fff; border: 1px solid #e3ddd2; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.vd-m2-rij { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.vd-m2-rij input { width: 120px; height: 46px; box-sizing: border-box; border: 2px solid var(--petrol, #2A4A5E); border-radius: 10px; font: inherit; font-size: 1.1rem; font-weight: 700; text-align: center; }
