/* ================================================================
   VSM Vehicle Quote Shortcode  –  quote.css  v1.8.3
   ================================================================ */

/* ── On-page wrap (reg bar + how-it-works only) ── */
.vsm-quote-wrap {
    font-family: inherit;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Welcome heading – above the reg bar ── */
.vsm-quote-welcome-heading {
    margin-bottom: 18px;
}
/* Force all text inside to be clearly visible, overriding any theme lightening */
.vsm-quote-welcome-heading h1,
.vsm-quote-welcome-heading h2,
.vsm-quote-welcome-heading h3,
.vsm-quote-welcome-heading h4,
.vsm-quote-welcome-heading h5,
.vsm-quote-welcome-heading h6 {
    margin-top: 0 !important;
    color: #1a1a1a !important;
    opacity: 1 !important;
}
.vsm-quote-welcome-heading p,
.vsm-quote-welcome-heading span,
.vsm-quote-welcome-heading div {
    margin-top: 0;
    color: #333 !important;
    opacity: 1 !important;
}

/* ── Registration bar ── */
.vsm-quote-bar {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 12px;
}
.vsm-quote-reg-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    background: #f5c518;
    border: 3px solid #1a3a6c;
    border-radius: 8px;
    overflow: hidden;
    min-height: 64px;
}
.vsm-quote-gb {
    background: #1a3a6c;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    text-align: center;
}
.vsm-quote-reg-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #1a3a6c;
    padding: 0 16px;
    outline: none;
}
.vsm-quote-reg-input::placeholder {
    color: rgba(26,58,108,0.45);
    font-size: 20px;
    letter-spacing: 2px;
}
.vsm-quote-btn-primary {
    background: #1a3a6c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 64px;
    white-space: nowrap;
    transition: background 0.2s;
}
.vsm-quote-btn-primary:hover { background: #0d2447; }
.vsm-quote-btn-icon { font-size: 16px; }

/* ── How-it-works bar ── */
.vsm-quote-steps-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 12px;
    color: #555;
}
.vsm-quote-how-label  { font-weight: 700; color: #333; margin-right: 4px; }
.vsm-quote-step-item  {
    display: flex; align-items: center; gap: 6px;
    border: 1px solid #ddd; border-radius: 6px;
    padding: 7px 13px; background: #fff;
    font-weight: 700; color: #1a3a6c; font-size: 12px;
}
.vsm-qs-icon  { font-size: 15px; }
.vsm-qs-arrow { color: #aaa; font-size: 18px; }


/* ══════════════════════════════════════════════════════
   MODAL OVERLAY
══════════════════════════════════════════════════════ */
.vsm-qmodal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: vsm-fade-in 0.18s ease;
}
@keyframes vsm-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* The modal card */
.vsm-qmodal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    width: 100%;
    max-width: 780px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    animation: vsm-modal-in 0.22s ease;
    overflow: hidden;
}
@keyframes vsm-modal-in {
    from { opacity: 0; transform: translateY(-16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Modal header: dark bar with progress wizard ── */
.vsm-qmodal-header {
    background: #1a3a6c;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}
.vsm-qmodal-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}
.vsm-qmodal-reg-badge {
    display: inline-block;
    background: #f5c518;
    color: #1a3a6c;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 3px;
    padding: 3px 10px;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.6);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Close button */
.vsm-qmodal-close {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
    flex-shrink: 0;
}
.vsm-qmodal-close:hover { background: rgba(255,255,255,0.25); }

/* ── Modal scrollable body ── */
.vsm-qmodal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px 28px 28px;
    min-height: 0;
}

/* ── Quote panel inside modal (no extra border/shadow needed) ── */
.vsm-quote-panel {
    /* reset the old inline-page styles */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* ══════════════════════════════════════════════════════
   PROGRESS WIZARD BAR (inside modal header)
══════════════════════════════════════════════════════ */
.vsm-quote-progress {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex: 1;
    min-width: 0;
}
.vsm-qp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}
.vsm-qp-bubble {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.vsm-qp-step.vsm-qp-active .vsm-qp-bubble {
    background: #fff;
    color: #1a3a6c;
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}
.vsm-qp-step.vsm-qp-done .vsm-qp-bubble {
    background: #00c853;
    color: #fff;
    border-color: #00c853;
}
.vsm-qp-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: color 0.3s;
}
.vsm-qp-step.vsm-qp-active .vsm-qp-label { color: #fff; }
.vsm-qp-step.vsm-qp-done  .vsm-qp-label { color: rgba(255,255,255,0.75); }

/* Connector lines between bubbles */
.vsm-qp-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin: 0 4px;
    margin-top: 16px;   /* align with centre of bubble */
    align-self: flex-start;
    border-radius: 2px;
    transition: background 0.3s;
    min-width: 20px;
}
.vsm-qp-line.vsm-qp-line-done { background: #00c853; }


/* ── Step title ── */
.vsm-qs-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a3a6c !important;
    margin: 0 0 20px;
    padding: 0;
    border: none;
    background: none;
    line-height: 1.3;
}

/* ── Vehicle summary card ── */
.vsm-qs-vehicle-summary {
    background: #f5f8ff;
    border: 1px solid #ccd5f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 22px;
}
.vsm-vehicle-preview-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px 20px;
}
.vsm-vp-item   { display: flex; flex-direction: column; }
.vsm-vp-label  { font-size: 10px; font-weight: 800; color: #555; text-transform: uppercase; letter-spacing: 0.6px; }
.vsm-vp-value  { font-size: 14px; color: #1a3a6c; font-weight: 700; }
.vsm-vehicle-reg-badge {
    display: inline-block;
    background: #f5c518;
    color: #1a3a6c;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 3px;
    padding: 4px 14px;
    border-radius: 4px;
    border: 2px solid #1a3a6c;
    margin-bottom: 14px;
}

/* ── Form layout ── */
.vsm-qs-row       { display: grid; gap: 14px; margin-bottom: 14px; }
.vsm-qs-row-2     { grid-template-columns: 1fr 1fr; }
.vsm-qs-row-3     { grid-template-columns: 1fr 1fr 1fr; }

/* ── Field labels ── */
.vsm-field-label,
.vsm-qs-field > label:not(.vsm-radio-opt):not(.vsm-q-privacy-label) {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a !important;
    margin-bottom: 6px;
    line-height: 1.4;
}
.vsm-req { color: #d63638; }

/* ── Inputs ── */
.vsm-q-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #c0c8d8;
    border-radius: 6px;
    font-size: 14px;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.vsm-q-input:focus {
    border-color: #1a3a6c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,58,108,0.12);
}
.vsm-q-input.vsm-field-error { border-color: #d63638; }

/* ── Radio groups ── */
.vsm-radio-group {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 8px 0 4px;
}
.vsm-radio-opt {
    display: flex !important;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a !important;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}
.vsm-radio-opt input[type="radio"] {
    width: 17px; height: 17px;
    accent-color: #1a3a6c;
    cursor: pointer; flex-shrink: 0; margin: 0;
}

/* ── Privacy row ── */
.vsm-qs-privacy { margin-top: 6px; }
.vsm-q-privacy-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
    background: none !important;
    border: none !important;
}
.vsm-q-privacy-label input[type="checkbox"] {
    width: 18px; height: 18px;
    flex-shrink: 0; margin-top: 2px;
    accent-color: #1a3a6c; cursor: pointer;
}
.vsm-q-privacy-text { font-size: 13px; color: #444; line-height: 1.55; font-weight: 400; }
.vsm-q-privacy-text a { color: #1a3a6c; }

/* ── Nav buttons ── */
.vsm-qs-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.vsm-qs-nav-final { justify-content: space-between; }

.vsm-quote-btn-next,
.vsm-quote-btn-submit {
    background: #1a3a6c;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    font-family: inherit;
}
.vsm-quote-btn-next:hover,
.vsm-quote-btn-submit:hover  { background: #0d2447; }
.vsm-quote-btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.vsm-quote-btn-back {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 7px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.vsm-quote-btn-back:hover { background: #e2e2e2; }

/* ── Error ── */
.vsm-quote-error {
    background: #fff0f0;
    border: 1px solid #d63638;
    color: #d63638;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ── Loading ── */
.vsm-loading {
    display: flex; align-items: center;
    gap: 10px; color: #444;
    font-size: 14px; font-weight: 600; padding: 8px 0;
}
.vsm-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 3px solid rgba(26,58,108,0.2);
    border-top-color: #1a3a6c;
    border-radius: 50%;
    animation: vsm-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes vsm-spin { to { transform: rotate(360deg); } }

/* ── Thank you ── */
.vsm-quote-thankyou { text-align: center; padding: 32px 20px; }
.vsm-quote-thankyou h3 { font-size: 22px; color: #00a32a; margin-bottom: 10px; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .vsm-quote-bar        { flex-direction: column; }
    .vsm-quote-btn-primary { justify-content: center; min-height: 52px; }
    .vsm-quote-reg-wrap   { min-height: 52px; }
    .vsm-quote-reg-input  { font-size: 20px; letter-spacing: 2px; }
    .vsm-qs-row-2,
    .vsm-qs-row-3         { grid-template-columns: 1fr; }
    .vsm-qmodal-body      { padding: 16px; }
    .vsm-qmodal-header    { flex-wrap: wrap; }
    .vsm-qmodal-reg-badge { font-size: 13px; letter-spacing: 2px; }
    .vsm-qp-label         { display: none; }   /* hide labels on tiny screens, bubbles only */
    .vsm-qp-line          { min-width: 12px; }
}


/* ══════════════════════════════════════════════════════
   VEHICLE NOT FOUND PANEL
══════════════════════════════════════════════════════ */
.vsm-notfound-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff8e1;
    border: 2px solid #f5c518;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 16px;
}
.vsm-notfound-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    color: #b8860b;
}
.vsm-notfound-text p {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #5c4000 !important;
    line-height: 1.5;
}
.vsm-notfound-text p:last-child { margin-bottom: 0; }
#vsm-notfound-retry-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.vsm-notfound-attempts {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* ══════════════════════════════════════════════════════
   MANUAL VEHICLE ENTRY NOTICE
══════════════════════════════════════════════════════ */
.vsm-manual-entry-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #e8f4fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 18px;
}
.vsm-manual-entry-icon {
    font-size: 22px;
    line-height: 1.2;
    flex-shrink: 0;
    color: #1565c0;
}
.vsm-manual-entry-notice p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #0d47a1 !important;
    line-height: 1.5;
}
