:root {
  --navy: #2f4d70;
  --navy-dark: #1f3a5f;
  --stripe: #14233d;
  --blue-btn: #5b8bb5;
  --blue-btn-hover: #4f7ba3;
  --blue-accent: #2c6da3;
  --ink: #1d1d1d;
  --text: #2a2a2a;
  --gray-footer: #c9c9c9;
  --box-tint: #eef1f8;
  --card-tint: #f1f1f1;
  --border: #d8d8d8;
}

* { box-sizing: border-box; }

/* Ensure [hidden] always wins, even over display:flex/grid containers. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

a, button, .state-select, summary, .nav-link, .nav-btn {
  transition: background-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .12s ease, opacity .18s ease;
}

body {
  margin: 0;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

h1, h2, .brand-title, .band, .how-heading, summary {
  font-family: "Libre Baskerville", Georgia, serif;
}

/* ============ HEADER ============ */
.site-header { position: sticky; top: 0; z-index: 50; }

.header-inner {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 16px; }
.brand-emblem { width: 58px; height: 58px; color: #fff; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 30px; font-weight: 700; letter-spacing: .5px; line-height: 1.1; }
.brand-sub { font-size: 15px; margin-top: 4px; opacity: .95; }

.main-nav { display: flex; align-items: center; gap: 21px; }

.nav-btn {
  background: #fff;
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.nav-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.22); }

.nav-link {
  color: #fff;
  text-decoration: none;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  padding: 8px 3px;
}
.nav-link--boxed { border: 1px solid #8fa9c4; padding: 9px 15px; border-radius: 2px; }
.nav-link:hover, .nav-btn:hover { opacity: .9; }

.header-stripe { height: 16px; background: var(--stripe); }

/* ============ HERO ============ */
.hero {
  position: relative;
  text-align: center;
  padding: 70px 20px 90px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.92)),
    url("flag.svg") center top / cover no-repeat;
}
.hero-content { position: relative; max-width: 1000px; margin: 0 auto; }

.hero-title {
  font-size: 39px;
  color: var(--ink);
  margin: 8px 0 26px;
  font-weight: 700;
}
.hero-subtitle { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 30px; }

.apply-card {
  background: #fafafa;
  max-width: 645px;
  margin: 0 auto;
  padding: 42px;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(31,58,95,.14);
  border: 1px solid rgba(31,58,95,.06);
}

.select-wrap { position: relative; margin-bottom: 17px; }
.select-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 29px; height: 20px; color: #9aa7b5; pointer-events: none;
}
.chevron {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: #5a6b7d; pointer-events: none;
}
.state-select {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 17px 38px 17px 56px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  color: var(--blue-accent);
  cursor: pointer;
}
.state-select:focus { outline: 2px solid var(--blue-btn); outline-offset: 1px; }

.btn-primary {
  width: 100%;
  background: var(--blue-btn);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 17px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(91,139,181,.4);
}
.btn-primary:hover { background: var(--blue-btn-hover); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(79,123,163,.45); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(79,123,163,.4); }

/* ============ BANDS ============ */
.band {
  background: linear-gradient(180deg, var(--navy), var(--navy-dark));
  color: #fff;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 26px 20px;
}

/* ============ SECTIONS ============ */
.section { max-width: 1100px; margin: 0 auto; padding: 56px 40px; }

/* How it works */
.how-box {
  background: var(--box-tint);
  padding: 36px 48px;
  border-radius: 2px;
  max-width: 920px;
  margin: 0 auto 50px;
}
.how-heading { font-size: 30px; color: var(--ink); margin: 0 0 18px; }
.how-list { font-size: 24px; color: var(--ink); margin: 0; padding-left: 26px; }
.how-list li { margin: 14px 0; padding-left: 8px; }

.icon-row {
  display: flex;
  justify-content: center;
  gap: 90px;
  flex-wrap: wrap;
}
.icon-item { text-align: center; color: var(--blue-accent); }
.icon-item svg { width: 110px; height: 110px; }
.icon-item span {
  display: block;
  margin-top: 14px;
  font-size: 24px;
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
}

