/* =============================================================================
   Beveiligingscalculator — Frontend Styles  v7.0
   Premium redesign
   ============================================================================= */

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

:root {
    --bevcalc-primary:      #0f1f3d;
    --bevcalc-primary-mid:  #1a2b4a;
    --bevcalc-accent:       #ff5a1f;
    --bevcalc-accent-light: rgba(255, 90, 31, 0.10);
    --bevcalc-accent-hover: #e04a10;
    --bevcalc-bg:           #f4f6fb;
    --bevcalc-card-bg:      #ffffff;
    --bevcalc-text:         #1a1a2e;
    --bevcalc-text-muted:   #6b7280;
    --bevcalc-border:       #e8ecf4;
    --bevcalc-radius:       16px;
    --bevcalc-radius-sm:    10px;
    --bevcalc-radius-lg:    22px;
    --bevcalc-shadow:       0 2px 16px rgba(15, 31, 61, 0.07);
    --bevcalc-shadow-lg:    0 12px 48px rgba(15, 31, 61, 0.14);
    --bevcalc-transition:   0.22s ease;
    --bevcalc-success:      #16a34a;
    --bevcalc-error:        #dc2626;
}

/* =============================================================================
   Wrapper — premium card container
   ============================================================================= */

.bevcalc-wrap {
    font-family: inherit;
    color: var(--bevcalc-text);
    line-height: 1.6;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 48px;
    box-sizing: border-box;
    background: var(--bevcalc-card-bg);
    border-radius: var(--bevcalc-radius-lg);
    box-shadow: var(--bevcalc-shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative top accent line */
.bevcalc-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bevcalc-primary), var(--bevcalc-accent));
    border-radius: var(--bevcalc-radius-lg) var(--bevcalc-radius-lg) 0 0;
}

.bevcalc-wrap *,
.bevcalc-wrap *::before,
.bevcalc-wrap *::after {
    box-sizing: border-box;
}

/* =============================================================================
   Progress — stepper line
   ============================================================================= */

.bevcalc-progress-wrap {
    margin-bottom: 40px;
    padding-top: 4px;
}

.bevcalc-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

/* Dots */
.bevcalc-step-dots {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    position: relative;
}

/* Connector line behind dots */
.bevcalc-step-dots::before {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    top: 50%;
    height: 2px;
    background: var(--bevcalc-border);
    z-index: 0;
}

.bevcalc-dot {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The visible circle */
.bevcalc-dot-inner-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bevcalc-border);
    background: var(--bevcalc-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    overflow: hidden;
}

.bevcalc-dot {
    background: none;
    border: none;
    padding: 0;
    cursor: default;
    font-family: inherit;
    transition: none;
}

.bevcalc-dot-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--bevcalc-text-muted);
    line-height: 1;
    transition: opacity 0.15s ease;
}

.bevcalc-dot-check {
    position: absolute;
    width: 18px;
    height: 18px;
    opacity: 0;
    transition: opacity 0.15s ease;
    color: #fff;
}

/* Current */
.bevcalc-dot.is-current .bevcalc-dot-inner-wrap {
    background: var(--bevcalc-accent);
    border-color: var(--bevcalc-accent);
    box-shadow: 0 0 0 5px var(--bevcalc-accent-light);
    animation: bevcalc-dot-pulse 2.5s ease-in-out infinite;
}

.bevcalc-dot.is-current .bevcalc-dot-num {
    color: #fff;
}

@keyframes bevcalc-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.35); }
    50%       { box-shadow: 0 0 0 8px rgba(255, 90, 31, 0); }
}

/* Done */
.bevcalc-dot.is-done .bevcalc-dot-inner-wrap {
    background: var(--bevcalc-primary);
    border-color: var(--bevcalc-primary);
    cursor: pointer;
}

.bevcalc-dot.is-done .bevcalc-dot-num {
    opacity: 0;
}

