@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #eef1f6;
  --surface: #ffffff;
  --text: #0b1f44;
  --muted: #36507c;
  --line: #d6deea;
  --blue: #2149d8;
  --blue-strong: #1e40cc;
  --danger: #ef151b;
  --danger-soft: #fff3f3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  width: min(1240px, 94vw);
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #f8f9fc;
  border-bottom: 1px solid #d8dfec;
}

.topbar-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  width: 168px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 52%;
  transform: scale(1.42);
  transform-origin: center;
}




.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #304871;
  font-size: 0.9rem;
  font-weight: 700;
  width: 34px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.lang-link.active {
  background: var(--blue);
  color: #fff;
}

main.wrap {
  padding-top: 92px;
  padding-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  padding: 11px 16px;
  cursor: pointer;
  font: inherit;
}

.btn-nav {
  height: 34px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.btn-nav-light {
  color: #263f67;
  background: #f3f5fa;
  border-color: #d4ddeb;
}

.btn-nav-solid,
.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-outline {
  color: #1a3258;
  background: #fff;
  border-color: #bcc9dd;
}

.btn-danger {
  color: #fff;
  background: var(--danger);
}

.flash {
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 14px;
  font-weight: 700;
}

.flash.success { background: #e8fbef; color: #1c6d45; }
.flash.error { background: #ffe9ec; color: #9a1d26; }

.home-hero {
  margin: 0 calc(50% - 50vw);
  background: linear-gradient(120deg, #2b66f4 0%, #2149d8 55%, #253cae 100%);
  padding: 96px 0 52px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.home-hero-inner {
  width: min(1240px, 94vw);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.home-hero-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.scene-island {
  position: absolute;
  left: 50%;
  bottom: 66px;
  transform: translateX(-50%);
  width: min(920px, 82vw);
  height: 240px;
  background:
    radial-gradient(60% 70% at 46% 54%, rgba(39, 95, 74, 0.5) 0%, rgba(31, 66, 60, 0.3) 44%, rgba(20, 42, 43, 0) 70%),
    radial-gradient(75% 85% at 50% 92%, rgba(19, 33, 72, 0.35) 0%, rgba(19, 33, 72, 0) 68%);
  clip-path: polygon(4% 71%, 13% 62%, 22% 66%, 30% 54%, 37% 58%, 44% 45%, 50% 56%, 58% 47%, 66% 59%, 74% 50%, 83% 64%, 92% 57%, 98% 70%, 100% 100%, 0 100%);
  opacity: 0.92;
}

.scene-wave {
  position: absolute;
  left: -4%;
  width: 108%;
  border-radius: 44% 56% 0 0 / 40% 60% 0 0;
}

.scene-wave-a {
  bottom: -18px;
  height: 160px;
  background: linear-gradient(180deg, rgba(65, 192, 224, 0.35) 0%, rgba(45, 113, 218, 0.2) 58%, rgba(36, 80, 199, 0.48) 100%);
  animation: heroWaveA 11s ease-in-out infinite;
}

.scene-wave-b {
  bottom: -26px;
  height: 132px;
  background: linear-gradient(180deg, rgba(40, 170, 215, 0.24) 0%, rgba(29, 86, 205, 0.36) 100%);
  animation: heroWaveB 14s ease-in-out infinite;
}

@keyframes heroWaveA {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2.2%); }
}

@keyframes heroWaveB {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-2.6%); }
}
.home-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.7vw, 4rem);
  line-height: 1.1;
}

.home-hero p {
  margin: 0 auto 30px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.hero-emergency {
  text-align: left;
  background: #f2ecef;
  color: #981824;
  border: 2px solid #f3a7ae;
  border-radius: 16px;
  padding: 26px 30px;
}

.hero-emergency h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.hero-emergency h2 span {
  margin-right: 8px;
}

.hero-emergency p {
  margin: 0 0 18px;
  color: #ca1b28;
  font-size: 1.1rem;
  max-width: none;
}

.hero-emergency-btn {
  font-size: 1.1rem;
  padding: 14px 24px;
  border-radius: 14px;
}

.hero-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stats div {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.17);
  padding: 16px;
}

.hero-stats strong {
  display: block;
  font-size: 1.1rem;
}

.hero-stats span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.home-block {
  padding: 52px 0;
}

.home-block-alt {
  margin: 0 calc(50% - 50vw);
  padding-left: calc(50vw - min(560px, 46vw));
  padding-right: calc(50vw - min(560px, 46vw));
  background: #eceff4;
}

.block-title {
  margin: 0 0 24px;
  font-size: 2rem;
}

.block-title span {
  margin-right: 10px;
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  text-decoration: none;
  background: #f2ecef;
  color: inherit;
  border-radius: 16px;
  border: 2px solid #f3a7ae;
  padding: 28px 20px;
  text-align: center;
  overflow: hidden;
}

