/**
 * Climax Autoglas — Ruitschade Wizard Stijlen
 * Premium conversiewizard
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ===== CUSTOM PROPERTIES ===== */
:root {
    /* ── Primair rood: dieper, rijker ── */
    --cw-red:           #E8220C;
    --cw-red-dark:      #C41808;
    --cw-red-deep:      #9B1206;
    --cw-red-light:     #FF4433;
    --cw-red-glow:      rgba(232, 34, 12, 0.06);
    --cw-red-border:    rgba(232, 34, 12, 0.18);
    --cw-red-shadow:    rgba(232, 34, 12, 0.20);
    --cw-red-gradient:  linear-gradient(135deg, #E8220C 0%, #FF4433 100%);

    /* ── Neutrals: warmere grijzen ── */
    --cw-bg:            #F4F6F9;
    --cw-bg-subtle:     #FAFBFD;
    --cw-white:         #FFFFFF;
    --cw-surface:       #F8FAFB;
    --cw-surface-hover: #F0F3F5;
    --cw-surface-glass: rgba(255, 255, 255, 0.72);
    --cw-border:        #E1E5EB;
    --cw-border-light:  #EEF1F4;
    --cw-border-subtle: #F3F5F7;

    /* ── Tekst: scherper contrast ── */
    --cw-text:          #1A1D23;
    --cw-text-sec:      #3D4152;
    --cw-text-light:    #6B7080;
    --cw-text-muted:    #9DA3AE;

    /* ── Accent kleuren ── */
    --cw-green:         #10B981;
    --cw-green-bg:      #ECFDF5;
    --cw-green-glow:    rgba(16, 185, 129, 0.08);
    --cw-amber:         #F59E0B;
    --cw-amber-bg:      #FFFBEB;
    --cw-gold:          #F59E0B;
    --cw-kenteken-bg:   #FCC419;
    --cw-nl-blue:       #003DA5;

    /* ── Schaduwen systeem ── */
    --cw-shadow-xs:     0 1px 2px rgba(0,0,0,0.04);
    --cw-shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --cw-shadow-md:     0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --cw-shadow-lg:     0 8px 28px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --cw-shadow-xl:     0 16px 48px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
    --cw-shadow-glow:   0 0 0 1px rgba(232,34,12,0.06), 0 4px 16px rgba(232,34,12,0.12);
    --cw-shadow-green:  0 4px 14px rgba(16,185,129,0.25);

    /* ── Motion ── */
    --cw-ease:          cubic-bezier(0.16, 1, 0.3, 1);
    --cw-ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --cw-ease-out:      cubic-bezier(0, 0, 0.2, 1);
    --cw-duration:      280ms;
    --cw-duration-slow: 450ms;

    /* ── Radius ── */
    --cw-radius-xs:     6px;
    --cw-radius-sm:     8px;
    --cw-radius:        12px;
    --cw-radius-lg:     16px;
    --cw-radius-xl:     20px;
    --cw-radius-full:   9999px;

    --cw-font:          'Poppins', system-ui, -apple-system, sans-serif;
    --cw-mono:          'JetBrains Mono', 'Courier New', monospace;
}

/* ===== RESET & BASIS ===== */
.cw-root *,
.cw-root *::before,
.cw-root *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.cw-root {
    font-family: var(--cw-font);
    font-size: 15px;
    color: var(--cw-text);
    background: var(--cw-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

.cw-noscript {
    background: var(--cw-white);
    border-radius: var(--cw-radius);
    padding: 32px;
    text-align: center;
    margin: 40px auto;
    max-width: 480px;
}

/* ===== LOADING STATE ===== */
.cw-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 16px;
    color: var(--cw-text-light);
}
.cw-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--cw-border);
    border-top-color: var(--cw-red);
    border-radius: 50%;
    animation: cwSpin 0.7s linear infinite;
}
@keyframes cwSpin { to { transform: rotate(360deg); } }

