@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;1,300&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sage: #3D6B5A;
  --sage-lt: #EAF2EE;
  --sage-md: #C2D9CF;
  --slate: #2C3E50;
  --mist: #F5F7F6;
  --fog: #E8EDEB;
  --white: #FFFFFF;
  --ink: #1A2B22;
  --muted: #6B8078;
  --rule: #D4DDD9;
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--mist);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Site header only — exclude footer browse and doctor portal sidebar nav */
nav:not(.hp-browse):not(.dp-nav),
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-burger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.is-open .nav-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav.is-open .nav-burger-line:nth-child(2) {
  opacity: 0;
}
.site-nav.is-open .nav-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-drawer-open {
  overflow: hidden;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 400;
}

.nav-dropdown-item:hover {
  background: var(--fog);
}

.nav-dropdown > .nav-link::after {
  content: ' ↓';
  font-size: 10px;
  opacity: 0.5;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--sage);
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
}

.logo-text span { color: var(--ink); }

.logo span { color: var(--ink); }

.nav-right { display: flex; gap: 10px; align-items: center; }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-login-dropdown {
  position: relative;
}

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: #f0f1f0;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}

.nav-login-btn:hover,
.nav-login-dropdown.is-open .nav-login-btn {
  background: #e6e8e6;
}

.nav-login-chevron {
  transition: transform 0.15s ease;
  color: #6b6b6b;
}

.nav-login-dropdown.is-open .nav-login-chevron {
  transform: rotate(180deg);
}

.nav-login-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e6e8e6;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  z-index: 300;
}

.nav-login-section {
  padding: 10px 16px 12px;
}

.nav-login-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.nav-login-item {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
}

.nav-login-item:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav-login-item-btn {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: var(--ink);
}

.nav-login-divider {
  height: 1px;
  background: #ecefec;
  margin: 2px 0;
}

/* Patient login modal (Zocdoc-style) */
body.pl-open {
  overflow: hidden;
}

.pl-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  z-index: 900;
}

.pl-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  padding: 28px 28px 24px;
  z-index: 901;
}

.pl-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #8a8a8a;
  cursor: pointer;
  padding: 4px 8px;
}

.pl-close:hover {
  color: #222;
}

.pl-title {
  margin: 0 36px 22px 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
}

.pl-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.pl-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 12px 12px;
  font-size: 15px;
  margin-bottom: 14px;
  font-family: inherit;
}

.pl-input:focus {
  outline: 2px solid #f5c518;
  border-color: #f5c518;
}

.pl-btn-primary {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #f5c518;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 16px;
  cursor: pointer;
  font-family: inherit;
}

.pl-btn-primary:hover {
  background: #e6b800;
}

.pl-email-echo {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.pl-link-btn {
  display: inline-block;
  border: none;
  background: none;
  padding: 0;
  margin: 0 0 16px;
  font: inherit;
  font-size: 13px;
  color: #2f6fed;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pl-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdeceb;
  color: #9b1c1c;
  font-size: 13px;
}

.pl-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #888;
  font-size: 13px;
}

.pl-or::before,
.pl-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4e4e4;
}

.pl-social {
  display: grid;
  gap: 10px;
}

.pl-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #222;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  text-decoration: none;
}

.pl-social-btn:hover {
  background: #fafafa;
  color: #111;
  text-decoration: none;
}

.pl-social-icon {
  position: absolute;
  left: 14px;
  display: inline-flex;
  align-items: center;
}

.pl-provider-note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13px;
  color: #444;
}

.pl-provider-note a {
  color: #111;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav-signup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  background: #f5c518;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1;
}

.nav-signup-btn:hover {
  background: #e6b800;
  color: #1a1a1a;
}

.nav-practice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
}

.nav-practice-btn:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--sage);
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.nav-cta:hover { background: var(--ink); }

.auth-role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
  padding: 4px;
  background: #f0f1f0;
  border-radius: 10px;
}

