/* Pristine Modern Animated Light Theme for drprashantjayant.com */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --primary: #0f172a;           /* Deep Slate */
  --primary-light: #1e293b;
  --accent: #0d9488;            /* Clinical Teal */
  --accent-hover: #0f766e;
  --accent-light: #ccfbf1;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --gold: #d97706;              /* Warm Amber */
  --bg-main: #f8fafc;           /* Soft Light BG */
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #0d9488;
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  padding-bottom: 90px; /* space for floating pill bar */
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text {
  font-family: 'Outfit', sans-serif;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Header & Top Bar */
.top-bar {
  background-color: #f1f5f9;
  color: #475569;
  padding: 10px 28px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.top-bar-info {
  display: flex;
  gap: 24px;
}

.lang-switch {
  display: flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 20px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #64748b;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.08));
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.header-cta {
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
  transition: all 0.25s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 10% 20%, rgba(204, 251, 241, 0.5) 0%, rgba(248, 250, 252, 0) 50%),
              radial-gradient(circle at 90% 80%, rgba(254, 243, 199, 0.4) 0%, rgba(248, 250, 252, 0) 50%);
  padding: 56px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: flex-start;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ccfbf1;
  color: #0f766e;
  border: 1px solid #99f6e4;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.1);
  animation: floatSlow 4s ease-in-out infinite;
}

.hero-title {
  font-size: 3.1rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -5px rgba(13, 148, 136, 0.5);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -5px rgba(16, 185, 129, 0.5);
}

/* Sciatica Score Calculator Card */
.calculator-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculator-card:hover {
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.calculator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--emerald), var(--gold));
}

.calc-header {
  margin-bottom: 24px;
}

.calc-header h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 800;
}

.calc-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.range-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  transition: background 0.2s;
}

/* Graduated Colorful Pain Slider & Step Adjust Buttons */
.colorful-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
  outline: none;
  cursor: pointer;
}

.colorful-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #0d9488;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.colorful-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

.btn-step-adjust {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.btn-step-adjust:hover {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.08);
}

.slider-val-badge {
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 800;
  font-size: 1rem;
  padding: 4px 14px;
  border-radius: 20px;
  min-width: 60px;
  text-align: center;
  border: 1px solid #99f6e4;
}

.custom-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}

.custom-select:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Calculator Result Card */
.result-card {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.9), rgba(204, 251, 241, 0.7));
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInUp 0.4s ease;
}

.result-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.score-badge {
  font-size: 1.8rem;
  font-weight: 800;
  color: #047857;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.score-badge span {
  font-size: 0.9rem;
  color: #059669;
  font-weight: 600;
}

.severity-pill {
  background: #059669;
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.score-progress-bar {
  height: 8px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.score-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.result-desc {
  font-size: 0.93rem;
  color: #064e3b;
  margin-bottom: 18px;
  line-height: 1.5;
}

.wa-submit-btn {
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ffffff;
  width: 100%;
  padding: 14px 20px;
  border-radius: 30px;
  border: none;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
  transition: all 0.25s ease;
  text-decoration: none;
}

.wa-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(16, 185, 129, 0.55);
}

/* Stats Section */
.stats-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 32px 28px;
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  border-right: 1px solid var(--border);
  padding-right: 24px;
}

.stat-item:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Running Procedures Marquee Carousel */
.procedures-marquee-section {
  padding: 48px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.procedures-marquee-header {
  text-align: center;
  margin-bottom: 28px;
  padding: 0 20px;
}

.procedures-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.procedures-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.procedures-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.proc-card {
  width: 310px;
  min-width: 310px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.proc-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.15);
}

.proc-icon-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  background: #ccfbf1;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
  border: 1px solid #99f6e4;
  align-self: flex-start;
}

.proc-card h4 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.proc-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.proc-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  align-self: flex-start;
}

