/* =========================================
   EV Subsidy Calculator India — Style
   evcommunity.in — v1.0.0
   Mobile-first, fully responsive
   ========================================= */

*, *::before, *::after { box-sizing: border-box; }

#evsc-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 12px 40px;
  color: #1a1a1a;
}

/* ── Hero Header ── */
.evsc-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d3321 50%, #0a4a1e 100%);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.evsc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(74,222,128,.08) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 50%, rgba(59,130,246,.06) 0%, transparent 70%);
}
.evsc-hero > * { position: relative; }
.evsc-hero-icon { font-size: 44px; margin-bottom: 10px; }
.evsc-hero h2 {
  color: #4ade80;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  margin: 0 0 8px;
  padding: 0;
  border: none !important;
  line-height: 1.2;
}
.evsc-hero p { color: #a3e4b5; font-size: 14px; margin: 0 0 18px; }
.evsc-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.evsc-badge-pill {
  background: rgba(74,222,128,.15);
  border: 1px solid rgba(74,222,128,.3);
  color: #4ade80;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── Form Card ── */
.evsc-form-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,.08);
  border: 1px solid #e8f5e9;
  overflow: hidden;
}

/* ── Steps ── */
.evsc-step {
  padding: 24px;
  border-bottom: 1px solid #f0f0f0;
}
.evsc-step:last-child { border-bottom: none; }
.evsc-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.evsc-step-num {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #0f4c25, #16a34a);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(22,163,74,.3);
}
.evsc-step-title { font-weight: 700; font-size: 16px; color: #0f4c25; }
.evsc-step-sub   { font-size: 12px; color: #888; margin-top: 2px; }

/* ── States Grid ── */
.evsc-states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.evsc-state-btn {
  border: 2px solid #e8f5e9;
  background: #fff;
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
  font-family: inherit;
}
.evsc-state-btn:hover {
  border-color: #4ade80;
  background: #f0fdf4;
  transform: translateY(-1px);
}
.evsc-state-btn.selected {
  border-color: #16a34a;
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  box-shadow: 0 2px 12px rgba(22,163,74,.2);
}
.evsc-state-flag { font-size: 20px; margin-bottom: 4px; }
.evsc-state-name { font-size: 12px; font-weight: 600; color: #1a1a1a; line-height: 1.2; }
.evsc-state-badge-small {
  font-size: 9px;
  background: #fef9c3;
  color: #854d0e;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 3px;
  display: inline-block;
}

/* ── Vehicle Type Grid ── */
.evsc-vtype-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.evsc-vtype-btn {
  border: 2px solid #e8f5e9;
  background: #fff;
  border-radius: 14px;
  padding: 18px 12px;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
  font-family: inherit;
}
.evsc-vtype-btn:hover { border-color: #4ade80; background: #f0fdf4; }
.evsc-vtype-btn.selected {
  border-color: #16a34a;
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  box-shadow: 0 3px 14px rgba(22,163,74,.2);
}
.evsc-vtype-icon { font-size: 32px; margin-bottom: 6px; }
.evsc-vtype-label { font-size: 13px; font-weight: 700; color: #0f4c25; line-height: 1.3; }

/* ── Form Fields ── */
.evsc-model-select-wrap { margin-bottom: 16px; }
.evsc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.evsc-optional { font-weight: 400; color: #9ca3af; font-size: 12px; }
.evsc-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d1fae5;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #f9fffe;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}
.evsc-select:focus { border-color: #4ade80; }

.evsc-input-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.evsc-field { margin-bottom: 14px; }
.evsc-input-wrap-icon { position: relative; }
.evsc-input-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #6b7280;
  pointer-events: none;
  font-weight: 600;
}
.evsc-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d1fae5;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  background: #f9fffe;
}
.evsc-input-icon-left { padding-left: 34px; }
.evsc-input:focus { border-color: #4ade80; background: #fff; }

/* ── Radio buttons ── */
.evsc-radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.evsc-radio-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f9fffe;
  border: 1.5px solid #d1fae5;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}
.evsc-radio-btn:has(input:checked) {
  border-color: #16a34a;
  background: #dcfce7;
  font-weight: 600;
}
.evsc-radio-btn input { accent-color: #16a34a; }

/* ── Calculate Button ── */
.evsc-btn-calc {
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(22,163,74,.35);
  margin-top: 8px;
}
.evsc-btn-calc:hover {
  background: linear-gradient(135deg, #15803d, #16a34a);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(22,163,74,.4);
}

/* ── Results Hero ── */
.evsc-results-hero {
  background: linear-gradient(135deg, #0a1628, #0d3321, #0a4a1e);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}
.evsc-results-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(74,222,128,.1) 0%, transparent 70%);
}
.evsc-results-hero > * { position: relative; }
.evsc-results-tag {
  color: #a3e4b5;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.evsc-total-savings {
  font-size: clamp(42px, 10vw, 72px);
  font-weight: 900;
  color: #4ade80;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(74,222,128,.4);
}
.evsc-effective-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #a3e4b5;
  margin-bottom: 16px;
}
.evsc-effective-price-row strong { color: #fff; }
.evsc-arrow-right { color: #4ade80; font-size: 18px; }
.evsc-highlight strong { color: #4ade80; font-size: 16px; }

.evsc-savings-pct-bar-wrap {
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  height: 10px;
  margin: 0 auto 8px;
  max-width: 400px;
  overflow: hidden;
}
.evsc-savings-pct-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 8px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
  width: 0;
}
.evsc-pct-label { color: #a3e4b5; font-size: 12px; }

/* ── Breakdown Grid ── */
.evsc-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.evsc-bcard {
  background: #fff;
  border: 1px solid #e8f5e9;
  border-radius: 16px;
  padding: 18px;
  border-top: 4px solid;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.evsc-bcard-icon { font-size: 26px; margin-bottom: 8px; }
.evsc-bcard-title { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.evsc-bcard-amount {
  font-size: 26px;
  font-weight: 900;
  color: #0f4c25;
  margin-bottom: 4px;
  line-height: 1;
}
.evsc-bcard-amount.zero { color: #9ca3af; font-size: 20px; }
.evsc-bcard-desc { font-size: 11px; color: #9ca3af; line-height: 1.4; }
.evsc-bcard-note { font-size: 11px; color: #555; margin-top: 6px; line-height: 1.4; }

/* ── Compare note ── */
.evsc-compare-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
}
.evsc-compare-note strong { color: #92400e; }

/* ── Info Box ── */
.evsc-info-box {
  background: #f0fdf4;
  border: 1px solid #d1fae5;
  border-radius: 14px;
  padding: 20px;
  margin-top: 16px;
}
.evsc-info-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f4c25;
  margin: 0 0 12px;
  padding: 0;
  border: none !important;
}
.evsc-steps-list { list-style: none; padding: 0; margin: 0; }
.evsc-steps-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #d1fae5;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}
.evsc-steps-list li:last-child { border-bottom: none; }
.evsc-step-bullet {
  background: #16a34a;
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Disclaimer ── */
.evsc-disclaimer {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.5;
}

/* ── Reset Button ── */
.evsc-btn-reset {
  background: transparent;
  border: 2px solid #16a34a;
  color: #16a34a;
  padding: 11px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.evsc-btn-reset:hover { background: #16a34a; color: #fff; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .evsc-hero { padding: 24px 16px; }
  .evsc-step  { padding: 18px 14px; }
  .evsc-vtype-grid { grid-template-columns: 1fr 1fr; }
  .evsc-input-row-2 { grid-template-columns: 1fr; }
  .evsc-radio-row { flex-direction: column; }
  .evsc-states-grid { grid-template-columns: repeat(3, 1fr); }
  .evsc-breakdown-grid { grid-template-columns: 1fr 1fr; }
  .evsc-results-hero { padding: 24px 14px; }
  .evsc-effective-price-row { font-size: 12px; gap: 6px; }
}
@media (max-width: 400px) {
  .evsc-states-grid { grid-template-columns: repeat(2, 1fr); }
  .evsc-breakdown-grid { grid-template-columns: 1fr; }
  .evsc-vtype-grid { grid-template-columns: 1fr; }
}

/* Shake animation for validation */
@keyframes evsc-shake {
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-6px)}
  40%{transform:translateX(6px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
}