.auth-role-tab {
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.auth-role-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-role-tab:hover {
  color: var(--ink);
}

.hero-chat {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-left {
  padding: 52px 32px 28px;
  text-align: center;
  width: 100%;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}

.hero-left h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-left h1 em { font-style: italic; color: var(--sage); }

.hero-left p {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-right {
  padding: 24px 32px 32px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.hero-chat-split-wrap {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.hero-chat-split-wrap.is-split {
  max-width: 1120px;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  padding: 0 24px 32px;
}

.hero-chat-split-wrap.is-split .hero-right {
  flex: 0 0 46%;
  max-width: none;
  margin: 0;
  padding: 24px 0 0;
  min-width: 0;
}

.hero-chat-split-wrap.is-split .chat-messages {
  max-height: 520px;
}

.hero-doctor-panel {
  flex: 1;
  min-width: 0;
  padding-top: 24px;
}

.hero-doctor-panel-inner {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.hero-doctor-panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--mist);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-doctor-panel-close:hover {
  background: var(--rule);
  color: var(--ink);
}

.hero-doctor-panel-body {
  overflow-y: auto;
  flex: 1;
}

.hero-doctor-panel-loading {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.hero-chat.has-doctor-panel .hero-left,
.hero-chat.has-doctor-panel .hero-steps-strip {
  max-width: 1120px;
}

.hero-doctor-panel-body .nuvi-profile-header {
  padding: 20px 48px 16px 20px;
  background: var(--sage-lt);
}

.hero-doctor-panel-body .nuvi-profile-photo,
.hero-doctor-panel-body .nuvi-profile-avatar {
  width: 96px;
  height: 96px;
}

.hero-doctor-panel-body .nuvi-profile-avatar {
  font-size: 28px;
}

.hero-doctor-panel-body .nuvi-profile-name {
  font-size: 20px;
}

.nuvi-doctor-card.selected {
  border-color: var(--sage);
  box-shadow: 0 0 0 2px rgba(61, 107, 90, 0.25);
  background: var(--sage-lt);
}

.chat-window {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sage-lt);
}

.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: white;
  font-weight: 300;
  flex-shrink: 0;
  overflow: hidden;
}

.ai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.ai-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ai-status {
  font-size: 11px;
  color: var(--sage);
}

.ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
  margin-right: 4px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-steps-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--mist);
  width: 100%;
  max-width: 680px;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.hero-step-cell {
  padding: 12px 20px;
  border-right: 1px solid var(--rule);
}

.hero-step-cell-last {
  border-right: none;
}

.hero-step-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 4px;
}

.hero-step-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.chat-messages {
  padding: 20px;
  min-height: 280px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg { display: flex; gap: 10px; animation: fadeIn 0.3s ease; }
.msg.user { flex-direction: row-reverse; }

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fog);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.msg.ai .msg-avatar { background: var(--sage); color: white; }

.msg-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.msg.ai .msg-bubble { background: var(--fog); border-bottom-left-radius: 4px; }
.msg.user .msg-bubble { background: var(--sage); color: white; border-bottom-right-radius: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }

.chip {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--sage-md);
  color: var(--sage);
  background: var(--sage-lt);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.chip:hover { background: var(--sage); color: white; }

.nuvi-language-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.nuvi-language-select {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  font: inherit;
}

.nuvi-loading {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
  margin-right: 6px;
}

.nuvi-loading span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  animation: nuviBounce 1.2s infinite ease-in-out;
}

.nuvi-loading span:nth-child(2) { animation-delay: 0.15s; }
.nuvi-loading span:nth-child(3) { animation-delay: 0.3s; }

@keyframes nuviBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.nuvi-doctor-cards-wrap { align-items: flex-start; }
.nuvi-doctor-cards { display: flex; flex-direction: column; gap: 10px; max-width: 92%; }

.nuvi-doctor-card {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nuvi-doctor-card:hover {
  border-color: var(--sage);
  box-shadow: 0 2px 12px rgba(61, 107, 90, 0.12);
}

.nuvi-doctor-card.recommended { border-color: var(--sage); background: var(--sage-lt); }

.nuvi-rec-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 8px;
}

.nuvi-doctor-card-top { display: flex; gap: 12px; align-items: flex-start; }

.nuvi-doctor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.nuvi-doctor-name { font-size: 14px; font-weight: 600; }
.nuvi-doctor-spec { font-size: 12px; color: var(--muted); }
.nuvi-doctor-loc { font-size: 11px; color: var(--muted); margin-top: 2px; }

.nuvi-match-score { text-align: center; margin-left: auto; flex-shrink: 0; }
.nuvi-match-num { font-size: 18px; font-weight: 600; color: var(--sage); }
.nuvi-match-label { font-size: 9px; text-transform: uppercase; color: var(--muted); }

.nuvi-doctor-reason { font-size: 12px; font-style: italic; color: var(--muted); margin-top: 8px; }
.nuvi-doctor-tag { font-size: 11px; color: var(--sage); margin-top: 6px; font-weight: 500; }

.nuvi-phone-link {
  display: inline-block;
  padding: 10px 16px;
  background: var(--sage);
  color: white !important;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  margin-top: 4px;
}

.nuvi-phone-link:hover { background: #2f5648; }

.nuvi-office-hours { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Inline doctor profile in chat (final recommendation) */
.nuvi-profile-wrap { align-items: flex-start; }
.nuvi-profile-bubble {
  max-width: 100%;
  width: 100%;
  padding: 0 !important;
  overflow: hidden;
  background: var(--white) !important;
  border: 1px solid var(--rule);
}
.nuvi-profile-loading {
  padding: 16px 18px;
  font-size: 13px;
  color: var(--muted);
}
.nuvi-profile-header {
  display: flex;
  gap: 14px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--sage-lt);
}
.nuvi-profile-photo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--white);
}
.nuvi-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--sage);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  flex-shrink: 0;
}
.nuvi-profile-name {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 400;
  margin: 0 0 4px;
  line-height: 1.2;
}
.nuvi-profile-spec { font-size: 12px; color: var(--muted); }
.nuvi-profile-loc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.nuvi-profile-rating { font-size: 12px; margin-top: 6px; color: var(--ink); }
.nuvi-profile-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #111;
}
.nuvi-profile-video iframe,
.nuvi-profile-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}
.nuvi-profile-video-link {
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
}
.nuvi-profile-video-link a {
  color: var(--sage);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
}
.nuvi-profile-video-link a:hover { text-decoration: underline; }
.nuvi-profile-section {
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
}
.nuvi-profile-section:last-child { border-bottom: none; }
.nuvi-profile-section h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 8px;
}
.nuvi-profile-section p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.nuvi-profile-review {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.nuvi-profile-review:first-child { border-top: none; padding-top: 0; }
.nuvi-profile-review-stars { color: #e6a817; font-size: 12px; margin-bottom: 4px; }
.nuvi-profile-review-text { font-size: 13px; font-style: italic; line-height: 1.45; }
.nuvi-profile-review-author { font-size: 11px; color: var(--muted); margin-top: 4px; }

.chat-input-area {
  padding: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: var(--white);
}

.chat-input {
  flex: 1;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  resize: none;
  outline: none;
  background: var(--mist);
  min-height: 42px;
  max-height: 120px;
}

.chat-input:focus { border-color: var(--sage); background: white; }
.chat-input::placeholder { color: var(--muted); }
.chat-input.input-locked {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--rule);
}

.send-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--sage);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.send-btn:hover { background: var(--ink); }

.send-btn:disabled { background: var(--fog); cursor: not-allowed; }
.send-btn svg { width: 18px; height: 18px; fill: white; }

.disclaimer {
  padding: 8px 32px 0;
  font-size: 11px;
  color: var(--muted);
}

.disclaimer-banner {
  background: #FFF8E7;
  border: 1px solid #F0D080;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  color: #7D5A00;
  line-height: 1.5;
  margin: 8px 32px 0;
}

.main {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 20px 60px;
}

.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}

.card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}

.card h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 8px;
}

.card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.field-input, .field-select {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  color: var(--ink);
  background: var(--mist);
}

.field-input:focus, .field-select:focus {
  border-color: var(--sage);
  background: white;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 10px;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  margin-bottom: 10px;
}

.btn-primary:hover { background: var(--ink); }

.btn-secondary {
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.btn-back:hover { color: var(--ink); }

.provider-list { display: flex; flex-direction: column; gap: 14px; }

.provider-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.provider-card.recommended { border-color: var(--sage); border-width: 2px; }

.rec-badge {
  position: absolute;
  top: -1px;
  left: 20px;
  background: var(--sage);
  color: white;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 0 6px 6px;
}

.provider-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.provider-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  background: var(--sage-lt);
  color: var(--sage);
  flex-shrink: 0;
}