.bevcalc-dot.is-done .bevcalc-dot-check {
    opacity: 1;
}

.bevcalc-dot.is-done:hover .bevcalc-dot-inner-wrap {
    background: var(--bevcalc-accent);
    border-color: var(--bevcalc-accent);
    transform: scale(1.1);
}

/* Future */
.bevcalc-dot.is-future .bevcalc-dot-num {
    opacity: 0.35;
}

/* Percentage */
.bevcalc-progress-pct {
    font-size: 13px;
    font-weight: 700;
    color: var(--bevcalc-accent);
    white-space: nowrap;
    min-width: 38px;
    text-align: right;
}

/* Progress bar */
.bevcalc-progress-bar {
    height: 5px;
    background: var(--bevcalc-border);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
}

.bevcalc-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--bevcalc-primary) 0%, var(--bevcalc-accent) 60%, #ff8c42 100%);
    background-size: 200% 100%;
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    animation: bevcalc-shimmer 2.5s linear infinite;
}

@keyframes bevcalc-shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Breadcrumb */
.bevcalc-breadcrumb {
    font-size: 12px;
    color: var(--bevcalc-text-muted);
    min-height: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.bevcalc-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
    animation: bevcalc-fade-up 0.3s ease both;
}

.bevcalc-breadcrumb-item + .bevcalc-breadcrumb-item::before {
    content: '›';
    color: var(--bevcalc-border);
    margin-right: 0;
}

