/* ============================================================
   AMERICAN CARRY RIGHTS — Main Stylesheet v10
   Mobile-first. Pixel-perfect to approved mockup.
   Desktop: full-width header/hero, centred content column.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #f0f2f5;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; -webkit-appearance: none; border: none; }

/* ============================================================
   TOP BAR — Red strip, flag, title, countdown
   ============================================================ */
.topbar {
  background: #cc0000;
  width: 100%;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  width: 100%;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.topbar-flag {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.topbar-title {
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.3;
  text-transform: uppercase;
}
/* Countdown */
.topbar-clock {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 6px;
}
.clock-box {
  background: #990000;
  border-radius: 4px;
  padding: 3px 5px 2px;
  text-align: center;
  min-width: 32px;
}
.clock-num {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
}
.clock-sub {
  display: block;
  color: #ffbbbb;
  font-size: 7px;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  margin-top: 1px;
}
.clock-sep {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

/* ============================================================
   HEADER — White bg, logo, tricolor stripe, tagline
   ============================================================ */
.header {
  background: #fff;
  width: 100%;
}
.header-inner {
  padding: 6px 16px 4px;
  text-align: center;
}
.header-logo {
  max-height: 52px;
  width: auto;
  margin: 0 auto 4px;
}
/* Tricolor stripe — single div, CSS gradient, no gaps, full width */
.tricolor {
  height: 4px;
  width: 100%;
  display: block;
  background: linear-gradient(to right,
    #cc0000 0%, #cc0000 33.33%,
    #d0d0d0 33.33%, #d0d0d0 66.66%,
    #0a2463 66.66%, #0a2463 100%
  );
  margin: 0 0 4px 0;
}
.header-tagline {
  font-size: 10px;
  color: #999;
  font-style: italic;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

/* ============================================================
   HERO BANNER — Full-width, navy + American flag bg
   Flag is very dark/muted — deep navy overlay ~80% opacity
   so flag is barely a subtle texture, not vivid
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  background-color: #060f2e;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* Very dark navy overlay — flag barely visible as subtle texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 38, 0.95);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 14px 20px 10px;
  text-align: center;
  color: #fff;
}
.hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #f0c040;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-h1 {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.22;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.hero-chevron {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-top: 0;
  padding-bottom: 2px;
}
.hero-sm .hero-inner { padding: 8px 20px 6px; }
.hero-sm .hero-h1    { font-size: 18px; }

/* ============================================================
   SECTION BACKGROUND — Light grey, holds progress + card
   ============================================================ */
.section-bg {
  background: #f0f2f5;
  width: 100%;
  /* Push footer below 844px fold: topbar=41 + header=87 + hero=121 = 249px above; need 844-249=595px min */
  min-height: 595px;
  display: flex;
  flex-direction: column;
}
.section-inner {
  padding: 6px 12px 10px;
  max-width: 520px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   PROGRESS BAR — Dot-line style, red active, grey inactive
   ============================================================ */
.pbar-wrap {
  position: relative;
  padding: 3px 0 2px;
  margin-bottom: 4px;
}
/* The grey connecting line */
.pbar-track {
  position: absolute;
  top: 10px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: #d0d0d0;
  border-radius: 2px;
  z-index: 0;
}
.pbar-fill {
  height: 100%;
  background: #cc0000;
  border-radius: 2px;
  transition: width 0.4s ease;
  min-width: 0;
}
.pbar-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.pbar-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}
.pbar-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  font-weight: 800;
}
.pbar-step.active .pbar-dot {
  background: #cc0000;
  box-shadow: 0 0 0 4px rgba(204,0,0,0.18);
}
.pbar-step.done .pbar-dot { background: #cc0000; }
.pbar-lbl {
  font-size: 9px;
  font-weight: 700;
  color: #bbb;
  /* Title case — NOT uppercase */
  letter-spacing: 0.3px;
}
.pbar-step.active .pbar-lbl { color: #cc0000; }
.pbar-step.done   .pbar-lbl { color: #cc0000; }

/* ============================================================
   CARD WITH FLOATING SEAL
   ============================================================ */
.card-outer {
  position: relative;
  margin-top: 40px;
}
.seal-wrap {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.seal-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 16px 20px;
  box-shadow: 0 3px 18px rgba(0,0,0,0.13);
  border: 1px solid #e4e8ef;
}
.card-title {
  font-size: 18px;
  font-weight: 900;
  color: #0a2463;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 14px;
}
.card-sub {
  font-size: 13px;
  color: #666;
  text-align: center;
  line-height: 1.55;
  margin-bottom: 12px;
}

/* ============================================================
   ZIP INPUT
   ============================================================ */
.zip-field {
  display: block;
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  color: #555;
  background: #fff;
  border: 2px dashed #cc0000;
  border-radius: 7px;
  margin-bottom: 10px;
  outline: none;
  -webkit-appearance: none;
}
.zip-field:focus { border: 2px solid #0a2463; }
.zip-err {
  color: #cc0000;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-green {
  display: block;
  width: 100%;
  background: #28a745;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  padding: 14px 10px;
  border-radius: 7px;
  border: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  -webkit-appearance: none;
  white-space: nowrap;
}
.btn-green:hover { background: #218838; }
.btn-link { display: block; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust {
  margin-top: 14px;
  text-align: center;
}
.trust-secure {
  font-size: 11px;
  color: #777;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
/* Individual badge row — no composite image, each badge natural size */
.trust-badges {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 0 4px;
}
.trust-badge-item {
  height: 26px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 1;
  max-width: 68px;
}
.trust-social {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 0 0 4px;
  overflow: visible;
  width: 100%;
}
.trust-avatars {
  width: 84px;
  height: 84px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  min-width: 84px;
}
.trust-text {
  text-align: left;
  line-height: 1.35;
}
.trust-count {
  font-size: 15px;
  font-weight: 800;
  color: #111;
}
.trust-sub {
  font-size: 12px;
  color: #333;
}
.trust-stars {
  color: #f5a623;
  font-size: 16px;
  letter-spacing: 2px;
  margin-top: 2px;
}

/* ============================================================
   TICK CIRCLE (approved/apply pages)
   ============================================================ */
.tick-circle {
  width: 60px;
  height: 60px;
  background: #28a745;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* ============================================================
   QUIZ CARD
   ============================================================ */
.quiz-meta {
  font-size: 12px;
  color: #999;
  font-weight: 600;
  margin-bottom: 6px;
}
.quiz-pbar {
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  margin-bottom: 16px;
  overflow: hidden;
}
.quiz-pfill {
  height: 100%;
  background: #cc0000;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.quiz-q {
  font-size: 15px;
  font-weight: 600;
  color: #0a2463;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}
.quiz-btns {
  display: flex;
  gap: 10px;
}
.btn-true, .btn-false {
  flex: 1;
  padding: 12px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}
.btn-true  { background: #28a745; color: #fff; }
.btn-false { background: #cc0000; color: #fff; }

/* ============================================================
   BENEFITS LIST (apply page)
   ============================================================ */
.benefits {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: left;
}
.ben {
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ben-icon { font-size: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 20px 16px;
  margin-top: 0;
}
.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #ccc;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; }
.footer-copy {
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}
.footer-disc {
  font-size: 10px;
  color: #666;
  line-height: 1.6;
}

/* ============================================================
   INNER PAGES (contact, faq, etc.)
   ============================================================ */
.page-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}
.page-content h1 {
  font-size: 22px;
  color: #0a2463;
  margin-bottom: 16px;
}
.page-content h2 {
  font-size: 17px;
  color: #0a2463;
  margin: 20px 0 8px;
}
.page-content p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 12px;
}
.page-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.page-content li {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 4px;
}

/* ============================================================
   DESKTOP (768px+)
   Full-width topbar/header/hero. Centred content column.
   ============================================================ */
@media (min-width: 768px) {
  .topbar-title { font-size: 12px; }
  .clock-num    { font-size: 20px; }
  .clock-box    { min-width: 44px; padding: 5px 10px 4px; }

  .header-logo  { max-height: 70px; }
  .header-inner { padding: 12px 24px 8px; }

  .hero-eyebrow { font-size: 12px; letter-spacing: 3px; }
  .hero-h1      { font-size: 32px; }
  .hero-inner   { padding: 24px 40px 18px; max-width: 800px; margin: 0 auto; }

  .section-inner { max-width: 560px; padding: 12px 20px 20px; }

  .card-title   { font-size: 20px; }
  .btn-green    { font-size: 16px; padding: 15px 12px; }
  .zip-field    { font-size: 16px; padding: 13px 16px; }

  .trust-badge-item { height: 34px; }
  .trust-badges     { gap: 10px; }
  .trust-avatars    { width: 100px; height: 100px; }
  .trust-count      { font-size: 17px; }
  .trust-sub        { font-size: 13px; }
  .trust-stars      { font-size: 20px; }

  .footer { padding: 28px 24px; }
  .footer-nav a { font-size: 13px; }
}