.provider-info { flex: 1; }

.provider-name {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 2px;
}

.provider-spec { font-size: 13px; color: var(--sage); font-weight: 500; margin-bottom: 6px; }
.provider-meta { font-size: 12px; color: var(--muted); }

.match-score { text-align: center; flex-shrink: 0; }
.match-num { font-size: 22px; font-weight: 600; color: var(--sage); }
.match-label { font-size: 9px; color: var(--muted); text-transform: uppercase; }

.provider-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--fog);
}

.cost-tag {
  background: var(--sage-lt);
  color: var(--sage);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
}

.rating-tag { font-size: 12px; color: var(--muted); }

/* ── Review form ── */
.provider-review {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--fog);
}

.review-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.review-toggle:hover,
.review-toggle.is-active {
  background: var(--sage-lt);
  border-color: var(--sage-md);
  color: var(--ink);
}

.review-toggle-icon {
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
}

.review-panel {
  margin-top: 14px;
  padding: 18px;
  background: var(--mist);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.review-panel-title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}

.review-panel-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.review-field {
  margin-bottom: 14px;
}

.review-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.review-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.review-input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(61, 107, 90, 0.12);
}

.review-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B8078' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.review-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}

.review-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-review-submit {
  flex: 1;
  min-width: 140px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: var(--sage);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-review-submit:hover:not(:disabled) {
  background: var(--ink);
}

.btn-review-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-review-cancel {
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.btn-review-cancel:hover {
  color: var(--ink);
  border-color: var(--sage-md);
}

.review-msg {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.review-msg-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.review-msg-success {
  background: #e8f5ee;
  color: #1f5c41;
  border: 1px solid #b8dcc8;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 8px;
}

.modal p { font-size: 14px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}

.modal-actions { display: flex; gap: 10px; margin-top: 16px; }

.modal-actions .btn-primary,
.modal-actions .btn-secondary { margin: 0; }

.alert-error {
  background: #FEF3F2;
  border: 1px solid #FECDCA;
  color: #B42318;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}

.auth-card .alert-error,
.register-form-error {
  display: block;
}

.register-form-error {
  background: #fef2f2;
  border: 1px solid #f87171;
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}

footer.site-footer {
  background: #0A1628;
  color: rgba(255, 255, 255, 0.3);
  padding: 28px 32px;
  font-size: 12px;
}

.site-footer-rich .site-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
}

.site-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: rgba(255, 255, 255, 0.5);
}

.site-footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
}

/* ── Homepage marketing sections ── */
.hp-stats {
  background: #0A1628;
  padding: 36px 32px;
}

.hp-stats-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.hp-stat {
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-stat:last-child {
  border-right: none;
}

.hp-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 300;
  color: #7FB3F0;
  margin-bottom: 6px;
}

.hp-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
}

.hp-seo-strip {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 20px 24px;
}

.hp-seo-strip-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hp-seo-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--mist);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
}

.hp-seo-chip:hover {
  border-color: var(--sage);
  background: var(--sage-lt);
  color: var(--sage);
}

.hp-seo-chip-more {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.hp-seo-chip-more:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.hp-insurance-bar {
  background: var(--white);
  padding: 40px 32px;
  border-bottom: 1px solid var(--rule);
}

.hp-insurance-inner {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.hp-insurance-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.hp-insurance-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hp-ins-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 32px;
  border-radius: 6px;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hp-ins-aetna { background: #0066CC; font-size: 11px; }
.hp-ins-cigna { background: #006DB7; }
.hp-ins-united { background: #196ECF; }
.hp-ins-bcbs { background: #2E5EAA; font-size: 9px; }
.hp-ins-medicare { background: #1464A0; }
.hp-ins-humana { background: #00A94F; }
.hp-ins-more { font-size: 13px; color: var(--sage); font-weight: 500; }

.hp-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.hp-section {
  padding: 80px 32px;
}

.hp-section-white { background: var(--white); }
.hp-section-mist { background: var(--mist); }

.hp-container {
  max-width: 1040px;
  margin: 0 auto;
}

.hp-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}

.section-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-h2 em {
  font-style: italic;
  color: var(--sage);
}

.section-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.hp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.hp-why-card {
  padding: 32px;
  background: var(--fog);
  border-radius: 16px;
  border: 1px solid var(--rule);
}

.hp-why-featured {
  background: var(--sage-lt);
  border-color: var(--sage-md);
}

.hp-why-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.hp-why-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 10px;
}

.hp-why-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.hp-reasons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hp-reason-btn {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
}

.hp-reason-btn:hover {
  border-color: var(--sage);
  background: var(--sage-lt);
}

.hp-reason-btn-accent {
  background: var(--sage-lt);
  border-color: var(--sage-md);
}

.hp-reason-btn-accent span:last-child {
  color: var(--sage);
  font-weight: 500;
}

.hp-reason-emoji {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.hp-reason-btn span:last-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.hp-reasons-link-wrap {
  text-align: center;
  margin-top: 24px;
}

.hp-text-link {
  font-size: 14px;
  color: var(--sage);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--sage-md);
  padding-bottom: 2px;
}

.hp-specialties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hp-specialty-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hp-specialty-tag {
  background: var(--mist);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.hp-specialty-more {
  background: var(--sage-lt);
  border: 1px solid var(--sage-md);
  color: var(--sage);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-align: left;
}

.hp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hp-testimonial {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--rule);
  margin: 0;
}

.hp-testimonial-featured {
  background: var(--sage-lt);
  border-color: var(--sage-md);
}

.hp-stars {
  font-size: 20px;
  color: var(--sage);
  margin-bottom: 16px;
}

.hp-testimonial p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.hp-testimonial footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hp-testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  color: white;
  font-size: 14px;
  flex-shrink: 0;
}

.hp-testimonial footer div {
  display: flex;
  flex-direction: column;
}

.hp-testimonial footer strong {
  font-size: 13px;
  color: var(--ink);
}

.hp-testimonial footer span {
  font-size: 11px;
  color: var(--muted);
}

.hp-testimonial footer span {
  font-size: 11px;
  color: var(--muted);
}

.hp-doctors-subtitle {
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hp-doctor-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hp-doctor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hp-doctor-card-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hp-doctor-review-count {
  display: block;
  font-size: 10px !important;
  color: var(--sage) !important;
  margin-top: 2px;
}

.hp-doctor-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hp-doctor-modal[hidden] {
  display: none !important;
}

.hp-doctor-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hp-doctor-modal-dialog {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hp-doctor-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.hp-doctor-modal-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.hp-doctor-modal-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hp-doctor-modal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 24px;
  flex-shrink: 0;
}

.hp-doctor-modal-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 4px;
}

.hp-doctor-modal-spec {
  font-size: 14px;
  color: var(--sage);
  margin-bottom: 4px;
}

.hp-doctor-modal-loc {
  font-size: 13px;
  color: var(--muted);
}

.hp-doctor-modal-rating {
  font-size: 14px;
  color: var(--sage);
  margin-top: 6px;
}

.hp-doctor-modal-section {
  margin-bottom: 18px;
}

.hp-doctor-modal-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 8px;
}

.hp-doctor-modal-section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.hp-doctor-modal-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sage);
  text-decoration: none;
}

.hp-doctor-modal-phone:hover {
  text-decoration: underline;
}

.hp-doctor-modal-review {
  background: var(--mist);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.hp-doctor-modal-review-stars {
  color: var(--sage);
  font-size: 13px;
  margin-bottom: 6px;
}

.hp-doctor-modal-review-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 6px;
}

.hp-doctor-modal-review-author {
  font-size: 12px;
  color: var(--muted);
}

.hp-doctor-modal-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.hp-steps-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}

.hp-step-panel-item {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
}

.hp-step-panel-item:last-child {
  border-right: none;
}

.hp-step-panel-num {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--sage-md);
  line-height: 1;
  margin-bottom: 20px;
}

