/* MediPulse - Modern Medical & Patient Consultation Portal
   Color Scheme: Medical Golden Yellow (#f59e0b, #eab308), Crisp White (#ffffff), Slate Gray Icons (#64748b)
*/

:root {
  --primary-yellow: #f59e0b;
  --primary-hover: #d97706;
  --yellow-light: #fef3c7;
  --yellow-ultralight: #fffbeb;
  --bg-white: #ffffff;
  --bg-slate: #f8fafc;
  --bg-dark: #0f172a;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --icon-gray: #64748b;
  --icon-hover: #475569;
  --border-color: #e2e8f0;
  --border-focus: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 1. Emergency Top Ticker */
.emergency-bar {
  background-color: var(--bg-dark);
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--primary-yellow);
}

.emergency-bar .ticker-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emergency-bar .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseAnim 1.6s infinite;
}

@keyframes pulseAnim {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.lang-selector select {
  background-color: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
}

/* 2. Main Navigation */
.navbar {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
}

.brand-logo img {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--primary-yellow);
}

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

.nav-links a {
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

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

.btn-primary {
  background-color: var(--primary-yellow);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-color);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--primary-yellow);
  color: var(--primary-yellow);
}

.btn-demo {
  background-color: #0f172a;
  color: #fbbf24;
  border: 1px solid #1e293b;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.btn-demo:hover {
  background-color: #1e293b;
}

/* 3. Hero Section */
.hero {
  padding: 70px 20px 60px;
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--yellow-light);
  color: #92400e;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid #fde68a;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.18;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

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

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
}

.stat-item h3 span {
  color: var(--primary-yellow);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Quick Consultation Preview Card on Hero */
.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.hero-card-header img {
  width: 44px;
  height: 44px;
}

.hero-card-header h4 {
  font-size: 1.25rem;
  font-weight: 800;
}

.hero-card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 4. Consultation Booking Wizard Section */
.wizard-section {
  padding: 80px 20px;
  background-color: var(--bg-slate);
}

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

.section-header .tagline {
  color: var(--primary-yellow);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

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

.wizard-box {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
}

.wizard-progress::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
}

.progress-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 25%;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  transition: all 0.2s;
}

.progress-step.active .step-num {
  border-color: var(--primary-yellow);
  background-color: var(--primary-yellow);
  color: #ffffff;
}

.progress-step.completed .step-num {
  border-color: var(--success);
  background-color: var(--success);
  color: #ffffff;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-step.active .step-label {
  color: var(--text-dark);
}

.wizard-step-pane {
  display: none;
}

.wizard-step-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Department Grid Selection */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dept-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #ffffff;
}

.dept-card:hover {
  border-color: #fde68a;
  transform: translateY(-2px);
}

.dept-card.selected {
  border-color: var(--primary-yellow);
  background-color: var(--yellow-ultralight);
}

.dept-card img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

.dept-card h5 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

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

/* Doctor Selector Grid */
.doc-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.doc-choice-card {
  display: flex;
  gap: 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.doc-choice-card:hover {
  border-color: #fde68a;
}

.doc-choice-card.selected {
  border-color: var(--primary-yellow);
  background-color: var(--yellow-ultralight);
}

.doc-choice-card img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
}

.doc-choice-info h6 {
  font-size: 0.95rem;
  font-weight: 800;
}

.doc-choice-info .doc-spec {
  color: #b45309;
  font-size: 0.8rem;
  font-weight: 700;
}

.doc-choice-info .doc-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Form Groups */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background-color: #ffffff;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 85px;
}

.wizard-footer-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* 5. Medical Specialties Showcase */
.specialties-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.spec-container {
  max-width: 1240px;
  margin: 0 auto;
}

.spec-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.spec-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  background-color: #ffffff;
  transition: all 0.25s;
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #fde68a;
}

.spec-card img.spec-thumb {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 18px;
}

.spec-card .spec-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.spec-card .spec-icon-row img {
  width: 24px;
  height: 24px;
}

.spec-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
}

.spec-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* 6. Chief Doctors Team */
.doctors-section {
  padding: 80px 20px;
  background-color: var(--bg-slate);
}

.doc-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.doc-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.doc-avatar-container {
  width: 100%;
  height: 260px;
  background-color: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.doc-avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-info {
  padding: 20px;
}

.doc-info h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.doc-dept {
  color: #b45309;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.doc-bio {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.doc-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.metric-val {
  font-weight: 800;
  color: var(--text-dark);
}

.metric-val span {
  color: var(--primary-yellow);
}

/* 7. Patient Digital Registration */
.patient-reg-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.patient-reg-box {
  max-width: 860px;
  margin: 0 auto;
  background: var(--yellow-ultralight);
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 40px;
}

/* 8. Trust & Security Badges */
.trust-section {
  padding: 60px 20px;
  background-color: var(--bg-slate);
}

.trust-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 16px;
}

.trust-card img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.trust-card h5 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

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

/* 9. Modal Windows */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* 10. Footer */
.footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 60px 20px 30px;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}

.footer h5 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-bottom {
  max-width: 1240px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-cards-grid,
  .doc-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .doc-select-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .spec-cards-grid,
  .doc-grid,
  .trust-grid,
  .dept-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .wizard-box {
    padding: 20px;
  }
}
