/* ==========================================================================
   DR. MRADUL DENTAL STUDIO - LUXURY EMERALD CLINICAL DESIGN SYSTEM
   PIXEL-PERFECT RESPONSIVE DESIGN (MOBILE, TABLET, LAPTOP & DESKTOP)
   ========================================================================== */

:root {
  /* Fresh Emerald Teal & Deep Forest Luxury Palette */
  --emerald-600: #0d9488;
  --emerald-500: #10b981;
  --emerald-700: #0f766e;
  --forest-900: #064e3b;
  --forest-950: #022c22;
  --mint-50: #f0fdf4;
  --mint-100: #dcfce7;
  --mint-200: #bbf7d0;
  
  --dark-slate: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --card-border: #e2e8f0;
  --gold: #f59e0b;
  --white: #ffffff;
  
  /* Radii */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 10px 30px -5px rgba(13, 148, 136, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 40px -8px rgba(13, 148, 136, 0.2);
  --shadow-emerald: 0 12px 28px -5px rgba(16, 185, 129, 0.4);

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--dark-slate);
  font-weight: 700;
  line-height: 1.25;
}

/* ==========================================================================
   PREMIUM MOTION GRAPHICS & KEYFRAMES
   ========================================================================== */
@keyframes floatY {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 18px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-500) 100%);
  color: var(--white);
  box-shadow: var(--shadow-emerald);
}

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

.btn-outline {
  background: var(--white);
  color: var(--dark-slate);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--mint-50);
  border-color: var(--emerald-500);
  transform: translateY(-2px);
}

.play-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.arrow-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.btn-large {
  padding: 15px 30px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

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

.brand-tooth-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.brand-logo:hover .brand-tooth-icon {
  transform: rotate(-6deg) scale(1.06);
}

.brand-title {
  font-family: var(--font-heading);
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-title .main-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-slate);
  letter-spacing: -0.4px;
}

.brand-title .sub-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-600);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--emerald-600);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--emerald-600);
  border-radius: 2px;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark-slate);
  border-radius: 2px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(220, 252, 231, 0.45) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(204, 251, 241, 0.45) 0%, transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-700);
  background: var(--mint-100);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  letter-spacing: -1.5px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--dark-slate);
  line-height: 1.15;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 520px;
  line-height: 1.65;
}

.hero-btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.hero-badges-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--card-border);
  padding-top: 25px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--emerald-600);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: var(--transition);
}

.badge-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--dark-slate);
  line-height: 1.3;
}

/* Hero Right: Curved Arch Frame */
.hero-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-arch-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 500px;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(13, 148, 136, 0.25);
  border: 5px solid var(--white);
}

.hero-arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-arch-frame:hover .hero-arch-img {
  transform: scale(1.05);
}

/* Floating Motion Badges */
.floating-motion-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: floatY 4s ease-in-out infinite alternate;
}

.pill-pos-1 {
  top: 35px;
  left: 0px;
}

.pill-pos-2 {
  bottom: 35px;
  right: 0px;
  animation-delay: -2s;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.section-wrapper {
  padding: 80px 0;
}

.section-top-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}

.section-eyebrow-text {
  color: var(--emerald-600);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}

.section-main-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -1px;
}

.services-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card-modern {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--emerald-500);
}

.card-img-header {
  height: 190px;
  position: relative;
  overflow: hidden;
}

.card-img-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card-modern:hover .card-img-header img {
  transform: scale(1.06);
}

.service-badge-icon {
  position: absolute;
  bottom: -16px;
  left: 20px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--emerald-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 6px 15px rgba(13, 148, 136, 0.35);
  border: 3px solid var(--white);
}

.card-content-body {
  padding: 26px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card-content-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
  flex-grow: 1;
  line-height: 1.55;
}

.learn-more-link {
  color: var(--emerald-600);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   DEEP FOREST GREEN CONTAINER: "We Care for Your Healthy Smile"
   ========================================================================== */
.forest-feature-banner {
  background: linear-gradient(135deg, var(--forest-950) 0%, var(--forest-900) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 45px;
  box-shadow: 0 25px 60px rgba(6, 78, 59, 0.35);
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.forest-banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  align-items: center;
  gap: 35px;
}

.forest-text-col h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 14px;
}

.forest-text-col p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.check-features-list {
  list-style: none;
  margin-bottom: 28px;
}

.check-features-list li {
  margin-bottom: 12px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f1f5f9;
}

.check-features-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald-500);
  color: var(--forest-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}

.forest-center-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  height: 340px;
}