/* ===== ANIMATIES ===== */
@keyframes ca {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes caFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes caSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cw-anim    { animation: ca 400ms var(--cw-ease) both; }
.cw-anim-2  { animation: ca 400ms var(--cw-ease) 60ms both; }
.cw-anim-3  { animation: ca 400ms var(--cw-ease) 120ms both; }
.cw-anim-4  { animation: ca 400ms var(--cw-ease) 180ms both; }

/* ===== STICKY HEADER — v2 SIMPLIFIED (max 50px) ===== */
.cw-header {
    position: sticky;
    top: 0;
    z-index: 50;
    max-height: 50px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cw-border-light);
    padding: 12px 20px;
}
.cw-header-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cw-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.cw-brand-badge {
    width: 34px;
    height: 34px;
    background: var(--cw-red);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}
.cw-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--cw-text);
    line-height: 1.1;
}
.cw-brand-tag {
    font-size: 11px;
    color: var(--cw-text-light);
    font-weight: 400;
}
.cw-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.cw-icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--cw-font);
    cursor: pointer;
    border: 1px solid var(--cw-border);
    background: var(--cw-white);
    color: var(--cw-text-sec);
    text-decoration: none;
    transition: all 160ms ease;
}
.cw-icon-btn:hover {
    background: var(--cw-surface);
}
.cw-icon-btn svg {
    flex-shrink: 0;
}
.cw-icon-btn-wa {
    color: #16A34A;
    border-color: rgba(22,163,74,0.25);
}
.cw-icon-btn-wa:hover {
    background: #F0FDF4;
}
.cw-tel-label {
    display: none;
}
@media (min-width: 480px) {
    .cw-tel-label { display: inline; }
}

/* ===== PROGRESS BAR ===== */
.cw-progress {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cw-border-light);
    padding: 12px 20px;
}
.cw-progress-inner {
    max-width: 760px;
    margin: 0 auto;
}
.cw-progress-track {
    display: flex;
    gap: 0;
}
.cw-progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
}
.cw-progress-line {
    height: 3px;
    width: 100%;
    border-radius: 2px;
    background: var(--cw-border);
    transition: background 400ms var(--cw-ease);
}
.cw-progress-step.is-done .cw-progress-line {
    background: var(--cw-red);
}
.cw-progress-step.is-active .cw-progress-line {
    background: rgba(255,0,0,0.6);
}
.cw-progress-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--cw-text-muted);
    letter-spacing: 0.02em;
    transition: color 300ms ease;
    white-space: nowrap;
}
.cw-progress-step.is-active .cw-progress-label {
    color: var(--cw-red);
    font-weight: 700;
}
.cw-progress-step.is-done .cw-progress-label {
    color: var(--cw-text-light);
}

/* ===== MAIN CONTENT AREA ===== */
.cw-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* ===== STAP HEADER ===== */
.cw-step-header {
    margin-bottom: 24px;
}
.cw-step-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--cw-text);
    line-height: 1.2;
    margin-bottom: 6px;
}
.cw-step-subtitle {
    font-size: 14px;
    color: var(--cw-text-light);
    font-weight: 400;
}

/* ===== SECTIE LABEL ===== */
.cw-section-label {
    font-size: 12px;
    font-weight: 800;
    color: #2D2D2D;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

/* ===== KAARTEN (selectie) ===== */
.cw-card {
    background: var(--cw-white);
    border: 1.5px solid var(--cw-border);
    border-radius: var(--cw-radius);
    padding: 16px 18px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--cw-shadow-xs);
    transition: all var(--cw-duration) var(--cw-ease);
    -webkit-tap-highlight-color: transparent;
}
.cw-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cw-red-gradient);
    opacity: 0;
    transition: opacity var(--cw-duration) var(--cw-ease);
}
.cw-card:hover {
    border-color: var(--cw-border);
    box-shadow: var(--cw-shadow-md);
    transform: translateY(-2px);
}
.cw-card:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 100ms;
}
.cw-card.is-selected {
    background: var(--cw-bg-subtle);
    border-color: var(--cw-red);
    box-shadow: var(--cw-shadow-glow);
}
.cw-card.is-selected::before {
    opacity: 1;
}