@keyframes bevcalc-fade-up {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================================
   Steps
   ============================================================================= */

.bevcalc-step {
    display: none;
    opacity: 0;
}

.bevcalc-step--active {
    display: block;
    opacity: 1;
    animation: bevcalc-step-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.bevcalc-step--exit {
    animation: bevcalc-step-out 0.22s ease both;
}

.bevcalc-step--enter-reverse {
    animation: bevcalc-step-in-reverse 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bevcalc-step-in {
    from { opacity: 0; transform: translateX(32px) scale(0.98); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes bevcalc-step-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-24px); }
}

@keyframes bevcalc-step-in-reverse {
    from { opacity: 0; transform: translateX(-32px) scale(0.98); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* =============================================================================
   Step Header
   ============================================================================= */

.bevcalc-step-header {
    margin-bottom: 32px;
    text-align: left;
}

/* Step badge — injected by JS */
.bevcalc-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bevcalc-accent-light);
    color: var(--bevcalc-accent);
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}

.bevcalc-step-title {
    font-family: 'Poppins', inherit;
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 900;
    color: var(--bevcalc-text);
    margin: 0 0 8px;
    line-height: 1.25;
}

.bevcalc-question-mark {
    color: var(--bevcalc-accent);
}

.bevcalc-step-subtitle {
    font-size: 15px;
    color: var(--bevcalc-text-muted);
    margin: 0;
}

/* =============================================================================
   Cards Grid
   ============================================================================= */

.bevcalc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.bevcalc-cards--grid4 {
    grid-template-columns: repeat(4, 1fr);
}

.bevcalc-cards--multiselect {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* Stagger entrance */
.bevcalc-step--active .bevcalc-card {
    animation: bevcalc-card-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bevcalc-step--active .bevcalc-card:nth-child(2)  { animation-delay: 0.05s; }
.bevcalc-step--active .bevcalc-card:nth-child(3)  { animation-delay: 0.10s; }
.bevcalc-step--active .bevcalc-card:nth-child(4)  { animation-delay: 0.15s; }
.bevcalc-step--active .bevcalc-card:nth-child(5)  { animation-delay: 0.20s; }
.bevcalc-step--active .bevcalc-card:nth-child(6)  { animation-delay: 0.25s; }

@keyframes bevcalc-card-enter {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card button */
.bevcalc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 24px 18px 20px;
    background: var(--bevcalc-card-bg);
    border: 1.5px solid var(--bevcalc-border);
    border-radius: var(--bevcalc-radius);
    cursor: pointer;
    text-align: center;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.22s ease,
        color 0.2s ease;
    font-family: inherit;
    font-size: 14px;
    color: var(--bevcalc-text);
    box-shadow: var(--bevcalc-shadow);
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Prevent white flash on press/focus */
.bevcalc-card:focus {
    outline: none;
    background: var(--bevcalc-card-bg);
}

.bevcalc-card[aria-pressed="true"]:focus,
.bevcalc-card.is-selected:focus {
    background: var(--bevcalc-primary);
    outline: none;
}

.bevcalc-card:active {
    background: var(--bevcalc-card-bg);
    transform: translateY(-2px) scale(0.97);
}

.bevcalc-card[aria-pressed="true"]:active,
.bevcalc-card.is-selected:active {
    background: var(--bevcalc-primary) !important;
    transform: translateY(-4px) scale(0.97);
}

.bevcalc-card:hover {
    border-color: var(--bevcalc-accent);
    box-shadow: 0 6px 24px rgba(255, 90, 31, 0.14);
    transform: translateY(-4px);
}

.bevcalc-card:focus-visible {
    outline: 3px solid var(--bevcalc-accent);
    outline-offset: 2px;
}

/* ✦ Selected state — dramatic dark invert */
.bevcalc-card[aria-pressed="true"],
.bevcalc-card.is-selected {
    background: var(--bevcalc-primary) !important;
    border-color: var(--bevcalc-primary);
    color: #fff;
    box-shadow: 0 8px 32px rgba(15, 31, 61, 0.30);
    transform: translateY(-4px);
}

/* Card icon container */
.bevcalc-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 31, 61, 0.07);
    border-radius: 14px;
    color: var(--bevcalc-primary);
    padding: 14px;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.bevcalc-card-icon svg {
    width: 100%;
    height: 100%;
}

.bevcalc-card:hover .bevcalc-card-icon {
    background: var(--bevcalc-accent-light);
    color: var(--bevcalc-accent);
}

.bevcalc-card[aria-pressed="true"] .bevcalc-card-icon,
.bevcalc-card.is-selected .bevcalc-card-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Card label */
.bevcalc-card-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bevcalc-text);
    line-height: 1.35;
    transition: color 0.2s ease;
}

.bevcalc-card[aria-pressed="true"] .bevcalc-card-label,
.bevcalc-card.is-selected .bevcalc-card-label {
    color: rgba(255, 255, 255, 0.92);
}

/* Card number */
.bevcalc-card-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--bevcalc-primary);
    line-height: 1;
    transition: color 0.2s ease;
}

.bevcalc-card[aria-pressed="true"] .bevcalc-card-number,
.bevcalc-card.is-selected .bevcalc-card-number {
    color: #fff;
}

/* SVG Checkmark draw-on */
.bevcalc-card-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    padding: 4px;
    opacity: 0;
    transform: scale(0.4);
    transition:
        opacity 0.2s ease,
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #fff;
}

.bevcalc-check-path {
    stroke-dasharray: 22;
    stroke-dashoffset: 22;
    transition: stroke-dashoffset 0.3s ease 0.1s;
}

.bevcalc-card[aria-pressed="true"] .bevcalc-card-check,
.bevcalc-card.is-selected .bevcalc-card-check {
    opacity: 1;
    transform: scale(1);
}

.bevcalc-card[aria-pressed="true"] .bevcalc-check-path,
.bevcalc-card.is-selected .bevcalc-check-path {
    stroke-dashoffset: 0;
}

/* Wide card (stap 7) */
.bevcalc-card--wide {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
}

.bevcalc-card--wide .bevcalc-card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto;
}

.bevcalc-card-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bevcalc-card-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--bevcalc-text);
    transition: color 0.2s ease;
}

