/* Verda Pharmacy — full design system */

:root {
  --navy: #152238;
  --navy-soft: #1f3151;
  --teal: #2DB5A0;
  --teal-dark: #229584;
  --teal-bg: #E6F7F4;
  --text: #152238;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #F1F3F5;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(21, 34, 56, 0.04);
  --shadow: 0 4px 24px rgba(21, 34, 56, 0.06);
  --shadow-lg: 0 12px 48px rgba(21, 34, 56, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--navy);
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-variation-settings: 'opsz' 144; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-variation-settings: 'opsz' 96; }
h3 { font-size: 1.5rem; font-variation-settings: 'opsz' 24; }
h4 { font-size: 1.15rem; font-weight: 600; font-family: 'DM Sans', sans-serif; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--text); }

/* ---------- LAYOUT ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 68px; padding: 0 24px; max-width: 1280px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; background: var(--white);
  border: 1px solid var(--line); display: grid; place-items: center; position: relative;
  box-shadow: var(--shadow-sm);
}
.brand-mark span {
  font-family: 'Fraunces', serif; color: var(--navy); font-weight: 500; font-size: 22px; line-height: 1;
}
.brand-mark::after {
  content: ''; position: absolute; bottom: 5px; right: 5px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
}
.brand-name { font-family: 'Fraunces', serif; font-size: 22px; color: var(--navy); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 26px; align-items: center; flex: 1; justify-content: center; }
.nav-links a { font-size: 14.5px; color: var(--navy); font-weight: 500; opacity: 0.85; transition: opacity 0.15s; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); display: grid; place-items: center; cursor: pointer;
  color: var(--navy); transition: all 0.15s;
}
.icon-btn:hover { background: var(--bg); }
.nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.2s; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { gap: 16px; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); padding: 24px;
    border-bottom: 1px solid var(--line); gap: 18px;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; cursor: pointer;
  font-family: inherit; transition: all 0.15s ease; white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: var(--bg); color: var(--navy); }
.btn-ghost:hover { background: #E4E7EA; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; padding: 88px 0 64px; overflow: hidden;
  background: linear-gradient(180deg, #FCFDFD 0%, var(--white) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-bg); color: var(--teal-dark);
  padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
}
.hero h1 { margin: 18px 0 18px; }
.hero p.lead { font-size: 18.5px; color: var(--muted); margin: 0 0 28px; max-width: 540px; line-height: 1.55; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-media {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: var(--bg); overflow: hidden; box-shadow: var(--shadow);
}
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-bg) 0%, #DCEEEA 100%);
  color: var(--teal-dark); font-family: 'Fraunces', serif; font-size: 28px;
}

/* ---------- STATS ---------- */
.stats {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 0; background: #FAFBFC;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }
.stat-num { font-family: 'Fraunces', serif; font-size: 32px; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13.5px; color: var(--muted); }

/* ---------- SECTION HEADERS ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .badge { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- CATEGORY GRID ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 920px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; cursor: pointer; transition: all 0.2s ease; text-align: left;
  display: flex; flex-direction: column; gap: 14px; min-height: 160px;
}
.cat-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-icon {
  width: 28px; height: 28px; border-radius: 22%;
  border: 1.5px solid var(--navy); background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); flex-shrink: 0;
}
.cat-icon svg { width: 55%; height: 55%; display: block; }
.cat-card h4 { margin: 0; font-size: 16px; color: var(--navy); }
.cat-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.cat-card .arrow { color: var(--teal); font-size: 13px; margin-top: auto; font-weight: 500; }

/* ---------- HOW IT WORKS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; text-align: left;
}
.step-num {
  display: inline-block; font-family: 'Fraunces', serif; font-size: 32px;
  color: var(--teal); margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; font-size: 1.25rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- TRUST/DOCTORS ---------- */
.trust-section { background: #FAFBFC; }
.doctors { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.doc {
  text-align: center; max-width: 200px;
}
.doc-img {
  width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--teal-bg), #DCEEEA);
  border: 4px solid var(--white); box-shadow: var(--shadow);
}
.doc-img img { width: 100%; height: 100%; object-fit: cover; }
.doc-name { font-weight: 600; color: var(--navy); margin-bottom: 4px; font-size: 15.5px; }
.doc-spec { color: var(--muted); font-size: 13.5px; }

/* ---------- ARTICLE CARDS ---------- */
.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 920px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column;
}
.article-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card-img {
  width: 100%; aspect-ratio: 4/3; background: var(--bg);
  background-size: cover; background-position: center;
  background-image: linear-gradient(135deg, var(--teal-bg) 0%, #DCEEEA 100%);
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card-body { padding: 20px; }
.article-tag {
  display: inline-block; font-size: 11.5px; font-weight: 500;
  color: var(--teal-dark); background: var(--teal-bg);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.article-card h4 {
  font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px;
  letter-spacing: -0.01em; color: var(--navy); margin-bottom: 8px; line-height: 1.25;
}
.article-card p.meta { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- CTA SECTION ---------- */
.cta-block {
  background: var(--navy); color: var(--white); border-radius: var(--radius-lg);
  padding: 64px 48px; text-align: center;
}
@media (max-width: 720px) { .cta-block { padding: 48px 24px; } }
.cta-block h2 { color: var(--white); margin-bottom: 16px; }
.cta-block p { color: rgba(255,255,255,0.7); font-size: 17px; max-width: 540px; margin: 0 auto 28px; }
.cta-block .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.4); }
.cta-block .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- FOOTER ---------- */
footer {
  background: #FAFBFC; border-top: 1px solid var(--line); padding: 56px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col h5 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--navy); margin: 0 0 16px; font-family: 'DM Sans', sans-serif; font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--navy); }
.footer-meta { font-size: 13px; color: var(--muted); line-height: 1.7; }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--muted);
}

/* ---------- CATEGORY PAGE ---------- */
.cat-hero {
  background: var(--teal-bg);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}
.cat-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .cat-hero-grid { grid-template-columns: 1fr; } }
.cat-hero-img {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg); box-shadow: var(--shadow);
}
.cat-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-icon-row { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--white); border-radius: 999px; margin-bottom: 16px; }
.cat-icon-row svg { width: 18px; height: 18px; color: var(--navy); }
.cat-icon-row span { font-size: 13.5px; font-weight: 500; color: var(--navy); }