.hp-step-panel-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.hp-step-panel-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.hp-cta {
  background: #0A1628;
  padding: 96px 32px;
  text-align: center;
}

.hp-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.hp-cta-eyebrow {
  color: var(--sage-md);
  margin-bottom: 20px;
}

.hp-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hp-cta h2 em {
  color: #7FB3F0;
  font-style: italic;
}

.hp-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hp-cta-btn {
  background: var(--sage);
  color: white;
  border: none;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: block;
  margin: 0 auto 16px;
}

.hp-cta-btn:hover {
  background: var(--ink);
}

.hp-cta-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 16px;
}

.hp-browse {
  background: #0F1F35;
  padding: 60px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
  height: auto;
  position: static;
  z-index: auto;
}

.hp-browse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.hp-browse-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}

.hp-browse-grid a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 8px;
}

.hp-browse-grid a:hover {
  color: var(--sage-md);
}

.hp-browse-more {
  margin-top: 4px;
}

.hp-browse-accent {
  color: var(--sage-md) !important;
}

@media (max-width: 900px) {
  .site-nav,
  nav.site-nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding: 10px 16px;
    gap: 0;
  }

  .nav-burger {
    display: inline-flex;
  }

  .nav-panel {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex: none;
    gap: 8px;
    padding: 12px 0 16px;
    border-top: 1px solid var(--rule);
    margin-top: 10px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .site-nav.is-open .nav-panel {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .nav-links .nav-link {
    padding: 12px 14px;
    font-size: 15px;
  }

  .nav-dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0 0 0 12px;
    min-width: 0;
    background: transparent;
  }

  .nav-dropdown > .nav-link::after {
    content: '';
  }

  .nav-right {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--fog);
  }

  .nav-auth {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .nav-login-dropdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .nav-practice-btn,
  .nav-login-btn,
  .nav-signup-btn,
  .nav-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    padding: 12px 16px;
  }

  .nav-login-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--rule);
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  nav:not(.site-nav) { padding: 0 20px; }
  .hero-steps-strip { grid-template-columns: 1fr 1fr; }
  .hero-step-cell:nth-child(2) { border-right: none; }
  .hero-step-cell { border-bottom: 1px solid var(--rule); }
  .hero-step-cell-last { border-bottom: none; }
  .hero-chat-split-wrap.is-split {
    flex-direction: column;
    max-width: 100%;
    padding: 0 16px 24px;
  }
  .hero-chat-split-wrap.is-split .hero-right {
    flex: none;
    width: 100%;
    padding-top: 16px;
  }
  .hero-doctor-panel {
    width: 100%;
    padding-top: 0;
  }
  .hero-doctor-panel-inner {
    max-height: none;
  }
  .hero-chat-split-wrap.is-split .chat-messages {
    max-height: 360px;
  }
  .hp-stats-inner { grid-template-columns: 1fr 1fr; }
  .hp-stat:nth-child(2) { border-right: none; }
  .hp-stat { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 16px; }
  .hp-why-grid,
  .hp-testimonials-grid,
  .hp-steps-panel,
  .hp-specialties-grid,
  .hp-browse-grid { grid-template-columns: 1fr; }
  .hp-reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-step-panel-item { border-right: none; border-bottom: 1px solid var(--rule); }
  .hp-step-panel-item:last-child { border-bottom: none; }
  .site-footer-rich .site-footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .option-grid { grid-template-columns: 1fr; }
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--sage-lt);
}

.nav-register {
  font-size: 14px;
  font-weight: 600;
  color: var(--sage);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--sage);
  background: transparent;
}

.nav-register:hover {
  color: var(--white);
  background: var(--sage);
}

.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(26, 43, 34, 0.06);
}

.auth-card-wide {
  max-width: 520px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-footer-link {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.auth-footer-link a {
  color: var(--sage);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

.auth-card h1 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-card .form-group {
  margin-bottom: 16px;
}

.auth-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.profile-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* —— Patient account shell (doctor-portal style) —— */
.pat-body {
  background: #f4f5f4;
  display: block !important;
  min-height: 100vh;
  margin: 0;
}

.pat-shell {
  display: flex;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  align-items: stretch;
}

.pat-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fafafa;
  border: none;
  border-right: 1px solid #e6e8e6;
  border-radius: 0;
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.pat-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
}

.pat-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.pat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 8px 10px 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 10px;
  text-align: left;
}

.pat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.pat-sidebar-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
}

.pat-sidebar-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}

.pat-sidebar .pat-nav,
.pat-nav {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 2px;
  width: 100%;
  flex: 1;
  height: auto !important;
  min-height: 0;
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
  border: none !important;
  position: static !important;
  text-align: left !important;
}

