/* ============================================
   OrderLabTest.com — Global Styles
   Design ref: members.verticalidentity.com
   ============================================ */

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

:root {
  --red: #c41230;
  --red-hover: #a30f28;
  --navy: #1a1a2e;
  --body-text: #444444;
  --light-bg: #f7f8fa;
  --white: #ffffff;
  --border: #e0e0e0;
  --green: #28a745;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.header-logo a {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.2;
}
.header-logo .powered-by {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.3px;
}
.header-phone a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone a:hover { color: var(--red); }

/* mobile nav */
.mobile-nav {
  display: none;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  text-decoration: none;
}
.mobile-nav a.active { color: var(--red); border-bottom: 2px solid var(--red); }

/* ---- HERO ---- */
.hero {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 56px 20px 48px;
}
.hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero .subtitle {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.hero .price-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  padding: 8px 28px;
  border-radius: 40px;
  margin-bottom: 20px;
}
.hero .trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 24px;
}
.hero .trust-row span::before { content: "\2713 "; font-weight: 700; }
.btn-cta {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  min-height: 44px;
}
.btn-cta:hover { background: var(--red-hover); text-decoration: none; }

/* ---- CONTENT SECTIONS ---- */
.section { padding: 48px 20px; }
.section:nth-child(even) { background: var(--light-bg); }
.section-content { max-width: 800px; margin: 0 auto; }
.section-content p { margin-bottom: 1rem; }
.section-content ul { margin: 0 0 1rem 1.5rem; }
.section-content li { margin-bottom: 0.4rem; }

/* ---- TEST TYPE CARDS (homepage) ---- */
.test-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 32px auto 0;
}
.test-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--navy);
  min-height: 44px;
}
.test-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--red);
  text-decoration: none;
}
.test-card .card-name { font-weight: 700; font-size: 0.95rem; }
.test-card .card-price { font-weight: 800; color: var(--red); font-size: 1.1rem; white-space: nowrap; margin-left: 12px; }

/* ---- ICON CARDS (Why Online) ---- */
.icon-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.icon-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 20px;
}
.icon-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.icon-card h3 { margin-bottom: 8px; }
.icon-card p { font-size: 0.92rem; color: var(--body-text); }

/* ---- ORDER FORM ---- */
.form-section {
  padding: 48px 20px;
  background: var(--light-bg);
}
.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
}
.form-wrapper h2 { text-align: center; margin-bottom: 24px; }
.form-row { display: flex; gap: 12px; margin-bottom: 16px; }
.form-row.single { flex-direction: column; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.form-group input,
.form-group select {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  min-height: 44px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23444' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding-right: 36px;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196,18,48,0.1);
}
.form-group .error-msg {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 2px;
  display: none;
}
.form-group.has-error input,
.form-group.has-error select { border-color: var(--red); }
.form-group.has-error .error-msg { display: block; }

/* payment section */
.payment-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.payment-total {
  text-align: center;
  margin-bottom: 20px;
}
.payment-total .amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
}
.payment-total .label { font-size: 0.85rem; color: var(--body-text); }
#card-element {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 44px;
  margin-bottom: 16px;
}
.secure-badge {
  text-align: center;
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 16px;
}
.btn-submit {
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  min-height: 44px;
}
.btn-submit:hover { background: var(--red-hover); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-error-banner {
  background: #fef2f2;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

/* ---- CONFIRMATION ---- */
.confirmation {
  text-align: center;
  padding: 40px 20px;
  display: none;
}
.confirmation .check-icon {
  width: 72px;
  height: 72px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.4rem;
  color: var(--white);
}
.confirmation h2 { color: var(--green); text-transform: none; margin-bottom: 12px; }
.confirmation .details { font-size: 0.95rem; margin-bottom: 24px; line-height: 1.8; }
.confirmation .upsell {
  max-width: 500px;
  margin: 0 auto;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 24px;
  background: #fef8f8;
}
.confirmation .upsell h3 { color: var(--red); margin-bottom: 8px; }
.confirmation .upsell .btn-cta { margin-top: 12px; font-size: 0.95rem; padding: 12px 28px; }

/* ---- STEPS (What Happens Next) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  text-align: center;
  padding: 24px 16px;
}
.step .step-num {
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.9rem; }

/* ---- ADD-ON SERVICES ---- */
.addon-section { padding: 48px 20px; background: var(--white); }
.addon-section h2 { text-align: center; margin-bottom: 8px; }
.addon-subtitle { text-align: center; color: var(--body-text); margin-bottom: 32px; font-size: 1.05rem; }
.addon-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto 24px;
}
.addon-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.addon-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.addon-card .addon-icon { font-size: 2rem; margin-bottom: 8px; }
.addon-card h3 { font-size: 1rem; margin-bottom: 4px; }
.addon-card .addon-price { font-weight: 700; color: var(--red); font-size: 0.95rem; margin-bottom: 6px; }
.addon-card p { font-size: 0.82rem; color: var(--body-text); }
.addon-footer {
  text-align: center;
  font-style: italic;
  color: #888;
  font-size: 0.88rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ---- FAQ ---- */
.faq-section { padding: 48px 20px; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 40px 18px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--font);
  position: relative;
  min-height: 44px;
  line-height: 1.4;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after { content: "\2212"; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner { padding: 0 0 18px; font-size: 0.95rem; line-height: 1.7; }

/* ---- TRUST SECTION ---- */
.trust-section {
  padding: 48px 20px;
  background: var(--light-bg);
  text-align: center;
}
.trust-section h2 { margin-bottom: 12px; }
.trust-section p { max-width: 700px; margin: 0 auto 24px; }
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.trust-badges span::before { content: "\2713 "; color: var(--green); font-weight: 700; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 48px 20px 24px;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.8;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-powered { font-size: 0.82rem; margin-bottom: 16px; }
.footer-powered a { color: rgba(255,255,255,0.9); }
.footer-contact { margin-bottom: 16px; }
.footer-contact a { color: rgba(255,255,255,0.9); }
.footer-links { margin-bottom: 16px; }
.footer-links a {
  color: rgba(255,255,255,0.8);
  margin: 0 10px;
  font-size: 0.82rem;
}
.footer-links a:hover { color: var(--white); }
.footer-copyright { font-size: 0.78rem; opacity: 0.6; margin-bottom: 16px; }
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.78rem;
  opacity: 0.7;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { padding: 40px 16px 36px; }
  .hero h1 { font-size: 1.6rem; }
  .hero .price-badge { font-size: 1.3rem; padding: 6px 22px; }
  h2 { font-size: 1.25rem; }
  .form-row { flex-direction: column; gap: 0; }
  .form-row .form-group { margin-bottom: 16px; }
  .form-wrapper { padding: 24px 16px; }
  .test-cards { grid-template-columns: 1fr; }
  .icon-cards { grid-template-columns: 1fr; }
  .addon-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .mobile-nav { display: block; }
  .header-phone a { font-size: 0.95rem; }
  .section { padding: 36px 16px; }
}

@media (max-width: 480px) {
  .addon-cards { grid-template-columns: 1fr; }
  .hero .trust-row { flex-direction: column; gap: 6px; }
}