.bevcalc-card[aria-pressed="true"] .bevcalc-card-text strong,
.bevcalc-card.is-selected .bevcalc-card-text strong {
    color: #fff;
}

.bevcalc-card-text span {
    font-size: 12px;
    color: var(--bevcalc-text-muted);
    transition: color 0.2s ease;
}

.bevcalc-card[aria-pressed="true"] .bevcalc-card-text span,
.bevcalc-card.is-selected .bevcalc-card-text span {
    color: rgba(255,255,255,0.65);
}

/* Compact card */
.bevcalc-card--compact {
    padding: 18px 14px;
    gap: 8px;
}

/* =============================================================================
   Navigation
   ============================================================================= */

.bevcalc-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
}

/* Full-width CTA */
.bevcalc-btn--next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    background: var(--bevcalc-accent);
    color: #fff;
    border: none;
    border-radius: var(--bevcalc-radius);
    font-family: 'Poppins', inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 18px rgba(255, 90, 31, 0.35);
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.2px;
}

/* Shine sweep */
.bevcalc-btn--next::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.bevcalc-btn--next:hover::after {
    left: 160%;
}

.bevcalc-btn--next:hover {
    background: var(--bevcalc-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 90, 31, 0.45);
}

.bevcalc-btn--next:active {
    transform: translateY(0);
}

.bevcalc-btn--next:focus-visible {
    outline: 3px solid var(--bevcalc-accent);
    outline-offset: 3px;
}

/* Previous — subtle text link */
.bevcalc-btn--prev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: var(--bevcalc-radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--bevcalc-text-muted);
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1;
    align-self: center;
}

.bevcalc-btn--prev:hover {
    color: var(--bevcalc-primary);
    background: var(--bevcalc-bg);
}

.bevcalc-btn--prev:focus-visible {
    outline: 3px solid var(--bevcalc-primary);
    outline-offset: 2px;
    border-radius: var(--bevcalc-radius-sm);
}

/* Restart button */
.bevcalc-btn--restart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1.5px solid var(--bevcalc-border);
    border-radius: var(--bevcalc-radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--bevcalc-text-muted);
    cursor: pointer;
    transition: all 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.bevcalc-btn--restart:hover {
    color: var(--bevcalc-primary);
    border-color: var(--bevcalc-primary);
    background: var(--bevcalc-bg);
}

/* Submit button */
.bevcalc-btn--submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    background: var(--bevcalc-accent);
    color: #fff;
    border: none;
    font-family: 'Poppins', inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--bevcalc-radius);
    box-shadow: 0 4px 20px rgba(255, 90, 31, 0.35);
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1;
}

.bevcalc-btn--submit:hover {
    background: var(--bevcalc-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 90, 31, 0.45);
}

.bevcalc-btn--submit:disabled,
.bevcalc-btn--submit.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.bevcalc-btn--submit.is-success {
    background: linear-gradient(135deg, var(--bevcalc-success), #15803d);
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.35);
}

.bevcalc-btn--submit:focus-visible {
    outline: 3px solid var(--bevcalc-accent);
    outline-offset: 3px;
}

/* Generic btn base (for any other usages) */
.bevcalc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--bevcalc-radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none;
    line-height: 1;
}

/* =============================================================================
   Error Messages
   ============================================================================= */

.bevcalc-error {
    font-size: 13px;
    color: var(--bevcalc-error);
    min-height: 20px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(220, 38, 38, 0.07);
    border-radius: var(--bevcalc-radius-sm);
}

.bevcalc-error:empty {
    display: none;
}

.bevcalc-error:not(:empty)::before {
    content: '⚠';
}

/* =============================================================================
   Trust badges
   ============================================================================= */

.bevcalc-trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.bevcalc-trust-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bevcalc-text-muted);
    background: var(--bevcalc-bg);
    border-radius: 99px;
    padding: 6px 14px;
    border: 1px solid var(--bevcalc-border);
    opacity: 0;
    animation: bevcalc-fade-up 0.4s ease both;
}