.pat-sidebar .pat-nav-item,
.pat-nav-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px;
  padding: 12px 14px 12px 16px !important;
  border-radius: 0;
  border-left: 3px solid transparent;
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.35;
  color: #222 !important;
  text-decoration: none !important;
  text-align: left !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.pat-sidebar .pat-nav-item:hover,
.pat-nav-item:hover {
  background: #f0f0f0;
}

.pat-sidebar .pat-nav-item.active,
.pat-nav-item.active {
  background: transparent;
  border-left-color: #222;
  color: #111 !important;
  font-weight: 700;
}

.pat-nav-badge {
  margin-left: auto !important;
  background: var(--sage);
  color: white;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  flex-shrink: 0;
}

.pat-sidebar-foot {
  padding: 12px 10px 4px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.pat-sidebar-foot a {
  color: var(--sage);
  font-weight: 500;
  text-decoration: none;
  text-align: left;
}

.pat-sidebar-foot a:hover {
  text-decoration: underline;
}

.pat-main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 40px;
  max-width: 900px;
}

.pat-panel-head {
  margin-bottom: 8px;
}

.pat-panel-head h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: #111;
}

.pat-panel-head p {
  margin: 0 0 8px;
  color: #666;
  font-size: 14px;
}

/* Zocdoc-style personal info list (no cards) */
.pi-list {
  border-top: 1px solid #e5e5e5;
  background: transparent;
}

.pi-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #e5e5e5;
}

.pi-row-stack {
  flex-direction: column;
  gap: 12px;
}

.pi-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.pi-row-body {
  flex: 1;
  min-width: 0;
}

.pi-label {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
}

.pi-value {
  font-size: 15px;
  font-weight: 400;
  color: #222;
  line-height: 1.4;
}

.pi-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #6b6b6b;
}

.pi-link {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

.pi-link:hover {
  text-decoration: underline;
}

.pi-action {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: #1a73e8;
  text-decoration: none;
  padding-top: 2px;
}

.pi-action:hover {
  text-decoration: underline;
  color: #1557b0;
}

.pi-action-muted {
  color: #aaa;
  cursor: default;
  pointer-events: none;
}

.pi-edit-form {
  margin-top: 4px;
  max-width: 420px;
}

.pi-sublabel {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin: 10px 0 6px;
}

.pi-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: #111;
  background: #fff;
}

.pi-input:focus {
  outline: 2px solid #f5c518;
  border-color: #f5c518;
}

.pi-edit-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.pi-save {
  border: none;
  border-radius: 6px;
  background: #f5c518;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
  font-family: inherit;
}

.pi-save:hover {
  background: #e6b800;
}

.pi-cancel {
  font-size: 14px;
  color: #1a73e8;
  text-decoration: none;
}

.pi-cancel:hover {
  text-decoration: underline;
}

.pi-inline-form {
  margin-top: 10px;
}

.pi-link-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1a73e8;
  cursor: pointer;
  text-decoration: none;
}

.pi-link-btn:hover {
  text-decoration: underline;
}

.pi-link-btn:disabled {
  color: #aaa;
  cursor: not-allowed;
  text-decoration: none;
}

.pat-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
}

.pat-form .form-group { margin-bottom: 14px; }

.pat-verify-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pat-verify-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.pat-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--sage-lt);
  color: var(--sage);
  margin-top: 6px;
}

.pat-pill-warn {
  background: #fff6d6;
  color: #8a6d00;
}

.pat-appt-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pat-appt-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fafbfa;
  flex-wrap: wrap;
}

.pat-appt-card-stack {
  flex-direction: column;
}

.pat-appt-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.pat-appt-when {
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
}

.pat-appt-when strong {
  color: var(--ink);
  font-size: 14px;
}

.pat-appt-body { flex: 1; min-width: 160px; }

.pat-appt-doctor {
  font-weight: 600;
  font-size: 15px;
}

.pat-appt-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.pat-appt-card .patient-review-form,
.pat-appt-card .patient-review-submitted {
  width: 100%;
  margin-top: 4px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

@media (max-width: 800px) {
  .pat-shell {
    flex-direction: column;
  }
  .pat-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid #e6e8e6;
  }
  .pat-main {
    padding: 20px 16px 40px;
  }
}

.profile-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.profile-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 16px;
  font-size: 14px;
}

.profile-dl dt {
  color: var(--muted);
  font-weight: 500;
}

.profile-dl dd {
  margin: 0;
}

.profile-list {
  list-style: none;
  padding: 0;
}

.profile-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.profile-list li:last-child {
  border-bottom: none;
}

.profile-list-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.profile-list-note {
  margin-top: 6px;
  color: var(--muted);
  font-style: italic;
}

.profile-empty {
  color: var(--muted);
  font-size: 14px;
}

.profile-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-tagline {
  margin-top: 16px;
  font-style: italic;
  color: var(--muted);
}

.profile-card-top,
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.profile-header-main {
  flex: 1;
}

.profile-header-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  flex-shrink: 0;
}

.profile-header-actions .btn-sm {
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.profile-video-card .profile-section-hint {
  margin-bottom: 14px;
}

.profile-video-frame {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.profile-video-frame iframe,
.profile-video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.profile-video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--sage-lt);
  color: var(--sage);
  font-weight: 600;
  text-decoration: none;
}

.profile-video-link:hover {
  background: var(--sage-md);
  color: var(--ink);
}

@media (max-width: 640px) {
  .profile-header {
    flex-wrap: wrap;
  }

  .profile-header-actions {
    width: 100%;
  }
}

.btn-sm {
  font-size: 13px;
  padding: 8px 14px;
  white-space: nowrap;
}

.btn-secondary {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--sage);
  background: var(--white);
  border: 1.5px solid var(--sage);
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--sage-lt);
}