/* Section Common */
.section {
  padding: 72px 28px;
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Specialty Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Focus Specialization Cards & Image Sizing */
.focus-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.focus-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.focus-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  max-height: 240px;
  overflow: hidden;
  background: #f1f5f9;
}

.focus-img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  display: block;
}

.focus-card:hover .focus-img {
  transform: scale(1.04);
}

.focus-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.focus-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.focus-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.focus-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
  line-height: 1.55;
}

.focus-bullets {
  list-style: none;
  margin-bottom: 22px;
  padding: 0;
}

.focus-bullets li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.focus-bullets li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 900;
  font-size: 1rem;
}

.card-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-bullets {
  list-style: none;
  margin-bottom: 24px;
}

.card-bullets li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.card-bullets li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 900;
  font-size: 1rem;
}

/* 3 Steps Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.step-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.step-card h4 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* VAS Pain Score Visual Bar */
.vas-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-top: 40px;
}

.vas-scale {
  height: 16px;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
  border-radius: 8px;
  margin-bottom: 16px;
}

.vas-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.vas-indicator {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.vas-tag-before {
  color: #dc2626;
  font-weight: 600;
  font-size: 0.95rem;
}

.vas-tag-after {
  color: #16a34a;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Hospital Location & OPD */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.loc-info h3 {
  font-size: 1.55rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.loc-detail {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.opd-badge {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* FAQ Section */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.faq-q {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.faq-a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* FLOATING BOTTOM-RIGHT WHATSAPP ACTION BUTTON */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulseGlow 2.5s infinite;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.floating-whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 28px 28px 28px;
  text-align: center;
  font-size: 0.88rem;
}

footer p {
  margin-bottom: 8px;
}

/* Patient Photo Cover Card & Flip Animation */
.calc-card-wrapper {
  position: relative;
  perspective: 1000px;
  width: 100%;
}

.calc-card-cover {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.calc-card-cover:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 45px rgba(13, 148, 136, 0.2);
}

.cover-image-container {
  position: relative;
  height: 440px;
  width: 100%;
  overflow: hidden;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s ease;
}

.calc-card-cover:hover .cover-img {
  transform: scale(1.05);
}

.cover-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.88) 75%, rgba(15, 23, 42, 0.98) 100%);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}
.wizard-step {
  animation: fadeInStep 0.35s ease-out;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.option-pills-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.pill-btn {
  background: #ffffff;
  border: 2.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.pill-btn:hover {
  border-color: var(--primary-light);
  background: #f0fdf4;
  transform: translateY(-1px);
}

.pill-btn.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, #f0fdf4, #ccfbf1);
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-dark);
  border: 1px solid #cbd5e1;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Static Procedures Grid (Clean, Non-Clipping, Responsive) */
.procedures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.proc-grid-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.proc-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.12);
  border-color: #99f6e4;
}

