/* DM Van Builder - configurator styles
 * Tesla-style layout: image-dominant hero, scrolling option column,
 * sticky summary. Mobile-first, large tap targets, motion-safe.
 */

:root {
    --dmvb-bg: #0b0c0e;
    --dmvb-surface: #ffffff;
    --dmvb-surface-2: #f5f6f8;
    --dmvb-ink: #0b0c0e;
    --dmvb-ink-2: #5a6270;
    --dmvb-line: #e3e6ec;
    --dmvb-accent: #1a7f47;        /* DM Vans green */
    --dmvb-accent-strong: #156438; /* darker green for hover/active */
    --dmvb-accent-ink: #ffffff;
    --dmvb-focus: #2684ff;
    --dmvb-radius: 14px;
    --dmvb-radius-lg: 20px;
    --dmvb-shadow: 0 8px 30px rgba(10, 12, 16, 0.08);
    --dmvb-font: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "Segoe UI", Inter, Roboto, system-ui, sans-serif;
    --dmvb-ease: cubic-bezier(.2, .7, .2, 1);
}

#dmvb-app,
#dmvb-app * {
    box-sizing: border-box;
}

#dmvb-app {
    font-family: var(--dmvb-font);
    color: var(--dmvb-ink);
    background: var(--dmvb-surface);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

.dmvb-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "top"
        "main"
        "summary";
}

@media (min-width: 880px) {
    .dmvb-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
        grid-template-areas:
            "top  top"
            "main summary";
        align-items: start;
    }
}

/* ---------------- Top bar (title + step nav) ---------------- */

.dmvb-top {
    grid-area: top;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--dmvb-surface);
    border-bottom: 1px solid var(--dmvb-line);
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 880px) {
    .dmvb-top { padding: 14px 28px; }
}

/* Row 1: title (left) + estimated price (right). */
.dmvb-top__bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dmvb-top__title { flex: 1 1 auto; min-width: 0; }

.dmvb-top__title h1 {
    margin: 0;
    font-size: clamp(17px, 2.2vw, 22px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dmvb-top__title p {
    margin: 0;
    font-size: 12px;
    color: var(--dmvb-ink-2);
}

/* Beta badge (top-right of the title row). */
.dmvb-beta-badge {
    flex: 0 0 auto;
    align-self: flex-start;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--dmvb-accent);
    background: rgba(26, 127, 71, 0.10);
    border: 1px solid var(--dmvb-accent);
    border-radius: 999px;
    padding: 4px 11px;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
    transition: background .18s var(--dmvb-ease), transform .12s var(--dmvb-ease);
    -webkit-tap-highlight-color: transparent;
}

.dmvb-beta-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--dmvb-accent);
    vertical-align: middle;
}

.dmvb-beta-badge:hover { background: rgba(26, 127, 71, 0.18); }
.dmvb-beta-badge:active { transform: scale(0.97); }
.dmvb-beta-badge:focus-visible { outline: 3px solid var(--dmvb-focus); outline-offset: 2px; }

/* Text-only info modal (beta notice) sits a touch narrower. */
.dmvb-modal--info {
    max-width: 440px;
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Row 2: full-width step progress. */
.dmvb-top .dmvb-progress-wrap { min-width: 0; margin: 0; }

/* ---------------- Hero (compact, inside main column) ---------------- */

.dmvb-hero {
    position: relative;
    background: var(--dmvb-surface);
    border: 1px solid var(--dmvb-line);
    border-radius: var(--dmvb-radius-lg);
    overflow: hidden;
    height: clamp(190px, 32vh, 330px);
    margin-bottom: 22px;
}

.dmvb-hero__stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dmvb-surface);
}

.dmvb-hero__img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .32s var(--dmvb-ease),
                transform .6s var(--dmvb-ease);
    will-change: opacity, transform;
}

.dmvb-hero__img.is-active {
    opacity: 1;
    transform: scale(1);
}

/* ---------------- Main column ---------------- */

.dmvb-main {
    grid-area: main;
    padding: 20px 20px 40px;
    background: var(--dmvb-surface);
}

@media (min-width: 880px) {
    .dmvb-main {
        padding: 24px 28px 48px;
    }
}