.bevcalc-trust-badge:nth-child(1) { animation-delay: 0.1s; }
.bevcalc-trust-badge:nth-child(2) { animation-delay: 0.2s; }
.bevcalc-trust-badge:nth-child(3) { animation-delay: 0.3s; }

.bevcalc-trust-badge svg {
    width: 14px;
    height: 14px;
    color: var(--bevcalc-accent);
    flex-shrink: 0;
}

/* =============================================================================
   Lead Form — Step 8
   ============================================================================= */

.bevcalc-step--result .bevcalc-step-header {
    margin-bottom: 24px;
}

/* Result preview */
.bevcalc-result-preview {
    background: var(--bevcalc-bg);
    border: 1.5px solid var(--bevcalc-border);
    border-radius: var(--bevcalc-radius);
    padding: 20px;
    margin-bottom: 24px;
}

.bevcalc-result-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bevcalc-border);
    margin-bottom: 14px;
}

.bevcalc-result-badge-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--bevcalc-accent), #ff8c42);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.bevcalc-result-badge-icon svg {
    width: 24px;
    height: 24px;
}

.bevcalc-result-badge-label {
    font-size: 11px;
    color: var(--bevcalc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
    font-weight: 600;
}

.bevcalc-result-badge-value {
    font-size: 18px;
    font-weight: 900;
    color: var(--bevcalc-primary);
    font-family: 'Poppins', inherit;
}

.bevcalc-result-blur {
    position: relative;
}

.bevcalc-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bevcalc-price-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bevcalc-price-label {
    font-size: 12px;
    color: var(--bevcalc-text-muted);
}

.bevcalc-price-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--bevcalc-primary);
}

.bevcalc-blur-overlay {
    position: absolute;
    inset: -4px;
    background: rgba(244, 246, 251, 0.88);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: var(--bevcalc-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--bevcalc-text-muted);
    font-size: 13px;
    font-weight: 600;
}

.bevcalc-blur-overlay svg {
    opacity: 0.5;
}

/* Lead form */
.bevcalc-lead-form {
    background: var(--bevcalc-card-bg);
    border: 1.5px solid var(--bevcalc-border);
    border-radius: var(--bevcalc-radius);
    padding: 32px;
}

.bevcalc-form-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--bevcalc-primary);
    margin: 0 0 6px;
    font-family: 'Poppins', inherit;
}

.bevcalc-form-subtitle {
    font-size: 14px;
    color: var(--bevcalc-text-muted);
    margin: 0 0 24px;
}

.bevcalc-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.bevcalc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

/* =============================================================================
   Floating Labels
   ============================================================================= */

.bevcalc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bevcalc-field--floating {
    position: relative;
    padding-top: 18px;
    display: block;
}

.bevcalc-field--floating .bevcalc-label {
    position: absolute;
    top: calc(18px + 12px);
    left: 16px;
    font-size: 14px;
    font-weight: 400;
    color: var(--bevcalc-text-muted);
    pointer-events: none;
    transition: top 0.18s ease, font-size 0.18s ease, font-weight 0.18s ease, color 0.18s ease;
    background: #fff;
    padding: 0 3px;
    line-height: 1;
    z-index: 1;
}

.bevcalc-field--floating:has(.bevcalc-input:focus) .bevcalc-label,
.bevcalc-field--floating.has-value .bevcalc-label {
    top: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--bevcalc-primary);
}

.bevcalc-field--floating:has(.bevcalc-input:focus) .bevcalc-label {
    color: var(--bevcalc-accent);
}

.bevcalc-field--floating .bevcalc-field-error {
    display: block;
    margin-top: 4px;
}

.bevcalc-field--floating.has-valid .bevcalc-input {
    border-color: var(--bevcalc-success);
    background: rgba(22, 163, 74, 0.02);
}

