* {
  box-sizing: border-box;
}

.rhc-powered-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  max-width: fit-content;
}

.rhc-powered-logo {
  width: 34px;
  height: 34px;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  display: block;
  flex: 0 0 34px;
}

.rhc-powered-text {
  line-height: 1.12;
}

.rhc-powered-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.rhc-powered-script {
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: 1.12rem;
  font-weight: 400;
  color: #4a7fa5;
  letter-spacing: 0.01em;
}

.rhc-powered-brand {
  font-size: 0.88rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: 0.08em;
}

.rhc-powered-sub {
  margin-top: 3px;
  font-size: 0.74rem;
  color: #52677a;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .rhc-powered-badge {
    align-items: center;
    border-radius: 18px;
    padding: 10px 12px;
  }

  .rhc-powered-logo {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    flex-basis: 30px;
  }

  .rhc-powered-main {
    flex-wrap: wrap;
    gap: 4px 7px;
    white-space: normal;
  }

  .rhc-powered-script {
    font-size: 1.02rem;
  }

  .rhc-powered-brand {
    font-size: 0.8rem;
  }

  .rhc-powered-sub {
    font-size: 0.68rem;
  }
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ddeaf5;
  color: #1a2a38;
}

.site-header {
  background: #ffffff;
  padding: 24px 36px;
  border-bottom: 1px solid #c8dff0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header h1 {
  margin: 0;
  color: #2c5f82;
}

.site-header p {
  margin: 8px 0 0;
  color: #3d5a72;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.section-title {
  margin-top: 0;
  font-size: 28px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.category-card {
  background: #ffffff;
  border: 1px solid #c8dff0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(44, 95, 130, 0.08);
}

.category-card h3 {
  margin: 0 0 8px;
  color: #1a2a38;
}

.category-card p {
  margin: 0;
  color: #3d5a72;
  font-size: 14px;
  line-height: 1.5;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #c8dff0;
  border-top: 5px solid #a0c4de;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(44, 95, 130, 0.08);
}

.product-card h3 {
  margin: 0 0 8px;
  color: #1a2a38;
}

.category-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #e05c3a;
  font-weight: bold;
  margin-bottom: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.chip {
  background: #eaf3fa;
  color: #3d5a72;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
}

.badge {
  background: #e05c3a;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
}

.price {
  font-size: 28px;
  font-weight: bold;
  color: #2c5f82;
  margin-top: 16px;
}

.save {
  color: #2d9e4f;
  font-weight: bold;
  font-size: 14px;
  margin-top: 2px;
}

.button,
.cart-button,
.checkout-button {
  border: 0;
  cursor: pointer;
  background: #2c5f82;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.button {
  margin-top: 16px;
  display: inline-block;
}

.cart-button span {
  background: #e05c3a;
  color: white;
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 6px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -390px;
  width: 360px;
  max-width: 100%;
  height: 100vh;
  background: #ffffff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
  transition: right 0.25s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header,
.cart-footer {
  padding: 18px;
  border-bottom: 1px solid #c8dff0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 {
  margin: 0;
}

.cart-header button {
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 18px;
}

.cart-item {
  border-bottom: 1px solid #eaf3fa;
  padding: 12px 0;
}

.cart-item-title {
  font-weight: bold;
}

.cart-item-price {
  color: #2c5f82;
  font-weight: bold;
  margin-top: 4px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.checkout-button {
  width: 100%;
}

@media (max-width: 700px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.checkout-form-card,
.order-summary-card {
  background: #ffffff;
  border: 1px solid #c8dff0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(44, 95, 130, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #3d5a72;
  font-weight: bold;
  font-size: 14px;
}

.form-grid input,
.form-grid select {
  border: 1px solid #c8dff0;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
}

.consent-box {
  margin: 22px 0;
  background: #eaf3fa;
  border: 1px solid #c8dff0;
  border-radius: 10px;
  padding: 16px;
  color: #3d5a72;
  line-height: 1.5;
}

.summary-item,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eaf3fa;
}

.summary-total {
  border-bottom: 0;
  border-top: 2px solid #1a2a38;
  margin-top: 12px;
  font-size: 18px;
}

.summary-note {
  background: #ddeaf5;
  border-radius: 8px;
  padding: 12px;
  color: #3d5a72;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
.admin-table-wrap {
  background: #ffffff;
  border: 1px solid #c8dff0;
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: 0 4px 18px rgba(44, 95, 130, 0.08);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eaf3fa;
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  background: #eaf3fa;
  color: #1a2a38;
  font-weight: bold;
}

.admin-table td {
  color: #3d5a72;
}

.admin-table a {
  color: #2c5f82;
  font-weight: bold;
  text-decoration: none;
}

.success-message {
  background: #eaf7ef;
  color: #2d9e4f;
  border: 1px solid #bfe8cb;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: bold;
  margin-bottom: 18px;
}
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
    border: 1px solid transparent;
}

/* Waiting for payment / user action */
.status-pending_payment {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

/* Payment complete */
.status-paid {
    background: #dcfce7;
    color: #166534;
    border-color: #22c55e;
}

/* Lab order has been entered/sent */
.status-lab_order_sent {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

/* Fully completed */
.status-completed {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

/* Cancelled / abandoned / void */
.status-canceled {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #9ca3af;
}

/* Optional fallback */
.status-pending {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

/* ORIGINAL RIOS CLICK LABS HOMEPAGE STYLE */

:root {
  --blue-light: #c8dff0;
  --blue-mid: #a0c4de;
  --blue-bg: #ddeaf5;
  --blue-deep: #4a7fa5;
  --blue-dark: #2c5f82;
  --accent: #e05c3a;
  --accent-soft: #f2a58e;
  --text-dark: #1a2a38;
  --text-mid: #3d5a72;
  --text-light: #6b8a9f;
  --white: #ffffff;
  --card-bg: rgba(255,255,255,0.9);
  --shadow: 0 4px 24px rgba(44,95,130,0.10);
  --shadow-hover: 0 8px 36px rgba(44,95,130,0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--blue-bg);
  color: var(--text-dark);
}

/* HERO */
.hero {
  min-height: 520px;
  background: linear-gradient(125deg, #ddeaf5 0%, #c4d9ee 55%, #b0ccdf 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 2.5rem;
}

.hero-decor {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.13;
  font-size: 18rem;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  line-height: 0.93;
  color: var(--text-dark);
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}

.hero-title span {
  color: var(--blue-dark);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-add {
  font-family: 'DM Sans', sans-serif;
}

.btn-primary {
  background: var(--text-dark);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 0.85rem 2rem;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
  border-radius: 7px;
  padding: 0.85rem 2rem;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--blue-dark);
  color: white;
}

.hero-trust {
  margin-top: 2.2rem;
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 500;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* SECTIONS */
main section {
  padding: 5rem 2.5rem;
}

.section-label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.section-divider {
  width: 44px;
  height: 3px;
  background: var(--accent);
  margin: 0.8rem auto 2.5rem;
  border-radius: 2px;
}

.section-sub {
  text-align: center;
  color: var(--text-mid);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

/* CATEGORIES */
#categories {
  background: white;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.cat-card {
  background: var(--blue-bg);
  border-radius: 14px;
  padding: 1.6rem 1rem 1.4rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.cat-card:hover {
  border-color: var(--blue-deep);
  background: white;
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.cat-icon {
  font-size: 2rem;
}

.cat-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.cat-start {
  font-size: 0.77rem;
  color: var(--accent);
  font-weight: 700;
}

.cat-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* PANELS */
#panels {
  background: var(--blue-bg);
}

.panels-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: white;
  border: 2px solid var(--blue-light);
  color: var(--text-mid);
  border-radius: 30px;
  padding: 0.45rem 1.2rem;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'DM Sans', sans-serif;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: white;
}

.panels-content {
  max-width: 1080px;
  margin: 0 auto;
}

.panel-group {
  display: none;
}

.panel-group.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 1.3rem;
}

.panel-card {
    min-height: 190px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1.5px solid rgba(160,196,222,0.35);
  box-shadow: var(--shadow);
  transition: all 0.22s;
  position: relative;
  overflow: hidden;
  display: flex;
    flex-direction: column;
}

.panel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue-mid);
}

.panel-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--blue-mid);
}

.panel-card.popular::before {
  background: linear-gradient(90deg, var(--accent), #f0834e);
}

.popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: white;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  padding-right: 70px;
  line-height: 1.3;
}

.panel-tests {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0.8rem;
}

.panel-tests span {
  background: var(--blue-bg);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--text-mid);
  font-size: 0.74rem;
  white-space: nowrap;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel-price-wrap {
  display: flex;
  flex-direction: column;
}

.panel-price {
  font-family: 'DM Serif Display', serif;
  font-size: 1.55rem;
  color: var(--blue-dark);
  line-height: 1;
}

.panel-save {
  font-size: 0.72rem;
  color: #2d9e4f;
  font-weight: 700;
  margin-top: 3px;
}

.btn-add {
  background: var(--blue-dark);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 0.48rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.btn-add:hover {
  background: var(--accent);
}

.panel-note {
  font-size: 0.73rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-style: italic;
  background: var(--blue-bg);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
}


/* HOW */
#how {
  background: white;
  padding: 5.5rem 2.5rem 4.5rem;
}

#how .section-sub {
  max-width: 620px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-mid);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--blue-light);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  border: 4px solid white;
  box-shadow: 0 0 0 3px var(--blue-mid);
  position: relative;
  z-index: 2;
}

.step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.55;
  max-width: 220px;
  margin: 0 auto;
}

/* ABOUT */
#about {
  background: var(--blue-bg);
}