/* Checkmark reveal bij selectie */
.cw-sel-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cw-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transform: scale(0);
    transition: transform var(--cw-duration) var(--cw-ease-bounce);
}
.cw-card.is-selected .cw-sel-check {
    transform: scale(1);
}

/* Grid layouts voor kaarten */
.cw-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cw-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ===== AUTO SVG WRAPPER ===== */
.cw-auto-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}
.cw-auto-hint {
    font-size: 13px;
    color: var(--cw-text-light);
    text-align: center;
}
.cw-auto-svg-wrap {
    position: relative;
    display: inline-block;
}
.cw-auto-svg-wrap svg {
    max-width: 195px;
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* Klikbare zones in de auto SVG */
.cw-ruit-zone {
    cursor: pointer;
    transition: all 200ms ease;
}
.cw-ruit-zone:hover .cw-zone-fill {
    fill: rgba(255,0,0,0.12);
    stroke: var(--cw-red);
    stroke-width: 1.5;
}
.cw-ruit-zone.is-selected .cw-zone-fill {
    fill: rgba(255,0,0,0.18);
    stroke: var(--cw-red);
    stroke-width: 2;
    filter: drop-shadow(0 0 6px rgba(255,0,0,0.3));
}
.cw-zone-label {
    font-family: var(--cw-font);
    font-size: 8px;
    font-weight: 700;
    fill: var(--cw-text-sec);
    pointer-events: none;
    transition: fill 200ms ease;
}
.cw-ruit-zone.is-selected .cw-zone-label {
    fill: var(--cw-red-dark);
    font-weight: 800;
}
.cw-ruit-zone:hover .cw-zone-label {
    fill: var(--cw-red);
}

/* Geselecteerde ruit badge */
.cw-selected-ruit-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 34, 12, 0.08);
    border: 1.5px solid rgba(232, 34, 12, 0.25);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cw-red-dark);
    animation: ca 300ms var(--cw-ease) both;
}
.cw-selected-ruit-badge svg {
    color: var(--cw-red);
}

/* ===== SCHADE GROOTTE KAARTEN ===== */
.cw-schade-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 20px 16px;
}
.cw-schade-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cw-surface) 0%, var(--cw-border-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--cw-duration) var(--cw-ease);
    color: var(--cw-text-light);
}
.cw-schade-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    border: 1.5px dashed var(--cw-border-light);
    opacity: 0;
    transition: opacity var(--cw-duration) var(--cw-ease);
}
.cw-card:hover .cw-schade-icon::after {
    opacity: 1;
}
.cw-card.is-selected .cw-schade-icon {
    background: linear-gradient(135deg, rgba(232,34,12,0.08) 0%, rgba(232,34,12,0.03) 100%);
    color: var(--cw-red);
}
.cw-card.is-selected .cw-schade-icon::after {
    border-color: var(--cw-red-border);
    opacity: 1;
    border-style: solid;
}
.cw-schade-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--cw-text);
}
.cw-schade-sub {
    font-size: 12px;
    color: var(--cw-text-light);
}

/* Reparatie/vervanging banner */
.cw-advice-banner {
    border-radius: var(--cw-radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    animation: caSlideDown 300ms var(--cw-ease) both;
    margin-top: 8px;
    backdrop-filter: blur(8px);
}
.cw-advice-banner-green {
    background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(16,185,129,0.03) 100%);
    border: 1px solid rgba(16,185,129,0.15);
    color: #047857;
}
.cw-advice-banner-amber {
    background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, rgba(245,158,11,0.03) 100%);
    border: 1px solid rgba(245,158,11,0.15);
    color: #92400E;
}
.cw-advice-banner svg {
    flex-shrink: 0;
}