.bevcalc-field--floating.has-valid .bevcalc-label {
    color: var(--bevcalc-success) !important;
}

.bevcalc-field--floating .bevcalc-field-valid-icon {
    position: absolute;
    right: 12px;
    top: calc(18px + 10px);
    width: 22px;
    height: 22px;
    background: var(--bevcalc-success);
    border-radius: 50%;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    animation: bevcalc-valid-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.bevcalc-field--floating.has-valid .bevcalc-field-valid-icon {
    display: flex;
}

@keyframes bevcalc-valid-pop {
    from { opacity: 0; transform: scale(0.3); }
    to   { opacity: 1; transform: scale(1); }
}

.bevcalc-field--full {
    grid-column: 1 / -1;
}

.bevcalc-field--postcode { grid-column: span 1; }
.bevcalc-field--huisnummer { grid-column: span 1; }

.bevcalc-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bevcalc-text);
}

.bevcalc-required {
    color: var(--bevcalc-error);
    margin-left: 2px;
}

.bevcalc-input {
    padding: 13px 15px;
    border: 1.5px solid var(--bevcalc-border);
    border-radius: var(--bevcalc-radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--bevcalc-text);
    background: #fff;
    transition: border-color var(--bevcalc-transition), box-shadow var(--bevcalc-transition), background var(--bevcalc-transition);
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    display: block;
}

.bevcalc-input:focus {
    border-color: var(--bevcalc-primary);
    box-shadow: 0 0 0 4px rgba(15, 31, 61, 0.08);
    outline: none;
}

.bevcalc-input.has-error {
    border-color: var(--bevcalc-error);
    background: rgba(220, 38, 38, 0.02);
}

.bevcalc-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.bevcalc-field-error {
    font-size: 12px;
    color: var(--bevcalc-error);
    min-height: 16px;
}

/* Privacy checkbox */
.bevcalc-field--privacy {
    align-items: flex-start;
}

.bevcalc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    user-select: none;
}

.bevcalc-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bevcalc-checkbox-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid var(--bevcalc-border);
    border-radius: 5px;
    background: #fff;
    transition: border-color var(--bevcalc-transition), background var(--bevcalc-transition);
    margin-top: 1px;
}

.bevcalc-checkbox:checked + .bevcalc-checkbox-custom {
    background: var(--bevcalc-primary);
    border-color: var(--bevcalc-primary);
}

.bevcalc-checkbox:checked + .bevcalc-checkbox-custom::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(0, -1px);
}

.bevcalc-checkbox:focus-visible + .bevcalc-checkbox-custom {
    box-shadow: 0 0 0 3px rgba(15, 31, 61, 0.2);
}

.bevcalc-checkbox-label a {
    color: var(--bevcalc-accent);
    font-weight: 600;
}

/* Submit wrap */
.bevcalc-submit-wrap {
    text-align: center;
}

.bevcalc-submit-note {
    font-size: 12px;
    color: var(--bevcalc-text-muted);
    margin: 10px 0 0;
}

.bevcalc-form-error {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--bevcalc-radius-sm);
    font-size: 14px;
    color: #dc2626;
    display: none;
}

.bevcalc-form-error:not(:empty) {
    display: block;
}

/* =============================================================================
   Result (after submit)
   ============================================================================= */

.bevcalc-result-full {
    animation: bevcalc-fade-up 0.5s ease both;
}

/* Premium score header */
.bevcalc-result-header {
    background: linear-gradient(135deg, var(--bevcalc-accent) 0%, #ff8c42 100%);
    border-radius: var(--bevcalc-radius);
    padding: 32px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Decorative circles in header */
.bevcalc-result-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -60px;
    right: -40px;
}

.bevcalc-result-header::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    bottom: -30px;
    left: 40%;
}

