/* Font imports - Cabinet Grotesk and Satoshi fonts */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@100,200,300,400,500,700,800,900&f[]=satoshi@300,400,500,700,900&display=swap');

:root{
  --ic-primary:#0b8b9e;
  --ic-primary-2:#067a8a;
  --ic-ink:#1a2b3b;
  --ic-muted:#6c7a89;
  --ic-bg:#f4fbfd;
  --ic-card:#ffffff;
  --ic-border:rgba(14, 148, 170, .18);
  --bs-primary: var(--ic-primary);
  --bs-primary-rgb: 18, 183, 207;
}

a{color: var(--ic-primary); text-decoration:none}
a:hover{color: var(--ic-primary-2)}

:focus-visible {
  outline: 3px solid var(--ic-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible,
.btn-ic:focus-visible,
.nav-link:focus-visible,
.theme-toggle-btn:focus-visible,
.ic-mobile-nav-link:focus-visible {
  outline: 3px solid var(--ic-primary) !important;
  outline-offset: 3px;
  border-radius: 8px;
}
.cta .btn:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px;
  border-radius: 8px;
}
a:focus-visible {
  outline: 3px solid var(--ic-primary);
  outline-offset: 2px;
  border-radius: 2px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ic-primary);
  outline-offset: 1px;
}

.navbar{
  border-bottom:1px solid rgba(0,0,0,.06);
}
.logo-img{
  height:72px;
  width:auto;
}
.text-right{
  text-align: right;
}
@media (max-width: 768px){
  .logo-img{height:58px;}
   .carousel-control-prev{
    left:0!important;
  }
  .carousel-control-next{
    right:0!important;
  }
}