.proc-badge-chip {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  background: #ccfbf1;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.proc-grid-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.proc-grid-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.proc-tag-chip {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* Responsiveness */
@media (max-width: 960px) {
  .hero-container, .cards-grid, .steps-grid, .location-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
  }
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .nav-links {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dedicated Mobile Polish (iPhones & Android Phones <= 640px) */
@media (max-width: 640px) {
  .top-bar-info {
    display: none !important; /* Hides busy OPD timings text on mobile top bar */
  }

  .top-bar {
    display: flex !important;
    padding: 4px 14px;
    justify-content: flex-end;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
  }

  .lang-switch {
    background: #ffffff;
    padding: 2px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
  }

  .lang-btn {
    padding: 3px 8px;
    font-size: 0.72rem;
    border-radius: 14px;
  }

  .navbar {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .brand-logo-img {
    height: 34px;
  }

  .brand-title {
    font-size: 1rem;
    line-height: 1.15;
  }

  .brand-subtitle {
    font-size: 0.68rem;
    color: var(--accent);
  }

  .header-cta {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 20px;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
    background: linear-gradient(135deg, var(--accent), #0f766e);
  }

  .hero {
    padding: 20px 16px 36px 16px;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .calculator-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  /* Mobile Pain Slider Controls */
  .slider-control-wrapper > div {
    gap: 6px !important;
  }

  .btn-step-adjust {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 1.1rem;
  }

  .slider-ticks {
    font-size: 0.65rem !important;
  }

  .slider-val {
    font-size: 0.82rem !important;
    padding: 5px 8px !important;
  }

  .pill-btn {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  /* Mobile Procedures Carousel */
  .procedures-marquee-section {
    padding: 36px 0;
  }

  .procedures-marquee-header h2 {
    font-size: 1.4rem !important;
  }

  .proc-card {
    width: 260px;
    min-width: 260px;
    padding: 18px 14px;
  }

  .proc-card h4 {
    font-size: 1rem;
  }

  .proc-card p {
    font-size: 0.82rem;
  }

  /* Mobile Floating Circular WhatsApp Button (Never Overlaps Form Buttons) */
  .floating-whatsapp-btn {
    bottom: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  }

  .floating-whatsapp-btn #floating-wa-text {
    display: none !important; /* Hides text on mobile to form a sleek 46px circular widget */
  }

  .section {
    padding: 48px 16px;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .focus-content {
    padding: 20px 16px;
  }

  .focus-title {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   ECHS section — ex-servicemen empanelment pathway
   ========================================================================== */
.echs-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%);
  border-top: 1px solid #dcfce7;
  border-bottom: 1px solid #dcfce7;
}
.echs-wrap { max-width: 1100px; margin: 0 auto; }

.echs-eyebrow {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.echs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 28px;
  text-align: left;
}

.echs-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.echs-card-title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark, #0f172a);
}

.echs-steps { margin: 0; padding-left: 20px; }
.echs-steps li {
  margin-bottom: 14px;
  line-height: 1.55;
  font-size: 0.92rem;
  color: #475569;
}
.echs-steps li strong { color: #0f172a; }
.echs-steps li::marker { color: #0d9488; font-weight: 800; }

.echs-list { margin: 0; padding-left: 20px; }
.echs-list li {
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 0.92rem;
  color: #475569;
}
.echs-list li::marker { color: #0d9488; }

.echs-note {
  margin-top: 18px;
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #78350f;
}
.echs-note strong { color: #92400e; }

.echs-cta-row { margin-top: 30px; }
.echs-cta-row .btn-whatsapp { display: inline-flex; justify-content: center; }
.echs-fineprint {
  margin: 14px auto 0;
  max-width: 620px;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .echs-card { padding: 22px 20px; }
  .echs-grid { gap: 16px; margin-top: 22px; }
}

/* ==========================================================================
   Pain and palliative care positioning
   ========================================================================== */
.palliative-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 46px;
  border: 1px solid #bae6fd;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(13, 148, 136, 0.13), transparent 30%),
    linear-gradient(135deg, #f0fdfa 0%, #f8fafc 58%, #eff6ff 100%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.palliative-intro { max-width: 820px; }
.palliative-intro .section-subtitle { margin: 12px 0 0; }

.palliative-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 14px;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: rgba(204, 251, 241, 0.82);
  color: #115e59;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.palliative-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.palliative-card {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.palliative-card h3 {
  margin: 14px 0 9px;
  color: #0f172a;
  font-size: 1.05rem;
}

.palliative-card p {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
}

.palliative-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #0f766e;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
}

.palliative-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.34);
}

.palliative-actions p {
  max-width: 690px;
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  font-size: 0.84rem;
}

.footer-links a { color: #99f6e4; }
.footer-links a:hover { color: #ffffff; }

/* Privacy notice page */
.notice-page { background: #f8fafc; }
.notice-header {
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}
.notice-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
  padding: 18px 20px;
}
.notice-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
}
.notice-brand img { width: 44px; height: 44px; object-fit: contain; }
.notice-shell {
  max-width: 940px;
  margin: 0 auto;
  padding: 54px 20px 80px;
}
.notice-shell h1 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.2rem); color: #0f172a; }
.notice-lead { max-width: 760px; color: #475569; line-height: 1.7; }
.notice-meta { color: #64748b; font-size: 0.86rem; }
.notice-section {
  margin-top: 28px;
  padding: 26px 28px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
}
.notice-section h2 { margin: 0 0 12px; color: #0f172a; font-size: 1.2rem; }
.notice-section p, .notice-section li { color: #475569; line-height: 1.65; }
.notice-section ul { margin: 10px 0 0; padding-left: 20px; }
.notice-alert { border-left: 5px solid #dc2626; background: #fff7f7; }

@media (max-width: 960px) {
  .palliative-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .palliative-shell { padding: 28px 20px; border-radius: 20px; }
  .palliative-actions { align-items: stretch; flex-direction: column; }
  .palliative-actions .btn-whatsapp { justify-content: center; }
  .notice-header-inner { align-items: flex-start; }
  .notice-section { padding: 22px 20px; }
}

/* Comfortable Hindi typography across the whole practice website. */
:lang(hi) {
  font-family: 'Noto Sans Devanagari', 'Nirmala UI', Mangal, sans-serif;
  letter-spacing: 0 !important;
  word-spacing: 0.035em;
}

body:lang(hi) {
  line-height: 1.75;
}

h1:lang(hi),
h2:lang(hi),
h3:lang(hi),
h4:lang(hi),
.brand-text:lang(hi) {
  font-family: 'Noto Sans Devanagari', 'Nirmala UI', Mangal, sans-serif;
  line-height: 1.32;
}

.hero-title:lang(hi) {
  font-size: clamp(2.15rem, 4.45vw, 2.85rem);
  line-height: 1.34;
}

.hero-subtitle:lang(hi),
.section-subtitle:lang(hi),
.faq-a:lang(hi),
.notice-section p:lang(hi),
.notice-section li:lang(hi) {
  line-height: 1.78;
}

.hero-badge:lang(hi),
.trust-chip:lang(hi),
.pill-btn:lang(hi),
.header-cta:lang(hi),
.btn-primary:lang(hi),
.btn-whatsapp:lang(hi),
.faq-q:lang(hi) {
  line-height: 1.55;
}

.notice-section:lang(hi) h2 {
  line-height: 1.45;
}

@media (max-width: 640px) {
  .hero-title:lang(hi) {
    font-size: clamp(1.85rem, 9.5vw, 2.35rem);
    line-height: 1.38;
  }
}

/* ==========================================================================
   Practice-wide colour themes
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.display-controls,
.theme-control {
  display: inline-flex;
  align-items: center;
}

.display-controls { gap: 8px; }

.theme-control {
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--control-bg, #ffffff);
}

.theme-btn {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.theme-btn:hover { transform: translateY(-1px); }
.theme-btn.active {
  border-color: var(--accent-soft-border, #c7d2fe);
  background: var(--accent-light);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.theme-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #cbd5e1;
}

.swatch-indigo { background: linear-gradient(135deg, #4f46e5 50%, #d2a52a 50%); }
.swatch-teal { background: linear-gradient(135deg, #0d9488 50%, #102b3a 50%); }
.swatch-midnight { background: linear-gradient(135deg, #08111f 50%, #34d399 50%); }

body[data-theme="indigo"] {
  --primary: #171a3f;
  --primary-light: #29265e;
  --accent: #4f46e5;
  --accent-hover: #3730a3;
  --accent-light: #eef2ff;
  --accent-soft-border: #c7d2fe;
  --accent-marker: #d2a52a;
  --gold-soft: #fff8df;
  --gold-border: #d9b541;
  --gold-ink: #765300;
  --button-start: #4f46e5;
  --button-end: #3730a3;
  --gold: #d2a52a;
  --bg-main: #f8f8fc;
  --bg-card: #ffffff;
  --bg-subtle: #f3f2fb;
  --surface: #ffffff;
  --surface-translucent: rgba(255, 255, 255, 0.9);
  --control-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --topbar-bg: #f2f2fa;
  --text-dark: #151a38;
  --text-muted: #626b83;
  --border: #dddff0;
  --border-focus: #4f46e5;
  --hero-glow-one: rgba(99, 102, 241, 0.17);
  --hero-glow-two: rgba(251, 191, 36, 0.14);
  --feature-bg: linear-gradient(135deg, #eef2ff 0%, #ffffff 58%, #fff8df 100%);
  --echs-bg: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%);
}

body[data-theme="teal"] {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-light: #ccfbf1;
  --accent-soft-border: #99f6e4;
  --accent-marker: #14b8a6;
  --button-start: #0d9488;
  --button-end: #0f766e;
  --gold: #d97706;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --surface: #ffffff;
  --surface-translucent: rgba(255, 255, 255, 0.9);
  --control-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --topbar-bg: #f1f5f9;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #0d9488;
  --hero-glow-one: rgba(45, 212, 191, 0.18);
  --hero-glow-two: rgba(251, 191, 36, 0.13);
  --feature-bg: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 58%, #eff6ff 100%);
  --echs-bg: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%);
}

body[data-theme="midnight"] {
  color-scheme: dark;
  --primary: #f3f7fb;
  --primary-light: #d8e1ec;
  --accent: #34d399;
  --accent-hover: #10b981;
  --accent-light: #17382f;
  --accent-soft-border: #2f6b59;
  --accent-marker: #f4c95d;
  --button-start: #047857;
  --button-end: #065f46;
  --gold: #f4c95d;
  --bg-main: #08111f;
  --bg-card: #101c2f;
  --bg-subtle: #0d1828;
  --surface: #101c2f;
  --surface-translucent: rgba(16, 28, 47, 0.94);
  --control-bg: #0f1c2f;
  --nav-bg: rgba(8, 17, 31, 0.92);
  --topbar-bg: #0d1828;
  --text-dark: #dce6f1;
  --text-muted: #aebed0;
  --border: #30445b;
  --border-focus: #34d399;
  --hero-glow-one: rgba(52, 211, 153, 0.14);
  --hero-glow-two: rgba(244, 201, 93, 0.1);
  --feature-bg: linear-gradient(135deg, #0e2230 0%, #101c2f 58%, #20251d 100%);
  --echs-bg: linear-gradient(135deg, #0d221d 0%, #101c2f 65%);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.34);
}

body[data-theme] {
  background-color: var(--bg-main);
  color: var(--text-dark);
  transition: background-color 180ms ease, color 180ms ease;
}

body[data-theme] .top-bar {
  background-color: var(--topbar-bg);
  color: var(--text-muted);
  border-color: var(--border);
}

body[data-theme] .lang-switch {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

body[data-theme] .lang-btn { color: var(--text-muted); }
body[data-theme] .lang-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 34%, transparent);
}

body[data-theme] .navbar {
  background: var(--nav-bg);
  border-color: var(--border);
}

body[data-theme] .hero {
  background:
    radial-gradient(circle at 10% 20%, var(--hero-glow-one) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, var(--hero-glow-two) 0%, transparent 50%);
  border-color: var(--border);
}

body[data-theme] .hero-badge,
body[data-theme] .slider-val-badge,
body[data-theme] .proc-icon-badge,
body[data-theme] .proc-badge-chip,
body[data-theme] .palliative-eyebrow {
  background: var(--accent-light);
  color: var(--accent-hover);
  border-color: var(--accent-soft-border);
}

body[data-theme] .header-cta,
body[data-theme] .btn-primary {
  background: linear-gradient(135deg, var(--button-start), var(--button-end));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 30%, transparent);
}

body[data-theme] .calculator-card,
body[data-theme] .stats-bar,
body[data-theme] .proc-card,
body[data-theme] .focus-card,
body[data-theme] .step-card,
body[data-theme] .vas-card,
body[data-theme] .location-grid,
body[data-theme] .faq-item,
body[data-theme] .calc-card-cover,
body[data-theme] .pill-btn,
body[data-theme] .proc-grid-card,
body[data-theme] .echs-card,
body[data-theme] .palliative-card,
body[data-theme] .custom-select,
body[data-theme] .btn-step-adjust {
  background: var(--surface);
  border-color: var(--border);
}

body[data-theme] .calculator-card::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-marker), var(--gold));
}

body[data-theme] .colorful-range-slider::-webkit-slider-thumb {
  border-color: var(--accent);
}

body[data-theme] .procedures-marquee-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-subtle) 100%);
}

body[data-theme] .focus-img-wrapper,
body[data-theme] .proc-tag-chip,
body[data-theme] .btn-secondary {
  background: var(--bg-subtle);
}

body[data-theme] .pill-btn:hover,
body[data-theme] .pill-btn.active {
  background: var(--accent-light);
  border-color: var(--accent);
}

body[data-theme] .palliative-shell {
  background: var(--feature-bg);
  border-color: var(--accent-soft-border);
}

body[data-theme] .palliative-icon { background: var(--accent-hover); }
body[data-theme] .echs-section { background: var(--echs-bg); }
body[data-theme] .echs-steps li::marker,
body[data-theme] .echs-list li::marker { color: var(--accent); }

body[data-theme] .focus-bullets li,
body[data-theme] .card-bullets li,
body[data-theme] .loc-detail,
body[data-theme] .proc-grid-card h4,
body[data-theme] .echs-card-title,
body[data-theme] .echs-steps li strong,
body[data-theme] .palliative-card h3 {
  color: var(--text-dark);
}

body[data-theme] .echs-steps li,
body[data-theme] .echs-list li,
body[data-theme] .echs-fineprint,
body[data-theme] .palliative-card p,
body[data-theme] .palliative-actions p {
  color: var(--text-muted);
}

body[data-theme="indigo"] .hero-badge,
body[data-theme="indigo"] .proc-icon-badge,
body[data-theme="indigo"] .proc-badge-chip,
body[data-theme="indigo"] .palliative-eyebrow {
  box-shadow: inset 4px 0 0 var(--accent-marker);
}

/* Indigo + Gold: gold is the brand accent; green is reserved for ECHS/WhatsApp. */
body[data-theme="indigo"] .navbar {
  border-bottom-color: #e8dba7;
}

body[data-theme="indigo"] .hero-badge {
  background: linear-gradient(135deg, var(--gold-soft), #eef2ff);
  border-color: var(--gold-border);
  color: #312e81;
}

body[data-theme="indigo"] #wizard-step-badge,
body[data-theme="indigo"] .slider-val,
body[data-theme="indigo"] #cred-role-label,
body[data-theme="indigo"] .doctor-license-pill,
body[data-theme="indigo"] .proc-badge-chip,
body[data-theme="indigo"] .proc-tag-chip,
body[data-theme="indigo"] .card-tag,
body[data-theme="indigo"] .proc-tag {
  background: var(--gold-soft) !important;
  border-color: var(--gold-border) !important;
  color: var(--gold-ink) !important;
}

body[data-theme="indigo"] .doctor-photo-frame {
  border-color: #e0bd4f !important;
  box-shadow: 0 12px 36px rgba(91, 75, 22, 0.22) !important;
}

body[data-theme="indigo"] .doctor-license-pill {
  background: linear-gradient(135deg, #fff3bf, #fff8df) !important;
  box-shadow: inset 0 0 0 1px rgba(210, 165, 42, 0.28);
}

body[data-theme="indigo"] .credentials-panel {
  border-color: #dfca7d !important;
  border-top: 3px solid var(--accent-marker) !important;
}

body[data-theme="indigo"] .credentials-panel-title { color: #29265e !important; }
body[data-theme="indigo"] .credentials-list li::marker { color: var(--accent-marker); }
body[data-theme="indigo"] #cred-reg { border-color: #dfca7d !important; }

body[data-theme="indigo"] .stats-section {
  border-top: 3px solid var(--accent-marker);
}

body[data-theme="indigo"] .palliative-shell {
  border-color: #dfca7d;
}

body[data-theme="indigo"] .palliative-eyebrow,
body[data-theme="indigo"] #proc-badge-tag {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold-ink);
}

body[data-theme="indigo"] .palliative-icon {
  background: #4338ca;
  border: 2px solid #e3c45b;
  box-shadow: 0 5px 14px rgba(79, 70, 229, 0.18);
}

body[data-theme="indigo"] .proc-grid-card,
body[data-theme="indigo"] .step-card {
  border-top: 3px solid #ddbd50;
}

body[data-theme="indigo"] .focus-badge {
  background: #171a3f;
  border-color: #e6c75b;
  color: #f7dc82;
}

body[data-theme="indigo"] .step-num,
body[data-theme="indigo"] .step-number {
  color: #805c00;
}

body[data-theme="indigo"] .faq-item:hover {
  border-color: var(--gold-border);
}

body[data-theme="indigo"] .footer-links a {
  color: #f4d77d;
}

body[data-theme="indigo"] .footer-copyright { color: #94a3b8 !important; }

body[data-theme="indigo"] .btn-whatsapp,
body[data-theme="indigo"] .floating-whatsapp-btn,
body[data-theme="teal"] .btn-whatsapp,
body[data-theme="teal"] .floating-whatsapp-btn {
  background: linear-gradient(135deg, #087f5b, #065f46);
}

body[data-theme="midnight"] .theme-swatch {
  box-shadow: 0 0 0 2px #0f1c2f, 0 0 0 3px #52647a;
}

/* Complete midnight pass: every light-only inline surface receives a dark counterpart. */
body[data-theme="midnight"] .lang-btn.active {
  background: #6ee7b7;
  color: #07150f;
}

body[data-theme="midnight"] #red-flag-alert {
  background: #351622 !important;
  border-color: #7f2946 !important;
  color: #fecdd3 !important;
}

body[data-theme="midnight"] #red-flag-title { color: #fda4af !important; }
body[data-theme="midnight"] .wizard-progress-track { background: #2a3b50 !important; }
body[data-theme="midnight"] #wizard-progress-bar { background: var(--accent) !important; }

body[data-theme="midnight"] #wizard-step-badge,
body[data-theme="midnight"] #cred-role-label {
  background: #172d47 !important;
  border-color: #315777 !important;
  color: #7dd3fc !important;
}

body[data-theme="midnight"] .slider-val {
  background: #17382f !important;
  border-color: #2f6b59 !important;
  color: #a7f3d0 !important;
}

body[data-theme="midnight"] #result-rec {
  background: #16243a !important;
  border-color: var(--accent) !important;
  color: #dce6f1 !important;
}

body[data-theme="midnight"] #result-box .result-score-header > div > div:first-child {
  color: #a7f3d0 !important;
}

body[data-theme="midnight"] #share-card-btn {
  background: linear-gradient(135deg, #047857, #065f46) !important;
}

body[data-theme="midnight"] .severity-pill {
  background: #047857;
  color: #ffffff;
}

body[data-theme="midnight"] #doctor-profile {
  background: linear-gradient(135deg, #0d1828, #101c2f) !important;
  border-color: var(--border) !important;
}

body[data-theme="midnight"] .doctor-photo-frame {
  border-color: #2f6b59 !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34) !important;
}

body[data-theme="midnight"] .doctor-license-pill {
  background: #17382f !important;
  color: #a7f3d0 !important;
  box-shadow: inset 0 0 0 1px #2f6b59;
}

body[data-theme="midnight"] .credentials-panel {
  background: #101c2f !important;
  border-color: #30445b !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}

body[data-theme="midnight"] .credentials-panel-title { color: #dce6f1 !important; }
body[data-theme="midnight"] .credentials-list { color: #bfcddd !important; }
body[data-theme="midnight"] .credentials-list strong { color: #f3f7fb !important; }

body[data-theme="midnight"] #panel-badge-card {
  background: #102c26 !important;
  border-color: #2f6b59 !important;
}

body[data-theme="midnight"] #panel-badge-title { color: #a7f3d0 !important; }
body[data-theme="midnight"] #panel-badge-sub { color: #c9eadf !important; }
body[data-theme="midnight"] .panel-badge-icon { color: #dce6f1 !important; }

body[data-theme="midnight"] #cred-reg {
  background: #16243a !important;
  border-color: #40546c !important;
  color: #cbd7e4 !important;
}

body[data-theme] .stats-section {
  padding: 32px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

body[data-theme="midnight"] #procedures {
  background: #08111f !important;
}

body[data-theme="midnight"] .proc-tag-chip {
  background: #0d1828;
  color: #c7d2e0;
  border: 1px solid #30445b;
}

body[data-theme="midnight"] .palliative-icon {
  background: #047857;
  color: #ffffff;
}

body[data-theme="midnight"] .btn-whatsapp,
body[data-theme="midnight"] .floating-whatsapp-btn {
  background: linear-gradient(135deg, #047857, #065f46);
}

body[data-theme="midnight"] #echs {
  border-color: #244a3c !important;
}

body[data-theme="midnight"] .footer-copyright { color: #94a3b8 !important; }

body[data-theme="midnight"] .calculator-card:hover,
body[data-theme="midnight"] .focus-card:hover,
body[data-theme="midnight"] .faq-item:hover,
body[data-theme="midnight"] .proc-grid-card:hover {
  border-color: var(--accent-soft-border);
}

body[data-theme="midnight"] .range-slider { background: #2a3b50; }
body[data-theme="midnight"] .custom-select:focus { background: #16243a; }
body[data-theme="midnight"] .btn-secondary { color: var(--text-dark); border-color: var(--border); }
body[data-theme="midnight"] .btn-secondary:hover { background: #1b2b42; color: #ffffff; }
body[data-theme="midnight"] .result-card {
  background: linear-gradient(135deg, #102c26, #17382f);
  border-color: #2f6b59;
}
body[data-theme="midnight"] .score-badge,
body[data-theme="midnight"] .score-badge span,
body[data-theme="midnight"] .result-desc { color: #a7f3d0; }
body[data-theme="midnight"] .echs-note {
  background: #29271c;
  color: #eadca9;
  border-color: var(--gold);
}
body[data-theme="midnight"] .echs-note strong { color: #f4d77d; }
body[data-theme="midnight"] .opd-badge {
  background: #312a17;
  color: #f4d77d;
  border-color: #5b5131;
}
body[data-theme="midnight"] footer { background: #050b14; }

@media (max-width: 640px) {
  body[data-theme] .top-bar {
    padding: 5px 10px;
    background: var(--topbar-bg);
    border-color: var(--border);
  }

  .display-controls { gap: 6px; }
  .theme-control { padding: 2px; }
  .theme-btn { width: 27px; height: 27px; }
  .theme-swatch { width: 14px; height: 14px; }

  body[data-theme] .lang-switch {
    background: var(--control-bg);
    border-color: var(--border);
  }

  body[data-theme] .header-cta {
    background: linear-gradient(135deg, var(--button-start), var(--button-end));
  }
}
