/* ===== ROOT VARIABLES — LOGO COLOUR SCHEME ===== */
:root {
  /* Primary — Deep Navy (logo circle & text) */
  --navy: #3B3F5C;
  --navy-dark: #2C2F47;
  --navy-deeper: #1E2038;
  --navy-light: #ECEEF6;
  --navy-mid: #9396AE;
  --navy-pale: #F4F5F9;

  /* Accent — Logo Red */
  --red: #D92B2B;
  --red-dark: #B52222;
  --red-light: #FCEAEA;
  --red-mid: #E87070;

  /* Neutrals */
  --dark: #1A1C2E;
  --text: #2D2F45;
  --text-muted: #6B6E87;
  --white: #FFFFFF;
  --border: #D0D2E0;

  /* Shadows */
  --shadow: 0 4px 20px rgba(59,63,92,0.12);
  --shadow-lg: 0 10px 40px rgba(59,63,92,0.18);
  --shadow-red: 0 4px 18px rgba(217,43,43,0.28);

  /* Misc */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
textarea, input, select, button { font-family: var(--font); }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.mt-1 { margin-top: 20px; }
.gradient-text { color: var(--red); }
.center { text-align: center; }
.full-w { width: 100%; }

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red-dark);
  background: var(--red-light);
  border: 1.5px solid var(--red-mid);
  padding: 7px 20px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-label.center { display: block; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 18px; }
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 600px; margin: 0 auto 50px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: none;
}
.btn-primary { background: var(--red); color: var(--white); box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(217,43,43,0.40); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.65); }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--navy-light);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(59,63,92,0.12); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 52px; height: 52px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 16px; font-weight: 800; color: var(--dark); }
.logo-tagline { font-size: 11px; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); transition: var(--transition); }
.nav-links a:hover { background: var(--navy-light); color: var(--navy-dark); }
.nav-links .nav-cta { background: var(--red); color: white; padding: 10px 22px; border-radius: 50px; font-weight: 600; box-shadow: var(--shadow-red); }
.nav-links .nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 72px; }
.hero-slider { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-bg.active { opacity: 1; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,32,56,0.92) 0%, rgba(59,63,92,0.78) 60%, rgba(217,43,43,0.45) 100%); z-index: 2; pointer-events: none; }
.hero-content { position: relative; z-index: 3; max-width: 1200px; margin: 0 auto; padding: 60px 24px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); color: white; padding: 8px 20px; border-radius: 50px; font-size: 13px; font-weight: 500; border: 1px solid rgba(255,255,255,0.22); margin-bottom: 24px; }
.badge-dot { width: 8px; height: 8px; background: var(--red-mid); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.4)} }
.hero-title { font-size: clamp(36px, 6vw, 68px); font-weight: 800; color: white; line-height: 1.1; margin-bottom: 22px; max-width: 700px; }
.hero-title .gradient-text { color: var(--red-mid); -webkit-text-fill-color: var(--red-mid); }
.hero-sub { font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,0.85); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 36px; font-weight: 800; color: white; line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.70); margin-top: 4px; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.22); }

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--navy-deeper); padding: 22px 0; }
.trust-badges { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.88); font-size: 14px; font-weight: 500; padding: 10px 28px; border-right: 1px solid rgba(255,255,255,0.12); }
.trust-item:last-child { border-right: none; }
.trust-icon { font-size: 20px; }

/* ===== ABOUT ===== */
.about { background: var(--navy-pale); }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.about-image-wrap { position: relative; }
.about-img-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid white; }
.doctor-photo { width: 100%; height: 500px; object-fit: cover; object-position: top; }
.about-badge-card { position: absolute; bottom: 30px; right: -20px; background: var(--red); color: white; padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow-red); display: flex; align-items: center; gap: 14px; }
.badge-num { font-size: 36px; font-weight: 800; line-height: 1; }
.badge-text { font-size: 13px; font-weight: 500; opacity: 0.9; line-height: 1.4; }
.about-content { padding-right: 10px; }
.about-designation { font-size: 15px; color: var(--red); font-weight: 700; margin-bottom: 20px; }
.about-desc { font-size: 16px; color: var(--text); line-height: 1.8; margin-bottom: 28px; }
.specializations h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.spec-tag { background: var(--navy-light); color: var(--navy-dark); font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 50px; border: 1.5px solid var(--border); }

