:root {
  --navy: #002b5c;
  --navy-deep: #001a38;
  --navy-soft: #1a4a7a;
  --red: #c41e3a;
  --red-deep: #9e1630;
  --amber: #e8a317;
  --sky: #dceaf6;
  --mist: #eef5fb;
  --paper: #f7fafc;
  --ink: #10243a;
  --muted: #5a6f86;
  --line: rgba(0, 43, 92, 0.12);
  --radius: 18px;
  --font-display: "Outfit", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-script: "Playfair Display", Georgia, serif;
  --shadow-soft: 0 18px 50px rgba(0, 26, 56, 0.12);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 252, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 250, 252, 0.96);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  color: var(--navy);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 1.1;
}

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

.brand-name em {
  font-style: normal;
  color: var(--red);
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 1.35rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-soft);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  margin-left: auto;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-nav,
.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
}

.btn-nav:hover,
.btn-primary:hover {
  background: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 43, 92, 0.22);
}

.btn-ghost:hover {
  border-color: var(--navy);
}

.btn-on-dark {
  background: #fff;
  color: var(--navy);
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
}

.btn-on-dark:hover {
  background: var(--sky);
}

.btn-arrow {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  padding: 2.5rem 0 3.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 20%, rgba(220, 234, 246, 0.95), transparent 60%),
    radial-gradient(ellipse 55% 50% at 88% 10%, rgba(196, 30, 58, 0.08), transparent 55%),
    linear-gradient(160deg, #f4f8fc 0%, #e7f0f8 42%, #f8fafc 100%);
  z-index: -2;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 72%, rgba(0, 43, 92, 0.06) 0 1.5px, transparent 2px),
    radial-gradient(circle at 72% 28%, rgba(0, 43, 92, 0.05) 0 1.5px, transparent 2px);
  background-size: 42px 42px, 36px 36px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

.hero-copy h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-online {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--navy);
  line-height: 1;
  position: relative;
  width: fit-content;
}

.hero-online::after {
  content: "";
  position: absolute;
  top: -0.15rem;
  right: -1.4rem;
  width: 1.1rem;
  height: 1.1rem;
  background:
    radial-gradient(circle at 50% 50%, transparent 35%, var(--navy) 36% 42%, transparent 43%),
    radial-gradient(circle at 50% 50%, transparent 55%, var(--navy) 56% 62%, transparent 63%),
    linear-gradient(var(--navy), var(--navy));
  background-size: 100% 100%, 100% 100%, 28% 28%;
  background-position: center, center, center;
  background-repeat: no-repeat;
  opacity: 0.75;
  animation: signal 2.4s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-transform: uppercase;
}

.hero-doctor {
  margin: 1rem 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.hero-lead {
  margin: 0 0 1.7rem;
  max-width: 34rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-devices {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
}

.hero-photo {
  border-radius: 28px 28px 8px 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #c5d8ea, #8eaccc);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  animation: photoIn 1.1s ease both;
}

.hero-exp {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  animation: riseIn 0.9s 0.15s ease both;
}

.hero-pulse {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 2rem auto 0;
  height: 36px;
  color: rgba(196, 30, 58, 0.45);
}

.pulse-line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: pulseDraw 2.8s 0.4s ease forwards;
}

.strip {
  background: var(--navy);
  color: #fff;
  padding: 1.35rem 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.35rem 0.25rem;
}

.strip-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}

.strip-icon svg {
  width: 20px;
  height: 20px;
}

.strip-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

.strip-item span {
  font-size: 0.78rem;
  opacity: 0.75;
}

.section {
  padding: 5rem 0;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.section h2,
.section-intro h2,
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.consult {
  background:
    linear-gradient(180deg, #fff 0%, var(--mist) 100%);
}

.consult-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.section-intro p {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.05rem;
}

.promise-list {
  display: grid;
  gap: 0.9rem;
}

.promise-list li {
  padding: 1.15rem 1.25rem;
  background: #fff;
  border-left: 3px solid var(--navy);
  box-shadow: 0 10px 28px rgba(0, 43, 92, 0.06);
}

.promise-list strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.promise-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.services {
  background: #fff;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.1rem;
}

.service-grid li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--navy);
  transition: background 0.2s ease, transform 0.2s ease;
}

.service-grid li:hover {
  background: var(--mist);
  transform: translateX(4px);
}

.svc-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.svc-icon svg {
  width: 20px;
  height: 20px;
}

.lab {
  background:
    radial-gradient(ellipse 50% 60% at 0% 50%, rgba(232, 163, 23, 0.12), transparent 55%),
    linear-gradient(120deg, #f8fafc, #eef4fa 55%, #f7fafc);
}

.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.lab-visual {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  background: #c9d7e6;
}

.lab-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lab-copy > h2 {
  margin-bottom: 0.85rem;
}

.lab-urdu {
  margin: 0 0 1.35rem;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--navy-soft);
}

.offer {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(95deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
  border-radius: 14px;
}

.offer-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--navy-deep);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

.offer-value {
  margin: 0;
  font-size: 1rem;
}

.offer-value strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  margin-right: 0.25rem;
}