.alert-success {
  background: #e8f5ee;
  color: #1f5c41;
  border: 1px solid #b8dcc8;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-error {
  background: #fdecec;
  color: #8b1e1e;
  border: 1px solid #f0b8b8;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.profile-section-hint {
  color: var(--text-muted, #667);
  font-size: 14px;
  margin-bottom: 16px;
}

.viewed-doctors-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.viewed-doctor-card {
  border: 1px solid var(--border, #e4ebe6);
  border-radius: 12px;
  padding: 16px;
  background: #fafcfb;
}

.viewed-doctor-header {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.viewed-doctor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage-lt, #eaf2ee);
  color: var(--sage, #3d6b5a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.viewed-doctor-name {
  font-weight: 600;
  font-size: 16px;
}

.viewed-doctor-meta,
.viewed-doctor-phone {
  font-size: 14px;
  color: var(--text-muted, #667);
}

.patient-review-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-label {
  font-size: 13px;
  font-weight: 600;
}

.review-rating-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.review-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-choice-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border, #dce5df);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  background: var(--mist, #f5f7f6);
}

.review-choice-label:has(input:checked) {
  border-color: var(--sage, #3d6b5a);
  background: var(--sage-lt, #eaf2ee);
  color: var(--sage, #3d6b5a);
  font-weight: 600;
}

.patient-review-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 8px 0;
  font-size: 13px;
  color: var(--muted, #6b8078);
}

.pp-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.pp-review-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage-lt);
  color: var(--sage);
}

.nuvi-profile-review-meta {
  margin-top: 4px;
  font-style: normal;
}

.review-star-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  cursor: pointer;
}

.review-textarea {
  width: 100%;
  border: 1px solid var(--border, #dce5df);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.patient-review-submitted {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #e8efe9;
}

.patient-review-stars {
  color: #d4a017;
  font-size: 18px;
  margin-bottom: 6px;
}

.alert-warning {
  background: #fff8e6;
  color: #7a5a00;
  border: 1px solid #f0d88a;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.profile-completion-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff8e6;
  color: #7a5a00;
  border: 1px solid #f0d88a;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.profile-completion-banner-body {
  flex: 1;
  min-width: 220px;
}

.profile-completion-banner-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.profile-completion-banner-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.profile-completion-banner-bar {
  margin-top: 12px;
  height: 6px;
  background: rgba(122, 90, 0, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.profile-completion-banner-bar-fill {
  height: 100%;
  background: var(--sage);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.profile-completion-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 11px 18px;
  background: var(--sage);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.profile-completion-banner-btn:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.profile-completion-pill {
  display: inline-block;
  background: var(--sage-lt);
  color: var(--sage);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.auth-card .hint,
.profile-page .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.role-picker {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.role-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  text-align: left;
}

.role-picker-btn-primary:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 16px rgba(26, 43, 34, 0.08);
}

.role-picker-btn-muted {
  opacity: 0.75;
  cursor: pointer;
}

.role-picker-icon {
  font-size: 24px;
}

.role-picker-label {
  font-size: 17px;
  font-weight: 600;
}

.role-picker-hint {
  font-size: 13px;
  color: var(--muted);
}

.onboarding-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.onboarding-page {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.onboarding-header {
  margin-bottom: 20px;
}

.onboarding-header h1 {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
}

.onboarding-header p {
  color: var(--muted);
  font-size: 15px;
}

.onboarding-progress {
  margin-top: 16px;
  background: var(--cream);
  border-radius: 999px;
  height: 8px;
  position: relative;
  overflow: hidden;
}

.onboarding-progress-bar {
  height: 100%;
  background: var(--sage);
  border-radius: 999px;
  width: 0;
  transition: width 0.3s ease;
}

.onboarding-progress-text {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.onboarding-chat .chat-window {
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.onboarding-chat .chat-messages {
  flex: 1;
  min-height: 320px;
}

/* Public doctor profile page (/doctors/{id}) — Zocdoc-style */
.pp-page {
  background: #f6f7f8;
  min-height: 100vh;
  color: #1b1b1b;
}

.pp-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 20px 72px;
}

.pp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 18px;
}

.pp-breadcrumb a {
  color: #1b1b1b;
  text-decoration: none;
  font-weight: 500;
}

.pp-breadcrumb a:hover { text-decoration: underline; }

.pp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.pp-main { display: flex; flex-direction: column; gap: 0; }

.pp-hero {
  background: #fff;
  border: 1px solid #e6e8ea;
  border-radius: 12px 12px 0 0;
  padding: 28px 28px 20px;
}

.pp-hero-top {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.pp-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef1f3;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #e6e8ea;
}

.pp-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #2f6fed;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  flex-shrink: 0;
}

.pp-name {
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 4px;
  color: #111;
  letter-spacing: -0.02em;
}

.pp-specialty {
  margin: 0 0 10px;
  font-size: 16px;
  color: #4b5563;
}

.pp-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.pp-stars { color: #f5c518; letter-spacing: 1px; font-size: 15px; }

.pp-rating-link {
  color: #2f6fed;
  text-decoration: none;
  font-weight: 500;
}

.pp-rating-link:hover { text-decoration: underline; }

.pp-location-line {
  margin: 0 0 14px;
  font-size: 14px;
  color: #374151;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pp-inline-link {
  color: #2f6fed;
  text-decoration: none;
  font-weight: 500;
}

.pp-inline-link:hover { text-decoration: underline; }

.pp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pp-fact {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 12px;
}

.pp-tagline {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eef0f2;
  font-size: 15px;
  color: #374151;
  line-height: 1.55;
}

.pp-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-left: 1px solid #e6e8ea;
  border-right: 1px solid #e6e8ea;
  border-bottom: 1px solid #e6e8ea;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.pp-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #4b5563;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
  text-decoration: none;
  cursor: pointer;
}

.pp-tab:hover { color: #111; }

.pp-tab.is-active {
  color: #111;
  border-bottom-color: #f5c518;
}

.pp-panel {
  background: #fff;
  border: 1px solid #e6e8ea;
  border-top: none;
  padding: 28px;
  margin-bottom: 0;
}

.pp-panel + .pp-panel {
  margin-top: 16px;
  border-top: 1px solid #e6e8ea;
  border-radius: 12px;
}

.pp-panel:last-of-type {
  border-radius: 0 0 12px 12px;
  margin-bottom: 16px;
}

.pp-section-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.pp-subhead {
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.pp-body {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
}

.pp-muted { color: #6b7280; font-size: 14px; }

.pp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pp-chip {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #1f2937;
}

.pp-highlight {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}

.pp-highlight strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #92400e;
}

.pp-highlight p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #78350f;
}

.pp-list {
  margin: 0;
  padding-left: 18px;
  color: #374151;
  font-size: 15px;
  line-height: 1.7;
}

.pp-insurer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.pp-insurer {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  background: #fff;
}

.pp-insurer-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

.pp-insurer-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.pp-insurer-plans {
  margin: 0;
  padding-left: 16px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.55;
}

.pp-insurer-more {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.pp-ins-count {
  margin: 0 0 14px;
}

.pp-insurance-check {
  margin-bottom: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid #eef0f2;
}

.pp-network-status {
  margin: -6px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  background: #f3f4f6;
  color: #374151;
}

.pp-network-status.is-in-network {
  background: #ecfdf5;
  color: #065f46;
}

.pp-network-status.is-out-network {
  background: #fffbeb;
  color: #92400e;
}

.pp-video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  margin-top: 8px;
}

.pp-video-frame iframe,
.pp-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pp-video-link {
  display: inline-flex;
  margin-top: 8px;
  color: #2f6fed;
  font-weight: 600;
  text-decoration: none;
}

.pp-video-link:hover { text-decoration: underline; }

.pp-location-card {
  display: grid;
  gap: 16px;
}

.pp-phone-btn {
  display: inline-flex;
  align-items: center;
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.pp-phone-btn:hover { background: #333; color: #fff; }

.pp-map-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  min-height: 220px;
  background: #eef1f3;
}

.pp-map-frame iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}

.pp-map-link {
  display: inline-block;
  color: #2f6fed;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.pp-map-link:hover { text-decoration: underline; }

.pp-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.pp-reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pp-reviews-head .pp-section-title { margin: 0; }

.pp-reviews-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.pp-reviews { display: flex; flex-direction: column; gap: 0; }

.pp-review {
  padding: 18px 0;
  border-top: 1px solid #eef0f2;
}

.pp-review:first-child { border-top: none; }

.pp-review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pp-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.pp-review-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #1f2937;
}

.pp-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

.pp-review-meta span { margin-right: 0; }

.pp-sidebar { position: sticky; top: 18px; }

.pp-booking-card {
  background: #fff;
  border: 1px solid #e6e8ea;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.06);
}

.pp-booking-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.pp-booking-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
}

.pp-patient-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}

.pp-toggle-btn {
  appearance: none;
  border: none;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 8px;
  cursor: pointer;
}

.pp-toggle-btn + .pp-toggle-btn {
  border-left: 1px solid #d1d5db;
}

.pp-toggle-btn.is-active {
  background: #111;
  color: #fff;
}

.pp-field-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.pp-select {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}

.pp-select:focus {
  outline: 2px solid #f5c518;
  border-color: #f5c518;
}

.pp-avail-label {
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.pp-day-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.pp-day-tab {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  padding: 8px 4px;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.pp-day-tab.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.pp-day-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pp-day-date {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.pp-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.pp-slot {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  padding: 10px 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pp-slot:hover {
  border-color: #111;
}

.pp-slot.is-selected {
  background: #111;
  border-color: #111;
  color: #fff;
}

.pp-slot.is-unavailable,
.pp-slot:disabled {
  color: #9ca3af;
  background: #f9fafb;
  cursor: not-allowed;
  text-decoration: line-through;
}

.pp-slot.is-unavailable:hover {
  border-color: #d1d5db;
}

.pp-hint-inline {
  font-weight: 400;
  color: #9ca3af;
}

.pp-patient-details {
  border-top: 1px solid #eef0f2;
  padding-top: 12px;
  margin-top: 4px;
}

.pp-book-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #f5c518;
  color: #111;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
}

.pp-book-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pp-book-btn:not(:disabled):hover { background: #e6b800; }

.pp-booking-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 12px;
  line-height: 1.45;
}

.pp-booking-note.is-error {
  background: #fef2f2;
  color: #991b1b;
}

.nuvi-profile-linkable {
  cursor: pointer;
  border-radius: 12px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.nuvi-profile-linkable:hover {
  box-shadow: 0 0 0 2px var(--sage-md);
}

.nuvi-profile-open-hint {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  font-size: 12px;
  color: var(--sage);
  font-weight: 600;
  text-align: center;
}

@media (max-width: 920px) {
  .pp-grid {
    grid-template-columns: 1fr;
  }

  .pp-sidebar { position: static; }

  .pp-tabs { position: static; }
}

@media (max-width: 640px) {
  .pp-hero-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pp-hero-info { width: 100%; }

  .pp-rating,
  .pp-location-line,
  .pp-facts {
    justify-content: center;
  }

  .pp-name { font-size: 24px; }

  .pp-day-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pp-tabs {
    overflow-x: auto;
  }
}

/* —— Doctor login (Zocdoc-style two-step) —— */
.dl-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  font-family: Inter, system-ui, sans-serif;
  margin: 0;
}

.dl-page {
  width: 100%;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
}

.dl-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  padding: 36px 36px 40px;
}

.dl-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.dl-mark {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  line-height: 0;
}

.dl-brand-name {
  font-size: 34px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
}

.dl-title {
  margin: 0 0 24px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: #222;
}

.dl-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdeceb;
  color: #9b1c1c;
  font-size: 13px;
}

.dl-step[hidden] {
  display: none !important;
}

.dl-field {
  position: relative;
  margin-bottom: 16px;
}

.dl-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #222;
  border-radius: 6px;
  padding: 16px 14px 10px;
  font-size: 16px;
  font-family: inherit;
  color: #111;
  background: #fff;
  outline: none;
}

.dl-input:focus {
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
}

.dl-float-label {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-50%);
  padding: 0 4px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #444;
  pointer-events: none;
  line-height: 1;
}

.dl-field-password .dl-input {
  padding-right: 44px;
}

/* Hide browser built-in password reveal (Edge/IE) so only our icon shows */
.dl-field-password .dl-input::-ms-reveal,
.dl-field-password .dl-input::-ms-clear {
  display: none;
}

.dl-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dl-eye:hover {
  color: #111;
}

.dl-eye svg[hidden] {
  display: none !important;
}

.dl-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #f5c518;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
}

.dl-btn:hover {
  background: #e6b800;
}

.dl-email-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 14px 14px;
  margin-bottom: 16px;
  font-size: 15px;
  color: #222;
  word-break: break-all;
}

.dl-edit {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 15px;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.dl-edit:hover {
  color: #444;
}

.dl-forgot {
  display: block;
  margin-top: 18px;
  text-align: center;
  font-size: 15px;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dl-forgot:hover {
  color: #444;
}

.dl-forgot-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: #666;
}

@media (max-width: 480px) {
  .dl-card {
    padding: 28px 20px 32px;
  }

  .dl-title {
    font-size: 22px;
  }

  .dl-mark {
    width: 36px;
    height: 36px;
  }

  .dl-brand-name {
    font-size: 28px;
  }
}

/* —— Patient account top bar (Zocdoc-style) —— */
.pac-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}

.pac-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pac-notify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  color: #222;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.pac-notify:hover {
  background: #f7f7f7;
  color: #111;
  text-decoration: none;
}

.pac-notify-count {
  min-width: 1ch;
}

.pac-dropdown {
  position: relative;
}

.pac-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  color: #222;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.pac-user-btn:hover,
.pac-dropdown.is-open .pac-user-btn {
  background: #f7f7f7;
}

.pac-chevron {
  opacity: 0.7;
}

.pac-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  padding: 8px;
  z-index: 200;
}

.pac-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #222;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.pac-menu-item:hover {
  background: #f3f3f3;
  color: #111;
  text-decoration: none;
}