/* ---------- TREATMENT CARDS ---------- */
.treatments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .treatments { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .treatments { grid-template-columns: 1fr; } }
.tx-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; transition: all 0.2s;
}
.tx-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.tx-card .pop {
  position: absolute; top: 16px; right: 16px;
  background: var(--teal); color: var(--white); font-size: 11px;
  padding: 3px 10px; border-radius: 999px; font-weight: 600; letter-spacing: 0.04em;
}
.tx-form { font-size: 12.5px; color: var(--teal-dark); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.tx-card h4 { font-size: 19px; margin-bottom: 6px; }
.tx-card .blurb { color: var(--muted); font-size: 14px; min-height: 42px; margin-bottom: 16px; }
.tx-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 16px; }
.tx-price .currency { font-size: 16px; color: var(--muted); }
.tx-price .amt { font-family: 'Fraunces', serif; font-size: 36px; color: var(--navy); }
.tx-price .unit { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 500; font-size: 17px; color: var(--navy); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--teal); transition: transform 0.2s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 22px; color: var(--muted); margin: 0; max-width: 600px; }

/* ---------- ARTICLE PAGE ---------- */
.article-page { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 14px; margin-bottom: 24px;
}
.back-link:hover { color: var(--navy); }
.article-page .badge { margin-bottom: 16px; }
.article-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 24px; }
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.byline .avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--white);
  display: grid; place-items: center; font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
}
.byline-meta { font-size: 14px; }
.byline-meta strong { color: var(--navy); font-weight: 600; display: block; }
.byline-meta span { color: var(--muted); }
.article-hero {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--teal-bg), #DCEEEA); margin-bottom: 36px;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-body p {
  font-size: 17.5px; line-height: 1.75; margin-bottom: 1.4em; color: #1F2937;
}
.disclaimer {
  background: var(--teal-bg); border-left: 4px solid var(--teal);
  padding: 20px 24px; border-radius: var(--radius-sm); margin: 32px 0; font-size: 14.5px;
}
.disclaimer strong { color: var(--teal-dark); }

/* ---------- DRUG PRICES ---------- */
.prices-controls {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; align-items: center;
  max-width: 760px; margin: 0 auto 32px;
}
.prices-controls input {
  flex: 1; min-width: 260px;
  padding: 14px 20px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-family: inherit; outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}
.prices-controls input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,181,160,0.12); }
.price-toggle {
  display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px;
}
.price-toggle button {
  padding: 9px 16px; border: none; background: transparent; border-radius: 999px;
  font-family: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer;
  font-weight: 500; transition: all 0.15s;
}
.price-toggle button.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }

