:root {
  --navy: #0b2545;
  --navy-2: #123564;
  --blue: #1768ac;
  --blue-light: #eaf2fb;
  --gold: #d9a441;
  --gold-dark: #b3822a;
  --green: #1a7f4e;
  --green-light: #eafaf1;
  --red: #b3261e;
  --red-light: #fdecea;
  --gray-100: #f4f6f8;
  --gray-200: #eceff2;
  --gray-300: #dfe4ea;
  --gray-500: #6b7684;
  --gray-700: #333d47;
  --white: #ffffff;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 1px 3px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 4px 14px rgba(11, 37, 69, 0.08), 0 2px 4px rgba(11, 37, 69, 0.06);
  --shadow-lg: 0 12px 32px rgba(11, 37, 69, 0.14), 0 4px 10px rgba(11, 37, 69, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 660px; }

.test-banner {
  background: #fff3cd;
  color: #7a5b00;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 0 0 10px;
}

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--gray-300);
  padding: 18px 0;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.brand span { color: var(--blue); font-weight: 500; }
.brand small { font-size: 0.7rem; color: var(--gray-500); font-weight: 400; margin-left: 6px; font-family: var(--font-body); }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a:not(.header-phone) { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.header-nav a:not(.header-phone):hover { color: var(--blue); }
.header-phone {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

/* ---- Hero ---- */
.hero {
  padding: 72px 0 52px;
  text-align: center;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(23, 104, 172, 0.10), transparent),
    linear-gradient(180deg, var(--blue-light), var(--white));
}
.hero h1 { font-size: 2.5rem; color: var(--navy); margin: 0 0 20px; line-height: 1.18; }
.hero .lede { font-size: 1.12rem; max-width: 620px; margin: 0 auto 30px; color: var(--gray-700); }
.reassurance { font-size: 0.85rem; color: var(--gray-500); margin-top: 14px; }

.preview-hero {
  padding: 44px 0 26px;
  background: linear-gradient(180deg, var(--blue-light), var(--white));
  text-align: left;
}
.preview-hero h1 { font-size: 1.75rem; color: var(--navy); margin: 0 0 12px; line-height: 1.25; }
.preview-hero .lede { font-size: 1rem; margin: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-2); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-light); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-gold { background: linear-gradient(180deg, #e6b558, var(--gold)); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-gold:hover { box-shadow: var(--shadow-md); }
.btn-large { padding: 17px 38px; font-size: 1.15rem; }
.btn-block { display: block; width: 100%; margin-bottom: 12px; }

/* ---- How it works ---- */
.how-it-works { padding: 64px 0; }
.how-it-works h2 { text-align: center; color: var(--navy); margin-bottom: 44px; font-size: 1.7rem; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin: 0 auto 16px;
  font-family: var(--font-display);
  box-shadow: var(--shadow-sm);
}
.step h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--gray-500); }

.trust-strip { background: var(--gray-100); padding: 22px 0; }
.trust-strip p { font-size: 0.8rem; color: var(--gray-500); text-align: center; margin: 0; }

.site-footer { padding: 34px 0; text-align: center; font-size: 0.85rem; color: var(--gray-500); border-top: 1px solid var(--gray-200); margin-top: 20px; }

.intake-section { padding: 46px 0 80px; }
.intake-section h1 { color: var(--navy); font-size: 1.7rem; }
.lede { color: var(--gray-700); }

/* ---- Forms ---- */
.intake-form .field-group { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.92rem; color: var(--navy); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 104, 172, 0.15);
}
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-item { font-weight: 400; display: flex; align-items: center; gap: 6px; color: var(--gray-700); }
.checkbox-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 500; font-size: 0.95rem; color: var(--gray-700);
  background: var(--gray-100); padding: 16px 18px; border-radius: 10px; margin-bottom: 18px;
}
.checkbox-item input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.disclaimer-small { font-size: 0.78rem; color: var(--gray-500); text-align: center; margin-top: 14px; }
.disclosure-small { font-size: 0.72rem; color: var(--gray-500); margin: 10px 0 0; }
.form-error {
  background: var(--red-light); color: var(--red); padding: 14px 18px;
  border-radius: 10px; margin-bottom: 20px; font-size: 0.92rem; font-weight: 600;
}