.dmvb-main__title h1 {
    margin: 0 0 4px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dmvb-main__sub {
    margin: 0 0 32px;
    color: var(--dmvb-ink-2);
    font-size: 16px;
}

/* ---------------- Groups ---------------- */

.dmvb-groups {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.dmvb-group {
    animation: dmvb-fade-in .32s var(--dmvb-ease);
}

.dmvb-group[hidden] {
    display: none !important;
}

.dmvb-group__header {
    margin-bottom: 14px;
}

.dmvb-group__title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dmvb-group__desc {
    margin: 0;
    color: var(--dmvb-ink-2);
    font-size: 14px;
    line-height: 1.5;
}

@keyframes dmvb-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* ---------------- Option cards ---------------- */

.dmvb-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.dmvb-group[data-type="checkbox"] .dmvb-options {
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .dmvb-group[data-type="checkbox"] .dmvb-options {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

.dmvb-opt {
    /* Reset native button */
    appearance: none;
    -webkit-appearance: none;
    background: var(--dmvb-surface);
    border: 1.5px solid var(--dmvb-line);
    border-radius: var(--dmvb-radius);
    padding: 14px 14px 14px 16px;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    position: relative;
    transition: border-color .18s var(--dmvb-ease),
                background .18s var(--dmvb-ease),
                transform .12s var(--dmvb-ease),
                box-shadow .18s var(--dmvb-ease);
    /* Kill iOS tap highlight so our transition is the feedback. */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.dmvb-opt:hover {
    border-color: #b9bec7;
}

.dmvb-opt:active {
    transform: scale(0.985);
}

.dmvb-opt:focus-visible {
    outline: 3px solid var(--dmvb-focus);
    outline-offset: 2px;
}

.dmvb-opt.is-selected {
    border-color: var(--dmvb-ink);
    background: var(--dmvb-ink);
    color: #fff;
    box-shadow: var(--dmvb-shadow);
}

.dmvb-opt.is-selected .dmvb-opt__price {
    color: rgba(255, 255, 255, 0.7);
}

.dmvb-opt__thumb {
    flex: 0 0 auto;
    width: 96px;
    height: 72px;
    border-radius: 10px;
    background-color: var(--dmvb-surface-2);
    background-size: cover;
    background-position: center;
}

@media (min-width: 600px) {
    .dmvb-opt__thumb {
        width: 120px;
        height: 88px;
    }
}

.dmvb-opt__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dmvb-opt__label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.dmvb-opt__price {
    font-size: 13px;
    color: var(--dmvb-ink-2);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.dmvb-opt__check {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--dmvb-line);
    position: relative;
    transition: border-color .18s var(--dmvb-ease), background .18s var(--dmvb-ease);
}

.dmvb-opt.is-selected .dmvb-opt__check {
    border-color: #fff;
    background: #fff;
}

.dmvb-opt.is-selected .dmvb-opt__check::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 6px;
    height: 10px;
    border: solid var(--dmvb-ink);
    border-width: 0 2px 2px 0;
    transform: translate(0, -1px) rotate(45deg);
    top: 3px;
}

/* Price-only rows (radios without thumbs) shrink nicely on mobile */
.dmvb-group[data-type="radio"] .dmvb-opt:not(:has(.dmvb-opt__thumb)) {
    min-height: 60px;
}

/* ---------------- Sticky summary ---------------- */

.dmvb-summary {
    grid-area: summary;
    background: var(--dmvb-surface);
    border-top: 1px solid var(--dmvb-line);
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -8px 30px rgba(10, 12, 16, 0.06);
}

@media (min-width: 880px) {
    .dmvb-summary {
        border-top: none;
        border-left: 1px solid var(--dmvb-line);
        box-shadow: none;
        position: sticky;
        top: var(--dmvb-top-h, 76px);
        align-self: start;
    }
}

.dmvb-summary__inner {
    padding: 16px 20px calc(env(safe-area-inset-bottom, 0px) + 16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 880px) {
    .dmvb-summary__inner {
        padding: 24px 24px 28px;
        gap: 14px;
    }
}

.dmvb-summary__price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.dmvb-summary__price-label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dmvb-ink-2);
}

.dmvb-summary__price {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.dmvb-summary__list {
    display: none;
}

@media (min-width: 880px) {
    .dmvb-summary__list {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin: 6px 0 10px;
        padding: 12px 0;
        border-top: 1px solid var(--dmvb-line);
        border-bottom: 1px solid var(--dmvb-line);
    }
}

.dmvb-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--dmvb-ink-2);
}

.dmvb-summary__line-price {
    font-variant-numeric: tabular-nums;
    color: var(--dmvb-ink);
    font-weight: 500;
}

/* ---------------- CTAs ---------------- */

.dmvb-cta {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    padding: 14px 22px;
    min-height: 52px;
    cursor: pointer;
    transition: transform .12s var(--dmvb-ease), background .18s var(--dmvb-ease), color .18s var(--dmvb-ease);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border: 1.5px solid transparent;
}

.dmvb-cta:active { transform: scale(0.98); }

.dmvb-cta:focus-visible {
    outline: 3px solid var(--dmvb-focus);
    outline-offset: 2px;
}

.dmvb-cta--primary {
    background: var(--dmvb-accent);
    color: var(--dmvb-accent-ink);
}

.dmvb-cta--primary:hover { background: var(--dmvb-accent-strong); }

.dmvb-cta--ghost {
    background: transparent;
    color: var(--dmvb-ink);
    border-color: var(--dmvb-line);
}

.dmvb-cta--ghost:hover { border-color: var(--dmvb-ink); }

/* ---------------- Locked (standard / included) options ---------------- */

.dmvb-opt--locked {
    cursor: default;
}

.dmvb-opt--locked:hover { border-color: var(--dmvb-line); }
.dmvb-opt--locked:active { transform: none; }

/* Render as "on" but clearly not a toggle: light card, green check + tag. */
.dmvb-opt--locked.is-selected {
    background: var(--dmvb-surface);
    color: var(--dmvb-ink);
    border-color: #bfe3cd;
    box-shadow: none;
}

.dmvb-opt--locked.is-selected .dmvb-opt__price { color: #1a7f47; }

.dmvb-opt--locked.is-selected .dmvb-opt__check {
    background: #1a7f47;
    border-color: #1a7f47;
}

.dmvb-opt--locked.is-selected .dmvb-opt__check::after {
    border-color: #fff;
}

/* ---------------- Step progress ---------------- */

.dmvb-progress-wrap {
    margin: 0 0 30px;
}

.dmvb-progress {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px 12px;
    margin-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.dmvb-progress::-webkit-scrollbar { display: none; }

.dmvb-progress__step { flex: 0 0 auto; white-space: nowrap; }

/* On desktop, wrap so every step is visible without scrolling. */
@media (min-width: 880px) {
    .dmvb-progress { flex-wrap: wrap; overflow-x: visible; }
}

.dmvb-progress__step {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    font: inherit;
    color: var(--dmvb-ink-2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

button.dmvb-progress__step { cursor: pointer; }

.dmvb-progress__num {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--dmvb-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--dmvb-ink-2);
    background: var(--dmvb-surface);
    transition: background .18s var(--dmvb-ease), color .18s var(--dmvb-ease), border-color .18s var(--dmvb-ease);
}

.dmvb-progress__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dmvb-progress__step.is-done .dmvb-progress__num {
    background: var(--dmvb-ink);
    border-color: var(--dmvb-ink);
    color: #fff;
}

.dmvb-progress__step.is-current { color: var(--dmvb-ink); }

.dmvb-progress__step.is-current .dmvb-progress__num {
    background: var(--dmvb-accent);
    border-color: var(--dmvb-accent);
    color: var(--dmvb-accent-ink);
}

.dmvb-progress-bar {
    height: 4px;
    border-radius: 999px;
    background: var(--dmvb-line);
    overflow: hidden;
}

.dmvb-progress-bar > span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--dmvb-accent);
    border-radius: 999px;
    transition: width .32s var(--dmvb-ease);
}

/* Compact progress on small screens: hide labels for non-current steps. */
@media (max-width: 599px) {
    .dmvb-progress__step:not(.is-current) .dmvb-progress__label { display: none; }
}

/* ---------------- Step head ---------------- */

.dmvb-step-desc {
    margin: 0 0 20px;
    color: var(--dmvb-ink-2);
    font-size: 15px;
    line-height: 1.5;
}

.dmvb-step-desc[hidden] { display: none; }

/* Steps that opt into a two-up layout (e.g. Climate: Heat + A/C side by side). */
@media (min-width: 880px) {
    .dmvb-step-body--cols {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 24px;
        align-items: start;
    }
}

/* ---------------- Required-field error ---------------- */

.dmvb-group--error .dmvb-options {
    outline: 2px solid var(--dmvb-accent);
    outline-offset: 6px;
    border-radius: var(--dmvb-radius);
}

.dmvb-group--error .dmvb-group__title::after {
    content: " (please choose)";
    color: var(--dmvb-accent);
    font-weight: 600;
    font-size: 14px;
}

/* ---------------- Step nav ---------------- */

.dmvb-stepnav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.dmvb-stepnav__spacer { flex: 1 1 auto; }
.dmvb-stepnav__back { margin-right: auto; }
.dmvb-stepnav__next,
.dmvb-stepnav .dmvb-cta--primary { margin-left: auto; }
.dmvb-stepnav__save { flex: 0 0 auto; }

@media (max-width: 599px) {
    .dmvb-stepnav {
        position: sticky;
        bottom: 0;
        background: var(--dmvb-surface);
        padding: 12px 0 calc(env(safe-area-inset-bottom, 0px) + 12px);
        margin-top: 24px;
        box-shadow: 0 -8px 24px rgba(10, 12, 16, 0.06);
        z-index: 5;
    }
    .dmvb-stepnav .dmvb-cta { flex: 1 1 auto; }
    .dmvb-stepnav__back { flex: 0 0 auto; }
}

/* ---------------- Review step ---------------- */

.dmvb-review {
    margin-top: 8px;
    padding: 18px 18px 20px;
    background: var(--dmvb-surface-2);
    border-radius: var(--dmvb-radius-lg);
}

.dmvb-review__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.dmvb-review__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dmvb-review__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    color: var(--dmvb-ink-2);
}

.dmvb-review__price {
    font-variant-numeric: tabular-nums;
    color: var(--dmvb-ink);
    font-weight: 500;
    white-space: nowrap;
}

.dmvb-review__total {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 2px solid var(--dmvb-ink);
    font-size: 17px;
    font-weight: 700;
    color: var(--dmvb-ink);
}

.dmvb-review__total .dmvb-review__price { font-weight: 700; }

.dmvb-review__credit {
    color: #1a7f47;
    font-size: 13px;
    padding-left: 14px;
}

.dmvb-review__credit .dmvb-review__price { color: #1a7f47; font-weight: 600; }

.dmvb-summary__credit { color: #1a7f47; }
.dmvb-summary__credit .dmvb-summary__line-price { color: #1a7f47; font-weight: 600; }

/* Review-step photo gallery (right column) */
.dmvb-summary__heading {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dmvb-ink-2);
    font-weight: 700;
    margin: 4px 0 12px;
}

.dmvb-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dmvb-gallery__item { margin: 0; }

.dmvb-gallery__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    border: 1px solid var(--dmvb-line);
    background-color: var(--dmvb-surface-2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dmvb-gallery__img--noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    background-image:
        repeating-linear-gradient(
            45deg,
            var(--dmvb-surface-2),
            var(--dmvb-surface-2) 10px,
            #eef0f3 10px,
            #eef0f3 20px
        );
}

.dmvb-gallery__ph {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dmvb-ink-2);
}

.dmvb-gallery__cap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
}

.dmvb-gallery__price {
    color: var(--dmvb-ink-2);
    font-variant-numeric: tabular-nums;
}

.dmvb-gallery__empty {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--dmvb-ink-2);
    font-size: 13px;
}

/* Review: estimate-not-a-quote disclaimer */
.dmvb-review__disclaimer {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: var(--dmvb-radius);
    background: #fff4e5;
    border: 1.5px solid #f3b34d;
    color: #7a4a00;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

/* Review sidebar: model base line + standard inclusions list */
.dmvb-summary__baseline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.dmvb-summary__baseline-name {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.dmvb-summary__baseline-sub {
    font-size: 12px;
    color: var(--dmvb-ink-2);
    font-variant-numeric: tabular-nums;
}

.dmvb-included {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dmvb-included li {
    position: relative;
    padding-left: 18px;
    font-size: 12.5px;
    color: var(--dmvb-ink-2);
    line-height: 1.4;
}

.dmvb-included li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #1a7f47;
    font-weight: 700;
}

.dmvb-review__note {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--dmvb-ink-2);
}

/* ---------------- Contextual notices ---------------- */

.dmvb-notice {
    position: relative;
    margin-top: 18px;
    padding: 13px 16px 13px 44px;
    border-radius: var(--dmvb-radius);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    animation: dmvb-fade-in .32s var(--dmvb-ease);
}

.dmvb-notice::before {
    content: "⚠";
    position: absolute;
    left: 15px;
    top: 12px;
    font-size: 16px;
    line-height: 1.4;
}

.dmvb-notice--warning {
    background: #fff4e5;
    border: 1.5px solid #f3b34d;
    color: #7a4a00;
}

/* ---------------- Modal (lead capture) ---------------- */

.dmvb-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(11, 12, 16, 0.55);
    font-family: var(--dmvb-font);
    color: var(--dmvb-ink);
    -webkit-font-smoothing: antialiased;
    animation: dmvb-fade-in .18s var(--dmvb-ease);
}

.dmvb-modal-overlay *,
.dmvb-modal-overlay *::before,
.dmvb-modal-overlay *::after { box-sizing: border-box; }

.dmvb-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 92dvh;
    overflow-y: auto;
    background: var(--dmvb-surface);
    border-radius: var(--dmvb-radius-lg);
    box-shadow: 0 24px 70px rgba(10, 12, 16, 0.35);
}