.price-meta {
  font-size: 13px; color: var(--muted); margin-bottom: 14px;
  text-align: center;
}
.price-table {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.price-table-head, .price-table-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1fr 1.6fr 1fr;
  gap: 16px; align-items: center;
  padding: 14px 22px;
}
.price-table-head {
  background: #FAFBFC; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.price-table-row {
  border-bottom: 1px solid var(--line); font-size: 14.5px;
  transition: background 0.1s;
}
.price-table-row:last-child { border-bottom: 0; }
.price-table-row:hover { background: #FAFBFC; }
.price-cell-name { font-weight: 600; color: var(--navy); }
.price-cell-strength, .price-cell-pack { color: #374151; }
.price-cell-price { font-family: 'Fraunces', serif; font-size: 20px; color: var(--navy); text-align: right; font-variation-settings: 'opsz' 24; }
.price-type {
  display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.03em;
}
.price-type.brand { background: #EDE9FE; color: #5B21B6; }
.price-type.generic { background: var(--teal-bg); color: var(--teal-dark); }
.price-empty { padding: 64px 24px; text-align: center; color: var(--muted); }

.price-pagination {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  margin-top: 28px; flex-wrap: wrap;
}
.price-pagination button {
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); background: var(--white);
  border-radius: 8px; font-family: inherit; font-size: 14px; cursor: pointer;
  color: var(--navy); transition: all 0.15s;
}
.price-pagination button:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-dark); }
.price-pagination button.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.price-pagination button:disabled { opacity: 0.35; cursor: not-allowed; }
.price-page-info { font-size: 13px; color: var(--muted); margin-left: 12px; }

@media (max-width: 720px) {
  .price-table-head, .price-table-row {
    grid-template-columns: 1.4fr 0.9fr 0.9fr;
    gap: 10px; padding: 12px 16px;
  }
  .price-table-head > div:nth-child(3),
  .price-table-row > div:nth-child(3),
  .price-table-head > div:nth-child(4),
  .price-table-row > div:nth-child(4) { display: none; }
  .price-cell-price { font-size: 17px; }
}

/* ---------- INTAKE ---------- */
.intake-page { max-width: 580px; margin: 0 auto; padding: 64px 24px 80px; }
.progress {
  height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 40px;
}
.progress-fill { height: 100%; background: var(--teal); transition: width 0.3s; }
.intake-q { text-align: center; }
.intake-q h2 { font-size: 1.8rem; margin-bottom: 32px; }
.intake-options { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; }
.intake-options button {
  padding: 18px 22px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: var(--white); font-family: inherit; font-size: 16px; cursor: pointer;
  text-align: left; transition: all 0.15s; color: var(--navy); font-weight: 500;
}
.intake-options button:hover { border-color: var(--teal); background: var(--teal-bg); }
.intake-done { text-align: center; padding: 48px 0; }
.intake-done .check {
  width: 72px; height: 72px; border-radius: 50%; background: var(--teal-bg);
  color: var(--teal); display: grid; place-items: center; margin: 0 auto 24px; font-size: 32px;
}

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 20px; font-weight: 600; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; color: var(--navy); font-size: 15.5px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-2 .form-row { margin-bottom: 16px; }
.form-row label { font-size: 13.5px; font-weight: 500; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; outline: none; transition: border 0.15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--teal); }
.form-row textarea { min-height: 130px; resize: vertical; }
.contact-success {
  background: #ECF8F5; border: 1px solid #B7E4D8; border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm); padding: 24px;
  animation: chatMsgIn 0.25s ease-out;
}
.contact-success-check {
  width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: var(--white);
  display: grid; place-items: center; font-size: 18px; font-weight: 700; margin-bottom: 12px;
}
.contact-success h4 { color: var(--teal-dark); margin: 0 0 8px; font-size: 18px; }
.contact-success p { color: #1A6B5F; font-size: 14.5px; line-height: 1.6; margin: 0; }
.contact-success a { color: var(--teal-dark); text-decoration: underline; font-weight: 500; }

/* ---------- LEGAL PAGES ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal-page h3 { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1.1rem; margin: 36px 0 10px; }
.legal-page p { line-height: 1.7; color: #1F2937; }
.legal-page ul { padding-left: 20px; color: #1F2937; line-height: 1.7; }

/* ---------- ALL TREATMENTS ---------- */
.tx-cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; cursor: pointer; transition: all 0.2s;
}
.tx-cat-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.tx-cat-card h4 { margin-bottom: 8px; }
.tx-cat-card .meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.tx-cat-card .meta span::before { content: '·'; margin-right: 14px; color: var(--line); }
.tx-cat-card .meta span:first-child::before { display: none; }
.tx-cat-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(21, 34, 56, 0.5);
  display: none; align-items: center; justify-content: center; z-index: 100;
  padding: 20px; backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg); max-width: 460px; width: 100%;
  max-height: 92vh; overflow-y: auto; padding: 36px; box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border-radius: 50%; border: none; background: var(--bg); cursor: pointer;
  display: grid; place-items: center; color: var(--navy); font-size: 18px;
}
.modal h3 { margin-bottom: 8px; }
.modal-tab { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 999px; margin: 18px 0 24px; }
.modal-tab button {
  flex: 1; padding: 9px; border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500; border-radius: 999px;
  color: var(--muted); transition: all 0.15s;
}
.modal-tab button.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }

.social-btn {
  width: 100%; padding: 12px 16px; border: 1px solid #DADCE0; border-radius: 8px;
  background: var(--white); font-family: inherit; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  cursor: pointer; margin-bottom: 10px; transition: all 0.15s;
  color: #3C4043; line-height: 1; min-height: 44px;
  letter-spacing: 0.01em;
}
.social-btn:hover { background: #F8F9FA; border-color: #D2D5D9; box-shadow: 0 1px 2px rgba(60,64,67,0.08); }
.social-btn:active { background: #F1F3F4; }
.social-btn .social-logo { width: 18px; height: 18px; flex-shrink: 0; }
.social-btn span { display: inline-block; }
.social-btn-apple { color: #000; font-weight: 600; }

.or-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.security-badge {
  background: #ECF8F5; color: #1A6B5F; padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 12px; line-height: 1.55; margin-top: 18px; display: flex; gap: 10px;
}
.security-badge svg { flex-shrink: 0; margin-top: 2px; }

/* ---------- CHAT WIDGET ---------- */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; background: var(--teal);
  color: var(--white); border: none; cursor: pointer; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; transition: transform 0.15s;
}
.chat-fab:hover { transform: scale(1.06); }

.chat-panel {
  position: fixed; bottom: 92px; right: 24px; z-index: 80;
  width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px);
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(0.98); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-header {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.chat-header .online {
  width: 8px; height: 8px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}
.chat-header h4 { margin: 0; font-size: 15px; }
.chat-header small { color: var(--muted); font-size: 12px; display: block; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg {
  max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5;
  animation: chatMsgIn 0.22s ease-out;
}
@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot { background: var(--bg); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--teal); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-typing { font-size: 13px; color: var(--muted); padding: 0 16px 8px; font-style: italic; display: none; }
.chat-typing.show { display: block; }
.chat-input {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line);
}
.chat-input input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-family: inherit; font-size: 14px; outline: none;
}
.chat-input input:focus { border-color: var(--teal); }
.chat-input button {
  width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: var(--white);
  border: none; cursor: pointer; display: grid; place-items: center;
}

/* ---------- VOICE MODAL ---------- */
.voice-modal { text-align: center; }
.voice-circle {
  width: 120px; height: 120px; border-radius: 50%; margin: 24px auto 32px;
  display: grid; place-items: center; color: var(--white); transition: all 0.3s;
}
.voice-circle.idle { background: var(--navy); }
.voice-circle.connecting { background: var(--navy); animation: spin 1.2s linear infinite; }
.voice-circle.active { background: var(--teal); animation: pulse 1.4s ease-in-out infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,181,160,0.5); }
  50% { box-shadow: 0 0 0 18px rgba(45,181,160,0); }
}
.voice-footer { font-size: 12px; color: var(--muted); margin-top: 24px; }
.voice-spinner {
  width: 32px; height: 32px; border: 3px solid rgba(255,255,255,0.35);
  border-top-color: var(--white); border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.voice-circle.connecting { animation: none; }
.voice-bars {
  display: flex; gap: 5px; justify-content: center; align-items: flex-end;
  height: 28px; margin: -12px 0 20px;
}
.voice-bars span {
  display: block; width: 4px; background: var(--teal); border-radius: 2px;
  animation: voiceBar 1s ease-in-out infinite;
}
.voice-bars span:nth-child(1) { animation-delay: -0.5s; }
.voice-bars span:nth-child(2) { animation-delay: -0.3s; }
.voice-bars span:nth-child(3) { animation-delay: -0.1s; }
.voice-bars span:nth-child(4) { animation-delay: -0.4s; }
.voice-bars span:nth-child(5) { animation-delay: -0.2s; }
@keyframes voiceBar {
  0%, 100% { height: 6px; }
  50% { height: 26px; }
}
.btn-end-call { background: #DC2626; color: var(--white); }
.btn-end-call:hover { background: #B91C1C; transform: translateY(-1px); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--navy); color: var(--white); padding: 12px 20px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow-lg); transition: transform 0.3s; z-index: 90;
}
.toast.show { transform: translateX(-50%) translateY(0); }