.about-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.about-visual {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-big-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.about-tagline {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--blue-dark);
  line-height: 1.5;
}

.about-tagline em {
  color: var(--accent);
  font-style: italic;
}

.about-text h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.about-text p {
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-link {
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 2px solid var(--blue-mid);
  padding-bottom: 1px;
  transition: all 0.2s;
  display: inline-block;
  margin-top: 0.3rem;
}

.about-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* HOMEPAGE RESPONSIVE */
@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before {
    display: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  main section {
    padding: 3.5rem 1.2rem;
  }

  .hero {
    padding: 3rem 1.2rem;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* HOMEPAGE ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeUp 0.6s ease both;
}

.hero-eyebrow {
  animation-delay: 0.05s;
}

.hero-title {
  animation-delay: 0.15s;
}

.hero-sub {
  animation-delay: 0.25s;
}

.hero-actions {
  animation-delay: 0.35s;
}

.hero-trust {
  animation-delay: 0.45s;
}
/* ORIGINAL HEADER / NAV */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--blue-light);
  height: 68px;
  box-shadow: 0 2px 12px rgba(44,95,130,0.07);
}

.nav-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .logo-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--blue-dark);
}

.nav-logo-text .logo-url {
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--blue-dark);
}

.nav-right {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.btn-login {
  background: none;
  border: 1.5px solid var(--blue-mid);
  color: var(--blue-dark);
  border-radius: 6px;
  padding: 0.42rem 1rem;
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}

.btn-login:hover {
  background: var(--blue-bg);
}

.btn-cart {
  background: var(--blue-dark);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.42rem 1rem;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-cart:hover {
  background: var(--accent);
}

.cart-badge {
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    padding: 0 1.2rem;
  }
}

@media (max-width: 520px) {
  .logo-url {
    display: none;
  }

  .btn-login {
    display: none;
  }

  .btn-cart {
    padding: 0.42rem 0.75rem;
  }
}
/* ORIGINAL FOOTER */

.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.68);
  padding: 3.5rem 2.5rem 2rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-logo-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 0;
}