.bevcalc-result-score-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* Score circle with SVG ring */
.bevcalc-result-score-circle {
    width: 90px;
    height: 90px;
    min-width: 90px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bevcalc-score-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bevcalc-score-ring-bg {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 5;
}

.bevcalc-score-ring-fill {
    stroke: #fff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 214;
    stroke-dashoffset: 214;
    transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: stroke-dashoffset;
}

.bevcalc-score-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bevcalc-score-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    font-family: 'Poppins', inherit;
}

.bevcalc-score-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.bevcalc-result-score-text {
    position: relative;
    z-index: 1;
}

.bevcalc-result-score-text h3 {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 6px;
    color: #fff;
    font-family: 'Poppins', inherit;
    line-height: 1.2;
}

.bevcalc-result-score-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Staggered reveal for result children */
.bevcalc-result-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.bevcalc-result-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Result body */
.bevcalc-result-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.bevcalc-result-pricing {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bevcalc-price-card {
    background: var(--bevcalc-card-bg);
    border: 1.5px solid var(--bevcalc-border);
    border-radius: var(--bevcalc-radius);
    padding: 18px 20px;
    box-shadow: var(--bevcalc-shadow);
}

.bevcalc-price-card-label {
    font-size: 11px;
    color: var(--bevcalc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    font-weight: 700;
}

.bevcalc-price-card-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--bevcalc-primary);
    line-height: 1.1;
    font-family: 'Poppins', inherit;
}

.bevcalc-price-card-period {
    font-size: 12px;
    color: var(--bevcalc-text-muted);
    margin-top: 3px;
}

/* Components list */
.bevcalc-result-components {
    background: var(--bevcalc-card-bg);
    border: 1.5px solid var(--bevcalc-border);
    border-radius: var(--bevcalc-radius);
    padding: 18px 20px;
    box-shadow: var(--bevcalc-shadow);
}

.bevcalc-result-components h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--bevcalc-text-muted);
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.bevcalc-components-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bevcalc-components-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bevcalc-text);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bevcalc-components-list li.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.bevcalc-components-list li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--bevcalc-accent);
    border-radius: 50%;
}

.bevcalc-component-count {
    font-size: 12px;
    background: var(--bevcalc-bg);
    color: var(--bevcalc-text-muted);
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
    margin-left: auto;
}

