/* ============ VMT Quote Form — v2 styles ============
   All colors use CSS variables — when Phase 1 brand
   identity is finalized, you only edit :root below.

   Currently themed to match Moving Express template kit
   palette (deep navy #002496 + accent yellow #FFD41C).
   Replace these 6 colour values with your final brand
   colours when ready — nothing else needs to change.
   ===================================================== */
:root {
    /* === BRAND COLOURS — change these to rebrand === */
    --vmt-primary:        #002496;   /* deep navy */
    --vmt-primary-hover:  #001B71;   /* darker navy */
    --vmt-accent:         #FFD41C;   /* yellow CTA */
    --vmt-accent-hover:   #F2C20A;   /* darker yellow */
    --vmt-accent-text:    #002496;   /* text on yellow buttons */
    --vmt-secondary:      #0073CF;   /* sky blue accent */

    /* === NEUTRALS — usually leave alone === */
    --vmt-text:           #030541;
    --vmt-text-light:     #717B9D;
    --vmt-label:          #1f2a52;
    --vmt-border:         #d9e1f0;
    --vmt-border-focus:   var(--vmt-primary);
    --vmt-bg-card:        #ffffff;
    --vmt-bg-soft:        #F2F5FA;
    --vmt-bg-tab:         #EAF6FF;

    /* === STATUS COLOURS — universal === */
    --vmt-success-bg:     #ecfdf5;
    --vmt-success-text:   #065f46;
    --vmt-success-border: #6ee7b7;
    --vmt-error-bg:       #fef2f2;
    --vmt-error-text:     #991b1b;
    --vmt-error-border:   #fca5a5;

    /* === SHAPE === */
    --vmt-radius:         12px;
    --vmt-radius-sm:      8px;
    --vmt-shadow:         0 4px 14px rgba(0, 36, 150, 0.08);
}

.vmt-form {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px;
    background: var(--vmt-bg-card);
    border: 1px solid var(--vmt-border);
    border-radius: var(--vmt-radius);
    box-shadow: var(--vmt-shadow);
    font-family: inherit;
    color: var(--vmt-text);
    box-sizing: border-box;
    /* Reset Elementor / theme inheritance that can break layout */
    display: block;
    text-align: left;
    line-height: 1.5;
}
.vmt-form *, .vmt-form *::before, .vmt-form *::after {
    box-sizing: border-box;
}
.vmt-form h3 { margin: 0 0 6px; font-size: 24px; }
.vmt-sub    { margin: 0 0 22px; color: var(--vmt-text-light); font-size: 15px; }

/* -------- progress bar -------- */
.vmt-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}
.vmt-step-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--vmt-bg-tab);
    color: var(--vmt-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    transition: all .2s;
    flex: 0 0 38px;
}
.vmt-step-dot span {
    position: absolute;
    top: 44px;
    font-size: 12px;
    font-weight: 500;
    color: var(--vmt-text-light);
    white-space: nowrap;
}
.vmt-step-dot.active   { background: var(--vmt-primary); color: #fff; }
.vmt-step-dot.active span { color: var(--vmt-primary); font-weight: 600; }
.vmt-step-dot.complete { background: var(--vmt-primary); color: #fff; opacity: .55; }
.vmt-step-line {
    flex: 1;
    height: 2px;
    background: var(--vmt-bg-tab);
    max-width: 80px;
}

/* -------- step visibility -------- */
/* -------- step visibility (bulletproof against theme overrides) -------- */
.vmt-form .vmt-step           { display: none !important; }
.vmt-form .vmt-step.active    { display: block !important; }

/* -------- cards -------- */
.vmt-card {
    background: var(--vmt-bg-soft);
    border: 1px solid var(--vmt-border);
    border-radius: var(--vmt-radius);
    padding: 18px;
    margin-bottom: 16px;
}
.vmt-card legend {
    font-weight: 600;
    color: var(--vmt-label);
    padding: 0 6px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* -------- grid -------- */
.vmt-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* -------- form fields -------- */
.vmt-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--vmt-label);
    margin-bottom: 12px;
}
.vmt-form input[type="text"],
.vmt-form input[type="email"],
.vmt-form input[type="tel"],
.vmt-form input[type="date"],
.vmt-form select,
.vmt-form textarea {
    width: 100%;
    padding: 11px 12px;
    margin-top: 6px;
    border: 1px solid var(--vmt-border);
    border-radius: var(--vmt-radius-sm);
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.vmt-form input:focus,
.vmt-form select:focus,
.vmt-form textarea:focus {
    border-color: var(--vmt-border-focus);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.vmt-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-top: 8px;
}
.vmt-checkbox input { width: auto !important; margin: 0 !important; }

/* -------- date card -------- */
.vmt-date-card { margin-top: 8px; }
.vmt-date-card label:first-child { margin-bottom: 8px; }

/* -------- buttons -------- */
.vmt-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}
.vmt-actions:has(.vmt-btn-primary:only-child) { justify-content: flex-end; }
.vmt-btn-primary,
.vmt-btn-secondary {
    padding: 13px 26px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--vmt-radius-sm);
    border: 0;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.vmt-btn-primary {
    background: var(--vmt-accent);
    color: var(--vmt-accent-text);
}
.vmt-btn-primary:hover:not(:disabled) {
    background: var(--vmt-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 212, 28, 0.4);
}
.vmt-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.vmt-btn-secondary {
    background: #fff;
    color: var(--vmt-label);
    border: 1px solid var(--vmt-border);
}
.vmt-btn-secondary:hover { background: var(--vmt-bg-soft); }

/* -------- step 2 layout -------- */
.vmt-step2-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    margin-bottom: 20px;
}
.vmt-step2-right { position: relative; }