.footer-brand a {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 600;
}

.footer-col h4 {
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.58);
  font-size: 0.82rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.18s;
}

.footer-col a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.09);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 3rem 1.2rem 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
/* PHYSICIAN REVIEW CALLOUT */

.review-callout-section {
  background: white;
  padding: 4rem 2.5rem;
}

.review-callout {
  max-width: 1080px;
  margin: 0 auto;
  background: linear-gradient(135deg, #eaf3fa 0%, #ffffff 100%);
  border: 1px solid var(--blue-light);
  border-radius: 20px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.review-callout h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  letter-spacing: 0.03em;
  margin: 0 0 0.8rem;
}

.review-callout p {
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.review-small-note {
  font-size: 0.82rem;
  color: var(--text-light);
}

.review-action-card {
  background: white;
  border: 1px solid var(--blue-light);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.review-price {
  font-family: 'DM Serif Display', serif;
  color: var(--blue-dark);
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.review-label {
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  font-weight: 700;
}

@media (max-width: 800px) {
  .review-callout {
    grid-template-columns: 1fr;
  }

  .review-callout .section-label {
    text-align: center !important;
  }

  .review-callout {
    text-align: center;
  }
}
.button-disabled,
.button:disabled,
.btn-primary:disabled,
.btn-add:disabled,
.checkout-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(25%);
  pointer-events: none;
}
.payment-spinner {
  width: 54px;
  height: 54px;
  border: 5px solid #c8dff0;
  border-top-color: #2c5f82;
  border-radius: 50%;
  margin: 24px auto;
  animation: paymentSpin 0.9s linear infinite;
}

@keyframes paymentSpin {
  to {
    transform: rotate(360deg);
  }
}
.checkout-addon-box {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: #f8fbff;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.checkout-addon-box h3 {
    margin: 0 0 8px;
}

.checkout-addon-box p {
    margin: 0 0 8px;
    color: #374151;
}

.addon-note {
    font-size: 0.92rem;
    color: #6b7280;
}

.checkout-addon-action {
    min-width: 190px;
    text-align: right;
}

.addon-price {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.addon-added-message {
    margin-top: 8px;
    color: #047857;
    font-weight: 700;
    font-size: 0.92rem;
}

@media (max-width: 720px) {
    .checkout-addon-box {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-addon-action {
        text-align: left;
    }
}
.quick-view-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.quick-view-modal.open {
    display: block;
}

.quick-view-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
}

.quick-view-panel {
    position: relative;
    max-width: 760px;
    max-height: 86vh;
    overflow-y: auto;
    margin: 6vh auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
}

.quick-view-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.quick-view-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 700;
    font-size: 0.82rem;
}

.quick-view-sku {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: -6px;
}

.quick-view-short {
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.65;
}

.quick-view-section {
    margin-top: 22px;
}

.quick-view-section h3 {
    margin-bottom: 8px;
}

.quick-view-section div {
    color: #374151;
    line-height: 1.65;
}

.quick-view-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.quick-view-price {
    font-size: 1.55rem;
    font-weight: 900;
}

.quick-view-btn {
    margin-right: 8px;
}

@media (max-width: 760px) {
    .quick-view-panel {
        margin: 3vh 14px;
        max-height: 92vh;
        padding: 24px;
    }

    .quick-view-footer {
        flex-direction: column;
        align-items: stretch;
    }
}
.panel-footer {
    align-items: center;
}

.quick-view-btn {
    padding: 9px 14px;
    min-height: 42px;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
}

.panel-footer .btn-add {
    min-height: 42px;
    padding: 9px 14px;
}
.panel-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

.panel-price-wrap {
    min-width: 0;
}

.panel-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quick-view-btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
    flex: 1;
}

.panel-footer .btn-add {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
    flex: 0 0 78px;
}
.next-steps-box {
    margin-top: 22px;
    padding: 20px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #dbeafe;
}

.next-steps-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.next-steps-box p {
    color: #374151;
    line-height: 1.6;
}

.cart-footer {
    display: grid;
    gap: 10px;
}

.continue-shopping-button {
    width: 100%;
    border: 1px solid #2f6688;
    background: #ffffff;
    color: #2f6688;
    border-radius: 10px;
    padding: 13px 16px;
    font-weight: 800;
    cursor: pointer;
}

.continue-shopping-button:hover {
    background: #eff6ff;
}
.lab-locations-hero .container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.lab-locations-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    max-width: 980px;
    margin: 0 auto;
}

.important-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 28px;
}

.important-notice h2 {
    margin-top: 0;
    color: #9a3412;
}

.location-steps {
    display: grid;
    gap: 18px;
    margin: 24px 0 34px;
}

.location-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: start;
}

.location-step h3 {
    margin-top: 0;
    margin-bottom: 6px;
}

.location-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 28px;
}

.location-option {
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 22px;
    background: #f8fafc;
}

.location-option h2 {
    margin-top: 0;
}

.small-warning {
    font-weight: 800;
    color: #9a3412;
}

.address-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    color: #17324d;
}

.lab-locations-note {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 820px) {
    .location-options {
        grid-template-columns: 1fr;
    }

    .lab-locations-card {
        padding: 24px;
    }
}
.address-actions {
    margin-top: 14px;
}