.forest-center-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.forest-stats-card {
  background: var(--white);
  color: var(--dark-slate);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-row-item strong {
  display: block;
  font-size: 1.8rem;
  color: var(--emerald-600);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-row-item small {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ==========================================================================
   OUR PROCESS: 4-STEP CONNECTED STEPPER
   ========================================================================== */
.stepper-section {
  text-align: center;
}

.stepper-header {
  max-width: 600px;
  margin: 0 auto 50px;
}

.stepper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.stepper-grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: dashed 2px #cbd5e1;
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  padding: 26px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-hover);
}

.step-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--mint-50);
  border: 2px solid var(--mint-200);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
}

.step-number-tag {
  display: inline-block;
  background: var(--mint-100);
  color: var(--emerald-700);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.step-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ==========================================================================
   MEET OUR EXPERT DENTISTS
   ========================================================================== */
.dentists-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.dentist-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  text-align: center;
}

.dentist-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.dentist-card.featured-doctor {
  border: 2px solid var(--emerald-500);
  background: linear-gradient(180deg, var(--mint-50) 0%, var(--white) 100%);
}

.dentist-photo-box {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.dentist-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dentist-card:hover .dentist-photo-box img {
  transform: scale(1.06);
}

.dentist-info-body {
  padding: 18px;
}

.dentist-info-body h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.dentist-role-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--mint-100);
  color: var(--emerald-700);
  margin-top: 4px;
}

/* ==========================================================================
   PRICING PLANS
   ========================================================================== */
.pricing-three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.price-card-tier {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px 28px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.price-card-tier:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.price-card-tier.popular-emerald {
  border: 2px solid var(--emerald-600);
  transform: scale(1.03);
  box-shadow: 0 20px 45px rgba(13, 148, 136, 0.16);
  position: relative;
}

.popular-badge-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-600);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.price-card-tier h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.price-value-row {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 20px;
  line-height: 1;
}

.price-value-row span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-checklist {
  list-style: none;
  margin-bottom: 26px;
  flex-grow: 1;
}

.plan-checklist li {
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 24px;
}

.plan-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald-600);
  font-weight: 900;
}

/* ==========================================================================
   BOOKING & APPOINTMENT FORM CARD
   ========================================================================== */
.booking-section-wrapper {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--mint-50) 100%);
  padding: 80px 0;
}

.dual-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
}

.clinic-highlight-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clinic-highlight-box h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.contact-quick-list {
  list-style: none;
  margin: 20px 0;
}

.contact-quick-list li {
  margin-bottom: 12px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.clinic-room-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
}

.clinic-room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-card-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}

.form-card-container h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.form-card-container p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.clean-form-emerald {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clean-form-emerald input,
.clean-form-emerald select,
.clean-form-emerald textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: #f8fafc;
  font-family: var(--font-main);
  font-size: 16px; /* 16px prevents mobile iOS auto-zoom */
  color: var(--dark-slate);
  outline: none;
  transition: var(--transition);
}

.clean-form-emerald input:focus,
.clean-form-emerald select:focus,
.clean-form-emerald textarea:focus {
  background: var(--white);
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px var(--mint-100);
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 4px;
  text-align: left;
}

/* ==========================================================================
   24/7 AI RECEPTIONIST CHAT WIDGET
   ========================================================================== */
.chat-widget-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: var(--font-main);
}

.chat-launcher-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  padding: 7px 18px 7px 7px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.2);
  transition: var(--transition);
}

.chat-launcher-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.launcher-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--emerald-500);
  animation: pulseGlow 2.5s infinite;
}

.label-heading {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark-slate);
}

.label-status {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-600);
}

.chat-window {
  position: fixed;
  bottom: 82px;
  right: 20px;
  width: 380px;
  height: 560px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  pointer-events: none;
}

.chat-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, var(--forest-900) 0%, var(--emerald-700) 100%);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.chat-title {
  font-weight: 700;
  font-size: 0.92rem;
}

.chat-subtitle {
  font-size: 0.7rem;
  opacity: 0.85;
}

.chat-header-actions button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
}

.chat-settings-panel {
  background: var(--mint-50);
  padding: 14px;
  border-bottom: 1px solid var(--mint-200);
  display: none;
  font-size: 0.8rem;
}

.chat-settings-panel.active {
  display: block;
}

.chat-settings-panel label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.chat-settings-panel input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  font-size: 0.78rem;
  margin-top: 3px;
}

