/* ===== DIAGNOAI GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600&display=swap');

:root {
  --teal: #0F9E75;
  --teal-light: #E1F5EE;
  --teal-dark: #085041;
  --blue: #1A6FC4;
  --blue-light: #E6F1FB;
  --amber: #C47A15;
  --amber-light: #FEF3E2;
  --red: #D94040;
  --red-light: #FEECEC;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-500: #6C757D;
  --gray-700: #495057;
  --gray-900: #1A1A2E;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --white: #ffffff;
  --border: #E5E7EB;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
}

.hindi { font-family: 'Noto Sans Devanagari', sans-serif; }
.hindi-sm { font-family: 'Noto Sans Devanagari', sans-serif; font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { background: var(--teal) !important; color: white !important; padding: 8px 20px; border-radius: 8px; }
.nav-cta:hover { opacity: 0.9; }
.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }
.mobile-menu { display: none; flex-direction: column; padding: 1rem 1.5rem; gap: 1rem; border-top: 1px solid var(--border); background: white; }
.mobile-menu a { text-decoration: none; color: var(--text); font-weight: 500; padding: 0.5rem 0; }
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  max-width: 860px; margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-muted);
  margin-bottom: 2rem; line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.btn-primary {
  background: var(--teal); color: white;
  padding: 14px 32px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: all 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-outline {
  background: white; color: var(--teal);
  border: 2px solid var(--teal);
  padding: 13px 32px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: all 0.2s; display: inline-block;
}
.btn-outline:hover { background: var(--teal-light); }
.hero-trust { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.hero-trust span { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ===== MODULES ===== */
.modules {
  max-width: 1100px; margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--teal); }
.module-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 1.25rem; }
.module-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.module-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 0.25rem; }
.module-link { color: var(--teal); font-weight: 600; font-size: 14px; display: inline-block; margin-top: 1rem; }

/* ===== HOW IT WORKS ===== */
.how {
  background: var(--gray-50);
  padding: 5rem 1.5rem;
  text-align: center;
}
.how h2 { font-size: 2rem; font-weight: 700; margin-bottom: 3rem; letter-spacing: -0.5px; }
.steps {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.step { max-width: 220px; text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal); color: white;
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h4 { font-size: 15px; font-weight: 600; margin-bottom: 0.5rem; }
.step p { font-size: 13px; color: var(--text-muted); }
.step-arrow { font-size: 28px; color: var(--teal); opacity: 0.4; margin-top: -1rem; }

/* ===== DISCLAIMER BANNER ===== */
.disclaimer-banner {
  background: var(--amber-light);
  border-top: 1px solid #F5D9A0;
  border-bottom: 1px solid #F5D9A0;
  padding: 1rem 1.5rem;
  text-align: center;
}
.disclaimer-banner p { font-size: 13px; color: #7A4F00; max-width: 800px; margin: 0 auto; line-height: 1.7; }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); color: #9CA3AF; padding: 3rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 3rem; flex-wrap: wrap; justify-content: space-between; margin-bottom: 2rem; }
.footer-brand .logo { color: white; font-size: 20px; }
.footer-brand .logo span { color: var(--teal); }
.footer-brand p { font-size: 13px; margin-top: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: #9CA3AF; text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid #374151; padding-top: 1.5rem; text-align: center; font-size: 12px; }

/* ===== MODULE PAGE SHARED ===== */
.page-header {
  background: linear-gradient(135deg, var(--teal-light) 0%, #F0FFFE 100%);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.page-header p { color: var(--text-muted); font-size: 15px; }
.page-container { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Sora', sans-serif;
  font-size: 14px; color: var(--text);
  background: white;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--teal); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* SYMPTOM TAGS */
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 7px 14px; border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 13px; cursor: pointer;
  background: white; color: var(--text-muted);
  transition: all 0.15s; user-select: none;
  font-family: 'Sora', sans-serif;
}
.tag.active { background: var(--teal-light); border-color: var(--teal); color: var(--teal-dark); font-weight: 600; }

/* SEVERITY */
.severity-group { display: flex; gap: 10px; }
.sev {
  flex: 1; padding: 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); text-align: center;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: white; color: var(--text-muted);
  transition: all 0.15s; font-family: 'Sora', sans-serif;
}
.sev.active { background: var(--teal-light); border-color: var(--teal); color: var(--teal-dark); }

/* SUBMIT BUTTON */
.submit-btn {
  width: 100%; padding: 14px;
  background: var(--teal); color: white;
  border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: 'Sora', sans-serif;
  transition: all 0.2s; margin-top: 0.5rem;
}
.submit-btn:hover { background: var(--teal-dark); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* LOADING */
.loading {
  display: flex; align-items: center; gap: 12px;
  padding: 1.25rem; color: var(--text-muted); font-size: 14px;
}
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* RESULTS */
.result-box { border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.result-green { background: var(--teal-light); border: 1.5px solid #9FE1CB; }
.result-red { background: var(--red-light); border: 1.5px solid #F7C1C1; }
.result-amber { background: var(--amber-light); border: 1.5px solid #FAC775; }
.result-blue { background: var(--blue-light); border: 1.5px solid #B5D4F4; }

.result-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.result-green .result-title { color: var(--teal-dark); }
.result-red .result-title { color: #7A1E1E; }
.result-amber .result-title { color: #7A4F00; }

.card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-top: 1rem; }
.card-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 1rem; }

.test-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.test-item:last-child { border-bottom: none; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.badge-urgent { background: var(--red-light); color: #7A1E1E; }
.badge-soon { background: var(--amber-light); color: #7A4F00; }
.badge-routine { background: var(--teal-light); color: var(--teal-dark); }
.test-name { font-size: 14px; font-weight: 600; }
.test-reason { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.disclaimer-box {
  background: var(--gray-100); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-top: 1.25rem;
  font-size: 12px; color: var(--text-muted); line-height: 1.7;
  border-left: 3px solid var(--border);
}

/* UPLOAD AREA */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 2.5rem; text-align: center; cursor: pointer;
  transition: all 0.2s;
}
.upload-area:hover { border-color: var(--teal); background: var(--teal-light); }
.upload-area .upload-icon { font-size: 36px; margin-bottom: 10px; }
.upload-area p { font-size: 14px; color: var(--text-muted); }
.upload-area strong { color: var(--teal); }

/* DOCTOR CARDS */
.doc-card { display: flex; align-items: center; gap: 14px; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; background: white; transition: box-shadow 0.2s; }
.doc-card:hover { box-shadow: var(--shadow); }
.doc-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; color: var(--teal-dark); flex-shrink: 0; }
.doc-info { flex: 1; }
.doc-name { font-size: 15px; font-weight: 700; }
.doc-spec { font-size: 13px; color: var(--text-muted); }
.doc-stars { color: #F59E0B; font-size: 13px; }
.doc-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.doc-tag { font-size: 11px; background: var(--teal-light); color: var(--teal-dark); padding: 3px 10px; border-radius: 12px; font-weight: 600; white-space: nowrap; }

/* SECTION DIVIDER */
.section-or { text-align: center; color: var(--text-muted); font-size: 13px; margin: 1rem 0; position: relative; }
.section-or::before, .section-or::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.section-or::before { left: 0; }
.section-or::after { right: 0; }

/* EMERGENCY BANNER */
.emergency-banner {
  background: var(--red-light); border: 2px solid var(--red);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.emergency-banner h3 { color: #7A1E1E; font-size: 16px; margin-bottom: 6px; }
.emergency-banner p { color: #7A1E1E; font-size: 14px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .modules { padding: 1.5rem 1.25rem 3rem; }
}
