/* ═══════════════════════════════════════════════════════════════════════════
   BPM Calculator v2.0  –  Professionele styling
   Kleurenschema: diepblauw (#0B1F3A) + BPM Point blauw (#3568F3)
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ── CSS Variabelen ────────────────────────────────────────────────────── */
.bpm-calc {
    --bpm-dark:    #0B1F3A;
    --bpm-mid:     #14355C;
    --bpm-accent:  #3568F3;
    --bpm-accent2: #000000;
    --bpm-bg:      #F4F6FA;
    --bpm-surface: #FFFFFF;
    --bpm-border:  #D8DFEA;
    --bpm-text:    #1A2B3C;
    --bpm-muted:   #6B7C93;
    --bpm-green:   #0E7E5A;
    --bpm-error:   #C0392B;
    --bpm-radius:  12px;
    --bpm-shadow:  0 4px 24px rgba(11,31,58,.12);

    max-width: 900px;
    margin: 0 auto 3rem;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    color: var(--bpm-text);
    line-height: 1.6;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.bpm-calc__header {
    background: linear-gradient(135deg, var(--bpm-dark) 0%, var(--bpm-mid) 100%);
    border-radius: var(--bpm-radius) var(--bpm-radius) 0 0;
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}
.bpm-calc__header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(245,130,13,.12);
    pointer-events: none;
}
.bpm-calc__header::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 40%;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.bpm-calc__badge {
    display: inline-block;
    background: var(--bpm-accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .25rem .75rem;
    border-radius: 20px;
    margin-bottom: .75rem;
}
.bpm-calc__title {
    margin: 0 0 .4rem;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
}
.bpm-calc__subtitle {
    margin: 0;
    color: rgba(255,255,255,.65);
    font-size: .95rem;
}

.bpm-calc__header-inner--with-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}
.bpm-calc__header-copy {
    flex: 1 1 420px;
    min-width: 0;
}
.bpm-calc__header-logo-wrap {
    flex: 0 0 auto;
    max-width: 260px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    padding: .85rem 1rem;
    backdrop-filter: blur(4px);
}
.bpm-calc__header-logo {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
}

/* ── Body ───────────────────────────────────────────────────────────────── */
.bpm-calc__body {
    background: var(--bpm-bg);
    border: 1px solid var(--bpm-border);
    border-top: none;
    border-radius: 0 0 var(--bpm-radius) var(--bpm-radius);
    padding: 2rem 2rem 2.5rem;
}

/* ── Sectie ─────────────────────────────────────────────────────────────── */
.bpm-calc__section {
    background: var(--bpm-surface);
    border: 1px solid var(--bpm-border);
    border-radius: var(--bpm-radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(11,31,58,.05);
}
.bpm-calc__section-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--bpm-muted);
    margin-bottom: 1.1rem;
}
.bpm-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    background: linear-gradient(135deg, #3568F3 0%, #2451cc 100%);
    color: #fff;
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(53,104,243,.35);
}

/* ── Voertuigtype kaarten ───────────────────────────────────────────────── */
/* ── Voertuigtype kaarten ───────────────────────────────────────────────── */
.bpm-type-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .6rem;
}
.bpm-type-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: 1.1rem .6rem .9rem;
    border: 1.5px solid #e8edf5;
    border-radius: 14px;
    background: #ffffff;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    user-select: none;
    text-align: center;
    box-shadow: 0 1px 4px rgba(11,31,58,.06), 0 0 0 0 rgba(53,104,243,0);
}
.bpm-type-card input[type="radio"] { display: none; }
.bpm-type-card:hover {
    border-color: #c7d6ff;
    background: #f8fbff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(53,104,243,.12), 0 2px 6px rgba(11,31,58,.06);
}
.bpm-type-card--active {
    border-color: #3568F3 !important;
    background: #f5f8ff !important;
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(53,104,243,.12), 0 6px 16px rgba(53,104,243,.15) !important;
}
.bpm-type-card__icon {
    width: 52px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 13px;
    transition: transform .2s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
}
.bpm-type-card:hover .bpm-type-card__icon { transform: scale(1.08) translateY(-1px); }
.bpm-type-card--active .bpm-type-card__icon { transform: scale(1.05); }