.chat-messages {
  flex-grow: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.msg-bubble {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.45;
  animation: fadeIn 0.2s ease-in;
}

.msg-bot {
  background: var(--white);
  color: var(--dark-slate);
  border: 1px solid var(--card-border);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.msg-user {
  background: var(--emerald-600);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip {
  background: var(--mint-100);
  color: var(--emerald-700);
  border: none;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.chip:hover {
  background: var(--emerald-600);
  color: var(--white);
}

.chat-input-area {
  padding: 10px 14px;
  background: var(--white);
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input-area input {
  flex-grow: 1;
  border: 1px solid var(--card-border);
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  font-size: 16px; /* Prevents auto zoom */
  outline: none;
}

.chat-input-area button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--emerald-600);
  color: var(--white);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 16px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px 28px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

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

/* Footer Section */
.site-footer-forest {
  background: var(--forest-950);
  color: #94a3b8;
  padding: 70px 0 30px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 35px;
  margin-bottom: 40px;
}

.footer-col h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--emerald-500);
}

/* ==========================================================================
   PIXEL-PERFECT RESPONSIVE BREAKPOINTS (TABLETS, LAPTOPS & PHONES)
   ========================================================================== */

/* Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-desc, .hero-btn-row {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .hero-badges-strip {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
    margin: 0 auto;
    gap: 16px;
  }
  .services-four-grid, .dentists-four-grid, .stepper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stepper-grid::before {
    display: none;
  }
  .forest-banner-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .check-features-list {
    max-width: 480px;
    margin: 0 auto 28px;
  }
  .pricing-three-grid, .dual-booking-grid {
    grid-template-columns: 1fr;
  }
  .price-card-tier.popular-emerald {
    transform: none;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Devices & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
  
  .navbar {
    height: 72px;
  }
  .nav-container {
    height: 72px;
  }
  
  /* Mobile Menu Drawer */
  .nav-links {
    display: none;
  }
  
  @media (max-width: 520px) {
    .navbar .btn-emerald {
      padding: 8px 14px;
      font-size: 0.8rem;
    }
    .brand-title {
      font-size: 1.15rem;
    }
    .brand-tooth-icon {
      width: 32px;
      height: 32px;
      font-size: 1.1rem;
    }
  }
  
  .nav-links.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-bottom: 2px solid var(--mint-100);
    padding: 24px 20px;
    gap: 16px;
    z-index: 999;
  }
  
  .nav-links.mobile-active a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-slate);
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Hero Section Alignment */
  .hero-section {
    padding: 40px 0 60px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }
  
  .hero-desc {
    font-size: 0.98rem;
    margin-bottom: 26px;
  }

  .hero-btn-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 35px;
  }
  
  .hero-btn-row .btn {
    width: 100%;
  }

  .hero-badges-strip {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
  }

  .badge-item {
    background: var(--white);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
  }

  .badge-icon-box {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  /* Hero Arch Frame Proportions on Mobile */
  .hero-arch-frame {
    max-width: 320px;
    height: 380px;
    border-radius: 160px 160px 20px 20px;
    margin: 0 auto;
  }

  /* Safe positioning for floating pills inside viewport */
  .floating-motion-pill {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
  
  .pill-pos-1 {
    top: 20px;
    left: 10px;
  }

  .pill-pos-2 {
    bottom: 20px;
    right: 10px;
  }

  /* Section Titles on Mobile */
  .section-wrapper {
    padding: 60px 0;
  }

  .section-top-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
  }

  .section-main-title {
    font-size: 2rem;
  }

  /* Grids to single column for clean readability */
  .services-four-grid, 
  .dentists-four-grid, 
  .stepper-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-img-header {
    height: 180px;
  }

  /* Forest Green Banner Mobile Fit */
  .forest-feature-banner {
    padding: 35px 20px;
    border-radius: 20px;
    margin: 15px 0;
  }

  .forest-text-col h2 {
    font-size: 2rem;
  }

  .forest-center-img {
    height: 220px;
  }

  .forest-stats-card {
    padding: 24px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: center;
  }

  .stat-row-item strong {
    font-size: 1.6rem;
  }

  /* Form & Booking Card */
  .booking-section-wrapper {
    padding: 60px 0;
  }

  .clinic-highlight-box {
    padding: 26px 20px;
  }

  .form-card-container {
    padding: 26px 20px;
  }

  .form-row-two {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* AI Chat Window Mobile Overlay */
  .chat-launcher-btn {
    padding: 6px 14px 6px 6px;
  }
  
  .launcher-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .chat-window {
    width: calc(100vw - 28px);
    right: 14px;
    bottom: 74px;
    height: 72vh;
    border-radius: 20px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Extra Small Phones (max-width: 420px) */
@media (max-width: 420px) {
  .hero-title {
    font-size: 2.15rem;
  }
  
  .hero-badges-strip {
    grid-template-columns: 1fr;
  }

  .forest-stats-card {
    grid-template-columns: 1fr;
  }

  .hero-arch-frame {
    max-width: 270px;
    height: 330px;
  }
}