.lab-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  margin-bottom: 1.2rem;
}

.lab-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--navy-soft);
  font-size: 0.95rem;
}

.lab-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--red);
}

.partner {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.cta-banner {
  background:
    linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft));
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.35), transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.cta-inner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

.cta-inner p {
  margin: 0 0 0.75rem;
  opacity: 0.85;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  padding-top: 3.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-name {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand p {
  margin: 0.25rem 0;
}

.footer-mission {
  margin-top: 0.7rem !important;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-contact {
  display: grid;
  gap: 0.85rem;
}

.footer-contact a,
.footer-social,
.footer-address {
  display: grid;
  gap: 0.15rem;
}

.footer-contact span,
.footer-social span,
.footer-address span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}

.footer-contact strong,
.footer-social strong {
  font-weight: 600;
  color: #fff;
}

.footer-address {
  font-style: normal;
  line-height: 1.55;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  font-size: 0.85rem;
  opacity: 0.65;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes photoIn {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulseDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes signal {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .consult-grid,
  .lab-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
    order: -1;
    width: min(100%, 380px);
  }

  .strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }

  .btn-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header.is-open .header-inner {
    flex-wrap: wrap;
  }

  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    padding: 0.35rem 0 0.75rem;
    gap: 0.9rem;
  }

  .site-header.is-open .btn-nav {
    display: inline-flex;
    order: 4;
    margin: 0 0 0.85rem;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.5rem, 1120px);
  }

  .hero {
    padding-top: 1.5rem;
  }

  .service-grid,
  .lab-list,
  .strip-grid {
    grid-template-columns: 1fr;
  }

  .brand-tag {
    display: none;
  }

  .offer {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 3.5rem 0;
  }
}

/* —— Chatbot —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.chat-open,
body.chat-open {
  overflow: hidden;
  touch-action: none;
}

.chatbot {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 9999;
  font-family: var(--font-body);
}

.chatbot-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  cursor: pointer;
  background: #128c7e;
  color: #fff;
  padding: 0.95rem 1.25rem;
  min-height: 48px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(18, 140, 126, 0.45);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  animation: chatPulse 2.2s ease-in-out infinite;
}

.chatbot-launcher::before {
  content: "Need help?";
  position: absolute;
  right: calc(100% + 0.65rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 26, 56, 0.2);
}

.chatbot-launcher::after {
  content: "";
  position: absolute;
  right: calc(100% + 0.35rem);
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--navy);
}

.chatbot-launcher:hover {
  transform: translateY(-2px);
  background: #0e7368;
}

.chatbot-launcher svg {
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
}

@keyframes chatPulse {
  0%,
  100% {
    box-shadow: 0 12px 30px rgba(18, 140, 126, 0.45);
  }
  50% {
    box-shadow: 0 12px 30px rgba(18, 140, 126, 0.45), 0 0 0 10px rgba(18, 140, 126, 0.18);
  }
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(380px, calc(100vw - 1.5rem));
  height: min(560px, calc(100dvh - 6.5rem));
  max-height: calc(100dvh - 5.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 26, 56, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.chatbot-panel[hidden],
.chatbot-panel:not(.is-open) {
  display: none !important;
}

.chatbot-panel.is-open {
  display: flex !important;
}

.chatbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: #fff;
  flex-shrink: 0;
}

.chatbot-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.chatbot-sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  opacity: 0.75;
}

.chatbot-head-actions {
  display: flex;
  gap: 0.35rem;
}

.chatbot-icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.chatbot-icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.chatbot-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(220, 234, 246, 0.7), transparent 55%),
    #f7fafc;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chatbot-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--line);
  background: #fff;
  max-height: 42%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.chat-option {
  border: 1px solid rgba(0, 43, 92, 0.18);
  background: var(--mist);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  min-height: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.chat-option:hover {
  border-color: var(--navy);
  background: var(--sky);
}

.chat-option.wa {
  background: #128c7e;
  border-color: #128c7e;
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 0.85rem 0.85rem;
  font-size: 0.95rem;
  min-height: 48px;
}

.chat-option.wa:hover {
  background: #0e7368;
  border-color: #0e7368;
}

.chatbot-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}

.chatbot-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.chatbot-form input:focus {
  border-color: var(--navy-soft);
}

.chatbot-form button {
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 0.7rem 1rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.chatbot-form button:hover {
  background: var(--red-deep);
}

.chatbot-form.is-hidden,
.chatbot-options[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .chatbot {
    right: max(0.65rem, env(safe-area-inset-right));
    bottom: max(0.65rem, env(safe-area-inset-bottom));
  }

  .chatbot-launcher::before,
  .chatbot-launcher::after {
    display: none;
  }

  .chatbot-panel {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    bottom: calc(4.25rem + env(safe-area-inset-bottom));
    top: max(0.5rem, env(safe-area-inset-top));
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 16px;
  }

  .chatbot-options {
    max-height: 38%;
  }
}

@media (max-width: 380px) {
  .chatbot-launcher span {
    font-size: 0.92rem;
  }

  .chatbot-launcher {
    padding: 0.85rem 1.05rem;
  }
}