/* Hero - Reduced spacing */
.hero{
  background: radial-gradient(1200px 600px at 20% 50%, rgba(18,183,207,.16) 0%, rgba(18,183,207,.06) 40%, rgba(255,255,255,0) 70%),
              linear-gradient(180deg, var(--ic-bg) 0%, #ffffff 100%);
  /* padding: 20px 0 20px; */
}
.hero h1{
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.07;
}
.hero h1 .accent{color: var(--ic-primary);}
.hero p{
  color: var(--ic-muted);
  font-size: 1.02rem;
  max-width: 560px;
}
.btn-ic{
  background: linear-gradient(180deg, var(--ic-primary) 0%, var(--ic-primary-2) 100%);
  border: none;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(18,183,207,.22);
}
.btn-ic:hover{filter:brightness(.97); color:#fff;}
.hero-illustration{
  position: relative;
}
.hero-illustration .glass{
  position:absolute;
  inset: -20px -20px -20px -20px;
  background: radial-gradient(420px 420px at 45% 55%, rgba(18,183,207,.22) 0%, rgba(18,183,207,.10) 35%, rgba(255,255,255,0) 65%);
  border-radius: 999px;
  filter: blur(0px);
  pointer-events:none;
}
.hero-illustration img{
  width: 100%;
  max-width: 320px;
  display:block;
  margin-left:auto;
}

/* Sections */
.section{
  padding: 56px 0;
}
.section-title{
  font-weight: 800;
  text-align:center;
  margin-bottom: 10px;
}
.section-sub{
  text-align:center;
  color: var(--ic-muted);
  margin-bottom: 28px;
}

.card-soft{
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 16px;
  background: var(--ic-card);
  box-shadow: 0 10px 28px rgba(15, 90, 110, .06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-soft:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 36px rgba(18,183,207,0.25), 0 0 15px rgba(18,183,207,0.1);
  border-color: rgba(18,183,207,0.2);
  background: linear-gradient(135deg, var(--ic-card) 0%, rgba(18,183,207,0.03) 100%);
}
.icon-pill{
  width:44px; height:44px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(18,183,207,.10);
  border: 1px solid var(--ic-border);
}
.icon-pill svg{width:22px;height:22px;color:var(--ic-primary);}

.category-card{
  height:100%;
  padding: 18px 16px;
}
a:has(> .card-soft):focus-visible,
a:has(> .card-soft):focus,
section a[href*="category_id"]:focus-visible,
section a[href*="category_id"]:focus,
a:has(> .category-card):focus {
  outline: 3px solid var(--ic-primary) !important;
  outline-offset: 3px;
  border-radius: 18px;
  box-shadow: 0 0 0 6px rgba(11,139,158,0.25);
  display: block;
}
.category-card h6{
  margin: 10px 0 6px;
  font-weight: 800;
}
.category-card p{
  margin:0;
  color: var(--ic-muted);
  font-size: .9rem;
}

.test-card{
  padding: 16px;
  height:100%;
}
.test-card h6{font-weight:800; margin: 10px 0 6px;}
.test-card p{color: var(--ic-muted); margin:0 0 8px; font-size:.9rem;}
.badge-price{
  background: rgba(18,183,207,.12);
  color: var(--ic-primary-2);
  border: 1px solid var(--ic-border);
  font-weight: 800;
}
.link-arrow{
  font-weight: 700;
}
.link-arrow:after{
  content:"→";
  margin-left: 6px;
}

.hiw-step{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom: 18px;
}
.hiw-step .num{
  width:34px;height:34px;
  border-radius: 999px;
  background: rgba(18,183,207,.16);
  border: 1px solid var(--ic-border);
  display:flex;align-items:center;justify-content:center;
  color: var(--ic-primary-2);
  font-weight: 900;
}
.hiw-step h6{margin:2px 0 4px; font-weight: 900;}
.hiw-step p{margin:0; color: var(--ic-muted); font-size:.92rem;}

.cta{
  background: linear-gradient(90deg, var(--ic-primary-2) 0%, var(--ic-primary) 55%, #2fd0e6 100%);
  color:#fff;
  border-radius: 20px;
  padding: 34px 26px;
  box-shadow: 0 18px 40px rgba(18,183,207,.25);
}
.cta .btn{
  background: #ffffff;
  color: var(--ic-primary-2);
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 18px;
  border:none;
}
.cta .btn:hover{filter:brightness(.98); color: var(--ic-primary-2);}

.trust{
  background: #f7fbfd;
  /* border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05); */
}
.trust-item{
  display:flex; gap:10px; align-items:flex-start;
  padding: 14px 10px;
}
.trust-item h6{margin:0; font-weight: 900; font-size: .98rem;}
.trust-item p{margin:2px 0 0; color: var(--ic-muted); font-size: .86rem;}
.trust-icon{
  width:38px; height:38px;
  border-radius: 12px;
  background: rgba(18,183,207,.10);
  border: 1px solid var(--ic-border);
  display:flex; align-items:center; justify-content:center;
}
.trust-icon svg{width:20px;height:20px;color: var(--ic-primary);}

body{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto; /* Let body grow with content so footer stays below long lists */
  font-family: 'Cabinet Grotesk', 'Satoshi', 'Inter', system-ui, sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.orders-page{ min-height: 50vh; } /* Enough when empty; section grows with list */

.site-footer{
  background:#0d2433;
  color: rgba(255,255,255,.8);
  margin-top: auto; /* Push the footer to the bottom */
  width: 100%;
}
.site-footer h6{
  color:#fff;
  font-weight: 900;
  margin-bottom: 14px;
}
.site-footer a{color: rgba(255,255,255,.78);}
.site-footer a:hover{color:#fff;}
.footer-brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.footer-brand img{height:44px;}
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 22px;
  padding-top: 16px;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
}

/* Stripe split-field card layout */
.sc-field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-field-row {
  display: flex;
  gap: 10px;
}
.sc-field-row .sc-field {
  flex: 1;
  min-width: 0;
}
.sc-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body.dark-mode .sc-field-label {
  color: #94a3b8;
}
.sc-input {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sc-input:focus-within {
  border-color: var(--ic-primary);
  box-shadow: 0 0 0 3px rgba(18, 183, 207, 0.15);
}
body.dark-mode .sc-input {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(51, 65, 85, 0.5);
}
body.dark-mode .sc-input:focus-within {
  border-color: var(--ic-primary);
  box-shadow: 0 0 0 3px rgba(18, 183, 207, 0.15);
}

/* Forms */
.auth-wrap{
  background: var(--ic-bg);
}
.auth-card{
  max-width: 520px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 18px;
}
.form-control, .form-select{
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.10);
  font-family: var(--pf-font-body);
  font-size: 0.8rem;
}
.form-control:focus, .form-select:focus{
  border-color: rgba(18,183,207,.55);
  box-shadow: 0 0 0 .25rem rgba(18,183,207,.15);
}

.text-ic{
  color: var(--ic-primary) !important;
}
.bg-ic-gradient{
  background: linear-gradient(180deg, var(--ic-primary) 0%, var(--ic-primary-2) 100%);
  color: #fff;
}

/* Override Bootstrap primary buttons to match site theme */
.btn-primary {
  background-color: var(--ic-primary) !important;
  border-color: var(--ic-primary) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--ic-primary-2) !important;
  border-color: var(--ic-primary-2) !important;
}
.btn-outline-primary {
  color: var(--ic-primary);
  border-color: var(--ic-primary);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--ic-primary);
  border-color: var(--ic-primary);
}

/* Form elements */
.form-check-input {
  accent-color: var(--ic-primary);
  width: 1.2em;
  height: 1.2em;
  border: 2px solid #94a3b8;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.form-check-input:checked {
  background-color: var(--ic-primary);
  border-color: var(--ic-primary);
  box-shadow: 0 0 0 3px rgba(18, 183, 207, 0.25);
}
.form-check-input:focus-visible {
  outline: 3px solid var(--ic-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(11, 139, 158, 0.35);
}
body.dark-mode .form-check-input {
  border-color: #475569;
  background-color: transparent;
}
body.dark-mode .form-check-input:checked {
  background-color: var(--ic-primary);
  border-color: var(--ic-primary);
  box-shadow: 0 0 0 3px rgba(18, 183, 207, 0.3);
}
.section-key-service,
.section-how-it-works{
  padding-bottom: 4em;
  background: #f7fbfd;
  border-top: 1px solid rgba(0, 0, 0, .05);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.section-how-it-works{
  margin-bottom:0;
}
section.section-pop-test{
  padding-top: 4em !important;
}
.carousel-control-next-icon, .carousel-control-prev-icon{
  background-size: 16px;
  filter: invert(1);
}
.carousel-indicators [data-bs-target]{
  background-color: #0fb3cb !important;
}

ul.ic-pagination{
  color: #0aabc4;
}
ul.ic-pagination a.page-link{
  color:inherit;
}
ul.ic-pagination .active>.page-link, 
ul.ic-pagination .page-link.active{
  color:#fff;
  background-color: #0aabc4;
}

/* Hero Slideshow */
.hero-slideshow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f4fbfd 0%, #e0f2f7 100%);
  min-height: 400px;
}
.hero-slide {
  display: none;
  min-height: 400px;
}
.hero-slide.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-slide-content {
  padding: 40px 0;
  min-height: 400px;
  display: flex;
  align-items: center;
}
.hero-slide-image {
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.hero-slide-title {
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--ic-ink);
}
.hero-slide-subtitle {
  font-size: 1.1rem;
  color: var(--ic-muted);
  margin-bottom: 24px;
}
.hero-slide-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(180deg, var(--ic-primary) 0%, var(--ic-primary-2) 100%);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-slide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18,183,207,.3);
  color: #fff;
}
.slideshow-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slideshow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid var(--ic-primary);
  cursor: pointer;
  transition: all 0.3s;
}
.slideshow-dot.active {
  background: var(--ic-primary);
  transform: scale(1.2);
}
.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s;
  z-index: 10;
}
.slideshow-arrow:hover {
  background: var(--ic-primary);
  color: #fff;
}
.slideshow-arrow.prev { left: 20px; }
.slideshow-arrow.next { right: 20px; }
@media (max-width: 768px) {
  .hero-slide-title { font-size: 1.8rem; }
  .hero-slide-image { height: 200px; }
  .hero-slide-content { padding: 20px 0; min-height: auto; }
  .slideshow-arrow { display: none; }
}