/* ===== PERIODE EN OORZAAK KAARTJES ===== */
.cw-option-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
}
.cw-option-check {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--cw-border);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms ease;
}
.cw-card.is-selected .cw-option-check {
    background: var(--cw-red);
    border-color: var(--cw-red);
}
.cw-option-check svg {
    display: none;
    color: #fff;
}
.cw-card.is-selected .cw-option-check svg {
    display: block;
}

/* ===== KENTEKEN INPUT ===== */
.cw-kenteken-wrap {
    display: flex;
    align-items: stretch;
    border: 2px solid #D4A800;
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 2px 6px rgba(0,0,0,0.08),
        0 0 0 3px rgba(212,168,0,0.1);
    overflow: hidden;
    max-width: 420px;
}
.cw-kenteken-wrap:focus-within {
    border-color: #B08C00;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 2px 6px rgba(0,0,0,0.10),
        0 0 0 3px rgba(212,168,0,0.18);
}
.cw-kenteken-nl {
    background: linear-gradient(180deg, #003DA5 0%, #002D7A 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    flex-shrink: 0;
}
.cw-kenteken-input {
    flex: 1;
    background: linear-gradient(180deg, #FFD43B 0%, #FCC419 50%, #F5B800 100%);
    border: none;
    outline: none;
    font-family: var(--cw-mono);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    padding: 12px 16px;
    width: 0;
    min-width: 0;
}
.cw-kenteken-input::placeholder {
    color: rgba(0,0,0,0.35);
    letter-spacing: 0.04em;
}
.cw-kenteken-btn {
    background: var(--cw-red-gradient);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 0 22px;
    font-family: var(--cw-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: opacity 160ms ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.cw-kenteken-btn:hover { opacity: 0.88; }
.cw-kenteken-btn:disabled {
    background: var(--cw-text-muted);
    cursor: not-allowed;
    opacity: 1;
}

/* Voertuig resultaat */
.cw-voertuig-card {
    background: var(--cw-white);
    border: 1.5px solid var(--cw-green);
    border-radius: var(--cw-radius);
    padding: 18px 20px;
    box-shadow: 0 0 0 3px var(--cw-green-glow), var(--cw-shadow-sm);
    animation: ca 350ms var(--cw-ease) both;
}
.cw-voertuig-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-weight: 700;
    color: var(--cw-green);
    font-size: 14px;
}
.cw-check-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--cw-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--cw-shadow-green);
    flex-shrink: 0;
}
.cw-voertuig-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cw-voertuig-field-label {
    font-size: 11px;
    color: var(--cw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.cw-voertuig-field-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--cw-text);
}
.cw-rdw-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    border-radius: var(--cw-radius);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    animation: caSlideDown 250ms ease both;
}

/* ===== FORMULIERVELDEN ===== */
.cw-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.cw-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--cw-text-sec);
}
.cw-label-required::after {
    content: ' *';
    color: var(--cw-red);
}
.cw-input,
.cw-select {
    font-family: var(--cw-font);
    font-size: 15px;
    color: var(--cw-text);
    background: var(--cw-white);
    border: 1.5px solid var(--cw-border);
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    width: 100%;
    -webkit-appearance: none;
}
.cw-input:focus,
.cw-select:focus {
    border-color: var(--cw-red);
    box-shadow: 0 0 0 3px var(--cw-red-glow);
}
.cw-input::placeholder {
    color: var(--cw-text-muted);
}
.cw-input.has-error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

/* Formulier rijen */
.cw-form-grid {
    display: grid;
    gap: 16px;
}
.cw-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cw-form-row-pc {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
}
.cw-input-small {
    max-width: 100px;
}

/* Aanhef buttons */
.cw-aanhef-group {
    display: flex;
    gap: 8px;
}
.cw-aanhef-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid var(--cw-border);
    border-radius: 8px;
    background: var(--cw-white);
    font-family: var(--cw-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--cw-text-sec);
    cursor: pointer;
    transition: all 180ms ease;
}
.cw-aanhef-btn:hover {
    background: var(--cw-surface);
}
.cw-aanhef-btn.is-selected {
    background: var(--cw-red);
    border-color: var(--cw-red);
    color: #fff;
}