/* ===== SERVICES ===== */
.services { background: var(--white); position: relative; overflow: hidden; }
.services-bg-img { position: absolute; inset: 0; z-index: 0; opacity: 0.03; }
.services-bg-img img { width: 100%; height: 100%; object-fit: cover; }
.services .container { position: relative; z-index: 1; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.service-card { background: var(--navy-pale); border: 2px solid var(--navy-light); border-radius: var(--radius); padding: 36px 28px; transition: var(--transition); }
.service-card:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: var(--shadow-red); background: white; }
.service-icon { margin-bottom: 18px; }
.service-icon img { height: 56px; width: auto; object-fit: contain; }
.service-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.service-link { font-size: 14px; font-weight: 700; color: var(--red); transition: var(--transition); }
.service-link:hover { color: var(--red-dark); text-decoration: underline; }

/* ===== WHY US ===== */
.why-us { background: var(--navy-deeper); }
.why-us .section-label { background: rgba(217,43,43,0.15); color: var(--red-mid); border-color: rgba(217,43,43,0.30); }
.why-us .section-title { color: white; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.why-card { background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 36px 28px; transition: var(--transition); }
.why-card:hover { background: rgba(217,43,43,0.12); border-color: rgba(217,43,43,0.40); transform: translateY(-4px); }
.why-icon { margin-bottom: 18px; }
.why-icon img { height: 48px; width: auto; object-fit: contain; }
.why-card h3 { font-size: 18px; font-weight: 700; color: white; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ===== BEFORE AFTER ===== */
.before-after { background: var(--navy-pale); }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.ba-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.ba-card img { width: 100%; height: 320px; object-fit: cover; }
.ba-label { background: var(--navy); color: white; text-align: center; padding: 12px; font-size: 15px; font-weight: 600; }
.ba-placeholder { background: var(--navy-light); display: flex; align-items: center; justify-content: center; min-height: 360px; }
.ba-placeholder-inner { text-align: center; padding: 48px; }
.ba-emoji { font-size: 60px; display: block; margin-bottom: 18px; }
.ba-placeholder-inner p { font-size: 18px; font-weight: 600; color: var(--dark); line-height: 1.5; }

/* ===== APPOINTMENT ===== */
.appointment { background: var(--white); }
.appt-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.appt-desc { color: var(--text-muted); font-size: 16px; margin-bottom: 32px; }
.appt-contact-list { display: flex; flex-direction: column; gap: 16px; }
.appt-contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--navy-pale); border: 2px solid var(--navy-light); border-radius: var(--radius-sm); transition: var(--transition); }
.appt-contact-item:hover { border-color: var(--navy); background: var(--navy-light); }
.appt-contact-icon { font-size: 24px; }
.appt-contact-item div { display: flex; flex-direction: column; }
.appt-contact-item strong { font-size: 14px; color: var(--dark); font-weight: 700; }
.appt-contact-item span, .appt-contact-item p { font-size: 13px; color: var(--text-muted); }
.appt-form-wrap { position: relative; }
.appt-form { background: var(--navy-pale); border: 2px solid var(--navy-light); border-radius: var(--radius-lg); padding: 40px; }
.appt-form h3 { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; color: var(--text); background: white; transition: var(--transition); outline: none; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(59,63,92,0.10); }
.form-success { display: none; text-align: center; padding: 60px 40px; background: var(--navy-light); border-radius: var(--radius-lg); border: 2px solid var(--navy-mid); }
.form-success.show { display: block; }
.success-icon { font-size: 60px; margin-bottom: 16px; }
.form-success h3 { font-size: 22px; color: var(--dark); margin-bottom: 10px; }
.form-success p { color: var(--text-muted); }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--navy-pale); }
.stars-overall { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 48px; }
.rating-text { font-size: 18px; font-weight: 700; color: var(--dark); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: white; border: 2px solid var(--navy-light); border-radius: var(--radius); padding: 32px; transition: var(--transition); }
.testi-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--navy); }
.testi-stars { font-size: 18px; margin-bottom: 16px; }
.testi-text { font-size: 14px; color: var(--text); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: white; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.testi-author strong { font-size: 15px; color: var(--dark); display: block; }
.testi-author span { font-size: 12px; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq { background: var(--white); }
.faq-list { max-width: 800px; margin: 50px auto 0; }
.faq-item { border: 2px solid var(--navy-light); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; transition: var(--transition); background: white; }
.faq-item.open { border-color: var(--navy); box-shadow: var(--shadow); }
.faq-question { width: 100%; background: none; border: none; padding: 22px 24px; text-align: left; font-size: 16px; font-weight: 600; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: var(--transition); }
.faq-question:hover { background: var(--navy-light); color: var(--navy-dark); }
.faq-item.open .faq-question { background: var(--navy-light); color: var(--navy-dark); }
.faq-arrow { font-size: 12px; transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-answer { padding: 0 24px 22px; max-height: 200px; }
.faq-answer p { font-size: 15px; color: var(--text-muted); line-height: 1.8; }

/* ===== CONTACT ===== */
.contact { background: var(--navy-pale); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; margin-top: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; align-items: flex-start; gap: 16px; background: white; padding: 20px 24px; border-radius: var(--radius-sm); border: 2px solid var(--navy-light); transition: var(--transition); }
.contact-card:hover { border-color: var(--red); box-shadow: var(--shadow-red); }
.contact-icon { font-size: 24px; margin-top: 2px; flex-shrink: 0; }
.contact-card h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.contact-card a:hover { color: var(--red); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-map iframe { width: 100%; height: 380px; border: none; display: block; }

/* ===== FOOTER ===== */
.footer { background: var(--navy-deeper); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 50px; }
.footer-logo { width: 60px; margin-bottom: 16px; }
.footer-desc { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: var(--transition); }
.footer-social a:hover { background: var(--red); }
.footer-links h4, .footer-contact h4 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 18px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.62); transition: var(--transition); }
.footer-links a:hover { color: var(--red-mid); }
.footer-contact p { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,0.62); transition: var(--transition); }
.footer-contact a:hover { color: var(--red-mid); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.38); }

