/* MV Tax Calculator — taxtoday.pk — Muhammad Asim */

.mvtc-wrap {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 760px;
  margin: 0 auto 40px;
  color: #0f172a;
}

/* ── HEADER ── */
.mvtc-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #065f46 100%);
  border-radius: 20px;
  padding: 22px 22px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}
.mvtc-header::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.mvtc-header-flag {
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.mvtc-header-text { flex: 1; min-width: 0; }
.mvtc-header-text h2 {
  color: #fff;
  font-size: clamp(15px, 3vw, 22px);
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.2;
}
.mvtc-header-text p {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
  display: none;
}
.mvtc-header-badge {
  background: #059669;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  text-align: center;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.4;
}
.mvtc-header-badge span { display: block; opacity: .8; font-weight: 400; font-size: 10px; }

/* ── STEPS ── */
.mvtc-step {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 22px 24px;
  margin-top: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.mvtc-step.mvtc-done { border-color: #059669; }
.mvtc-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.mvtc-step-num {
  width: 28px; height: 28px;
  background: #0f172a;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  flex-shrink: 0;
}
.mvtc-step.mvtc-done .mvtc-step-num { background: #059669; }
.mvtc-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .7px;
}

/* ── PROVINCE GRID ── */
.mvtc-prov-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media(max-width: 560px) { .mvtc-prov-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 360px) { .mvtc-prov-grid { grid-template-columns: repeat(2, 1fr); } }

.mvtc-prov {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 8px 12px;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
  text-align: center;
}
.mvtc-prov:hover { border-color: #059669; background: #f0fdf4; transform: translateY(-2px); }
.mvtc-prov.selected {
  border-color: #059669;
  background: #f0fdf4;
  box-shadow: 0 0 0 4px rgba(5,150,105,.12);
}
.mvtc-prov-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mvtc-prov-icon svg {
  width: 52px !important;
  height: 52px !important;
  display: block;
}
.mvtc-prov-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.mvtc-prov-sub  { font-size: 11px; color: #94a3b8; margin-top: -4px; }

/* ── VEHICLE TYPE GRID ── */
.mvtc-vtype-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media(max-width: 460px) { .mvtc-vtype-grid { grid-template-columns: 1fr; } }

.mvtc-vtype {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
  text-align: left;
}
.mvtc-vtype:hover { border-color: #059669; background: #f0fdf4; transform: translateY(-1px); }
.mvtc-vtype.selected { border-color: #059669; background: #f0fdf4; box-shadow: 0 0 0 4px rgba(5,150,105,.12); }
.mvtc-vtype-icon {
  flex-shrink: 0;
  width: 52px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mvtc-vtype-icon svg {
  width: 52px !important;
  height: 34px !important;
  display: block;
}
.mvtc-vtype-name { font-size: 13px; font-weight: 700; color: #0f172a; display: block; }
.mvtc-vtype-sub  { font-size: 11px; color: #64748b; display: block; margin-top: 2px; }

/* ── FIELDS ── */
.mvtc-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width: 520px) { .mvtc-fields-grid { grid-template-columns: 1fr; } }

.mvtc-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.mvtc-optional {
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
  vertical-align: middle;
}
.mvtc-input-wrap { position: relative; }
.mvtc-input-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  width: 16px !important;
  height: 16px !important;
  display: block;
  flex-shrink: 0;
}
.mvtc-field input, .mvtc-field select {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
  -webkit-appearance: none;
}
.mvtc-field input:focus, .mvtc-field select:focus {
  border-color: #059669;
  outline: none;
  box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}
.mvtc-hint { display: block; font-size: 11px; color: #94a3b8; margin-top: 5px; }

/* ── FILER STATUS ── */
.mvtc-filer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media(max-width: 480px) { .mvtc-filer-grid { grid-template-columns: 1fr; } }

.mvtc-filer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
  text-align: left;
}
.mvtc-filer:hover { border-color: #059669; background: #f0fdf4; }
.mvtc-filer.active { border-color: #059669; background: #f0fdf4; }
.mvtc-filer-check { flex-shrink: 0; width: 28px; height: 28px; display: flex; }
.mvtc-filer-check svg { width: 28px !important; height: 28px !important; display: block; }
.mvtc-filer-info { flex: 1; }
.mvtc-filer-title { display: block; font-size: 14px; font-weight: 700; color: #0f172a; }
.mvtc-filer-sub   { display: block; font-size: 11px; color: #64748b; margin-top: 2px; line-height: 1.4; }
.mvtc-filer-tag {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}
.mvtc-filer-tag.green { background: #d1fae5; color: #065f46; }
.mvtc-filer-tag.gray  { background: #f1f5f9; color: #64748b; }

/* ── CALCULATE BUTTON ── */
.mvtc-calc-btn {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: .2px;
}
.mvtc-calc-btn:hover { background: #047857; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(5,150,105,.35); }
.mvtc-calc-btn:active { transform: translateY(0); }
.mvtc-calc-btn.loading { opacity: .7; cursor: not-allowed; }

.mvtc-divider { border: none; border-top: 2px dashed #e2e8f0; margin: 24px 0; }

/* ── RESULTS HERO ── */
.mvtc-result-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.mvtc-result-vehicle-info { display: flex; align-items: center; gap: 14px; }
.mvtc-result-vicon { font-size: 40px; line-height: 1; }
.mvtc-result-vtitle { font-size: 20px; font-weight: 800; color: #0f172a; }
.mvtc-result-vsub   { font-size: 13px; color: #64748b; margin-top: 2px; }
.mvtc-fy-pill {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #059669;
  font-size: 12px; font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ── RESULT TABS ── */
.mvtc-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}
.mvtc-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-size: 12px; font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
  white-space: nowrap;
}
@media(max-width: 480px) { .mvtc-tab { font-size: 11px; gap: 4px; padding: 9px 4px; } .mvtc-tab svg { display: none; } }
.mvtc-tab.active {
  background: #fff;
  color: #059669;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.mvtc-tab-panel { animation: mvtcFade .25s ease; }
@keyframes mvtcFade { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

/* ── TAX CARDS ── */
.mvtc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.mvtc-card {
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1.5px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}
.mvtc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}
.mvtc-card.green  { background: #f0fdf4; border-color: #86efac; }
.mvtc-card.green::before  { background: #059669; }
.mvtc-card.blue   { background: #eff6ff; border-color: #93c5fd; }
.mvtc-card.blue::before   { background: #2563eb; }
.mvtc-card.amber  { background: #fffbeb; border-color: #fcd34d; }
.mvtc-card.amber::before  { background: #d97706; }
.mvtc-card.neutral{ background: #f8fafc; }
.mvtc-card.neutral::before{ background: #94a3b8; }
.mvtc-card-label  { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.mvtc-card-amount { font-size: 24px; font-weight: 800; line-height: 1; }
.mvtc-card.green  .mvtc-card-amount { color: #059669; }
.mvtc-card.blue   .mvtc-card-amount { color: #2563eb; }
.mvtc-card.amber  .mvtc-card-amount { color: #d97706; }
.mvtc-card.neutral .mvtc-card-amount { color: #0f172a; }
.mvtc-card-note   { font-size: 11px; color: #64748b; margin-top: 6px; line-height: 1.4; }

/* ── BREAKDOWN ── */
.mvtc-breakdown {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}
.mvtc-bd-title {
  background: #f8fafc;
  padding: 11px 16px;
  font-size: 11px; font-weight: 700;
  color: #475569;
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid #e2e8f0;
}
.mvtc-bd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.mvtc-bd-row:last-child { border-bottom: none; }
.mvtc-bd-row.total {
  background: #f0fdf4;
  font-weight: 800;
  font-size: 15px;
  border-top: 2px solid #bbf7d0;
}
.mvtc-bd-row.total .mvtc-bd-label { color: #065f46; }
.mvtc-bd-row.total .mvtc-bd-val   { color: #059669; }
.mvtc-bd-label { color: #475569; }
.mvtc-bd-val   { font-weight: 700; color: #0f172a; }
.mvtc-bd-val.green  { color: #059669; }
.mvtc-bd-badge {
  font-size: 10px;
  background: #d1fae5; color: #065f46;
  border-radius: 4px; padding: 2px 6px;
  margin-left: 6px; font-weight: 600;
}
.mvtc-rebate-tip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px; color: #065f46;
  margin-top: 12px;
  display: flex; align-items: center; gap: 8px;
}
.mvtc-no-data {
  text-align: center;
  padding: 32px;
  color: #94a3b8;
  font-size: 14px;
}

/* ── DISCLAIMER ── */
.mvtc-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12px; color: #78350f;
  line-height: 1.6;
  margin-top: 14px;
}

/* ── RESET BUTTON ── */
.mvtc-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px; font-weight: 600;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.mvtc-reset-btn:hover { background: #f1f5f9; color: #0f172a; border-color: #cbd5e1; }

/* ── SPINNER ── */
.mvtc-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mvtcSpin .7s linear infinite;
}
@keyframes mvtcSpin { to{ transform:rotate(360deg) } }

/* ── CUSTOM UPLOADED IMAGES ── */
.mvtc-custom-img {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}
.mvtc-custom-img-veh {
  width: 52px !important;
  height: 34px !important;
  object-fit: contain;
  display: block;
}