/* ===== DATUM PICKER (horizontaal scrollbaar) ===== */
.cw-datum-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.cw-datum-scroll::-webkit-scrollbar { display: none; }

.cw-datum-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 64px;
    padding: 14px 10px;
    border-radius: var(--cw-radius);
    background: var(--cw-white);
    border: 1.5px solid var(--cw-border);
    cursor: pointer;
    box-shadow: var(--cw-shadow-xs);
    transition: all var(--cw-duration) var(--cw-ease);
    flex-shrink: 0;
}
.cw-datum-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--cw-shadow-md);
}
.cw-datum-item.is-selected {
    background: var(--cw-red-gradient);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(232,34,12,0.30);
    transform: translateY(-2px);
}
.cw-datum-dag {
    font-size: 10px;
    font-weight: 600;
    color: var(--cw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cw-datum-item.is-selected .cw-datum-dag {
    color: rgba(255,255,255,0.8);
}
.cw-datum-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--cw-text);
    line-height: 1;
}
.cw-datum-item.is-selected .cw-datum-num {
    color: #fff;
}
.cw-datum-maand {
    font-size: 10px;
    color: var(--cw-text-light);
    font-weight: 500;
}
.cw-datum-item.is-selected .cw-datum-maand {
    color: rgba(255,255,255,0.8);
}

/* ===== TIJDSTIP GRID ===== */
.cw-tijden-grid {
    display: contents; /* geneutraliseerd — tijdstip gebruikt nu .cw-tijd-grid */
}
.cw-tijd-item {
    font-family: 'Montserrat', var(--cw-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--cw-text-sec);
    background: var(--cw-white);
    border: 1.5px solid var(--cw-border);
    border-radius: var(--cw-radius-sm);
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--cw-shadow-xs);
    transition: all var(--cw-duration) var(--cw-ease);
}
.cw-tijd-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--cw-shadow-sm);
    border-color: var(--cw-red-border);
}
.cw-tijd-item.is-selected {
    background: var(--cw-red-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(232,34,12,0.25);
    transform: translateY(-1px);
}

/* ===== LOCATIE KAARTEN ===== */
.cw-locatie-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}
.cw-locatie-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--cw-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: background 200ms ease;
}
.cw-card.is-selected .cw-locatie-icon {
    background: rgba(255,0,0,0.1);
}
.cw-locatie-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--cw-text);
}
.cw-locatie-sub {
    font-size: 12px;
    color: var(--cw-text-light);
    margin-top: 2px;
}

/* Vestigings card */
.cw-vestiging-card {
    background: var(--cw-white);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius);
    padding: 18px 20px;
    animation: ca 300ms var(--cw-ease) both;
}
.cw-vestiging-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.cw-vestiging-pin {
    font-size: 20px;
    margin-top: 1px;
}
.cw-vestiging-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--cw-text);
}
.cw-vestiging-adres {
    font-size: 13px;
    color: var(--cw-text-light);
    margin-top: 3px;
}
.cw-bovag-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--cw-green-bg);
    color: #15803D;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 10px;
}

/* ===== SERVICE INFO CARDS ===== */
.cw-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    animation: ca 350ms var(--cw-ease) 80ms both;
}
.cw-service-card {
    background: var(--cw-white);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius);
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--cw-shadow-xs);
    transition: all var(--cw-duration) var(--cw-ease);
}
.cw-service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cw-shadow-md);
}
.cw-service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cw-surface) 0%, var(--cw-border-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 10px;
}
.cw-service-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--cw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.cw-service-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--cw-text);
}

