/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: #ffffff;
  color: #111827;
  line-height: 1.6;
}

/* Booking dropdown booked slot */
select#time option.slot-booked {
  color:#6b7280 !important;
  background:#f3f4f6 !important;
  font-style:italic;
}

/* Alternative slots checkbox styling */
.alt-slot-label {
  transition: all 0.15s ease;
}
.alt-slot-label:hover {
  background: #f8fafc !important;
  border-color: #1e3a8a !important;
}
.alt-slot-label:has(input:checked) {
  background: #dbeafe !important;
  border-color: #1e3a8a !important;
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

/* Calendar Styles */
.calendar-grid {
  display: grid;
  grid-template-columns: 90px repeat(7, 1fr);
  background: #ffffff;
  border: 1px solid #dbe1e8;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}
.calendar-grid .calendar-header-cell {
  background: #1e3a8a;
  color: #fff;
  font-size: 17px; /* increased from 15px */
  font-weight: 600;
  padding: 8px 6px; /* increased vertical & horizontal padding */
  border-right: 1px solid rgba(255,255,255,0.15);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.calendar-grid .calendar-header-cell.today {
  background: #0f5ad1;
}
.calendar-time-cell {
  font-size: 16px; /* was 14px */
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 4px 6px; /* was 2px 4px */
  background: #f8fafc;
  color:#475569;
}
.calendar-slot {
  position: relative;
  border-bottom: 1px solid #eef2f6;
  border-right: 1px solid #eef2f6;
  min-height: 34px; /* was 28px */
  background:#ffffff;
}
.calendar-slot:hover {
  background:#f1f5f9;
}
.calendar-appointment {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  padding: 4px 6px 6px; /* slightly larger */
  background: #1e3a8a;
  color: #ffffff;
  border-radius: 4px;
  font-size: 15px; /* was 13px */
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  overflow:hidden;
  cursor: pointer;
}
.calendar-appointment.confirmed { background:#0d7d39; }
.calendar-appointment.unavailable { background:#b91c1c; }
/* Updated lighter color scheme */
.calendar-appointment.confirmed {
  background:#86efac;
  color:#065f46;
  border:1px solid #059669;
}
.calendar-appointment.unconfirmed {
  background:#ffd8a8;
  color:#92400e;
  border:1px solid #f59e0b;
}
.status-pill {
  display:inline-block;
  padding:4px 10px;
  font-size:14px;
  font-weight:600;
  border-radius:14px;
  line-height:1.3;
  letter-spacing:.3px;
  border:1px solid transparent;
  user-select:none;
}
.status-pill.confirmed { background:#86efac; color:#065f46; border-color:#059669; }
.status-pill.unconfirmed { background:#ffd8a8; color:#92400e; border-color:#f59e0b; }
.status-pill.unavailable { background:#fecaca; color:#991b1b; border-color:#dc2626; }
.status-pill:hover { filter:brightness(0.95); }

/* Simple tooltip using title attribute (optional future enhancement) */
/* Appointment actions dropdown */
.actions-dropdown { position:relative; display:inline-block; }
.actions-trigger {
  background:#1e3a8a; color:#fff; border:none; padding:8px 14px; font-size:15px; font-weight:600;
  border-radius:4px; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,0.15);
}
.actions-trigger:hover { background:#0f5ad1; }
.actions-menu {
  position:absolute; top:100%; left:0; margin-top:4px; background:#ffffff; border:1px solid #dbe1e8;
  border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,0.15); padding:4px; min-width:150px; display:none; z-index:30;
}
.actions-menu.open { display:block; }
.actions-menu button {
  display:block; width:100%; background:transparent; border:none; text-align:left; padding:8px 10px;
  font-size:13px; font-weight:600; border-radius:6px; cursor:pointer; transition:background .15s;
}
.actions-menu button.confirm-option { color:#065f46; }
.actions-menu button.reject-option { color:#991b1b; }
.actions-menu button.confirm-option:hover { background:#d1fae5; }
.actions-menu button.reject-option:hover { background:#fee2e2; }
.actions-menu button:focus { outline:2px solid #0f5ad1; outline-offset:2px; }

/* Modal specific tweaks for appointment actions */
#appointmentActionsModal .admin-btn-primary { background:#059669; }
#appointmentActionsModal .admin-btn-primary:hover { background:#047857; }
#appointmentActionsModal .admin-btn-danger { background:#dc2626; }
#appointmentActionsModal .admin-btn-danger:hover { background:#b91c1c; }
.calendar-appointment .appt-name {font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.calendar-empty-msg {
  padding: 1rem;
  font-size: 16px;
  color:#475569;
}
.calendar-week-controls button.admin-btn-secondary[disabled] {opacity:.4;cursor:not-allowed;}
@media (max-width: 1100px) {
  .calendar-grid {grid-template-columns: 60px repeat(7,1fr);}
  .calendar-slot {min-height: 32px;}
  .calendar-grid .calendar-header-cell {font-size:11px;}
  .calendar-time-cell {font-size:10px;}
}
@media (max-width: 800px) {
  /* Collapse to a single-day view (current day) for narrow screens */
  .calendar-grid {grid-template-columns: 60px 1fr;}
  .calendar-grid .calendar-header-cell.hide-small {display:none;}
  .calendar-slot.multi-day {display:none;}
}

/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

header .header-container {
  /* make header a bit wider to reduce outer white-space */
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1.25rem; /* slightly reduced gap to match new logo scale */
  margin-right: 0.5rem; /* nudge logo away from nav so it doesn't feel cramped */
}

.logo-circle {
  /* scale down to 0.7x the previous size (12rem * 0.7 = 8.4rem) */
  width: 8.4rem;
  height: 8.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid #1e3a8a;
}

.logo-circle svg {
  width: 5.6rem;
  height: 5.6rem;
}

.logo-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text h1 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
}

.logo-text p {
  font-size: 0.75rem;
  color: #4b5563;
  margin: 0;
}

/* Navigation */
nav {
  display: none;
  gap: 1.25rem;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 500;
  flex: 0; /* don't stretch to fill available space - keeps WhatsApp button closer */
  margin: 0 1rem;
  justify-content: center;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  nav {
    display: flex;
  }
}

/* Medium laptops: shrink header elements so nothing overflows */
@media (min-width: 1024px) and (max-width: 1380px) {
  .logo-circle {
    width: 5.5rem;
    height: 5.5rem;
  }

  nav {
    gap: 0.6rem;
    font-size: 0.8rem;
    margin: 0 0.5rem;
  }

  nav a {
    padding: 0 0.25rem;
  }

  /* Hide phone number, keep WhatsApp icon only */
  .whatsapp-number {
    display: none;
  }

  .whatsapp-btn {
    padding: 0.5rem 0.6rem;
  }
}

nav a {
  text-decoration: none;
  color: #374151;
  transition: color 0.3s ease;
  white-space: nowrap;
  padding: 0 0.4rem;
}

/* prevent logo text and whatsapp number from wrapping */
.logo-text h1,
.logo-text p,
.whatsapp-number {
  white-space: nowrap;
}

.logo-text h1 {
  font-size: 0.95rem; /* slightly smaller to help fit on one line */
}

nav a:hover {
  color: #1e3a8a;
}

/* Language Toggle Button (globe icon + abbreviated label) */
#lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 1.5px solid #1e3a8a;
  color: #1e3a8a;
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

#lang-toggle svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

#lang-toggle:hover {
  background: #1e3a8a;
  color: #fff;
}

/* ── Language Selection Modal (first-visit popup) ───────────────── */
#lang-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: langOverlayIn 0.35s ease both;
}

#lang-modal-overlay.lang-modal-out {
  animation: langOverlayOut 0.3s ease forwards;
}

@keyframes langOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes langOverlayOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.lang-modal-box {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  animation: langBoxIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  max-width: 420px;
  width: 90%;
}

@keyframes langBoxIn {
  from { transform: translateY(24px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.lang-modal-greeting {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 0.4rem;
}

.lang-modal-sub {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 1.8rem;
}

.lang-modal-cards {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.4rem 1.8rem;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  min-width: 110px;
  font-family: inherit;
}

.lang-card:hover {
  border-color: #1e3a8a;
  background: #eff6ff;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.15);
}

.lang-card-flag {
  font-size: 2.4rem;
  line-height: 1;
}

.lang-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e3a8a;
}

/* ── Floating language button (bottom-left) ─────────────────────── */
#lang-float-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 2px solid #1e3a8a;
  color: #1e3a8a;
  border-radius: 9999px;
  padding: 0.5rem 1.1rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.18);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

#lang-float-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#lang-float-btn:hover {
  background: #1e3a8a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.28);
}

/* WhatsApp Button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #25D366;
  color: #ffffff;
  padding: 0.5rem 1rem; /* slightly smaller so it doesn't push too far to right */
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.18s ease;
  border: none;
  box-shadow: 0 6px 10px rgba(37, 211, 102, 0.18);
  margin-left: 0.5rem; /* keep small gap from nav */
}

.whatsapp-btn:hover {
  background-color: #20BA5A;
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.22);
  transform: translateY(-2px);
}

.whatsapp-btn svg,
.whatsapp-btn .whatsapp-icon img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.whatsapp-number {
  display: inline-block;
  line-height: 1;
}

/* Main Content */
main {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
}

@media (min-width: 768px) {
  .hero-section {
    gap: 3rem;
    padding: 5rem 0;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content h1 {
  font-size: 2.4rem; /* reduced to 0.8x of previous 3rem */
  font-weight: 900;
  line-height: 1.2;
  color: #1e3a8a;
  margin-bottom: 0;
}

.hero-content h1 + h1 {
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) and (max-width: 1380px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
}

@media (min-width: 1380px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

.hero-content p {
  font-size: 1.125rem;
  color: #374151;
  max-width: 40rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-content strong {
  font-weight: 600;
}

.pune-link {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.pune-link:hover {
  color: #1d4ed8;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

.btn-primary {
  border-color: #1e3a8a;
  background-color: #eff6ff;
  color: #1e3a8a;
}

.btn-primary:hover {
  background-color: #dbeafe;
}

.btn-secondary {
  border-color: #25D366;
  background-color: #E8F8F0;
  color: #25D366;
}

.btn-secondary:hover {
  background-color: #D1F0E8;
}

.hero-image {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-image {
    justify-content: flex-end;
  }
}

.hero-image-wrapper {
  width: 100%;
  max-width: 28rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Booking Form Section */
.booking-section {
  padding: 4rem 0;
  background-color: #f9fafb;
  margin: 0 -1.5rem;
  padding: 4rem 1.5rem;
}

/* Treatment page: slider styles */
.treatment-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}
.treatment-hero-left h1 {
  font-size: 2rem;
  color: #07263f;
}
.treatment-hero-right img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.disorders-section .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1e3a8a;
}

.slider {
  position: relative;
}
.slides-wrapper {
  overflow: hidden;
}
.slides {
  display: flex;
  gap: 1.5rem;
  transition: transform 300ms ease;
}
.slide {
  flex: 0 0 32%;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(16,24,40,0.06);
  text-align: center;
}
.slide .img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  /* prefer aspect-ratio when available so images keep consistent framing */
  aspect-ratio: 16 / 9;
}
.slide .img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Fallback for older browsers: ensure a fixed height on smaller viewports */
@supports not (aspect-ratio: 16/9) {
  .slide .img-wrap {
    height: 10.5rem;
  }
}

@media (max-width: 1024px) {
  .slide .img-wrap { height: 9rem; }
}
.slide h3 { margin: 0.5rem 0; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.06);
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  font-size: 1.4rem;
  cursor: pointer;
}
.slider-btn.prev { left: -1rem; }
.slider-btn.next { right: -1rem; }
.slider-dots { text-align: center; margin-top: 1rem; }
.slider-dots button { background: #e5e7eb; border: none; width: 10px; height: 10px; border-radius: 50%; margin: 0 6px; cursor: pointer; }
.slider-dots button.active { background: #1e3a8a; }

@media (max-width: 1024px) {
  .treatment-hero { grid-template-columns: 1fr; }
  .slide { flex: 0 0 100%; }
  .slider-btn.prev { left: 0.25rem; }
  .slider-btn.next { right: 0.25rem; }
}

.booking-container {
  max-width: 56rem; /* was 48rem */
  margin: 0 auto;
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.booking-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.booking-section > div > p {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-input,
.form-textarea {
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  width: 100%;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.btn-submit {
  padding: 0.75rem 2rem;
  background-color: #1e3a8a;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #1e40af;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#status {
  font-size: 0.875rem;
  color: #4b5563;
}

/* Footer */
footer {
  background-color: #1e3a8a;
  color: #ffffff;
  margin-top: 5rem;
}

.footer-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.footer-brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0.15rem 0 0;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}

.footer-contact-item {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin: 0.6rem 0 0;
  line-height: 1.55;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 1.1rem;
  padding-left: 0.75rem;
  border-left: 3px solid rgba(255,255,255,0.55);
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  border-bottom: 1px dashed rgba(255,255,255,0.18);
  padding: 0.45rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links li:first-child { padding-top: 0; }

.footer-links li::before {
  content: "▶";
  font-size: 0.5rem;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
}

.footer-hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
  padding: 0.45rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
}

.footer-hours li:first-child { padding-top: 0; }

.footer-hours .day { font-weight: 600; }

.footer-hours .closed { color: rgba(255,255,255,0.45); }

.footer-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-link:hover { color: #fff; }

.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.25rem 1.5rem;
}

.footer-bottom {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer p {
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 1023px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Modal styles for booking form */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal[aria-hidden="false"], .modal.open {
  display: flex;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.modal-content {
  position: relative;
  width: 95%;
  max-width: 48rem;
  margin: 1rem;
  z-index: 10;
  border-radius: 1rem;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #374151;
  cursor: pointer;
  z-index: 20;
}
.modal .modal-body {
  padding: 2.5rem;
  background: #ffffff;
  font-size: 1.1rem;
}
.modal.open .modal-content, .modal[aria-hidden="false"] .modal-content {
  animation: modalIn 240ms ease;
}
@keyframes modalIn {
  from { transform: translateY(12px) scale(.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal .form-grid {
  margin-top: 1.25rem;
}

footer p {
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 640px) {
  /* Keep header as a row — just shrink the logo */
  .logo-circle {
    width: 4.5rem;
    height: 4.5rem;
  }

  /* Hide the phone number in header, keep icon only */
  .whatsapp-number {
    display: none;
  }

  nav {
    display: none;
  }

  /* Reduce hero vertical space */
  .hero-section {
    padding: 2rem 0;
    gap: 1.5rem;
  }

  /* Shrink hero heading so it doesn't eat the whole screen */
  .hero-content h1 {
    font-size: 1.7rem;
    margin-bottom: 0.75rem;
  }

  /* Shrink hero body text slightly */
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Doctor photo: don't let it grow too tall on mobile */
  .hero-image-wrapper {
    max-width: 20rem;
  }

  .booking-container {
    padding: 1.5rem;
  }
}

/* Mobile Quick Nav (home page only, hidden on desktop) */
.mobile-quick-nav {
  display: none;
}

@media (max-width: 640px) {
  .mobile-quick-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin: 0 0 2rem;
  }

  .mqn-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.1rem 0.5rem;
    background: #eff6ff;
    border: 2px solid #1e3a8a;
    border-radius: 1rem;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, transform 0.15s;
  }

  .mqn-card:active {
    background: #dbeafe;
    transform: scale(0.97);
  }

  .mqn-card svg {
    width: 1.6rem;
    height: 1.6rem;
    flex-shrink: 0;
  }
}

/* Contact Page */
.contact-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 2fr 3fr;
    gap: 2.5rem;
    align-items: stretch;
    min-height: 560px;
  }
}

.contact-info-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.contact-info-panel h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.contact-tagline {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: #1e3a8a;
}

.contact-icon--whatsapp {
  background: #e8f8f0;
}

.contact-icon-img {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  object-fit: contain;
}

.contact-item-text h3 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}

.contact-item-text p,
.contact-item-text a {
  font-size: 0.95rem;
  color: #111827;
  line-height: 1.5;
  margin: 0;
}

.contact-link {
  color: #1e3a8a;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #0f5ad1;
  text-decoration: underline;
}

.contact-cta {
  margin-top: 2rem;
  align-self: flex-start;
}

.contact-map-panel {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  min-height: 420px;
}

.contact-map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  border: 0;
  flex: 1;
}

.directions-link {
  display: block;
  text-align: center;
  padding: 0.65rem 1rem;
  background: #1e3a8a;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}

.directions-link:hover {
  background: #0f5ad1;
}

.contact-map-panel {
  display: flex;
  flex-direction: column;
}

/* Active nav link */
nav a.nav-active {
  color: #1e3a8a;
  font-weight: 700;
}

/* Admin Panel Styles (aligned with existing palette & spacing) */
.admin-wrapper { max-width:80rem; margin:2.5rem auto 4rem; padding:0 1rem; }
.admin-card { background:#ffffff; border:1px solid #e5e7eb; border-radius:1rem; padding:2rem 2rem 2.5rem; box-shadow:0 8px 24px rgba(0,0,0,0.05); }
.admin-title { font-size:2rem; font-weight:700; margin:0 0 1.5rem; color:#1e3a8a; }
.admin-login-form { display:flex; flex-direction:column; gap:0.75rem; max-width:22rem; }
.admin-input, .admin-textarea { width:100%; padding:0.75rem 0.95rem; border:1px solid #d1d5db; border-radius:0.5rem; font-family:'Poppins', system-ui, sans-serif; font-size:1.05rem; transition:border-color .2s, box-shadow .2s; }
.admin-input:focus, .admin-textarea:focus { outline:none; border-color:#1e3a8a; box-shadow:0 0 0 3px rgba(30,58,138,0.15); }
.admin-textarea { min-height:140px; resize:vertical; }
.admin-status { font-size:0.9rem; color:#4b5563; min-height:1em; }
.admin-btn-primary, .admin-btn-secondary, .admin-btn-danger { border:none; cursor:pointer; font-weight:600; font-family:'Poppins', system-ui, sans-serif; padding:0.7rem 1.3rem; border-radius:0.6rem; font-size:1.05rem; transition:background .2s, transform .15s; }
.admin-btn-primary { background:#1e3a8a; color:#fff; }
.admin-btn-primary:hover { background:#1e40af; }
.admin-btn-secondary { background:#2563eb; color:#fff; }
.admin-btn-secondary:hover { background:#1d4ed8; }
.admin-btn-danger { background:#dc2626; color:#fff; }
.admin-btn-danger:hover { background:#b91c1c; }
.admin-btn-primary:active, .admin-btn-secondary:active, .admin-btn-danger:active { transform:translateY(1px); }
.admin-panel { margin-top:1rem; }
.admin-tabs { display:flex; align-items:center; gap:0.75rem; margin-bottom:1.5rem; }
.admin-tab { background:#f1f5f9; color:#1e3a8a; border:1px solid #d1d5db; padding:0.65rem 1.15rem; border-radius:0.6rem; font-weight:600; cursor:pointer; font-size:1rem; transition:background .2s, color .2s; }
.admin-tab[aria-selected="true"] { background:#1e3a8a; color:#fff; }
.admin-tab:not([aria-selected="true"]):hover { background:#e2e8f0; }
.flex-spacer { flex:1; }
.tab-panel { display:none; }
.tab-panel.active { display:block; animation:fadeIn .25s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
.admin-search-row { display:flex; flex-wrap:wrap; gap:0.75rem; align-items:flex-end; margin-bottom:0.75rem; }
.admin-label { font-size:0.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:#1e3a8a; }
.admin-create-block { margin:1.5rem 0 1.25rem; }
.admin-subtitle { font-size:1.25rem; font-weight:600; margin:0 0 .75rem; color:#1e3a8a; }
.admin-create-form { display:flex; flex-direction:column; gap:0.75rem; max-width:40rem; }
.table-scroll { overflow-x:auto; border:1px solid #e5e7eb; border-radius:0.6rem; background:#ffffff; }
.admin-table { width:100%; border-collapse:collapse; font-size:1rem; }
.admin-table th { text-align:left; background:#f8fafc; font-weight:600; color:#1e3a8a; font-size:0.95rem; letter-spacing:.03em; padding:0.75rem 0.9rem; border-bottom:1px solid #e5e7eb; }
.admin-table td { padding:0.7rem 0.9rem; border-bottom:1px solid #f1f5f9; vertical-align:top; }
.admin-table tr:last-child td { border-bottom:none; }
.admin-table button { font-size:0.85rem; }
.admin-pager { display:flex; gap:0.6rem; align-items:center; margin-top:0.9rem; font-size:0.9rem; }
.admin-pager button { padding:0.5rem 0.85rem; background:#f1f5f9; border:1px solid #d1d5db; border-radius:0.5rem; cursor:pointer; font-weight:600; font-size:0.8rem; }
.admin-pager button:hover:not([disabled]) { background:#e2e8f0; }
.admin-pager button[disabled] { opacity:.45; cursor:not-allowed; }
@media (max-width: 640px) { .admin-card { padding:1.25rem 1.25rem 2rem; } .admin-title { font-size:1.5rem; } }

#countryCode.form-input {
  min-width: 200px;
  max-width: 260px;
  font-size: 1rem;
}