.dmvb-modal__form {
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dmvb-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--dmvb-surface-2);
    color: var(--dmvb-ink-2);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.dmvb-modal__close:hover { background: #e9ebf0; color: var(--dmvb-ink); }

.dmvb-modal__title {
    margin: 0;
    padding-right: 28px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dmvb-modal__intro {
    margin: -4px 0 4px;
    color: var(--dmvb-ink-2);
    font-size: 14px;
    line-height: 1.5;
}

.dmvb-modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dmvb-modal__label {
    font-size: 13px;
    font-weight: 600;
}

.dmvb-modal__label em { color: var(--dmvb-accent); font-style: normal; }

.dmvb-modal__field input,
.dmvb-modal__field textarea {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--dmvb-ink);
    background: var(--dmvb-surface);
    border: 1.5px solid var(--dmvb-line);
    border-radius: var(--dmvb-radius);
    padding: 11px 13px;
    resize: vertical;
}

.dmvb-modal__field input:focus,
.dmvb-modal__field textarea:focus {
    outline: none;
    border-color: var(--dmvb-ink);
}

.dmvb-modal__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.dmvb-modal__check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.dmvb-modal__error {
    margin: 0;
    color: var(--dmvb-accent);
    font-size: 13px;
    font-weight: 600;
}

.dmvb-modal__error[hidden] { display: none; }

.dmvb-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.dmvb-cta[disabled] { opacity: 0.6; cursor: default; }

@media (max-width: 520px) {
    .dmvb-modal__actions { flex-direction: column-reverse; }
    .dmvb-modal__actions .dmvb-cta { width: 100%; }
}

/* ---------------- Toast ---------------- */

.dmvb-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 16px);
    z-index: 1100;
    max-width: calc(100vw - 40px);
    padding: 13px 20px;
    background: var(--dmvb-ink);
    color: #fff;
    font-family: var(--dmvb-font);
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(10, 12, 16, 0.3);
    opacity: 0;
    transition: opacity .25s var(--dmvb-ease), transform .25s var(--dmvb-ease);
}

.dmvb-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Motion safety ---------------- */

@media (prefers-reduced-motion: reduce) {
    .dmvb-hero__img,
    .dmvb-group,
    .dmvb-opt,
    .dmvb-cta,
    .dmvb-progress-bar > span,
    .dmvb-progress__num {
        transition: none !important;
        animation: none !important;
    }
}
