 :root {
  --ink: #0B1F3A;
  --ink-2: #122B4E;
  --primary: #1677ff;
  --primary-dark: #075dcc;
  --aqua: #37d5c8;
  --success: #16a34a;
  --muted: #6b7280;
  --bg: #f5f8fc;
  --card: #ffffff;
  --border: rgba(11, 31, 58, .10);
  --shadow: 0 24px 70px rgba(11, 31, 58, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.fw-black { font-weight: 800; letter-spacing: -0.04em; }

.glass-nav {
  background: rgba(11, 31, 58, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.navbar-brand { color: #fff !important; }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--aqua));
  box-shadow: 0 10px 24px rgba(22,119,255,.25);
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  border-radius: 999px;
  font-weight: 700;
}

.btn-success {
  border-radius: 999px;
  font-weight: 700;
}

.btn-outline-primary,
.btn-light,
.btn-outline-light,
.btn-primary-soft {
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary-soft {
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}

.shadow-primary { box-shadow: 0 18px 35px rgba(22,119,255,.28); }

.hero-section {
  position: relative;
  padding: 145px 0 90px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 10%, rgba(55,213,200,.28), transparent 30%),
              linear-gradient(135deg, #07162b 0%, #0B1F3A 55%, #061426 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.text-soft { color: rgba(255,255,255,.75); }

.eyebrow,
.section-kicker {
  color: var(--aqua);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  font-size: .76rem;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 520px;
}

.trust-row div {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  border-radius: 20px;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong { font-size: 1.2rem; }
.trust-row span { color: rgba(255,255,255,.68); font-size: .88rem; }

.hero-card {
  padding: 34px;
  background: #fff;
  color: var(--ink);
  border-radius: 34px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  align-items: center;
}

.doctor-placeholder {
  position: relative;
  min-height: 220px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 28%, rgba(55,213,200,.36), transparent 30%),
    linear-gradient(150deg, #eaf4ff, #ffffff);
  display: grid;
  place-items: center;
  border: 1px solid rgba(22,119,255,.12);
}

.doctor-icon {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--primary), var(--aqua));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(22,119,255,.25);
}

.pulse-ring {
  position: absolute;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(22,119,255,.30);
  border-radius: 999px;
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.55); opacity: 0; }
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--ink-2);
  font-size: .88rem;
  font-weight: 700;
}

.section-pad { padding: 86px 0; }

.app-shell {
  max-width: 980px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 34px;
  overflow: hidden;
}

.progress-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #f0f5fb;
  border-bottom: 1px solid var(--border);
}

.step {
  position: relative;
  padding: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  color: #8190a5;
}

.step::before {
  content: attr(data-step-dot);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(11,31,58,.12);
  font-size: .85rem;
}

.step.active {
  color: var(--ink);
  background: #fff;
}

.step.active::before {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.form-step {
  display: none;
  padding: 34px;
}

.form-step.active { display: block; }

.form-header {
  margin-bottom: 28px;
}

.form-header h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.form-header p {
  margin: 0;
  color: var(--muted);
}

.form-control,
.form-select,
.input-group-text {
  border-radius: 16px;
  border-color: rgba(11,31,58,.12);
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .input-group-text {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: #f7faff;
  font-weight: 800;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(22,119,255,.55);
  box-shadow: 0 0 0 .25rem rgba(22,119,255,.10);
}

.form-label {
  font-weight: 800;
  font-size: .92rem;
}

.info-card,
.disclaimer {
  padding: 16px 18px;
  border-radius: 18px;
  background: #eef7ff;
  border: 1px solid rgba(22,119,255,.12);
  color: #254160;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 28px;
}

.result-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

.imc-card {
  min-height: 300px;
  border-radius: 28px;
  padding: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 12%, rgba(55,213,200,.50), transparent 28%),
    linear-gradient(145deg, #0B1F3A, #102f57);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 24px 50px rgba(11,31,58,.22);
}

.imc-card .text-muted { color: rgba(255,255,255,.62) !important; }

.imc-value {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
  margin: 14px 0;
}

.imc-category {
  font-weight: 800;
  padding: 10px 14px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  width: fit-content;
}

.recommendation-card {
  padding: 28px;
  border-radius: 28px;
  background: #f8fbff;
  border: 1px solid rgba(11,31,58,.08);
}

.procedure-tabs {
  margin: 22px 0 16px;
  padding: 6px;
  display: inline-flex;
  background: #eaf1fb;
  border-radius: 999px;
  gap: 6px;
}

.tab-pill {
  border: 0;
  background: transparent;
  color: #627089;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
}

.tab-pill.active {
  color: #fff;
  background: var(--ink);
}

.procedure-box {
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(11,31,58,.08);
}

.procedure-box h4 {
  font-weight: 900;
  letter-spacing: -0.03em;
}

.procedure-box ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.benefit-grid div {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(11,31,58,.08);
  background: #fff;
}

.benefit-grid strong,
.benefit-grid span {
  display: block;
}

.benefit-grid strong { margin-bottom: 6px; }
.benefit-grid span { color: var(--muted); font-size: .92rem; }

.cta-panel {
  color: #fff;
  padding: 42px;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background:
    radial-gradient(circle at 12% 12%, rgba(55,213,200,.36), transparent 26%),
    linear-gradient(135deg, #0B1F3A, #07162b);
  box-shadow: var(--shadow);
}

.footer {
  padding: 28px 0;
  color: #6b7280;
  font-size: .9rem;
}

@media (max-width: 991px) {
  .hero-card,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .doctor-placeholder {
    min-height: 160px;
  }
}

@media (max-width: 767px) {
  .hero-section { padding: 116px 0 64px; }
  .display-4 { font-size: 2.45rem; }
  .trust-row,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .progress-wrap {
    grid-template-columns: 1fr;
  }

  .step {
    justify-content: start;
  }

  .form-step,
  .hero-card,
  .cta-panel {
    padding: 24px;
  }

  .cta-panel {
    align-items: start;
    flex-direction: column;
  }

  .form-actions .ms-auto {
    margin-left: 0 !important;
  }

  .form-actions button {
    width: 100%;
  }

  .imc-value { font-size: 4rem; }
}