/* Kleurthema's per type */
.bpm-type-card__icon--blue   { background: #eff4ff; color: #2451cc; }
.bpm-type-card__icon--slate  { background: #f0f2ff; color: #3d52d4; }
.bpm-type-card__icon--violet { background: #f3f0ff; color: #5b3fd4; }
.bpm-type-card__icon--amber  { background: #fffbeb; color: #b45309; }
.bpm-type-card__icon--green  { background: #f0fdf4; color: #16803c; }

/* Active state: icoon iets intenser */
.bpm-type-card--active .bpm-type-card__icon--blue   { background: #dce8ff; color: #1a3fbf; }
.bpm-type-card--active .bpm-type-card__icon--slate  { background: #dde4ff; color: #2d42c4; }
.bpm-type-card--active .bpm-type-card__icon--violet { background: #ede8ff; color: #4a2fc4; }
.bpm-type-card--active .bpm-type-card__icon--amber  { background: #fef3c7; color: #92400e; }
.bpm-type-card--active .bpm-type-card__icon--green  { background: #dcfce7; color: #166534; }

.bpm-type-card__name {
    font-size: .82rem;
    font-weight: 700;
    color: #1A2B3C;
    line-height: 1.2;
}
.bpm-type-card__desc {
    font-size: .68rem;
    color: #6B7C93;
    font-weight: 500;
    line-height: 1.2;
}

/* ── Form grid ──────────────────────────────────────────────────────────── */
.bpm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}
.bpm-form-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.bpm-form-field.bpm-field--hidden { display: none; }

.bpm-label {
    font-size: .83rem;
    font-weight: 600;
    color: var(--bpm-text);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.bpm-nedc-badge {
    font-size: .68rem;
    font-weight: 600;
    background: #EBF3FF;
    color: #1A5FA8;
    padding: .1rem .4rem;
    border-radius: 4px;
}

.bpm-input, .bpm-select-wrap select {
    padding: .6rem .85rem;
    border: 1.5px solid var(--bpm-border);
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    background: #fff;
    background-image: none !important;
    background-repeat: no-repeat !important;
    color: var(--bpm-text);
    transition: border-color .18s, box-shadow .18s;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}
.bpm-select-wrap select {
    padding-right: 2.25rem;
    cursor: pointer;
}
.bpm-input:focus, .bpm-select-wrap select:focus {
    outline: none;
    border-color: var(--bpm-accent);
    box-shadow: 0 0 0 3px rgba(245,130,13,.18);
}
.bpm-input::placeholder { color: #B0BFCC; }

.bpm-select-wrap { position: relative; }
.bpm-select-arrow {
    position: absolute;
    right: .85rem; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--bpm-muted);
    font-size: .8rem;
}

.bpm-calc .bpm-select-wrap select,
.bpm-calc .bpm-select-wrap select:hover,
.bpm-calc .bpm-select-wrap select:focus {
    background-color: #fff !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}
.bpm-calc .bpm-select-arrow {
    line-height: 1;
    z-index: 2;
}

.bpm-field-hint {
    font-size: .74rem;
    color: var(--bpm-muted);
    line-height: 1.4;
}

/* Info banner */
.bpm-info-banner {
    margin-top: 1rem;
    padding: .7rem 1rem;
    background: #EFF6FF;
    border-left: 3px solid #3B82F6;
    border-radius: 0 6px 6px 0;
    font-size: .83rem;
    color: #1E40AF;
    line-height: 1.5;
}

/* ── Tooltip ────────────────────────────────────────────────────────────── */
.bpm-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bpm-border);
    color: var(--bpm-muted);
    font-size: .68rem;
    font-weight: 700;
    cursor: help;
    transition: background .15s;
}
.bpm-tooltip:hover { background: var(--bpm-dark); color: #fff; }
.bpm-tooltip-box {
    position: absolute;
    z-index: 9999;
    max-width: 280px;
    padding: .5rem .75rem;
    background: #1e293b !important;
    color: #ffffff !important;
    font-size: .78rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    pointer-events: none;
    line-height: 1.5;
    font-family: inherit;
}
.bpm-tooltip-box * {
    color: #ffffff !important;
}

/* ── Acties ─────────────────────────────────────────────────────────────── */
.bpm-calc__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: .25rem;
}
.bpm-btn-calc {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 2rem;
    background: var(--bpm-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(53,104,243,.35);
    transition: background .18s, box-shadow .18s, transform .12s;
}
.bpm-btn-calc:hover { background: #000; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.bpm-btn-calc:active { transform: scale(.97); }
.bpm-btn-calc__icon { font-size: 1.1rem; }

.bpm-btn-reset {
    background: #3568F3;
    border: 1px solid #3568F3;
    color: #fff;
    font-size: .88rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: .65rem 1rem;
    border-radius: 8px;
    transition: background .18s, border-color .18s, color .18s, transform .12s;
}
.bpm-btn-reset:hover { color: #fff; background: #000; border-color: #000; }
.bpm-btn-reset:active { transform: scale(.97); }

/* ── Foutmelding ────────────────────────────────────────────────────────── */
.bpm-alert {
    padding: .9rem 1.1rem;
    border-radius: 8px;
    font-size: .88rem;
    margin-bottom: 1rem;
}
.bpm-alert--error {
    background: #FFF1F0;
    border: 1px solid #FFB8B0;
    border-left: 4px solid var(--bpm-error);
    color: var(--bpm-error);
}

/* ── Resultaat ──────────────────────────────────────────────────────────── */
.bpm-result {
    background: var(--bpm-surface);
    border: 2px solid var(--bpm-accent);
    border-radius: var(--bpm-radius);
    overflow: hidden;
    box-shadow: var(--bpm-shadow);
    margin-top: 1.25rem;
}
.bpm-result__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem 1.5rem;
    background: var(--bpm-dark);
    color: #fff;
}
.bpm-result__label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .7;
}
.bpm-result__voertuig {
    font-size: .85rem;
    font-weight: 600;
    background: rgba(255,255,255,.15);
    padding: .2rem .7rem;
    border-radius: 20px;
}

/* Hero getal */
.bpm-result__hero {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    border-bottom: 1px solid #e8edf5;
}
.bpm-result__hero-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #8899b0;
    margin-bottom: .6rem;
}
.bpm-result__hero-amount {
    font-size: 3.8rem;
    font-weight: 800;
    color: #1A2B3C;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: .5rem;
    background: linear-gradient(135deg, #1A2B3C 0%, #3568F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bpm-result__hero-sub {
    font-size: .8rem;
    color: #8899b0;
    font-weight: 500;
}

/* Stats grid */
.bpm-result__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--bpm-border);
}
.bpm-stat-item {
    padding: 1rem 1.25rem;
    border-right: 1px solid var(--bpm-border);
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.bpm-stat-item:last-child,
.bpm-stat-item:nth-child(3n) { border-right: none; }
.bpm-stat-item__label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--bpm-muted);
}
.bpm-stat-item__value {
    font-size: .95rem;
    font-weight: 700;
    color: var(--bpm-text);
}
.bpm-stat-item--accent .bpm-stat-item__value {
    color: var(--bpm-accent);
    font-size: 1.05rem;
}

/* Breakdown */
.bpm-breakdown {
    border-bottom: 1px solid var(--bpm-border);
}
.bpm-breakdown__toggle {
    padding: .9rem 1.5rem;
    font-size: .83rem;
    font-weight: 600;
    color: var(--bpm-mid);
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: background .15s;
}
.bpm-breakdown__toggle:hover { background: #F8FAFC; }
.bpm-breakdown__toggle::before { content: '▶'; font-size: .65rem; transition: transform .2s; }
details[open] .bpm-breakdown__toggle::before { transform: rotate(90deg); }
.bpm-breakdown__content {
    padding: 0 1.5rem 1.25rem;
    font-size: .83rem;
    line-height: 1.9;
}
.bpm-breakdown__content ol {
    margin: 0;
    padding-left: 1.3rem;
    color: var(--bpm-text);
}
.bpm-breakdown__content li { margin-bottom: .15rem; }

/* CTA onderaan resultaat */
.bpm-result__cta {
    padding: 1rem 1.5rem 1.1rem;
    background: #F8FAFC;
}
.bpm-result__cta-text {
    font-size: .85rem;
    color: var(--bpm-text);
    margin-bottom: .4rem;
}
.bpm-result__cta-disclaimer {
    font-size: .72rem;
    color: var(--bpm-muted);
}

/* ── Vrijstelling ───────────────────────────────────────────────────────── */
.bpm-vrijstelling {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #F0FDF7;
    border: 2px solid #34C48A;
    border-radius: var(--bpm-radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1.25rem;
}
.bpm-vrijstelling__icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #34C48A;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}
.bpm-vrijstelling__text {
    font-size: .9rem;
    color: #0A5A35;
    line-height: 1.6;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .bpm-calc__header { padding: 1.75rem 1.25rem 1.5rem; }
    .bpm-calc__body   { padding: 1.25rem 1rem 1.5rem; }
    .bpm-calc__title  { font-size: 1.5rem; }
    .bpm-calc__header-inner--with-logo {
        flex-direction: column;
        align-items: flex-start;
    }
    .bpm-calc__header-logo-wrap {
        width: 100%;
        max-width: 240px;
        padding: .75rem .9rem;
    }
    .bpm-calc__header-logo {
        max-width: 100%;
    }
    .bpm-type-grid    { grid-template-columns: repeat(2, 1fr); }
    .bpm-form-grid    { grid-template-columns: 1fr; }
    .bpm-result__stats { grid-template-columns: 1fr 1fr; }
    .bpm-stat-item:nth-child(3n) { border-right: 1px solid var(--bpm-border); }
    .bpm-stat-item:nth-child(2n) { border-right: none; }
    .bpm-result__hero-value { font-size: 2.2rem; }
    .bpm-calc__actions { flex-wrap: wrap; }
}
@media (max-width: 440px) {
    .bpm-type-grid { grid-template-columns: 1fr 1fr; }
    .bpm-result__stats { grid-template-columns: 1fr; }
    .bpm-stat-item { border-right: none; border-bottom: 1px solid var(--bpm-border); }
}

/* Regime veld spans 2 kolommen zodat de dropdown-tekst niet afgekapt wordt */
.bpm-form-field--wide {
    grid-column: span 2;
}
@media (max-width: 600px) {
    .bpm-form-field--wide { grid-column: span 1; }
}

/* Automatisch ingevuld BPM-regime */
.bpm-calc #bpm-regime:disabled {
    opacity: 1;
    color: var(--bpm-text);
    background-color: #F8FBFF !important;
    cursor: not-allowed;
}

/* ── Art. 110 VWEU vergelijkingstabel ───────────────────────────────── */
.bpm-vergelijking {
    margin-top: 1.5rem;
    border: 2px solid var(--bpm-primary);
    border-radius: 10px;
    overflow: hidden;
}
.bpm-vergelijking__title {
    background: var(--bpm-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
}
.bpm-vergelijking__rij {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 0.55rem 1rem;
    gap: 0.5rem;
    align-items: center;
    border-bottom: 1px solid var(--bpm-border);
    font-size: 0.88rem;
}
.bpm-vergelijking__rij--header {
    background: #f0f4ff;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bpm-text-light);
}
.bpm-vergelijking__rij--huidig {
    background: #fff8f0;
}
.bpm-vergelijking__rij--art110 {
    background: #f0fff4;
}
.bpm-vergelijking__rij--voordeel {
    background: #e8f5e9;
    font-weight: 700;
    border-bottom: none;
}
.bpm-vergelijking__rij--winnaar {
    background: #d1fae5 !important;
    font-weight: 700;
    border-left: 4px solid #1a7a3c;
}
.bpm-vergelijking__rij--winnaar span {
    color: #1a7a3c;
}
.bpm-vergelijking__beste {
    color: #1a7a3c;
    font-weight: 700;
}
.bpm-vergelijking__uitleg {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    background: #f9fbff;
    color: var(--bpm-text);
    line-height: 1.5;
}
@media (max-width: 600px) {
    .bpm-vergelijking__rij {
        grid-template-columns: 1.5fr 1fr 1fr;
        font-size: 0.82rem;
    }
    .bpm-vergelijking__rij--header span:nth-child(3),
    .bpm-vergelijking__rij span:nth-child(3) { display: none; }
}