.service-card.popular {
  border-color: #e8c95d;
  background: transparent;
}

.service-icon {
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.service-card p {
  margin: 0;
  color: #304a72;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.service-card.popular h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.85rem);
  min-height: 2.4em;
}

.service-card.popular p {
  font-size: 0.9rem;
  min-height: 3.2em;
}

.service-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.25rem;
  color: #eb1118;
  font-weight: 700;
}

.pill {
  background: #ef151b;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.95rem;
}

.pro-login-page {
  width: min(620px, 94vw);
  margin: 36px auto;
  text-align: center;
}

.pro-login-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-login-page h1 {
  margin: 0 0 8px;
  font-size: 2.3rem;
}

.pro-login-sub {
  margin: 0 0 18px;
  color: #36507c;
  font-size: 1.15rem;
}

.pro-login-card {
  background: #fff;
  border: 1px solid #d6deea;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 3px 16px rgba(25, 44, 86, 0.08);
  text-align: left;
}

.form { display: grid; gap: 12px; }
label { display: block; margin-bottom: 8px; font-size: 1rem; color: #1d3761; font-weight: 600; }
small { display: block; margin-top: 6px; color: #4a6391; font-size: 0.95rem; }

input, select, textarea {
  width: 100%;
  font: inherit;
  border-radius: 12px;
  border: 2px solid #4a82ea;
  padding: 16px;
  color: #113163;
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2c5fe0;
  box-shadow: 0 0 0 3px rgba(65, 119, 233, 0.16);
}

.pro-login-btn {
  width: 100%;
  font-size: 1.1rem;
  padding: 16px;
  border-radius: 12px;
}

.pro-login-alt {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e1e8f1;
  text-align: center;
  color: #304a72;
  font-size: 1rem;
}

.pro-login-alt a {
  color: #2451d6;
  text-decoration: none;
  font-weight: 700;
}

.pro-login-help {
  margin-top: 18px;
  background: #e8f0ff;
  border: 1px solid #bcd0f6;
  border-radius: 14px;
  padding: 16px;
  text-align: left;
}

.pro-login-help h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.pro-login-help ul {
  margin: 0;
  padding-left: 18px;
  color: #1e4bd1;
  line-height: 1.7;
  font-size: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.hero {
  background: linear-gradient(120deg, #2b66f4 0%, #2149d8 55%, #253cae 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.hero p { color: rgba(255, 255, 255, 0.92); }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.kpi .label { color: #5a7199; font-size: 0.74rem; text-transform: uppercase; }
.kpi .val { font-size: 1.4rem; font-weight: 800; }
.inline-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.empty { border: 1px dashed #b8c7de; border-radius: 12px; padding: 12px; color: #5f7498; }

table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
th, td { border-bottom: 1px solid #e0e7f0; padding: 10px; text-align: left; }
th { background: #f5f8fc; font-size: 0.75rem; color: #4b628a; text-transform: uppercase; }



@media (max-width: 980px) {
  .scene-island {
    height: 180px;
    bottom: 58px;
  }

  .emergency-grid,
  .grid-3,
  .kpi-grid,
  .choice-grid,
  .popular-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    height: 68px;
  }

  .brand {
    width: 148px;
    height: 42px;
  }

  .brand img {
    transform: scale(1.36);
  }

  main.wrap {
    padding-top: 84px;
  }

  .scene-island {
    width: 92vw;
    height: 122px;
    bottom: 54px;
  }

  .scene-wave-a { height: 112px; }
  .scene-wave-b { height: 94px; }
  .top-actions .btn-nav-light { display: none; }

  .hero-stats,
  .emergency-grid,
  .popular-grid,
  .grid-2,
  .grid-3,
  .split,
  .choice-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .home-block-alt {
    padding-left: 0;
    padding-right: 0;
  }

  .block-title {
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene-wave-a,
  .scene-wave-b {
    animation: none;
  }
}

.footer {
  margin-top: 0;
  background: #0f172a;
  color: #cbd5e1;
  border-top: 0;
  padding: 34px 0 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 20px;
  padding-bottom: 16px;
}

.footer-brand img {
  width: 168px;
  height: 46px;
  display: block;
  object-fit: cover;
  object-position: center 52%;
  transform: scale(1.42);
  transform-origin: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.footer-brand p {
  margin: 10px 0 0;
  color: #9fb0ce;
  font-size: 0.92rem;
}

.footer h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.95rem;
}

.footer a {
  display: block;
  color: #9fb0ce;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #283347;
  padding-top: 10px;
  color: #8fa1c0;
  font-size: 0.84rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Professional Register (Step UI like original) */
.pro-register-page {
  width: min(820px, 94vw);
  margin: 20px auto 34px;
}

.pro-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
}

.pro-stepper .step span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #dbe3ee;
  color: #6b7d96;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
}

.pro-stepper .step.active span {
  background: #2563eb;
  color: #fff;
}

.pro-stepper .bar {
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: #dbe3ee;
}

.pro-stepper .bar.active {
  background: #2563eb;
}

.pro-register-card {
  background: #fff;
  border: 1px solid #d7e0ec;
  border-radius: 16px;
  box-shadow: 0 4px 22px rgba(23, 39, 73, 0.06);
  padding: 32px;
}

.pro-step-section {
  display: none;
}

.pro-step-section.is-active {
  display: block;
}

.pro-step-section h2 {
  margin: 0 0 18px;
  font-size: 2.2rem;
  color: #0b1f44;
}

.pro-hint {
  margin: 0 0 12px;
  color: #5f7290;
  font-size: 1.2rem;
}

.pro-step-section label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1c355d;
}

.pro-step-section input,
.pro-step-section select,
.pro-step-section textarea {
  border: 1px solid #b9c8de;
  border-radius: 12px;
  padding: 16px;
  font-size: 1.1rem;
  color: #18345d;
}

.pro-step-section textarea {
  min-height: 118px;
}

.pro-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pro-choice-card {
  border: 2px solid #dce6f2;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
}

.pro-choice-card.selected {
  border-color: #66a2ff;
  background: #edf5ff;
}

.pro-choice-card input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.pro-choice-card .name {
  font-size: 1rem;
  font-weight: 600;
}

.pro-choice-card .tag {
  font-size: 0.72rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  padding: 3px 7px;
  border: 1px solid #fecaca;
}

.pro-island-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.island-pill {
  text-decoration: none;
  border: 2px solid #dce6f2;
  border-radius: 10px;
  padding: 8px 12px;
  color: #324f79;
  font-size: 0.92rem;
  font-weight: 600;
}

.island-pill.active {
  border-color: #66a2ff;
  background: #edf5ff;
  color: #1d4ed8;
}

.pro-district-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.district-pill {
  border: 2px solid #dce6f2;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.district-pill.selected {
  border-color: #66a2ff;
  background: #edf5ff;
}

.district-pill input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.district-pill span {
  font-size: 0.92rem;
}

.pro-register-actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pro-register-actions.only-next {
  justify-content: stretch;
}

.pro-register-actions.only-next .btn {
  width: 100%;
}

.pro-register-actions .btn {
  min-width: 130px;
  height: 48px;
  font-size: 1rem;
}






  .scene-wave-a { height: 112px; }
  .scene-wave-b { height: 94px; }
  .pro-register-card {
    padding: 18px;
  }

  .pro-step-section h2 {
    font-size: 1.5rem;
  }

  .split,
  .pro-category-grid,
  .pro-district-grid {
    grid-template-columns: 1fr;
  }

  .pro-stepper .bar {
    width: 48px;
  }

  .pro-register-actions {
    flex-direction: column-reverse;
  }

  .pro-register-actions .btn {
    width: 100%;
  }
}
/* Step 2 exact tune */
.pro-category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pro-choice-card {
  grid-template-columns: 1fr;
  justify-items: start;
  align-content: center;
  min-height: 98px;
  padding: 14px 16px;
  position: relative;
}

.pro-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pro-choice-card .icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 6px;
}

.pro-choice-card .name {
  font-size: 0.95rem;
  color: #0b1f44;
  font-weight: 700;
}

.pro-choice-card .tag {
  margin-top: 6px;
}

.pro-register-actions {
  margin-top: 16px;
}

.pro-register-actions .btn {
  flex: 1;
  height: 42px;
}





  .scene-island {
    width: 92vw;
    height: 122px;
    bottom: 54px;
  }

  .scene-wave-a { height: 112px; }
  .scene-wave-b { height: 94px; }
  .pro-category-grid { grid-template-columns: 1fr; }
}
/* Register header + step3 count */
.pro-register-head {
  text-align: center;
  margin-bottom: 12px;
}

.pro-register-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #1e40cc);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.pro-register-head h1 {
  margin: 0;
  font-size: 2.9rem;
  color: #0b1f44;
}

.pro-register-head p {
  margin: 8px 0 0;
  color: #566f93;
  font-size: 1.5rem;
}

.district-count {
  color: #5f7290;
  font-weight: 500;
  margin-left: 4px;
}











/* OTP login modal */
.otp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 19, 44, 0.52);
  display: grid;
  place-items: center;
  z-index: 1200;
  padding: 16px;
}

.otp-modal {
  width: min(560px, 100%);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(6, 18, 46, 0.25);
}

.otp-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
