* {
  box-sizing: border-box;
}

:root {
  --green: #16a05d;
  --green-dark: #0b7a43;
  --green-soft: #edf9f2;
  --blue: #175a88;
  --blue-dark: #0f456c;
  --blue-soft: #eef6fb;
  --orange: #ff9d2e;
  --purple: #6f46b8;
  --yellow: #f7d774;
  --text: #1d3b4a;
  --muted: #71838d;
  --border: #dfe9ee;
  --bg: #f7fafc;
  --danger: #d62828;
  --white: #ffffff;
  --shadow: 0 14px 38px rgba(23, 90, 136, 0.1);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: auto;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0 60px rgba(20, 61, 88, 0.12);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
}

.menu-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--blue);
  background: #f4f8fa;
  font-size: 18px;
}

.brand img {
  display: block;
  width: 150px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.call-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #bde4cd;
  border-radius: 999px;
  color: var(--green-dark);
  background: #f2fbf6;
}

.call-btn strong,
.call-btn small {
  display: block;
}

.call-btn strong {
  font-size: 11px;
}

.call-btn small {
  font-size: 8px;
}

.section {
  padding: 28px 14px;
  scroll-margin-top: 82px;
}

.hero-section {
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
}

.mini-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #edf9f2;
  font-size: 9px;
  font-weight: 900;
}

.hero-left h1 {
  margin: 16px 0 0;
  color: var(--blue);
  font-size: 31px;
  line-height: 1.08;
}

.hero-left h1 span {
  color: var(--green);
}

.hero-left > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.hero-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.hero-feature-grid article {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(20, 61, 88, 0.05);
}

.hero-feature-grid article div {
  font-size: 19px;
}

.hero-feature-grid strong,
.hero-feature-grid small {
  display: block;
}

.hero-feature-grid strong {
  margin-top: 6px;
  color: var(--blue);
  font-size: 13px;
}

.hero-feature-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.hero-service-strip {
  margin-top: 13px;
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #f1faf5;
  font-size: 9px;
  font-weight: 900;
}

.eligibility-card {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.form-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.form-icon {
  display: grid;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f0f7fb;
  font-size: 20px;
}

.form-head h2 {
  margin: 0;
  color: var(--blue);
  font-size: 19px;
}

.form-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}

#leadForm label {
  position: relative;
  display: grid;
  gap: 5px;
  margin-bottom: 11px;
  color: #314a58;
  font-size: 10px;
  font-weight: 800;
}

#leadForm label b {
  color: var(--danger);
}

#leadForm input,
#leadForm select,
#leadForm textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 11px;
  border: 1px solid #cbdbe4;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
}

#leadForm textarea {
  min-height: 76px;
  resize: vertical;
}

#leadForm input:focus,
#leadForm select:focus,
#leadForm textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 148, 71, 0.09);
}

.invalid {
  border-color: var(--danger) !important;
  background: #fff8f8 !important;
}

.field-error {
  min-height: 10px;
  color: var(--danger);
  font-size: 8px;
}

.character-count {
  position: absolute;
  right: 9px;
  bottom: 8px;
  color: var(--muted);
  font-size: 8px;
}

.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 8px !important;
  color: var(--muted) !important;
  font-size: 8px !important;
  font-weight: 600 !important;
  line-height: 1.45;
}

.consent input {
  width: 16px !important;
  min-height: 16px !important;
  margin-top: 1px;
}

.submit-btn {
  width: 100%;
  min-height: 47px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(90deg, #0d7f4a, #18a861);
  font-weight: 900;
}

.secure-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.form-status {
  display: none;
}

.form-status.show {
  display: block;
  margin-top: 9px;
  padding: 9px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.form-status.error {
  color: #a61e1e;
  background: #fff0f0;
}

.section-title {
  text-align: center;
}

.section-title h2 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 19px;
}

.subsidy-section {
  background: #fcfefe;
}

.subsidy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.subsidy-grid article {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #ffffff;
  text-align: center;
}

.subsidy-grid article > span {
  display: block;
  padding: 10px;
  font-weight: 900;
}

.subsidy-grid small,
.subsidy-grid strong {
  display: block;
}

.subsidy-grid small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 8px;
}

.subsidy-grid strong {
  margin-top: 3px;
  color: var(--blue);
  font-size: 15px;
}

.subsidy-grid footer {
  margin-top: 10px;
  padding: 10px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.green > span {
  color: #087235;
  background: #edf9f2;
}

.green footer {
  background: var(--green);
}

.blue > span {
  color: #0b4f7d;
  background: #eef6fb;
}

.blue footer {
  background: #2472c8;
}

.orange > span {
  color: #a94c00;
  background: #fff6ee;
}

.orange footer {
  background: var(--orange);
}

.purple > span {
  color: #54208e;
  background: #f5f0fb;
}

.purple footer {
  background: var(--purple);
}

.subsidy-note {
  margin-top: 12px;
  padding: 11px;
  border: 1px solid #cfe0ea;
  border-radius: 10px;
  color: var(--blue);
  background: #f4f9fc;
  font-size: 9px;
  line-height: 1.45;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.services-grid article {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
}

.services-grid article div {
  font-size: 22px;
}

.services-grid h3 {
  margin: 8px 0 5px;
  color: var(--blue);
  font-size: 13px;
}

.services-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.stats-section {
  background: #fcfefe;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stats-grid article {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  color: var(--blue);
  font-size: 20px;
}

.stats-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.footer-section {
  padding-bottom: 120px;
  background: #f6fafc;
}

.footer-card {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.footer-card img {
  width: 170px;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.footer-card h3 {
  margin: 10px 0 6px;
  color: var(--blue);
}

.footer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.footer-links {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.footer-links a,
.footer-links span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.legal-note {
  margin: 12px 2px 0;
  color: #6f7e84;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

/* Clean success message */
.success-toast {
  position: fixed;
  left: 50%;
  bottom: 95px;
  z-index: 9999;
  display: none;
  width: auto;
  max-width: 398px;
  padding: 14px 22px;
  border: 1px solid #bce4ca;
  border-radius: 12px;
  color: var(--green-dark);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(16, 148, 71, 0.22);
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.success-toast.show {
  display: block;
}

.whatsapp-float {
  position: fixed;
  right: 14px;
  bottom: 82px;
  z-index: 100;
  display: grid;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  background: #25c965;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  font-size: 20px;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 110;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 430px;
  min-height: 68px;
  margin: auto;
  padding: 7px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 24px rgba(20, 61, 88, 0.09);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #70808a;
  font-size: 8px;
  font-weight: 800;
}

.bottom-nav a span {
  font-size: 16px;
}

.bottom-nav .main-nav {
  margin-top: -13px;
  border: 4px solid #ffffff;
  border-radius: 18px;
  color: #ffffff;
  background: var(--green);
}

@media (min-width: 431px) {
  body {
    padding: 18px 0;
  }

  .app-shell {
    border-radius: 20px;
  }

  .bottom-nav {
    bottom: 18px;
    border-radius: 0 0 20px 20px;
  }

  .success-toast {
    bottom: 105px;
  }

  .whatsapp-float {
    right: auto;
    left: 50%;
    margin-left: 169px;
  }
}