/* ===== SAMENVATTING STAP 5 ===== */
.cw-confirm-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.cw-confirm-icon {
    width: 56px;
    height: 56px;
    background: var(--cw-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 20px rgba(255,0,0,0.3);
}
.cw-summary-table {
    background: var(--cw-white);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}
.cw-summary-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--cw-border-light);
    align-items: center;
}
.cw-summary-row:last-child {
    border-bottom: none;
}
.cw-summary-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--cw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cw-summary-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--cw-text);
}
.cw-summary-kenteken {
    display: inline-block;
    background: var(--cw-kenteken-bg);
    color: #1a1a1a;
    font-family: var(--cw-mono);
    font-weight: 700;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}
.cw-summary-datum {
    font-weight: 700;
    color: var(--cw-red-dark);
}

/* Akkoord checkbox */
.cw-akkoord-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--cw-white);
    border: 1.5px solid var(--cw-border);
    border-radius: var(--cw-radius);
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color 200ms ease;
    margin-bottom: 16px;
}
.cw-akkoord-wrap:has(.cw-akkoord-check:checked) {
    border-color: var(--cw-red);
    background: var(--cw-red-glow);
}
.cw-akkoord-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--cw-border);
    border-radius: 5px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--cw-red);
    margin-top: 1px;
}
.cw-akkoord-text {
    font-size: 14px;
    color: var(--cw-text-sec);
    line-height: 1.5;
}
.cw-akkoord-text a {
    color: var(--cw-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== BOTTOM BAR (hidden in v4 — inline nav buttons used instead) ===== */
.cw-bottom-bar {
    display: none !important;
}
.cw-bottom-bar-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cw-bottom-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cw-step-counter {
    font-size: 13px;
    color: var(--cw-text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Knoppen */
.cw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--cw-radius);
    font-family: var(--cw-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 200ms ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}
.cw-btn-primary {
    background: linear-gradient(135deg, #16A34A 0%, #22C55E 50%, #16A34A 100%);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 4px 14px rgba(22,163,74,0.35);
}
.cw-btn-primary:hover:not(:disabled) {
    background-position: right center;
    box-shadow: 0 6px 20px rgba(22,163,74,0.45);
    transform: translateY(-1px);
}
.cw-btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(22,163,74,0.3);
}
.cw-btn-primary:disabled {
    background: #CBD5E1;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}
.cw-btn-confirm {
    box-shadow: 0 6px 24px rgba(22,163,74,0.4);
}
.cw-btn-secondary {
    background: var(--cw-red);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(232, 34, 12, 0.20);
}
.cw-btn-secondary:hover {
    background: var(--cw-red-dark, #C41C07);
    box-shadow: 0 4px 14px rgba(232, 34, 12, 0.30);
}
.cw-btn-loading {
    opacity: 0.75;
    pointer-events: none;
}

/* ===== SUCCES SCHERM ===== */
.cw-success-screen {
    text-align: center;
    padding: 48px 24px;
    animation: ca 500ms var(--cw-ease) both;
}
.cw-success-icon {
    width: 80px;
    height: 80px;
    background: var(--cw-green-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--cw-green);
    font-size: 36px;
}
.cw-success-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--cw-text);
    margin-bottom: 12px;
}
.cw-success-text {
    font-size: 15px;
    color: var(--cw-text-light);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 32px;
}
.cw-success-info {
    background: var(--cw-white);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-lg);
    padding: 20px 24px;
    display: inline-block;
    text-align: left;
    margin-bottom: 24px;
}
.cw-success-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOUTMELDING ===== */
.cw-error-msg {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    border-radius: var(--cw-radius);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    animation: caSlideDown 250ms ease both;
    margin-bottom: 8px;
}

/* ===== DIVIDER ===== */
.cw-divider {
    height: 1px;
    background: var(--cw-border-light);
    margin: 20px 0;
}

/* ===== SPACER ===== */
.cw-spacer { height: 24px; }
.cw-spacer-sm { height: 12px; }

/* ===== FULL-WIDTH GRIJZE ACHTERGROND (v4) ===== */
#climax-wizard-root {
    background: #F0F4F7;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

/* ===== INLINE NAV KNOPPEN (v4) ===== */
.cw-nav-inline {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--cw-border-light);
}
.cw-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
}