/* ===== FLOATING BUTTONS ===== */
.sticky-call { position: fixed; bottom: 86px; left: 20px; background: var(--navy); color: white; display: flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 50px; box-shadow: 0 6px 24px rgba(59,63,92,0.42); z-index: 999; font-weight: 600; font-size: 14px; transition: var(--transition); animation: slideInLeft 0.5s 1s both; }
.sticky-call:hover { background: var(--navy-dark); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(59,63,92,0.55); }
.sticky-icon { font-size: 18px; }
.sticky-whatsapp { position: fixed; bottom: 22px; right: 20px; background: #25D366; color: white; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(37,211,102,0.45); z-index: 999; transition: var(--transition); animation: slideInRight 0.5s 1s both; }
.sticky-whatsapp:hover { background: #1ebe5d; transform: scale(1.1) translateY(-3px); }
@keyframes slideInLeft { from{opacity:0;transform:translateX(-60px)} to{opacity:1;transform:translateX(0)} }
@keyframes slideInRight { from{opacity:0;transform:translateX(60px)} to{opacity:1;transform:translateX(0)} }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hamburger { display: flex; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 20px; gap: 4px; border-bottom: 2px solid var(--navy-light); box-shadow: 0 10px 30px rgba(0,0,0,0.10); transform: translateY(-20px); opacity: 0; pointer-events: none; transition: var(--transition); }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; display: block; }
  .nav-links a { display: block; padding: 12px 16px; border-radius: var(--radius-sm); width: 100%; text-align: left; }
  .nav-links .nav-cta { text-align: center; border-radius: var(--radius-sm); margin-top: 8px; }
  .hero-title { font-size: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { max-width: 360px; margin: 0 auto; }
  .about-badge-card { right: 0; }
  .doctor-photo { height: 380px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .appt-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-item { padding: 8px 14px; font-size: 13px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 28px; }
  .sticky-label { display: none; }
  .sticky-call { padding: 14px; border-radius: 50%; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .appt-form { padding: 28px 20px; }
}

/* ===== CHATBOT ===== */
.chatbot-wrapper { position: fixed; bottom: 90px; right: 20px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }

/* Toggle Button */
.chat-toggle-btn { width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(59,63,92,0.45); transition: var(--transition); animation: slideInRight 0.5s 1.5s both; position: relative; pointer-events: auto; }
.chat-toggle-btn:hover { background: var(--navy-dark); transform: scale(1.08); }
.chat-badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: white; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; border: 2px solid white; animation: popIn 0.3s ease; }
@keyframes popIn { from{transform:scale(0)} to{transform:scale(1)} }

/* Chat Window */
.chat-window { width: 360px; background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(59,63,92,0.20); border: 1.5px solid var(--navy-light); display: flex; flex-direction: column; overflow: hidden; transform: scale(0.85) translateY(20px); opacity: 0; pointer-events: none; transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease; transform-origin: bottom right; max-height: 520px; }
.chat-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

/* Header */
.chat-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deeper) 100%); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: white; overflow: hidden; border: 2px solid rgba(255,255,255,0.35); flex-shrink: 0; }
.chat-avatar img { width: 100%; height: 100%; object-fit: contain; }
.chat-bot-name { font-size: 15px; font-weight: 700; color: white; }
.chat-bot-status { font-size: 12px; color: rgba(255,255,255,0.80); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.status-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
.chat-close-btn { background: rgba(255,255,255,0.12); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.chat-close-btn:hover { background: rgba(255,255,255,0.25); }

/* Messages */
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--navy-pale); min-height: 280px; max-height: 320px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Bubbles */
.chat-bubble { display: flex; max-width: 90%; animation: bubbleIn 0.3s ease; }
@keyframes bubbleIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.chat-bubble.bot { align-self: flex-start; }
.chat-bubble.user { align-self: flex-end; }
.bubble-inner { padding: 11px 15px; border-radius: 16px; font-size: 13.5px; line-height: 1.65; }
.chat-bubble.bot .bubble-inner { background: white; color: var(--text); border: 1.5px solid var(--navy-light); border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(59,63,92,0.08); }
.chat-bubble.user .bubble-inner { background: var(--navy); color: white; border-bottom-right-radius: 4px; }

/* Typing dots */
.typing-indicator .bubble-inner { display: flex; gap: 5px; align-items: center; padding: 14px 18px; }
.typing-indicator span { width: 7px; height: 7px; background: var(--navy-mid); border-radius: 50%; animation: dotBounce 1.2s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-8px)} }

/* Quick replies */
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; padding-left: 2px; animation: bubbleIn 0.3s ease 0.15s both; }
.quick-btn { background: white; color: var(--navy-dark); border: 1.5px solid var(--navy-mid); border-radius: 20px; padding: 6px 13px; font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition); white-space: nowrap; font-family: var(--font); }
.quick-btn:hover { background: var(--navy); color: white; border-color: var(--navy); transform: translateY(-1px); }

/* Input area */
.chat-input-area { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1.5px solid var(--navy-light); background: white; flex-shrink: 0; }
#chatInput { flex: 1; border: 1.5px solid var(--border); border-radius: 50px; padding: 10px 16px; font-size: 13.5px; outline: none; transition: var(--transition); font-family: var(--font); color: var(--text); background: var(--navy-pale); }
#chatInput:focus { border-color: var(--navy); background: white; box-shadow: 0 0 0 3px rgba(59,63,92,0.10); }
.chat-send-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); flex-shrink: 0; }
.chat-send-btn:hover { background: var(--red-dark); transform: scale(1.08); }

/* Mobile chatbot */
@media (max-width: 480px) {
  .chat-window { width: calc(100vw - 32px); right: 0; }
  .chatbot-wrapper { right: 16px; bottom: 80px; }
}