.pac-menu-item svg {
  flex-shrink: 0;
  color: #444;
}

.pac-menu-divider {
  height: 1px;
  background: #ececec;
  margin: 6px 4px;
}

.pat-main-solo {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.pat-body .pat-shell {
  min-height: calc(100vh - 64px);
}

@media (max-width: 720px) {
  .pac-topbar {
    padding: 0 16px;
  }

  .pat-body .pat-shell {
    flex-direction: column;
  }

  .pat-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
  }
}

/* Patient profile — Insurance & ID Cards (Zocdoc-style) */
.ins-form {
  max-width: 920px;
}

.ins-section {
  margin-bottom: 40px;
}

.ins-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px;
}

.ins-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
}

.ins-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.ins-table th,
.ins-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

.ins-table th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #666;
  background: #fafafa;
}

.ins-table tbody tr:last-child td {
  border-bottom: none;
}

.ins-type {
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  width: 100px;
}

.ins-carrier-plan,
.ins-secondary-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ins-select,
.ins-input {
  width: 100%;
  min-width: 140px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9375rem;
  background: #fff;
  color: #1a1a1a;
}

.ins-select:focus,
.ins-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.ins-photo-cell {
  white-space: nowrap;
}

.ins-photo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #555;
  cursor: pointer;
  vertical-align: middle;
}