/* ===== SECTIE DIVIDER (v4 — gegevens/afspraak scheiding) ===== */
.cw-section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 24px;
}
.cw-section-divider::before,
.cw-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--cw-border);
}
.cw-section-divider-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--cw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ===== PRINT STIJLEN ===== */
@media print {
    .cw-header,
    .cw-progress,
    .cw-bottom-bar {
        display: none !important;
    }
    .cw-content {
        padding-bottom: 0;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .cw-step-title {
        font-size: 19px;
    }
    .cw-grid-2,
    .cw-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .cw-form-row-2 {
        grid-template-columns: 1fr;
    }
    .cw-service-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cw-service-grid .cw-service-card:last-child {
        grid-column: span 2;
    }
    .cw-voertuig-grid {
        grid-template-columns: 1fr;
    }
    .cw-summary-row {
        grid-template-columns: 100px 1fr;
    }
    .cw-btn {
        padding: 11px 16px;
        font-size: 13px;
    }
}
@media (max-width: 440px) {
    .cw-grid-3 {
        grid-template-columns: 1fr;
    }
    .cw-grid-2 {
        grid-template-columns: 1fr;
    }
    .cw-service-grid {
        grid-template-columns: 1fr;
    }
    .cw-service-grid .cw-service-card:last-child {
        grid-column: auto;
    }
}

/* ================================================================
   CLIMAX WIZARD v5.0 — DESIGN UPGRADE 10/10
   ================================================================ */

/* ===== STEPPER PROGRESS BAR ===== */
.cw-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 20px 24px 16px;
    max-width: 500px;
    margin: 0 auto;
}
.cw-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cw-step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all var(--cw-duration) var(--cw-ease);
    position: relative;
    z-index: 2;
}
.cw-step-dot.is-done {
    background: var(--cw-green);
    color: #fff;
    box-shadow: var(--cw-shadow-green);
    font-size: 14px;
}
.cw-step-dot.is-active {
    width: 34px;
    height: 34px;
    background: var(--cw-red);
    color: #fff;
    box-shadow: var(--cw-shadow-glow);
    animation: cwPulse 2.2s ease-in-out infinite;
}
.cw-step-dot.is-future {
    background: var(--cw-bg);
    color: var(--cw-text-muted);
    border: 2px solid var(--cw-border);
}
.cw-step-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--cw-text-muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color var(--cw-duration) ease;
}
.cw-step-item.is-active .cw-step-label {
    color: var(--cw-red);
    font-weight: 700;
}
.cw-step-item.is-done .cw-step-label {
    color: var(--cw-text-light);
}
.cw-step-connector {
    flex: 1;
    height: 2px;
    background: var(--cw-border);
    margin-top: 14px;
    transition: background var(--cw-duration-slow) var(--cw-ease);
    min-width: 16px;
}
.cw-step-connector.is-done {
    background: var(--cw-green);
}
@keyframes cwPulse {
    0%, 100% { box-shadow: var(--cw-shadow-glow); }
    50% { box-shadow: 0 0 0 1px rgba(232,34,12,0.06), 0 4px 16px rgba(232,34,12,0.18), 0 0 0 7px rgba(232,34,12,0.07); }
}
@media (max-width: 360px) {
    .cw-step-label { display: none; }
    .cw-stepper { padding: 14px 12px 10px; }
}

