/* APN insurance verification — approved Option A, 18 September 2026.
 * All rules are limited to this template, its dedicated header, or .iv-page.
 * The insurance iframe keeps its own existing styles and controls.
 */
body.page-template-insurance-verification {
  margin: 0;
  background: #fdfbf8;
  color: #1e2c39;
}
.iv-header,
.iv-header *,
.iv-page,
.iv-page * { box-sizing: border-box; }
.iv-header,
.iv-page {
  --iv-navy: #1e2c39;
  --iv-orange: #e87722;
  --iv-cream: #f6f1ea;
  --iv-paper: #fdfbf8;
  --sp-navy: #1e2c39;
  --sp-orange: #e87722;
  --sp-cream: #f6f1ea;
  --sp-white: #fdfbf8;
  --sp-ink: #1e2c39;
}
.iv-page {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--iv-paper);
  color: var(--iv-navy);
  font: 400 18px/1.6 'Source Sans Pro', sans-serif;
  overflow-wrap: break-word;
}
.iv-page h1,
.iv-page h2,
.iv-page h3 {
  font-family: Montserrat, sans-serif;
  color: inherit;
  text-transform: none;
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
.iv-page h1 {
  font-size: 37px;
  line-height: 1.13;
  letter-spacing: -.025em;
  font-weight: 700;
  margin-bottom: 24px;
  text-wrap: balance;
}
.iv-page h2 { font-size: 29px; line-height: 1.25; letter-spacing: -.015em; font-weight: 600; }
.iv-page h3 { font-size: 18px; line-height: 1.4; letter-spacing: normal; font-weight: 600; }
.iv-page p { margin: 0 0 16px; font-size: inherit; line-height: inherit; }
.iv-page a,
.iv-header a { color: inherit; text-underline-offset: 4px; }
.iv-page a:focus-visible,
.iv-header a:focus-visible,
.iv-page summary:focus-visible,
.iv-page [tabindex]:focus-visible { outline: 3px solid #e87722; outline-offset: 5px; }
.iv-page ::selection,
.iv-header ::selection { background: #e87722; color: #1e2c39; }
.iv-page section { scroll-margin-top: 24px; }
.iv-page ul { padding-left: 22px; margin: 0 0 20px; list-style: disc; }
.iv-page li { font-size: inherit; line-height: inherit; }

/* A focused header gives the verification task priority. */
.iv-header {
  position: relative;
  inset: auto;
  z-index: 20;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e6e2dc;
  box-shadow: none;
  color: #1e2c39;
}
.iv-header .iv-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 84px;
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.iv-header .iv-brand { display: block; flex-shrink: 0; margin: 0; padding: 0; }
.iv-header .iv-brand img { display: block; width: 218px; max-width: 100%; height: auto; margin: 0; }
.iv-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  width: auto;
  margin: 0;
  padding: 0;
  font: 500 13px/1.5 Montserrat, sans-serif;
}
.iv-header .iv-back-link { color: #5b5c5c; text-decoration: none; }
.iv-header .iv-call-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--iv-orange);
  color: var(--iv-navy);
  padding: 11px 17px;
  border: 1px solid var(--iv-orange);
  border-radius: 7px;
  text-decoration: none;
  font: 700 13px/1.5 Montserrat, sans-serif;
  white-space: nowrap;
}
.iv-header .iv-call-link:hover { background: #f29a57; border-color: #f29a57; }
.iv-header .iv-back-link:hover { text-decoration: underline; }

/* Opening: reassurance on the left, original insurance form on the right. */
.iv-page .iv-opening { background: var(--iv-navy); color: #fff; padding: 44px 30px 58px; }
.iv-page .iv-opening-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 44px;
  align-items: start;
}
.iv-page .iv-reassurance-column { min-width: 0; display: flex; flex-direction: column; }
.iv-page .iv-intro { order: 1; }
.iv-page .iv-intro p { color: #c3ced7; font-size: 17px; line-height: 1.55; max-width: 50ch; }
.iv-page .iv-trust-markers {
  order: 2;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 17px;
  font-size: 14px;
  line-height: 1.45;
  color: #dce4eb;
}
.iv-page .iv-trust-markers .b910-proof-grid,
.iv-page .iv-trust-markers .b910-proof-grid > div { display: contents; }
.iv-page .iv-trust-markers p {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  gap: 7px;
  align-items: baseline;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.iv-page .iv-trust-markers p::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: 0 0 5px;
  background: var(--iv-orange);
  position: relative;
  top: -2px;
}
.iv-page .iv-credentials {
  order: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #ffffff26;
  border-bottom: 1px solid #ffffff26;
  margin: 20px 0 22px;
  color: #e6ecf0;
  font: 500 13px/1.5 Montserrat, sans-serif;
}
.iv-page .iv-credential-marks { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.iv-page .iv-credential-marks img {
  display: block;
  height: 50px;
  width: 50px;
  max-width: none;
  object-fit: contain;
  background: #fdfbf8;
  border-radius: 8px;
  padding: 6px;
  margin: 0;
}
.iv-page .iv-credentials > div > span { display: block; font: 400 14px/1.4 'Source Sans Pro', sans-serif; color: #c3ced7; margin-top: 5px; }
.iv-page .iv-credentials span span { display: inline; }
.iv-page .iv-compact-process { order: 4; }
.iv-page .iv-compact-process h2 { font-size: 19px; margin-bottom: 22px; }
.iv-page .iv-compact-process ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.iv-page .iv-compact-process li { display: flex; gap: 12px; align-items: center; margin: 0; padding: 0; border: 0; }
.iv-page .iv-compact-process li::before { content: none; }
.iv-page .iv-process-num { font: 600 14px/1 Montserrat, sans-serif; color: var(--iv-navy); width: 28px; height: 28px; border-radius: 50%; background: var(--iv-orange); display: grid; place-items: center; flex: 0 0 28px; }
.iv-page .iv-compact-process h3 { font-size: 14px; margin: 0; font-weight: 500; line-height: 1.5; }
.iv-page .iv-form-context { order: 5; padding-top: 25px; border-top: 1px solid #ffffff26; margin-top: 28px; }
.iv-page .iv-form-context h2 { font-size: 23px; line-height: 1.3; margin-bottom: 14px; }
.iv-page .iv-form-context p { font-size: 16px; color: #c3ced7; line-height: 1.5; }
.iv-page .iv-form-context p:first-of-type { font-weight: 600; color: #fff; }
.iv-page .iv-form-panel {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border-top: 4px solid var(--iv-orange);
  box-shadow: 0 18px 46px #0a11182e;
  min-width: 0;
  scroll-margin-top: 20px;
}
.iv-page .iv-form-panel iframe {
  border: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 1700px;
  /* The existing postMessage resize script sets height as the form settles.
     Its initial inline min-height must not prevent a smaller final height. */
  min-height: 0 !important;
  max-height: none;
  background: #fff;
  margin: 0;
}

/* Approved supporting copy remains below the verification form. */
.iv-page .iv-support-nav { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; padding: 24px 20px; background: var(--iv-paper); font: 500 13px/1.6 Montserrat, sans-serif; }
.iv-page .iv-support-nav a { text-decoration: none; }
.iv-page .iv-support-nav a:hover { text-decoration: underline; }
.iv-page .iv-content-width { width: 100%; max-width: 1000px; margin: 0 auto; }
.iv-page .iv-support-section { padding: 60px 30px; }
.iv-page .iv-support-section:nth-child(odd) { background: var(--iv-cream); }
.iv-page .iv-support-section .iv-content-width > p { max-width: 80ch; }
.iv-page .sp-card-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin: 0; }
.iv-page .sp-card { padding: 24px; background: #fff; border: 1px solid #ded8cf; border-radius: 12px; box-shadow: none; min-width: 0; }
.iv-page .sp-card h3 { font-size: 18px; line-height: 1.4; border: 0; padding: 0; margin: 0 0 16px; letter-spacing: normal; }
.iv-page .sp-card h3::before { content: none; }
.iv-page .sp-card p { font-size: 17px; line-height: 1.6; }
.iv-page .sp-card p:last-child { margin-bottom: 0; }
.iv-page .sp-table-scroll { overflow: auto; width: 100%; max-width: 100%; scrollbar-color: #aab2b8 #f6f1ea; }
.iv-page table { width: 100%; border-collapse: collapse; background: #fff; font-size: 16px; line-height: 1.6; table-layout: auto; margin: 0; }
.iv-page th,
.iv-page td { text-align: left; vertical-align: top; padding: 14px 18px; border: 1px solid #ded8cf; color: #1e2c39; }
.iv-page thead { background: #efe8df; }
.iv-page th { font-weight: 600; }
.iv-page .iv-faq-section { padding: 60px 30px; }
.iv-page .iv-faq-section h2 { margin-bottom: 26px; }
.iv-page .iv-faq-section details { border: 0; border-bottom: 1px solid #d4cec6; padding: 0 0 18px; margin-bottom: 20px; }
.iv-page .iv-faq-section summary { display: list-item; list-style: disclosure-closed; font: 600 17px/1.5 Montserrat, sans-serif; cursor: pointer; padding: 0; color: inherit; }
.iv-page .iv-faq-section details[open] > summary { list-style-type: disclosure-open; }
.iv-page .iv-faq-section summary > * { display: inline; }
.iv-page .iv-faq-section summary::after { content: none; }
.iv-page .iv-faq-section .answer,
.iv-page .iv-faq-section .sp-faq-answer { padding: 14px 0 0; }
.iv-page .iv-closing { padding: 40px 30px; text-align: center; background: var(--iv-navy); color: #fff; }
.iv-page .iv-closing h2 { font-size: 28px; }
.iv-page .iv-closing .bm-closing-grid { display: block; }
.iv-page .iv-closing .iv-content-width > p { font-size: 15px; margin: 20px 0; }
.iv-page .sp-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 25px; }
.iv-page .sp-button,
.iv-page .sp-actions .sp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: var(--iv-orange); color: var(--iv-navy); font: 600 14px/1.4 Montserrat, sans-serif; padding: 12px 19px; border-radius: 7px; text-decoration: none; border: 1px solid var(--iv-orange); white-space: normal; text-align: center; }
.iv-page .sp-button-outline,
.iv-page .sp-actions .sp-button-outline { background: transparent; border-color: #929ba1; color: inherit; }
.iv-page .sp-button:hover { background: #f29a57; border-color: #f29a57; color: #1e2c39; }
.iv-page .sp-button-outline:hover { background: #e877221a; border-color: #e87722; color: inherit; }
.iv-page .iv-closing .sp-actions { justify-content: center; }
.iv-page .b910-transparency { max-width: 1000px; margin: 35px auto 0; font-size: 13px; line-height: 1.6; color: #c3ced7; border-top: 1px solid #ffffff26; padding-top: 24px; text-align: left; }
.iv-page .b910-transparency p { margin: 0; }

@media (max-width: 850px) {
  .iv-page .iv-opening-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 26px; }
  .iv-page .iv-opening { padding: 32px 24px; }
  .iv-header .iv-brand img { width: 190px; }
  .iv-header .iv-header-inner { padding: 14px 24px; }
  .iv-header nav { gap: 18px; }
  .iv-page .iv-compact-process h3 { font-size: 13px; }
}

@media (max-width: 699px) {
  .iv-page { font-size: 17px; }
  .iv-header .iv-header-inner { min-height: 68px; padding: 12px 18px; gap: 12px; }
  .iv-header .iv-brand img { width: 156px; }
  .iv-header nav { gap: 8px; }
  .iv-header .iv-back-link { display: none; }
  .iv-header .iv-call-link { font-size: 11px; padding: 9px 10px; }
  .iv-header .iv-call-link .iv-phone { display: none; }
  .iv-header .iv-call-link::after { content: ' APN'; white-space: pre; }
  .iv-page .iv-opening { padding: 20px 18px 32px; }
  .iv-page .iv-opening-inner { display: flex; flex-direction: column; gap: 0; }
  .iv-page .iv-reassurance-column { display: contents; }
  .iv-page .iv-intro { order: 1; width: 100%; }
  .iv-page h1 { font-size: 27px; line-height: 1.15; text-align: left; margin-bottom: 12px; letter-spacing: -.02em; }
  .iv-page .iv-intro p { font-size: 15px; line-height: 1.45; text-align: left; margin-bottom: 8px; }
  .iv-page .iv-form-context { order: 2; border: 0; padding: 0; margin: 5px 0 15px; text-align: left; max-width: none; }
  .iv-page .iv-form-context h2 { font-size: 19px; margin-bottom: 8px; line-height: 1.25; }
  .iv-page .iv-form-context p { font-size: 13px; line-height: 1.45; margin: 5px 0; }
  .iv-page .iv-form-panel { order: 3; width: 100%; border-radius: 12px; box-shadow: none; }
  .iv-page .iv-trust-markers { order: 4; width: 100%; margin: 24px 0 0; gap: 6px 12px; justify-content: flex-start; }
  .iv-page .iv-trust-markers p { font-size: 12px; line-height: 1.5; margin: 0; }
  .iv-page .iv-credentials { order: 5; margin: 22px 0; padding: 16px 0; gap: 14px; font-size: 12px; width: 100%; justify-content: flex-start; }
  .iv-page .iv-credential-marks { gap: 8px; }
  .iv-page .iv-credential-marks img { width: 44px; height: 44px; padding: 5px; }
  .iv-page .iv-compact-process { order: 6; width: 100%; text-align: left; }
  .iv-page .iv-compact-process h2 { font-size: 18px; }
  .iv-page .iv-compact-process ol { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .iv-page .iv-compact-process h3 { font-size: 13px; }
  .iv-page .iv-support-nav { gap: 12px 20px; font-size: 12px; padding: 21px 18px; }
  .iv-page .iv-support-section { padding: 36px 20px; }
  .iv-page .iv-support-section h2 { font-size: 25px; }
  .iv-page .sp-card-grid { grid-template-columns: minmax(0, 1fr); }
  .iv-page .sp-card { padding: 20px; }
  .iv-page .iv-faq-section { padding: 36px 20px; }
  .iv-page .iv-faq-section h2 { font-size: 25px; }
  .iv-page .iv-faq-section summary { font-size: 15px; }
  .iv-page th,
  .iv-page td { padding: 10px; font-size: 14px; }
  .iv-page .sp-actions { display: flex; gap: 10px; }
  .iv-page .sp-button,
  .iv-page .sp-actions .sp-button { font-size: 12px; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .iv-page *,
  .iv-header * { scroll-behavior: auto; transition: none; }
}

/* Keep shared tracking and wrappers while replacing this page’s visual header. */
body.page-template-insurance-verification #main_header { display: none !important; }
.iv-header .iv-call-link { column-gap: .3em; }
@media (max-width:699px) { .iv-header .iv-call-link::after { content: 'APN'; } }