.address-actions .btn-secondary {
    display: inline-block;
    padding: 10px 14px;
    font-size: 0.85rem;
}

/* Analytics v2 mini cards */
.analytics-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.analytics-card {
    border-radius: 14px;
    overflow: hidden;
}

/* New: scroll only the table area inside each analytics card */
.analytics-card .admin-table {
    margin-bottom: 0;
}

.analytics-card .admin-table.compact-table {
    width: 100%;
}

.analytics-card {
    max-height: 360px;
    overflow-y: auto;
}

.analytics-card h3 {
    padding: 16px 18px 12px 18px;
    margin: 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 3;
}

.analytics-card thead th {
    position: sticky;
    top: 52px;
    background: #fff;
    z-index: 2;
}

.scroll-card {
    max-height: 360px;
    overflow-y: auto;
}

.scroll-card h3 {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 3;
}

.scroll-card thead th {
    position: sticky;
    top: 52px;
    background: #fff;
    z-index: 2;
}

.order-item-detail {
    display: block;
}

.order-item-main {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.labcorp-components {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #d8e7f0;
    border-radius: 10px;
    background: #f8fbfd;
}

.labcorp-components strong {
    color: #12324a;
}

.labcorp-components-table {
    margin-top: 8px;
    width: 100%;
}

.compact-table th,
.compact-table td {
    padding: 8px 10px;
    font-size: 0.92rem;
}

.muted {
    color: #6b7280;
}
.order-summary-card {
    overflow: hidden;
}

.labcorp-components {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #d8e7f0;
    border-radius: 10px;
    background: #f8fbfd;
    max-width: 100%;
    overflow-x: auto;
}

.labcorp-components-table {
    width: 100%;
    table-layout: fixed;
    margin-top: 8px;
}

.labcorp-components-table th,
.labcorp-components-table td {
    padding: 8px 10px;
    font-size: 0.86rem;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
}

.order-summary-card {
    overflow: hidden;
}

.labcorp-components {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #d8e7f0;
    border-radius: 10px;
    background: #f8fbfd;
    max-width: 100%;
}

.labcorp-components strong {
    display: block;
    margin-bottom: 8px;
    color: #12324a;
}

.labcorp-code-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.labcorp-code-table th,
.labcorp-code-table td {
    padding: 4px 6px;
    font-size: 0.82rem;
    text-align: left;
    vertical-align: middle;
}

.labcorp-code-table th:first-child,
.labcorp-code-table td:first-child {
    width: 82px;
}

.labcorp-code-table th:nth-child(2),
.labcorp-code-table td:nth-child(2) {
    width: auto;
}

.labcorp-code-pill,
.labcorp-sku-pill {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 999px;
    background: #e6f1f7;
    color: #12324a;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1;
    white-space: normal;
    overflow-wrap: anywhere;
}

.labcorp-sku-pill {
    background: #eef5f9;
    font-weight: 600;
}

.muted {
    color: #6b7280;
}

.square-trust-box {
    margin: 18px 0 20px;
    padding: 15px 16px;
    border: 1px solid #d8e7f0;
    border-radius: 14px;
    background: #f8fbfd;
}

.square-trust-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.square-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #111827;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    flex: 0 0 auto;
}

.square-trust-box strong {
    display: block;
    color: #12324a;
    font-size: 1rem;
}

.square-trust-box p {
    margin: 4px 0 0;
    color: #4b6478;
    font-size: 0.92rem;
}

.square-card-shell {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #d8e7f0;
    border-radius: 14px;
    background: #ffffff;
}

.square-card-label {
    margin-bottom: 10px;
    color: #12324a;
    font-weight: 700;
    font-size: 0.95rem;
}

.square-pay-button {
    margin-top: 20px;
    width: 100%;
    font-size: 1.02rem;
}

.stripe-pay-button {
    margin-top: 20px;
    width: 100%;
    font-size: 1.02rem;
}

/* Native Labcorp Location Search */
.native-lab-search {
    margin: 28px 0;
    padding: 20px;
    border: 1px solid #d8e7f0;
    border-radius: 16px;
    background: #f8fbfd;
}

.native-lab-search-wide {
    margin-top: 28px;
}

.native-lab-search h2,
.native-lab-search h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.native-lab-search > p {
    color: #4b6478;
    margin-bottom: 18px;
}

.lab-location-search-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.lab-location-search-form label {
    flex: 1 1 320px;
}

.lab-location-search-form input {
    width: 100%;
}

.lab-location-search-form .btn-primary {
    margin-top: 0;
}

.lab-location-placeholder {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px dashed #bdd5e3;
    border-radius: 14px;
    background: #ffffff;
    color: #4b6478;
    font-size: 0.95rem;
    line-height: 1.45;
}

.lab-location-results {
    margin-top: 18px;
    max-height: 640px;
    overflow-y: auto;
    padding: 16px;
    border: 1px dashed #bdd5e3;
    border-radius: 14px;
    background: #ffffff;
}

.lab-location-results::-webkit-scrollbar {
    width: 8px;
}

.lab-location-results::-webkit-scrollbar-track {
    background: #eef5f9;
    border-radius: 999px;
}

.lab-location-results::-webkit-scrollbar-thumb {
    background: #bdd5e3;
    border-radius: 999px;
}

.lab-location-results::-webkit-scrollbar-thumb:hover {
    background: #8fb4c8;
}

.lab-location-results h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.lab-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lab-location-result-card {
    background: #ffffff;
    border: 1px solid #d8e7f0;
    border-radius: 14px;
    padding: 15px;
}