/* Address Confirmation Modal */
.address-confirmation {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.address-confirmation h6 {
  color: var(--ic-ink);
  font-weight: 700;
  margin-bottom: 12px;
}
.address-confirmation p {
  margin-bottom: 8px;
  color: var(--ic-muted);
}
.address-line {
  font-weight: 500;
  color: var(--ic-ink);
}

/* Checkout Steps */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}
.checkout-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}
.checkout-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}
.checkout-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 8px;
}
.checkout-step.active .checkout-step-number,
.checkout-step.completed .checkout-step-number {
  background: var(--ic-primary);
  color: #fff;
}
.checkout-step.completed .checkout-step-number::after {
  content: '✓';
}
.checkout-step-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}
.checkout-step.active .checkout-step-label {
  color: var(--ic-primary);
  font-weight: 700;
}

/* ID Upload */
.id-upload-zone {
  border: 2px dashed var(--ic-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #f8fbfd;
}
.id-upload-zone:hover {
  border-color: var(--ic-primary);
  background: rgba(18,183,207,.05);
}
.id-upload-zone.dragover {
  border-color: var(--ic-primary);
  background: rgba(18,183,207,.1);
}
.id-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--ic-primary);
}
.id-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 12px;
}
.id-extracted-info {
  background: #f0f7fa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}
.id-extracted-info h6 {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ic-primary);
}
.extracted-field {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}
.extracted-field:last-child {
  border-bottom: none;
}
.extracted-field-label {
  font-weight: 500;
  color: #666;
}
.extracted-field-value {
  font-weight: 600;
  color: var(--ic-ink);
}

/* Prescription Upload */
.prescription-upload-zone {
  border: 2px dashed var(--ic-border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #f8fbfd;
}
.prescription-upload-zone:hover {
  border-color: var(--ic-primary);
  background: rgba(18,183,207,.05);
}
.prescription-preview {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  margin-top: 16px;
}

/* Insurance Section */
.insurance-fields {
  background: #f8fbfd;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}
.insurance-provider-logo {
  height: 40px;
  margin-bottom: 16px;
}

/* Prescription Only Badge */
.prescription-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Admin Test Insurance Flag */
.test-insurance-flag {
  display: inline-block;
  background: #dc3545;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Order Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.insurance-pending { background: #cce5ff; color: #004085; }
.status-badge.processing { background: #d1ecf1; color: #0c5460; }
.status-badge.completed { background: #d4edda; color: #155724; }
.status-badge.cancelled { background: #f8d7da; color: #721c24; }
