/* ============================================================
   Vehicle Import Calculator — vic.css  v2.1.0  (clean)
   ============================================================ */

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

.vic-wrap *, .vic-wrap *::before, .vic-wrap *::after,
.vic-modal-overlay *, .vic-modal-overlay *::before, .vic-modal-overlay *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

/* ── Card ── */
.vic-wrap {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #ffffff;
  padding: 36px 32px 40px;
  max-width: 580px;
  margin: 0 auto;
}

/* ── Header ── */
.vic-label-tag { display: none; }

.vic-title {
  font-size: 22px; font-weight: 700;
  color: #0f172a; letter-spacing: -0.3px; line-height: 1.2;
}
.vic-title span { color: #0E629B; }

.vic-subtitle {
  margin-top: 6px; font-size: 13px; font-weight: 400; color: #64748b;
}

.vic-divider {
  height: 1px; background: #e2e8f0; margin: 24px 0 28px;
}

/* ── Fields ── */
.vic-fields {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 18px;
}
.vic-field-full { grid-column: 1 / -1; }

.vic-field label {
  display: block; font-size: 12px; font-weight: 600;
  color: #374151; margin-bottom: 6px;
}

.vic-field select,
.vic-field input[type="number"] {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0px 25px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  color: #0f172a; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
.vic-field input[type="number"] { padding-right: 12px; }

.vic-select-wrap { position: relative; }
.vic-select-wrap::after {
  content: '';
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #64748b;
  pointer-events: none;
}

.vic-field select option { background: #fff; color: #0f172a; }

.vic-field select:focus,
.vic-field input:focus {
  border-color: #0E629B;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14,98,155,0.1);
}
.vic-field input::placeholder { color: #94a3b8; font-weight: 400; }

/* ── Button ── */
.vic-btn {
  width: 100%; padding: 12px 20px;
  background: #0E629B; color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  border: none; border-radius: 8px; cursor: pointer;
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.vic-btn:hover  { background: #0a5080; }
.vic-btn:active { background: #084068; }
.vic-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.vic-btn svg { display: none; }

/* ── Spinner ── */
.vic-spinner {
  width: 15px; height: 15px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff; border-radius: 50%;
  animation: vic-spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes vic-spin { to { transform: rotate(360deg); } }

/* ── Error ── */
.vic-error-msg {
  background: #fff5f5; border: 1px solid #fca5a5;
  color: #b91c1c; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; font-weight: 500;
  margin-top: 12px; display: none;
}

/* ══════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════ */
.vic-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(0,0,0,0.45);
  align-items: center; justify-content: center;
  padding: 20px;
}
.vic-modal-overlay.vic-open {
  display: flex;
  animation: vic-overlay-in 0.2s ease;
}
@keyframes vic-overlay-in { from { opacity: 0; } to { opacity: 1; } }

.vic-modal {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  animation: vic-modal-in 0.22s ease;
  scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
}
.vic-modal::-webkit-scrollbar { width: 4px; }
.vic-modal::-webkit-scrollbar-track { background: transparent; }
.vic-modal::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

@keyframes vic-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Modal Header */
.vic-modal-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  position: sticky; top: 0;
  background: #ffffff; border-radius: 12px 12px 0 0; z-index: 1;
}
.vic-modal-tag {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: #0E629B; margin-bottom: 4px;
}
.vic-modal-title {
  font-size: 18px; font-weight: 700;
  color: #0f172a; letter-spacing: -0.3px;
}
.vic-modal-subtitle {
  font-size: 12px; font-weight: 400; color: #94a3b8; margin-top: 3px;
}
.vic-modal-close {
  width: 32px; height: 32px; flex-shrink: 0;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; color: #64748b;
}
.vic-modal-close:hover { background: #e2e8f0; }

/* Modal Body */
.vic-modal-body { padding: 20px 24px 24px; }

.vic-summary-badges {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px;
}
.vic-badge {
  font-size: 12px; font-weight: 600; color: #0E629B;
  background: #eff6ff; border: 1px solid #bfdbfe;
  padding: 4px 10px; border-radius: 20px;
}

.vic-section-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #94a3b8; margin: 0 0 8px;
}

.vic-breakdown-card,
.vic-service-card {
  border: 1px solid #e2e8f0; border-radius: 8px;
  overflow: hidden; margin-bottom: 12px;
}

.vic-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.vic-row:last-child { border-bottom: none; }

.vic-row-left { display: flex; align-items: center; gap: 8px; }
.vic-row-icon { display: none; }
.vic-row-label { font-size: 13px; font-weight: 500; color: #475569; }
.vic-row-value { font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; }
.vic-row-value small { font-size: 10px; font-weight: 500; color: #94a3b8; }

.vic-subtotal-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; margin-bottom: 12px;
}
.vic-subtotal-label { font-size: 13px; font-weight: 600; color: #374151; }
.vic-subtotal-value { font-size: 14px; font-weight: 700; color: #0f172a; }
.vic-subtotal-value small { font-size: 10px; font-weight: 500; color: #94a3b8; }

.vic-total-block {
  background: #0E629B; border-radius: 8px; padding: 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.vic-total-block > svg { display: none; }
.vic-total-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 4px;
}
.vic-total-value {
  font-size: 26px; font-weight: 700;
  color: #ffffff; letter-spacing: -0.5px; line-height: 1;
}
.vic-total-currency {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.6); margin-top: 3px;
}

.vic-disclaimer {
  margin-top: 14px; font-size: 11px;
  color: #94a3b8; text-align: center; line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .vic-wrap { padding: 24px 20px 28px; }
  .vic-fields { grid-template-columns: 1fr; }
  .vic-field-full { grid-column: 1; }
  .vic-modal-header, .vic-modal-body { padding-left: 18px; padding-right: 18px; }
  .vic-total-value { font-size: 22px; }
  .vic-title { font-size: 20px; }
}

/* ── Lead / Email capture box ── */
.vic-lead-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 20px;
  margin: 20px 0 16px;
}
.vic-lead-heading {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.vic-lead-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 16px;
}
.vic-lead-input-row {
  display: flex;
  gap: 8px;
}
#vic-lead-email {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 14px;
  height: 42px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 0;
}
#vic-lead-email:focus {
  border-color: #0E629B;
  box-shadow: 0 0 0 3px rgba(14,98,155,0.1);
}
.vic-lead-btn {
  background: #0E629B;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  height: 42px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.vic-lead-btn:hover  { background: #0a4f80; }
.vic-lead-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.vic-lead-error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 8px;
  display: none;
}
.vic-lead-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.55;
}
.vic-lead-success svg { flex-shrink: 0; margin-top: 1px; }

@media (max-width: 440px) {
  .vic-lead-input-row { flex-direction: column; }
  .vic-lead-btn { width: 100%; justify-content: center; }
}