/* CTA */
.bevcalc-result-cta {
    background: linear-gradient(135deg, rgba(255, 90, 31, 0.07), rgba(255, 90, 31, 0.03));
    border: 1.5px solid rgba(255, 90, 31, 0.18);
    border-radius: var(--bevcalc-radius);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.bevcalc-result-cta-text {
    font-size: 15px;
    color: var(--bevcalc-text);
    margin: 0 0 14px;
}

.bevcalc-result-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bevcalc-result-trust span {
    font-size: 13px;
    font-weight: 600;
    color: var(--bevcalc-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Social proof */
.bevcalc-social-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--bevcalc-text-muted);
    padding: 10px 16px;
    background: var(--bevcalc-bg);
    border-radius: var(--bevcalc-radius);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.6s, transform 0.4s ease 0.6s;
}

.bevcalc-social-proof.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bevcalc-social-avatars {
    display: flex;
}

.bevcalc-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: inline-block;
    background: linear-gradient(135deg, var(--bevcalc-primary), #2a3f6b);
}

.bevcalc-avatar:nth-child(2) { margin-left: -8px; background: linear-gradient(135deg, #2a3f6b, var(--bevcalc-accent)); }
.bevcalc-avatar:nth-child(3) { margin-left: -8px; background: linear-gradient(135deg, var(--bevcalc-accent), #ff8c42); }

/* =============================================================================
   Sparkle burst
   ============================================================================= */

.bevcalc-sparkle-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 10;
}

.bevcalc-spark {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    animation: bevcalc-spark 0.9s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes bevcalc-spark {
    0%   { transform: rotate(var(--angle)) translateX(0)    scale(1);   opacity: 1; }
    60%  { transform: rotate(var(--angle)) translateX(32px) scale(1);   opacity: 1; }
    100% { transform: rotate(var(--angle)) translateX(44px) scale(0);   opacity: 0; }
}

/* =============================================================================
   Desktop grid-layout per stap
   ============================================================================= */

@media (min-width: 601px) {

    #bevcalc-step-1 .bevcalc-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    #bevcalc-step-5 .bevcalc-cards {
        grid-template-columns: repeat(6, 1fr);
    }
    #bevcalc-step-5 .bevcalc-cards .bevcalc-card:nth-child(1),
    #bevcalc-step-5 .bevcalc-cards .bevcalc-card:nth-child(2) {
        grid-column: span 3;
    }
    #bevcalc-step-5 .bevcalc-cards .bevcalc-card:nth-child(3),
    #bevcalc-step-5 .bevcalc-cards .bevcalc-card:nth-child(4),
    #bevcalc-step-5 .bevcalc-cards .bevcalc-card:nth-child(5) {
        grid-column: span 2;
    }

    #bevcalc-step-6 .bevcalc-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    #bevcalc-step-7 .bevcalc-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================================================
   Responsive — Mobile
   ============================================================================= */

@media (max-width: 768px) {
    .bevcalc-wrap {
        padding: 28px 24px;
        border-radius: 16px;
    }
}

@media (max-width: 600px) {
    .bevcalc-wrap {
        padding: 20px 16px;
        border-radius: 12px;
        box-shadow: var(--bevcalc-shadow);
    }

    .bevcalc-step-title {
        font-size: 20px;
    }

    .bevcalc-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bevcalc-cards--grid4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .bevcalc-form-grid {
        grid-template-columns: 1fr;
    }

    .bevcalc-field--postcode,
    .bevcalc-field--huisnummer {
        grid-column: 1;
    }

    .bevcalc-lead-form {
        padding: 20px 16px;
    }

    .bevcalc-result-body {
        grid-template-columns: 1fr;
    }

    .bevcalc-result-score-wrap {
        flex-direction: column;
        text-align: center;
    }

    .bevcalc-result-score-text h3 {
        font-size: 18px;
    }

    .bevcalc-price-grid {
        grid-template-columns: 1fr;
    }

    .bevcalc-result-trust {
        flex-direction: column;
        gap: 6px;
    }

    .bevcalc-btn--next {
        font-size: 15px;
        padding: 16px 20px;
    }

    .bevcalc-cards--multiselect {
        grid-template-columns: 1fr 1fr;
    }

    .bevcalc-card {
        padding: 16px 12px;
        gap: 10px;
    }

    .bevcalc-card-icon {
        width: 48px;
        height: 48px;
    }

    #bevcalc-step-5 .bevcalc-cards .bevcalc-card:nth-child(1) {
        grid-column: 1 / -1;
    }

    .bevcalc-dot-inner-wrap {
        width: 26px;
        height: 26px;
    }

    .bevcalc-dot-num {
        font-size: 10px;
    }

    .bevcalc-trust-badges {
        gap: 6px;
    }
}

@media (max-width: 380px) {
    .bevcalc-cards,
    .bevcalc-cards--multiselect {
        grid-template-columns: 1fr;
    }

    .bevcalc-cards--grid4 {
        grid-template-columns: 1fr 1fr;
    }
}

/* =============================================================================
   prefers-reduced-motion
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    .bevcalc-step--active,
    .bevcalc-step--exit,
    .bevcalc-step--enter-reverse,
    .bevcalc-step--active .bevcalc-card,
    .bevcalc-progress-fill,
    .bevcalc-dot.is-current,
    .bevcalc-spark,
    .bevcalc-trust-badge,
    .bevcalc-breadcrumb-item {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .bevcalc-btn--next::after {
        display: none;
    }

    .bevcalc-score-ring-fill {
        transition-duration: 0.01ms !important;
    }
}