/* ---- Status / urgency ---- */
.status-box { padding: 26px; border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.status-success { background: var(--green-light); border: 1px solid var(--green); }
.status-success h2 { color: var(--green); font-size: 1.25rem; margin-top: 0; font-family: var(--font-body); }
.status-warning { background: var(--red-light); border: 1px solid var(--red); }
.status-warning h2 { color: var(--red); font-size: 1.25rem; margin-top: 0; font-family: var(--font-body); }

.urgency-box { padding: 18px 22px; border-radius: 10px; margin-bottom: 24px; background: var(--gray-100); border: 1px solid var(--gray-300); }
.urgency-box.urgency-critical, .urgency-box.urgency-overdue { background: var(--red-light); border-color: #f0b8b3; }
.urgency-box.urgency-urgent { background: #fff6e5; border-color: #f0dba3; }
.urgency-box.urgency-normal { background: var(--blue-light); border-color: #bcd8f2; }

.paywall-box { background: var(--blue-light); border: 1px solid var(--blue); padding: 24px; border-radius: var(--radius); margin-bottom: 24px; }
.paywall-box h3 { color: var(--navy); margin-top: 0; }

.help-panel { background: var(--gray-100); padding: 26px; border-radius: var(--radius); margin-bottom: 24px; }
.help-panel h3 { color: var(--navy); margin-top: 0; font-size: 1.05rem; }

/* ---- Document preview cards (preview.php / confirm-send.php) ---- */
.doc-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.doc-card-head { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px 14px; }
.doc-icon { font-size: 1.6rem; line-height: 1; }
.doc-card-head h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.05rem; }
.doc-card-head p { margin: 0; font-size: 0.86rem; color: var(--gray-500); }

.doc-preview-wrap { position: relative; padding: 0 22px 22px; }
.doc-preview-text {
  background: var(--gray-100);
  padding: 18px 20px;
  border-radius: 10px;
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  font-size: 0.83rem;
  color: var(--gray-700);
  max-height: 230px;
  overflow: hidden;
  margin: 0;
}
.doc-preview-short .doc-preview-text { max-height: 140px; }
.doc-unlocked .doc-preview-text { max-height: none; overflow: visible; }
.doc-fade {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  height: 90px;
  background: linear-gradient(180deg, rgba(244,246,248,0), var(--gray-100) 75%);
  pointer-events: none;
}
.doc-unlocked .doc-fade { display: none; }
.doc-lock-ribbon {
  position: absolute;
  left: 50%; bottom: 34px; transform: translateX(-50%);
  background: var(--navy); color: var(--white);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.value-panel { background: var(--gray-100); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 26px; }
.value-panel h3 { color: var(--navy); margin: 0 0 8px; font-size: 1.05rem; }
.value-panel p { margin: 0; font-size: 0.94rem; color: var(--gray-700); }

/* ---- Pricing card ---- */
.pricing-card {
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin-bottom: 26px;
  background: linear-gradient(180deg, var(--white), var(--blue-light) 260%);
  box-shadow: var(--shadow-md);
}
.pricing-card-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pricing-card-top h3 { margin: 0; color: var(--navy); font-size: 1.15rem; max-width: 60%; }
.price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--navy); }
.price span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--gray-500); }
.pricing-list { list-style: none; margin: 0 0 22px; padding: 0; }
.pricing-list li {
  position: relative; padding-left: 28px; margin-bottom: 10px;
  font-size: 0.93rem; color: var(--gray-700);
}
.pricing-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}

.confirm-form { margin-bottom: 26px; }

/* ---- Interlock referral CTA ---- */
.interlock-cta {
  display: flex; gap: 18px; align-items: flex-start;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px 26px;
  margin: 30px 0;
  box-shadow: var(--shadow-md);
}
.interlock-cta-icon { font-size: 2rem; line-height: 1; }
.interlock-cta h3 { margin: 0 0 8px; color: var(--white); font-size: 1.1rem; }
.interlock-cta p { margin: 0 0 16px; font-size: 0.92rem; color: #d7e2f2; }
.interlock-cta .disclosure-small { color: #9fb3cd; }

.cross-sell-strip { text-align: center; padding: 18px 0; font-size: 0.9rem; color: var(--gray-500); }
.cross-sell-strip a { color: var(--blue); font-weight: 700; text-decoration: none; }
.cross-sell-strip a:hover { text-decoration: underline; }

/* ---- BAC / DUI school calculator ---- */
.calc-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}
.calc-field { margin-bottom: 20px; }
.calc-field label { margin-bottom: 8px; }
.calc-help { font-size: 0.82rem; color: var(--gray-500); margin-top: 6px; }
.calc-chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-chip {
  flex: 1 1 auto; min-width: 130px; text-align: center;
  border: 2px solid var(--gray-300); border-radius: 10px;
  padding: 12px 10px; cursor: pointer; font-weight: 600; font-size: 0.9rem;
  color: var(--gray-700); background: var(--white); transition: all 0.12s ease;
}
.calc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.calc-chip.is-active { border-color: var(--blue); background: var(--blue-light); color: var(--navy); }

.calc-result {
  border-radius: var(--radius);
  padding: 28px;
  background: var(--gray-100);
  display: none;
}
.calc-result.is-visible { display: block; }
.calc-result-headline { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); margin: 0 0 6px; }
.calc-result-sub { color: var(--gray-500); font-size: 0.92rem; margin: 0 0 20px; }
.calc-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 20px; }
.calc-stat { background: var(--white); border-radius: 10px; padding: 16px; text-align: center; box-shadow: var(--shadow-sm); }
.calc-stat-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); font-weight: 700; }
.calc-stat-label { font-size: 0.78rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.04em; }
.calc-citation { font-size: 0.78rem; color: var(--gray-500); border-top: 1px solid var(--gray-300); padding-top: 14px; margin-top: 4px; }

/* ---- Admin ---- */
.admin-section { padding: 30px 0 80px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-300); text-align: left; vertical-align: top; }
.admin-table th { background: var(--gray-100); color: var(--navy); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.badge-normal { background: var(--blue-light); color: var(--blue); }
.badge-urgent { background: #fff6e5; color: #8a6300; }
.badge-critical, .badge-overdue { background: var(--red-light); color: var(--red); }
.detail-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.detail-table th, .detail-table td { padding: 8px 10px; border-bottom: 1px solid var(--gray-300); text-align: left; }
.detail-table th { width: 200px; color: var(--navy); }
.doc-preview { background: var(--gray-100); padding: 16px; border-radius: 8px; white-space: pre-wrap; font-family: "Courier New", monospace; font-size: 0.85rem; }

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
  .interlock-cta { flex-direction: column; }
  .pricing-card-top h3 { max-width: 100%; }
  .site-header .container { flex-wrap: wrap; gap: 10px; }
}