.lab-location-result-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.lab-location-result-card h4 {
    margin: 0 0 6px;
}

.lab-status-pill {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #dff7e8;
    color: #0f7a36;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.lab-distance {
    color: #2d6f95;
    font-weight: 700;
    margin: 6px 0;
}

.lab-address {
    color: #334e63;
}

.lab-hours {
    margin: 12px 0;
}

.lab-hours summary {
    cursor: pointer;
    color: #2d6f95;
    font-weight: 700;
}

.lab-hours pre {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.9rem;
    color: #334e63;
    background: #f8fbfd;
    padding: 10px;
    border-radius: 10px;
}

.lab-location-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.lab-location-empty {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff7ed;
    color: #7c2d12;
}

.native-lab-search > .btn-primary,
.native-lab-search > .btn-secondary {
    margin-top: 14px;
    display: inline-block;
}

.lab-option-actions {
    margin-top: 18px;
}

.lab-option-actions .btn-primary,
.lab-option-actions .btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
}

.lab-option-or {
    margin: 10px 0;
    text-align: center;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #2d6f95;
    border-radius: 8px;
    background: #ffffff;
    color: #2d6f95;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.btn-tertiary:hover {
    background: #f0f7fb;
}

/* Mobile */
@media (max-width: 640px) {
    .native-lab-search {
        padding: 16px;
    }

    .lab-location-search-form {
        display: block;
    }

    .lab-location-search-form .btn-primary {
        margin-top: 12px;
        width: 100%;
    }

    .native-lab-search > .btn-primary,
    .native-lab-search > .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .lab-location-results {
        max-height: 560px;
        padding: 12px;
    }

    .lab-location-grid {
        grid-template-columns: 1fr;
    }

    .lab-location-result-header {
        display: block;
    }

    .lab-status-pill {
        margin-top: 6px;
    }
    
    .lab-location-actions .btn-tertiary {
    flex: 1 1 auto;
}
}

.daily-visitor-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-height: 260px;
    padding: 18px 8px 4px;
    overflow-x: auto;
    border-top: 1px solid #e5eef4;
}

.daily-visitor-bar-wrap {
    flex: 0 0 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 230px;
}

.daily-visitor-value {
    font-size: 0.75rem;
    color: #4b6478;
    margin-bottom: 6px;
    min-height: 18px;
}

.daily-visitor-bar-track {
    width: 14px;
    height: 170px;
    display: flex;
    align-items: flex-end;
    border-radius: 999px;
    background: #eef5f9;
    overflow: hidden;
}

.daily-visitor-bar {
    width: 100%;
    border-radius: 999px;
    background: #2d6f95;
    min-height: 6px;
}

.daily-visitor-date {
    margin-top: 8px;
    font-size: 0.72rem;
    color: #6b7280;
    white-space: nowrap;
}

.analytics-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

/* Shared page/policy/FAQ styling */

.page-hero {
  padding-bottom: 34px;
}

.page-hero .container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0px;
}

.page-hero p {
  max-width: 720px;
  margin: 0 auto;
}

.page-hero + .content-section {
  padding-top: 26px;
}

.policy-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  max-width: 980px;
  margin: 0 auto;
}