/* -------- map -------- */
.vmt-map-wrap {
    position: sticky;
    top: 20px;
    border: 1px solid var(--vmt-border);
    border-radius: var(--vmt-radius);
    overflow: hidden;
    background: var(--vmt-bg-soft);
}
#vmt-map {
    width: 100%;
    height: 280px;
    background: var(--vmt-bg-tab);
    display: flex;
    align-items: center;
    justify-content: center;
}
#vmt-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.vmt-map-placeholder {
    color: var(--vmt-text-light);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}
.vmt-distance-box {
    padding: 14px 16px;
    border-top: 1px solid var(--vmt-border);
    background: #fff;
}
.vmt-distance-from-to {
    font-size: 14px;
    color: var(--vmt-label);
    font-weight: 600;
    margin-bottom: 4px;
}
.vmt-distance-miles {
    font-size: 14px;
    color: var(--vmt-text-light);
}
.vmt-distance-miles strong {
    color: var(--vmt-primary);
    font-size: 22px;
    font-weight: 700;
}

/* -------- inventory tabs -------- */
.vmt-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--vmt-border);
    padding-bottom: 10px;
}
.vmt-tab {
    padding: 8px 14px;
    background: var(--vmt-bg-tab);
    border: 1px solid var(--vmt-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vmt-label);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.vmt-tab:hover { background: #e5e7eb; }
.vmt-tab.active {
    background: var(--vmt-primary);
    border-color: var(--vmt-primary);
    color: #fff;
}
.vmt-tab-body { display: none; margin-bottom: 18px; }
.vmt-tab-body.active { display: block; }

/* -------- inventory items -------- */
.vmt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px solid var(--vmt-border);
}
.vmt-item:last-child { border-bottom: 0; }
.vmt-item-name { font-size: 15px; color: var(--vmt-text); }
.vmt-counter {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vmt-counter button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--vmt-border);
    background: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: var(--vmt-label);
    transition: all .15s;
}
.vmt-counter button:hover { background: var(--vmt-primary); border-color: var(--vmt-primary); color: #fff; }
.vmt-count {
    min-width: 22px;
    text-align: center;
    font-weight: 600;
}

/* -------- step header (centered) -------- */
.vmt-step-header {
    text-align: center;
    margin-bottom: 22px;
}
.vmt-step-header h3 { margin: 0 0 6px; }
.vmt-step-header .vmt-sub { margin: 0; }

/* -------- two-state quote box (locked → revealed) -------- */
.vmt-quote-box {
    margin: 22px 0;
    padding: 30px 24px;
    border-radius: var(--vmt-radius);
    color: #fff;
    text-align: center;
    transition: background .4s ease;
    position: relative;
    overflow: hidden;
}
/* LOCKED — theme navy with anticipation */
.vmt-quote-box[data-state="locked"] {
    background: linear-gradient(135deg, #001B71 0%, #002496 60%, #0073CF 100%);
    box-shadow: 0 10px 30px rgba(0, 36, 150, 0.30);
}
/* REVEALED — success green */
.vmt-quote-box[data-state="revealed"] {
    background: linear-gradient(135deg, #047857 0%, #10b981 60%, #059669 100%);
    box-shadow: 0 10px 30px rgba(16,185,129,0.30);
    animation: vmt-reveal .6s ease;
}
@keyframes vmt-reveal {
    0%   { transform: scale(.96); opacity: 0; }
    60%  { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* show / hide the right state */
.vmt-quote-box[data-state="locked"]   .vmt-quote-revealed { display: none; }
.vmt-quote-box[data-state="revealed"] .vmt-quote-locked   { display: none; }

.vmt-quote-icon {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 8px;
}
.vmt-quote-box[data-state="revealed"] .vmt-quote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    font-size: 30px;
    font-weight: 700;
    margin: 0 auto 10px;
}
.vmt-quote-headline {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.vmt-quote-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: .85;
    margin-top: 14px;
}
.vmt-quote-amount {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin: 6px 0 12px;
    letter-spacing: -1px;
}
.vmt-quote-copy {
    font-size: 15px;
    line-height: 1.55;
    opacity: .92;
    max-width: 480px;
    margin: 0 auto;
}
.vmt-quote-copy strong { font-weight: 700; }
.vmt-quote-perks {
    list-style: none;
    padding: 14px 0 0;
    margin: 14px 0 0;
    font-size: 14px;
    text-align: left;
    max-width: 380px;
    margin: 16px auto 0;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.vmt-quote-perks li {
    padding: 6px 0;
    opacity: .95;
}

/* -------- success / error messages -------- */
.vmt-message {
    margin-top: 18px;
    padding: 14px;
    border-radius: var(--vmt-radius-sm);
    font-size: 14px;
}
.vmt-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(16,185,129,0.15);
}
.vmt-error   { background: var(--vmt-error-bg);   color: var(--vmt-error-text);   border: 1px solid var(--vmt-error-border); }

/* -------- responsive -------- */
@media (max-width: 860px) {
    .vmt-step2-grid { grid-template-columns: 1fr; }
    .vmt-map-wrap   { position: static; }
    #vmt-map        { height: 220px; }
}
@media (max-width: 600px) {
    .vmt-form        { padding: 18px; }
    .vmt-grid-2      { grid-template-columns: 1fr; }
    .vmt-step-dot span { display: none; }
    .vmt-actions     { flex-direction: column-reverse; }
    .vmt-btn-primary,
    .vmt-btn-secondary { width: 100%; }
    .vmt-quote-amount   { font-size: 38px; }
    .vmt-quote-headline { font-size: 20px; }
}