/* Prose */
.prose-section { max-width: 920px; }
.prose-section p { font-size: 19px; margin: 0 0 22px; line-height: 1.75; }
.tagline { text-align: center; font-size: 26px; font-weight: 700; color: var(--ink); margin-top: 36px !important; }

/* FAQ */
.faq-list {
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(31,58,95,.07);
}
.faq-item { border-bottom: 1px solid var(--border); padding: 6px 8px; }
.faq-item:last-child { border-bottom: none; }
.faq-item[open] { background: #fbfcfe; }
.faq-item summary:hover { color: var(--blue-accent); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--blue-accent);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  flex: none;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-body { padding: 0 24px 24px; font-size: 19px; color: #333; }

/* Disclaimer */
.disclaimer-section { padding-top: 30px; padding-bottom: 60px; }
.disclaimer-section p { font-size: 19px; color: #2a2a2a; max-width: 1100px; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--gray-footer);
  text-align: center;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.site-footer a { color: #2a2a2a; text-decoration: underline; font-size: 22px; }
.site-footer .divider { color: #6a6a6a; }

/* ============ APPLICATION FORM PAGE ============ */
.brand-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }

/* Scale the application page content down ~15% so it reads less zoomed-in. */
.form-hero, .form-wrap { zoom: 0.85; }

.form-hero {
  position: relative;
  text-align: center;
  padding: 56px 20px 64px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.95)),
    url("flag.svg") center top / cover no-repeat;
}
.form-hero-title { font-family: "Libre Baskerville", Georgia, serif; font-size: 40px; color: var(--ink); margin: 6px 0 18px; }
.form-hero-subtitle { font-size: 22px; color: #333; margin: 0; }

.form-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 40px 64px; }

.card {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 26px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(31,58,95,.05);
  overflow: hidden;
}
.card-head { background: #f4f5f7; border-bottom: 1px solid var(--border); padding: 20px 28px; }
.card-head h2 { font-size: 24px; color: var(--ink); margin: 0; }
.card-body { padding: 28px; }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-size: 18px; color: #2a2a2a; margin-bottom: 8px; }
.req { color: #c0392b; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.card-body input[type="text"],
.card-body input[type="email"],
.card-body input[type="tel"] {
  width: 100%;
  font-family: inherit;
  font-size: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.field input::placeholder, .member-inputs input::placeholder { color: #b3b3b3; }
.field input:focus, .member-inputs input:focus, .select-shell select:focus {
  outline: none;
  border-color: var(--blue-btn);
  box-shadow: 0 0 0 3px rgba(91,139,181,.18);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.select-shell { position: relative; }
.select-shell select {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  font-family: inherit;
  font-size: 18px;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.select-shell .sel-caret {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #5a6b7d; pointer-events: none;
}

.note {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  padding: 22px 28px;
  margin: -8px 0 26px;
}
.note p { color: var(--blue-accent); font-size: 18px; margin: 0 0 12px; }
.note p:last-child { margin-bottom: 0; }

/* radios & checkboxes */
.radio, .checkbox { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 18px; color: var(--ink); }
.radio input, .checkbox input { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; }
.radio.block { display: flex; margin-bottom: 14px; }
.radio-group { display: inline-flex; gap: 28px; }
.entity-type { margin: 6px 0 22px; }

.inline-question, .yn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  font-size: 18px;
  color: var(--ink);
}
.yn-row + .yn-row { border-top: 1px solid #ededed; }
.inline-question { border-top: 1px solid #ededed; margin-top: 6px; }
.yn-row .radio-group { gap: 40px; }

.sms-consent { display: flex; align-items: flex-start; margin-top: 6px; }
.sms-consent span { line-height: 1.5; }
.agreement { display: flex; align-items: flex-start; gap: 14px; }
.agreement span { line-height: 1.6; font-size: 18px; }
.agreement input { margin-top: 4px; }

.mailing-block { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--border); }

/* members */
.member-row { margin-top: 18px; }
.member-label { display: block; font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.member-inputs { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px; align-items: center; }
.member-inputs input { font-size: 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 6px; }
.btn-remove {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  background: #f1f2f4;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 28px;
  cursor: pointer;
  color: var(--ink);
}
.btn-remove:hover { background: #e7e9ec; }

.btn-add {
  width: 100%;
  margin-top: 22px;
  background: var(--blue-btn);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 18px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(91,139,181,.35);
}
.btn-add:hover { background: var(--blue-btn-hover); transform: translateY(-2px); }

.continue-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
  background: #fff;
}

/* ============ PAYMENT PAGE ============ */
.pay-wrap { max-width: 1180px; margin: 0 auto; padding: 40px 40px 56px; zoom: 0.9; }
.pay-grid { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.pay-main { display: flex; flex-direction: column; gap: 26px; }
.pay-side { display: flex; flex-direction: column; gap: 26px; }

.pay-heading { font-family: "Libre Baskerville", Georgia, serif; font-size: 26px; color: var(--ink); margin: 0 0 24px; }

/* processing speed options */
.speed-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.speed-option .speed-left { display: flex; align-items: center; gap: 14px; }
.speed-option input[type="radio"] { width: 18px; height: 18px; accent-color: var(--navy); }
.speed-name { font-size: 19px; color: var(--ink); }
.speed-price { text-align: right; white-space: nowrap; }
.speed-price .price { display: block; font-size: 21px; font-weight: 700; color: var(--ink); }
.speed-price .state-fee { display: block; font-size: 14px; color: #8a8a8a; }
.speed-option:not(.selected) { opacity: .6; }
.speed-option.selected { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); opacity: 1; }

.ra-consent { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 0; font-size: 18px; }
.ra-consent span { line-height: 1.5; }
.muted-link { color: var(--ink); }
.reminder { font-size: 17px; color: var(--ink); margin: 22px 0 0; padding-left: 40px; }

/* card information */
.card-glyph { width: 26px; height: 18px; color: var(--blue-accent); vertical-align: middle; margin-left: 6px; }
.card-number-wrap { position: relative; }
.card-number-wrap input { padding-right: 120px; }
.card-brands { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; gap: 6px; }
.card-brands svg { width: 44px; height: 29px; }
.exp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* sidebar */
.side-card .card-body { padding: 26px; }
.side-brands { display: flex; gap: 10px; margin-bottom: 18px; }
.side-brands svg { width: 64px; height: 42px; }
.side-heading { font-family: "Libre Baskerville", Georgia, serif; font-size: 24px; color: var(--ink); margin: 0 0 14px; }
.side-heading.underline { text-decoration: underline; }
.side-card p { font-size: 18px; color: #2a2a2a; margin: 0; line-height: 1.6; }

.pay-main .btn-primary { margin-top: 24px; }

/* ============ PORTAL: SIGN-IN ============ */
.portal-signin {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.96)),
    url("flag.svg") center top / cover no-repeat;
}
.signin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(31,58,95,.16);
  padding: 44px;
  width: 100%;
  max-width: 440px;
  text-align: center;
}
.signin-card h1 { font-family: "Libre Baskerville", Georgia, serif; font-size: 30px; color: var(--ink); margin: 0 0 8px; }
.signin-sub { font-size: 17px; color: #555; margin: 0 0 26px; }
.signin-card .field { text-align: left; }
.signin-card .field label { display: block; font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.signin-card input {
  width: 100%; font-family: inherit; font-size: 17px;
  padding: 13px 15px; border: 1px solid var(--border); border-radius: 6px;
}
.signin-card input:focus { outline: none; border-color: var(--blue-btn); box-shadow: 0 0 0 3px rgba(91,139,181,.18); }
.signin-card .btn-primary { font-size: 19px; padding: 15px; margin-top: 6px; }
.signin-error { color: #c0392b; font-size: 15px; margin: 0 0 14px; }
.signin-demo { font-size: 14px; color: #8a8a8a; margin: 18px 0 0; }
.nav-signout { background: none; border: none; cursor: pointer; }

.role-badge {
  display: inline-block;
  background: var(--blue-accent);
  color: #fff;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ============ PORTAL APP (sidebar + viewer) ============ */
.portal-app {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: calc(100vh - 96px);
}
.portal-sidebar {
  background: #f4f6fa;
  border-right: 1px solid var(--border);
  padding: 30px 22px;
}
.portal-company { padding: 0 8px 22px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.portal-company h2 { font-family: "Libre Baskerville", Georgia, serif; font-size: 24px; color: var(--ink); margin: 0; line-height: 1.25; }
.portal-company-sub { font-size: 15px; color: #7a869a; margin: 6px 0 0; text-transform: uppercase; letter-spacing: .5px; }

.doc-nav { display: flex; flex-direction: column; gap: 6px; }
.doc-nav-group {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #97a2b3;
  padding: 16px 16px 6px;
}
.doc-nav-group:first-child { padding-top: 0; }
.doc-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  width: 100%;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .15s ease, border-color .15s ease;
}
.doc-nav-item:hover { background: #e9edf4; }
.doc-nav-item.active { background: #fff; border-color: var(--border); box-shadow: 0 2px 8px rgba(31,58,95,.08); }
.doc-nav-item.active .doc-nav-icon { color: var(--blue-accent); }
.doc-nav-icon { width: 24px; height: 28px; color: #9aa7b8; flex: none; margin-top: 2px; }
.doc-nav-text { display: flex; flex-direction: column; }
.doc-nav-title { font-family: "Libre Baskerville", Georgia, serif; font-size: 17px; font-weight: 700; color: var(--ink); }
.doc-nav-desc { font-size: 13.5px; color: #7a869a; margin-top: 3px; line-height: 1.4; }

.portal-viewer { display: flex; flex-direction: column; background: #e9ecf1; }
.viewer-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; background: var(--navy); color: #fff;
}
.viewer-title { font-family: "Libre Baskerville", Georgia, serif; font-size: 20px; }
.btn-download-doc {
  font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: 6px; cursor: pointer; border: none;
  background: var(--blue-btn); color: #fff;
  transition: background-color .15s ease, transform .12s ease;
}
.btn-download-doc:hover { background: var(--blue-btn-hover); transform: translateY(-1px); }
.viewer-scroll { flex: 1; overflow: auto; padding: 34px; }
.viewer-empty { text-align: center; color: #8a93a3; padding: 80px 20px; font-size: 18px; }

/* ---- service detail page ---- */
.svc-page {
  background: #fff;
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 54px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  color: #1c1c1c;
}
.svc-title { font-family: "Libre Baskerville", Georgia, serif; font-size: 30px; color: var(--navy); margin: 0 0 6px; }
.svc-tagline { font-size: 18px; color: #5a6b7d; margin: 0 0 24px; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.svc-chip {
  display: flex; flex-direction: column; gap: 2px;
  background: #f1f4f9; border: 1px solid #e0e6ef; border-radius: 8px;
  padding: 12px 18px; font-size: 15px; color: var(--ink); min-width: 140px;
}
.svc-chip-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #8a93a3; }
.svc-h2 { font-family: "Libre Baskerville", Georgia, serif; font-size: 19px; color: var(--ink); margin: 26px 0 10px; }
.svc-body { font-size: 16px; line-height: 1.7; margin: 0 0 8px; }
.svc-list { font-size: 16px; line-height: 1.6; padding-left: 22px; margin: 0; }
.svc-list li { margin: 8px 0; }
.svc-cta {
  margin-top: 28px;
  background: var(--blue-btn); color: #fff; border: none;
  font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; font-size: 18px;
  padding: 15px 32px; border-radius: 6px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(91,139,181,.35);
  transition: background-color .15s ease, transform .12s ease;
}
.svc-cta:hover { background: var(--blue-btn-hover); transform: translateY(-2px); }
.svc-table { margin-top: 12px; }

/* admin-only implementation spec */
.admin-only {
  margin-top: 36px;
  border: 1px dashed #b9a24a;
  background: #fcf9ef;
  border-radius: 8px;
  padding: 24px 28px;
}
.admin-only-head {
  font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; font-size: 17px;
  color: #7a6a1f; margin-bottom: 8px;
}
.admin-tag {
  font-size: 11px; letter-spacing: 1px; background: #b9a24a; color: #fff;
  padding: 3px 9px; border-radius: 12px; margin-left: 8px; vertical-align: middle;
}
.admin-only h3 { font-family: "Libre Baskerville", Georgia, serif; font-size: 16px; color: var(--ink); margin: 18px 0 8px; }
.admin-only ul { font-size: 15px; line-height: 1.55; padding-left: 20px; margin: 0; }
.admin-only li { margin: 7px 0; }

/* ============ DOCUMENT (preview + PDF) ============ */
.doc-page { margin: 0 auto; }
.doc {
  background: #fff;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 56px 60px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  color: #1c1c1c;
  font-size: 14px;
  line-height: 1.6;
}
.pdf-render { position: fixed; left: -9999px; top: 0; width: 760px; }
.pdf-render .doc { box-shadow: none; margin: 0; }
.doc-head { text-align: center; border-bottom: 2px solid var(--navy); padding-bottom: 16px; margin-bottom: 24px; }
.doc-head h1 { font-family: "Libre Baskerville", Georgia, serif; font-size: 26px; color: var(--navy); margin: 0 0 6px; }
.doc-sub { font-size: 13px; color: #555; margin: 2px 0; }
.doc h2 { font-family: "Libre Baskerville", Georgia, serif; font-size: 16px; color: var(--ink); margin: 22px 0 8px; }
.doc p { margin: 0 0 12px; }
.doc-table, .doc-kv { width: 100%; border-collapse: collapse; margin: 10px 0 16px; }
.doc-table th, .doc-table td { border: 1px solid #ccc; padding: 9px 12px; text-align: left; font-size: 13px; }
.doc-table th { background: #f1f3f7; }
.doc-kv th, .doc-kv td { border: 1px solid #ddd; padding: 9px 12px; text-align: left; font-size: 13px; vertical-align: top; }
.doc-kv th { background: #f6f7f9; width: 40%; }
.doc-note { font-size: 12px; color: #666; font-style: italic; margin-top: 18px; }
.doc-sign { display: flex; gap: 50px; margin-top: 50px; }
.doc-sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 50px; margin-top: 50px; }
.sign-line { flex: 1; }
.sign-line .line { display: block; border-bottom: 1px solid #333; min-height: 26px; padding-bottom: 2px; }
.sign-line .cap { display: block; font-size: 11px; color: #555; margin-top: 5px; }

/* membership certificate */
.cert { padding: 40px; }
.cert-border { border: 3px double var(--navy); padding: 40px; text-align: center; }
.cert-no { text-align: right; font-size: 12px; color: #666; margin-bottom: 10px; }
.cert-body { font-size: 14px; margin: 12px auto; max-width: 520px; }
.cert-name { font-family: "Libre Baskerville", Georgia, serif; font-size: 24px; color: var(--navy); margin: 18px 0; }
.cert-sign { display: flex; gap: 50px; margin-top: 50px; }
.page-break { page-break-before: always; break-before: page; }

@media print {
  .site-header, .site-footer, .modal-bar, .doc-card-actions { display: none !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .pay-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .pay-wrap { padding: 28px 18px 44px; }
  .speed-option { flex-direction: column; align-items: flex-start; gap: 10px; }
  .speed-price { text-align: left; }
  .reminder { padding-left: 0; }
  .exp-row { grid-template-columns: 1fr 1fr; }
  .form-hero-title { font-size: 28px; }
  .form-hero-subtitle { font-size: 18px; }
  .form-wrap { padding: 28px 18px 48px; }
  .card-head h2 { font-size: 20px; }
  .card-body { padding: 20px; }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .member-inputs { grid-template-columns: 1fr; }
  .yn-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 16px 22px; }
  .main-nav { gap: 16px; flex-wrap: wrap; }
  .brand-title { font-size: 22px; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 21px; }
  .apply-card { padding: 30px; }
  .band { font-size: 26px; }
  .section { padding: 40px 22px; }
  .icon-row { gap: 40px; }
  .how-list, .how-heading { font-size: 20px; }
  .state-select, .btn-primary { font-size: 20px; }
  .faq-item summary { font-size: 19px; }
}