.ins-photo-btn:hover {
  border-color: #999;
  color: #1a1a1a;
}

.ins-photo-input {
  display: none;
}

.ins-photo-link {
  margin-left: 8px;
  font-size: 0.875rem;
  color: #2563eb;
  text-decoration: none;
}

.ins-photo-link:hover {
  text-decoration: underline;
}

.ins-photo-na {
  color: #999;
  font-size: 0.875rem;
}

.ins-save {
  margin-top: 20px;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  background: #f5c518;
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.ins-save:hover {
  background: #e6b800;
}

.ins-id-section {
  padding-top: 8px;
  border-top: 1px solid #e5e5e5;
}

.ins-id-copy {
  margin: 0 0 16px;
  max-width: 640px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #555;
}

.ins-id-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ins-id-upload-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2563eb;
  cursor: pointer;
  background: #fff;
}

.ins-id-upload-btn:hover {
  border-color: #2563eb;
  background: #f8fbff;
}

@media (max-width: 768px) {
  .ins-table {
    min-width: 560px;
  }
}

/* Patient profile — Privacy choices */
.prv-content {
  max-width: 720px;
  color: #333;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.prv-content > p {
  margin: 0 0 16px;
}

.prv-link {
  color: #2563eb;
  text-decoration: none;
}

.prv-link:hover {
  text-decoration: underline;
}

.prv-accordion-list {
  margin-top: 28px;
  border-bottom: 1px solid #e5e5e5;
}

.prv-accordion {
  border-top: 1px solid #e5e5e5;
}

.prv-accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px 18px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.prv-accordion-head::-webkit-details-marker {
  display: none;
}

.prv-accordion-head::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  color: #1a1a1a;
}

.prv-accordion[open] > .prv-accordion-head::after {
  content: "−";
}

.prv-accordion-body {
  padding: 0 0 22px;
  color: #333;
}

.prv-accordion-body-muted {
  color: #555;
}

.prv-accordion-body p {
  margin: 0 0 14px;
}

.prv-block {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}

.prv-block-muted {
  color: #555;
}

.prv-block-title {
  margin: 0 0 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1a1a1a;
}

.prv-block p {
  margin: 0 0 14px;
}

.prv-form {
  margin-top: 18px;
}

.prv-fieldset {
  border: none;
  margin: 0 0 16px;
  padding: 0;
}

.prv-question {
  display: block;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.prv-radio,
.prv-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 0.9375rem;
}

.prv-radio input,
.prv-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.prv-save {
  display: inline-block;
  padding: 11px 24px;
  border: none;
  border-radius: 8px;
  background: #f5c518;
  color: #1a1a1a;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.prv-save:hover {
  background: #e6b800;
}

.prv-fine-print {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: #666;
}

.prv-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.prv-cancel {
  font-size: 0.9375rem;
  color: #2563eb;
  text-decoration: none;
}

.prv-cancel:hover {
  text-decoration: underline;
}

.prv-inline-form {
  margin-top: 8px;
}

.prv-outline-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.prv-outline-btn:hover {
  border-color: #999;
  background: #fafafa;
}

.prv-outline-danger {
  color: #b42318;
  border-color: #f5c2c0;
}

.prv-outline-danger:hover {
  background: #fff5f5;
  border-color: #b42318;
}

/* Patient profile — Permissions */
.perm-form {
  max-width: 560px;
}

.perm-block {
  margin-bottom: 24px;
}

.perm-block-title {
  margin: 0 0 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1a1a1a;
}

.perm-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #333;
}

.perm-checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.perm-download {
  margin: 0 0 24px;
}

.perm-download-link {
  font-size: 0.9375rem;
  color: #2563eb;
  text-decoration: underline;
}

.perm-download-link:hover {
  color: #1d4ed8;
}

.perm-save {
  display: inline-block;
  padding: 11px 28px;
  border: none;
  border-radius: 8px;
  background: #f5c518;
  color: #1a1a1a;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.perm-save:hover {
  background: #e6b800;
}

/* Floating admin "Edit homepage" control */
.admin-edit-homepage-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #1a2b22;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.admin-edit-homepage-btn:hover {
  background: #3d6b5a;
  color: #fff;
}