/* ===== FLOATING LABELS ===== */
.cw-float-field {
    position: relative;
    margin-bottom: 0;
}
.cw-float-input {
    font-family: var(--cw-font);
    font-size: 15px;
    color: var(--cw-text);
    background: var(--cw-white);
    border: 1.5px solid var(--cw-border);
    border-radius: var(--cw-radius);
    padding: 22px 14px 8px;
    width: 100%;
    outline: none;
    transition: border-color var(--cw-duration) var(--cw-ease),
                box-shadow var(--cw-duration) var(--cw-ease);
    -webkit-appearance: none;
}
.cw-float-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--cw-text-muted);
    pointer-events: none;
    transition: all var(--cw-duration) var(--cw-ease);
    transform-origin: left top;
    font-family: var(--cw-font);
    font-weight: 500;
}
.cw-float-input:focus + .cw-float-label,
.cw-float-input:not(:placeholder-shown) + .cw-float-label {
    top: 12px;
    transform: translateY(0) scale(0.78);
    font-size: 14px;
    font-weight: 700;
    color: var(--cw-red);
    letter-spacing: 0.03em;
}
.cw-float-input:focus {
    border-color: var(--cw-red);
    box-shadow: 0 0 0 3px var(--cw-red-glow);
}

/* ===== OORZAAK ICON HOVER ANIMATIES ===== */
.cw-oorzaak-icon-wrap {
    transition: all var(--cw-duration) var(--cw-ease);
}
.cw-card:hover .cw-oorzaak-icon-wrap {
    transform: scale(1.08) translateY(-2px);
}
.cw-card:active .cw-oorzaak-icon-wrap {
    transform: scale(0.95);
    transition-duration: 100ms;
}
.cw-card.is-selected .cw-oorzaak-icon-wrap {
    background: linear-gradient(135deg, rgba(232,34,12,0.12) 0%, rgba(232,34,12,0.04) 100%);
    box-shadow: 0 4px 12px rgba(232,34,12,0.10);
}

/* ===== KALENDER UPGRADE ===== */
.cw-cal-day:hover:not(.is-disabled):not(.is-selected) {
    transform: scale(1.05);
}
.cw-cal-day.is-selected {
    box-shadow: 0 2px 10px rgba(232,34,12,0.3);
    transform: scale(1.1);
}

/* ===== SUCCES SCHERM UPGRADE ===== */
.cw-success-screen {
    position: relative;
    overflow: hidden;
}
.cw-confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    overflow: hidden;
    pointer-events: none;
}
.cw-confetti-particle {
    position: absolute;
    top: -10px;
    opacity: 0;
    animation: cwConfettiFall ease-out forwards;
}
@keyframes cwConfettiFall {
    0%   { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(250px) rotate(720deg); }
}
.cw-success-glow {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
    margin: 0 auto 0;
    position: relative;
}
.cw-success-check-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.cw-success-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 8px 30px rgba(16,185,129,0.35);
    animation: cwSuccessPop 600ms var(--cw-ease-bounce) both;
}
@keyframes cwSuccessPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.cw-success-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--cw-text);
    margin: 20px 0 8px;
}

/* ===== CONTENT FADE-IN ===== */
.cw-content {
    animation: cwFadeIn 350ms var(--cw-ease-out) both;
}
@keyframes cwFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CUSTOM SCROLLBAR ===== */
.cw-root ::-webkit-scrollbar { width: 5px; height: 5px; }
.cw-root ::-webkit-scrollbar-track { background: transparent; }
.cw-root ::-webkit-scrollbar-thumb { background: var(--cw-border); border-radius: 4px; }
.cw-root ::-webkit-scrollbar-thumb:hover { background: var(--cw-text-muted); }

/* ===== TEKST SELECTIE ===== */
.cw-root ::selection {
    background: rgba(232, 34, 12, 0.12);
    color: var(--cw-text);
}

/* ===== FOCUS RING ACCESSIBILITY ===== */
.cw-root *:focus-visible {
    outline: 2px solid var(--cw-red);
    outline-offset: 2px;
    border-radius: 4px;
}
/* Kenteken heeft eigen focus-stijl via :focus-within op de wrapper */
.cw-kenteken-input:focus-visible,
.cw-kenteken-wrap:focus-visible,
.cw-kenteken-wrap *:focus-visible {
    outline: none;
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .cw-root *, .cw-root *::before, .cw-root *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