.policy-card h2 {
  margin-top: 26px;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.policy-card p,
.policy-card li {
  color: #374151;
  line-height: 1.7;
}

/* FAQ page */

.faq-page-section {
  position: relative;
  padding-bottom: 48px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.faq-content {
  display: grid;
  gap: 24px;
}

.faq-card {
  scroll-margin-top: 110px;
  width: 100%;
  min-height: 180px;
}

.faq-card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.faq-item {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 14px;
  margin-top: 14px;
}

.faq-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.faq-item h3 {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #334155;
  padding-left: 14px;
  border-left: 3px solid #cbd5e1;
}

.faq-item p {
  margin-top: 6px;
}

.faq-hero .container {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 26px;
  max-width: 1180px;
}

.faq-hero h1,
.faq-hero p {
  grid-column: 2;
}

@media (max-width: 860px) {
  .faq-hero .container {
    display: block;
    max-width: 980px;
  }

  .faq-hero h1,
  .faq-hero p {
    grid-column: auto;
  }
}

/* Floating FAQ menu */

.faq-floating-menu {
  position: sticky;
  top: 110px;
}

.faq-floating-menu-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.faq-floating-menu-card strong {
  display: block;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  color: #17324d;
  font-weight: 900;
}

.faq-floating-menu-card a {
  display: block;
  color: #17324d;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 9px;
  border-radius: 9px;
}

.faq-floating-menu-card a:hover {
  background: #eff6ff;
}

@media (max-width: 860px) {
  .faq-layout {
    display: block;
  }

  .faq-floating-menu {
    position: static;
    margin-bottom: 22px;
  }

  .faq-floating-menu-card {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .faq-floating-menu-card strong {
    width: 100%;
    margin-bottom: 4px;
  }

  .faq-floating-menu-card a {
    margin: 0;
    padding: 8px 10px;
    background: #f8fbfd;
  }
}

@media (max-width: 720px) {
  .policy-card {
    padding: 22px;
  }
}

@media (max-width: 640px) {
    .daily-visitor-chart {
        gap: 8px;
    }

    .daily-visitor-bar-wrap {
        flex-basis: 30px;
    }
}

/* Consent & Policies page */

.policy-page-section {
  position: relative;
  padding-bottom: 64px;
}

.policy-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.policy-content {
  display: grid;
  gap: 24px;
}

.policy-content .policy-card {
  width: 100%;
}

.policy-card h2 {
  scroll-margin-top: 110px;
}

.policy-card h3 {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #334155;
  padding-left: 14px;
  border-left: 3px solid #cbd5e1;
}

.policy-card h3 + p {
  margin-top: 6px;
}

.policy-card ul {
  padding-left: 24px;
}

.policy-toc {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  margin: 24px 0 32px;
}

.policy-toc h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.policy-toc ul {
  columns: 2;
  column-gap: 32px;
  margin-bottom: 0;
}

.policy-toc li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.policy-toc a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.policy-toc a:hover {
  text-decoration: underline;
}

.policy-floating-menu {
  position: sticky;
  top: 110px;
}

.policy-floating-menu-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.policy-floating-menu-card strong {
  display: block;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  color: #17324d;
  font-weight: 900;
}

.policy-floating-menu-card a {
  display: block;
  color: #17324d;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 8px;
  border-radius: 9px;
}

.policy-floating-menu-card a:hover {
  background: #eff6ff;
}

.policy-hero .container {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 26px;
  max-width: 1180px;
}

.policy-hero h1,
.policy-hero p {
  grid-column: 2;
}

@media (max-width: 1180px) {
  .policy-hero .container {
    display: block;
    max-width: 980px;
  }

  .policy-hero h1,
  .policy-hero p {
    grid-column: auto;
  }
}

@media (max-width: 1180px) {
  .policy-layout {
    display: block;
  }

  .policy-floating-menu {
    position: static;
    margin-bottom: 22px;
  }

  .policy-floating-menu-card {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: none;
  }

  .policy-floating-menu-card strong {
    width: 100%;
    margin-bottom: 4px;
  }

  .policy-floating-menu-card a {
    margin: 0;
    padding: 8px 10px;
    background: #f8fbfd;
  }
}

@media (max-width: 720px) {
  .policy-toc ul {
    columns: 1;
  }
}
/* =========================================================
   PROBLEM-FIRST HOMEPAGE — 2026
   Premium motion, compassionate pathways, accessible fallbacks
   ========================================================= */

.problem-first-hero {
  min-height: 720px;
  padding: 5.25rem 2.5rem 6.5rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.95), rgba(255,255,255,0) 28%),
    radial-gradient(circle at 86% 18%, rgba(160,196,222,.58), rgba(160,196,222,0) 34%),
    linear-gradient(132deg, #edf6fb 0%, #dcecf6 48%, #c6dfea 100%);
  isolation: isolate;
}

.hero-shell {
  position: relative;
  z-index: 3;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}

.problem-first-hero .hero-content { max-width: 660px; }
.problem-first-hero .hero-eyebrow { margin-bottom: .7rem; }
.problem-first-hero .hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(3.25rem, 5.65vw, 5.75rem);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 1rem 0 1.35rem;
  text-wrap: balance;
}
.problem-first-hero .hero-title span {
  display: inline-block;
  color: var(--blue-dark);
  font-style: italic;
  font-weight: 400;
}
.problem-first-hero .hero-sub {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #36556c;
}
.hero-primary { box-shadow: 0 14px 30px rgba(26,42,56,.18); }
.problem-first-hero .hero-trust { gap: .8rem 1.35rem; }
.problem-first-hero .trust-item {
  padding: .5rem .75rem;
  border: 1px solid rgba(74,127,165,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(8px);
}
.trust-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
}

.hero-orb, .hero-swoop { position: absolute; pointer-events: none; }
.hero-orb { border-radius: 50%; filter: blur(2px); opacity: .65; }
.hero-orb-one { width: 280px; height: 280px; right: 5%; top: -90px; background: rgba(255,255,255,.55); }
.hero-orb-two { width: 190px; height: 190px; left: 38%; bottom: -100px; background: rgba(224,92,58,.12); }
.hero-swoop { left: -5%; right: -5%; height: 210px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero-swoop-back { bottom: -142px; background: rgba(255,255,255,.36); transform: rotate(-1.5deg); }
.hero-swoop-front { bottom: -172px; background: #fff; transform: rotate(1.2deg); }

.hero-care-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.care-visual-glow {
  position: absolute; inset: 8% 5% 5%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,.08) 64%);
  filter: blur(1px);
}
.care-card {
  position: relative; z-index: 3; background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(18px);
  box-shadow: 0 32px 90px rgba(44,95,130,.22); border-radius: 28px;
}
.care-card-main { width: min(410px, 90%); padding: 2.2rem; transform: rotate(-1.25deg); }
.care-card-kicker { color: var(--accent); font-size: .7rem; letter-spacing: .16em; font-weight: 900; margin-bottom: .75rem; }
.care-question { font-family: 'DM Serif Display', Georgia, serif; color: var(--text-dark); font-size: 2rem; line-height: 1.15; margin-bottom: 1.7rem; }
.care-path { display: grid; gap: .5rem; }
.care-path-step { display: flex; align-items: center; gap: .85rem; color: #24465e; font-size: .9rem; }
.care-path-step span { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-dark); color: #fff; font-weight: 800; }
.care-path-line { width: 2px; height: 15px; margin-left: 16px; background: linear-gradient(var(--blue-mid), transparent); }
.care-note { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid #d9e8f1; color: #506b7e; font-size: .83rem; font-weight: 700; }
.care-heart { color: var(--accent); margin-right: .35rem; }
.care-float-card {
  position: absolute; z-index: 4; min-width: 175px; padding: .9rem 1rem;
  border-radius: 16px; background: rgba(255,255,255,.93); border: 1px solid rgba(200,223,240,.8);
  box-shadow: 0 16px 40px rgba(44,95,130,.16); line-height: 1.15;
}
.care-float-card span { display: block; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: .6rem; font-weight: 900; margin-bottom: .25rem; }
.care-float-card strong { color: var(--text-dark); font-size: .82rem; }
.care-float-one { top: 10%; right: -2%; animation: careFloat 5.5s ease-in-out infinite; }
.care-float-two { bottom: 10%; left: -2%; animation: careFloat 6s ease-in-out .7s infinite; }
.care-float-three { bottom: 1%; right: 3%; animation: careFloat 5.2s ease-in-out 1.4s infinite; }

.problem-pathways { position: relative; z-index: 5; background: #fff; padding-top: 4.5rem; }
.pathways-intro { max-width: 760px; margin: 0 auto; }
.problem-grid {
  max-width: 1120px; margin: 3rem auto 0; display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.15rem;
}
.problem-card {
  appearance: none; position: relative; min-height: 250px; padding: 1.65rem;
  border: 1px solid #d9e9f3; border-radius: 22px; background: linear-gradient(145deg,#fff,#f4f9fc);
  display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; text-align: left;
  cursor: pointer; overflow: hidden; box-shadow: 0 12px 32px rgba(44,95,130,.08);
  transition: transform .35s cubic-bezier(.2,.75,.25,1), box-shadow .35s ease, border-color .35s ease;
}
.problem-card::after {
  content: ''; position: absolute; inset: auto -70px -90px auto; width: 190px; height: 190px;
  border-radius: 50%; background: radial-gradient(circle, rgba(160,196,222,.34), rgba(160,196,222,0) 70%);
  transition: transform .45s ease;
}
.problem-card:hover, .problem-card:focus-visible {
  transform: translateY(-7px); box-shadow: 0 24px 55px rgba(44,95,130,.16); border-color: #9fc6dc; outline: none;
}
.problem-card:hover::after { transform: scale(1.25); }
.problem-card-wide { grid-column: 1 / -1; min-height: 220px; background: linear-gradient(115deg,#f8fcff 0%,#e8f4fa 65%,#fff 100%); }
.problem-card-number { position: absolute; right: 1.25rem; top: 1rem; color: rgba(44,95,130,.13); font-family: 'DM Serif Display',serif; font-size: 3rem; line-height: 1; }
.problem-icon-wrap {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: var(--blue-dark); color: #fff; font-size: 1.65rem; box-shadow: 0 12px 24px rgba(44,95,130,.22);
  transition: transform .35s ease, background .35s ease;
}
.problem-card:hover .problem-icon-wrap { transform: rotate(-6deg) scale(1.06); background: var(--accent); }
.problem-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.problem-title { color: var(--text-dark); font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(1.45rem,2vw,1.9rem); line-height: 1.2; padding-right: 2.8rem; }
.problem-desc { color: #526c7f; line-height: 1.65; margin-top: .75rem; max-width: 610px; }
.problem-link { margin-top: auto; padding-top: 1.15rem; color: var(--blue-dark); font-weight: 800; font-size: .85rem; letter-spacing: .02em; }
.problem-link span { display: inline-block; transition: transform .25s ease; }
.problem-card:hover .problem-link span { transform: translateX(5px); }

.not-sure-card {
  max-width: 1120px; margin: 1.25rem auto 0; padding: 1.5rem 1.7rem;
  border-radius: 22px; background: var(--text-dark); color: #fff; display: grid;
  grid-template-columns: 58px 1fr auto; align-items: center; gap: 1.25rem;
  box-shadow: 0 24px 55px rgba(26,42,56,.18);
}
.not-sure-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: 'DM Serif Display',serif; font-size: 1.65rem; }
.not-sure-kicker { color: #a9cee2; text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; font-weight: 900; }
.not-sure-card h3 { margin: .25rem 0 .35rem; color: #fff; font-family: 'DM Serif Display',serif; font-size: 1.35rem; }
.not-sure-card p { margin: 0; color: rgba(255,255,255,.68); font-size: .86rem; line-height: 1.55; }
.not-sure-card .btn-primary { margin: 0; background: #fff; color: var(--text-dark); white-space: nowrap; }
.not-sure-card .btn-primary:hover { background: var(--accent); color: #fff; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .72s ease, transform .72s cubic-bezier(.2,.75,.25,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.problem-card.reveal:nth-child(2) { transition-delay: .06s; }
.problem-card.reveal:nth-child(3) { transition-delay: .12s; }
.problem-card.reveal:nth-child(4) { transition-delay: .18s; }
.problem-card.reveal:nth-child(5) { transition-delay: .24s; }
.problem-card.reveal:nth-child(6) { transition-delay: .30s; }
.reveal-on-load { animation: premiumSwoopIn .9s cubic-bezier(.2,.75,.25,1) both; }
.hero-care-visual.reveal-on-load { animation-delay: .18s; }

@keyframes premiumSwoopIn { from { opacity: 0; transform: translateY(34px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes careFloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(.6deg); } }

@media (max-width: 980px) {
  .problem-first-hero { min-height: auto; padding-top: 4.25rem; }
  .hero-shell { grid-template-columns: 1fr; gap: 2.5rem; }
  .problem-first-hero .hero-content { max-width: 760px; }
  .hero-care-visual { min-height: 430px; }
  .care-float-one { right: 6%; }
  .care-float-two { left: 5%; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card-wide { grid-column: auto; }
}

@media (max-width: 700px) {
  .problem-first-hero { padding: 3.4rem 1.15rem 5.5rem; }
  .problem-first-hero .hero-title { font-size: clamp(2.7rem, 13vw, 4rem); }
  .problem-first-hero .hero-sub { font-size: 1rem; }
  .hero-care-visual { min-height: 390px; margin: 0 -.25rem; }
  .care-card-main { padding: 1.5rem; width: 94%; }
  .care-question { font-size: 1.55rem; }
  .care-float-card { min-width: 145px; padding: .7rem .8rem; }
  .care-float-one { top: 2%; right: -1%; }
  .care-float-two { bottom: 3%; left: -1%; }
  .care-float-three { display: none; }
  .problem-pathways { padding-left: 1rem; padding-right: 1rem; }
  .problem-card { min-height: 0; grid-template-columns: 50px 1fr; padding: 1.25rem; }
  .problem-icon-wrap { width: 48px; height: 48px; border-radius: 15px; font-size: 1.3rem; }
  .problem-title { padding-right: 1.8rem; font-size: 1.38rem; }
  .problem-card-number { font-size: 2.35rem; }
  .not-sure-card { grid-template-columns: 48px 1fr; }
  .not-sure-card .btn-primary { grid-column: 1 / -1; width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-on-load { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .care-float-card { animation: none !important; }
  .problem-card, .problem-icon-wrap, .problem-link span { transition: none !important; }
}

/* Guided question-and-recommendation cards */
.problem-guide-shell { max-width: 1120px; margin: 3rem auto 0; }
.problem-guide-shell .problem-grid { margin-top: 0; }
.guided-card {
  min-height: 500px; overflow: hidden; border: 1px solid #cfe2ed; border-radius: 30px;
  background: radial-gradient(circle at 100% 0, rgba(160,196,222,.30), transparent 35%), linear-gradient(145deg,#ffffff,#f3f9fc);
  box-shadow: 0 30px 80px rgba(44,95,130,.15); animation: guidedSwoop .48s cubic-bezier(.2,.75,.25,1) both;
}
.guided-card[hidden], .problem-guide-home[hidden] { display: none !important; }
.guided-card-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1.1rem 1.35rem; border-bottom: 1px solid rgba(160,196,222,.45); background: rgba(255,255,255,.66); backdrop-filter: blur(10px); }
.guided-back, .guided-close { border: 0; background: transparent; color: var(--blue-dark); cursor: pointer; font: inherit; font-weight: 800; }
.guided-back { justify-self: start; }
.guided-close { justify-self: end; font-size: 1.65rem; line-height: 1; }
.guided-progress { color: #68869a; font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 900; }
.guided-card-body { max-width: 900px; margin: 0 auto; padding: clamp(2rem,5vw,4.5rem); }
.guided-kicker { color: var(--accent); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 900; margin-bottom: .75rem; }
.guided-question { margin: 0 0 2rem; color: var(--text-dark); font-family: 'DM Serif Display',Georgia,serif; font-size: clamp(2rem,4vw,3.35rem); line-height: 1.08; }
.guided-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.guided-option { min-height: 88px; border: 1px solid #d5e6ef; border-radius: 17px; background: rgba(255,255,255,.88); color: #24465e; padding: 1.15rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; cursor: pointer; font: inherit; font-weight: 800; box-shadow: 0 8px 22px rgba(44,95,130,.06); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease; }
.guided-option b { color: var(--accent); font-size: 1.35rem; transition: transform .22s ease; }
.guided-option:hover, .guided-option:focus-visible { transform: translateY(-3px); border-color: #8fb9d0; box-shadow: 0 16px 32px rgba(44,95,130,.12); background: #fff; outline: none; }
.guided-option:hover b { transform: translateX(4px); }
.guided-disclaimer { margin: 1.6rem 0 0; color: #6c8495; font-size: .79rem; line-height: 1.55; }
.guided-results { display: grid; gap: 1rem; }
.guided-result-card { display: grid; grid-template-columns: 1fr auto; gap: 1.4rem; align-items: center; padding: 1.35rem; border: 1px solid #d8e8f1; border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: 0 12px 30px rgba(44,95,130,.07); }
.guided-result-primary { border-color: #91bbd2; box-shadow: 0 18px 42px rgba(44,95,130,.13); }
.guided-result-label { color: var(--accent); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 900; }
.guided-result-card h4 { margin: .28rem 0 .35rem; color: var(--text-dark); font-family: 'DM Serif Display',Georgia,serif; font-size: 1.45rem; }
.guided-result-card p { margin: 0; color: #587184; line-height: 1.55; font-size: .88rem; }
.guided-result-action { min-width: 145px; display: grid; gap: .55rem; text-align: center; }
.guided-result-action strong { color: var(--blue-dark); font-family: 'DM Serif Display',Georgia,serif; font-size: 1.75rem; }
.guided-view-all, .guided-restart { border: 0; background: transparent; color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; }
.guided-clinical-note { margin-top: 1.2rem; padding: 1rem 1.1rem; border-left: 4px solid var(--blue-mid); border-radius: 0 12px 12px 0; background: rgba(221,234,245,.72); color: #405f74; line-height: 1.55; font-size: .86rem; }
.guided-restart { margin-top: 1.15rem; }
.guided-empty { padding: 1.4rem; border-radius: 18px; background: #fff; border: 1px solid #d8e8f1; }
@keyframes guidedSwoop { from { opacity: 0; transform: translateX(24px) scale(.99); } to { opacity: 1; transform: translateX(0) scale(1); } }
@media (max-width: 720px) {
  .guided-card { min-height: 0; border-radius: 22px; }
  .guided-card-topbar { padding: .9rem 1rem; }
  .guided-card-body { padding: 2rem 1.1rem; }
  .guided-options { grid-template-columns: 1fr; }
  .guided-option { min-height: 72px; }
  .guided-result-card { grid-template-columns: 1fr; }
  .guided-result-action { min-width: 0; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .guided-card { animation: none !important; } }
