/* ============================================================================
   JNZ Insurance — Accident Guide page styles
   Used by: /what-to-do-after-a-car-accident/
   Hero, header, footer, buttons, section backgrounds, section-navy, quote-cta,
   and scroll-reveal all come from /styles.css.

   Layout language (modeled on the owner's gamma.site reference, restated in
   JNZ tokens): every step is a floating white panel on a mist background.
   Text fills one half; the illustration sits in a full-height tinted panel
   flush to the card edge, centered both ways. Detail boxes stack full-width
   with a thick teal accent bar. On mobile the panel becomes a single column
   with the illustration as a centered tinted band below the text.
   ========================================================================== */

/* ---- Step sections: continuous mist canvas, floating panels --------------- */

.step-section {
  background: var(--bg-alt);
  padding: 22px 0;
}
.step-section--first { padding-top: 72px; }
.step-section--last { padding-bottom: 88px; }
.step-section--pad-bottom { padding-bottom: 72px; }

.step-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  background: var(--jnz-white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(18, 58, 92, 0.07);
}
.step-panel--flip .step-media { order: -1; }
.step-panel--full { display: block; }

.step-text { padding: 56px; }
.step-panel--full .step-text { padding: 56px 64px; }

.step-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--jnz-teal);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--jnz-teal);
}
.step-eyebrow--center { justify-content: center; }
.step-eyebrow--center::after {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--jnz-teal);
}

.step-text h2, .checklist-heading {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--jnz-navy);
  margin: 0 0 16px;
}
.step-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0 0 24px;
  max-width: 62ch;
}

/* ---- Illustration panel --------------------------------------------------- */

.step-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 58, 92, 0.05);
  padding: 44px 36px;
}
.step-media img {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ---- Detail boxes: full-width stack with teal accent bar ------------------ */

.step-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.step-card {
  background: var(--jnz-mist);
  border: 1px solid var(--border);
  border-left: 4px solid var(--jnz-teal);
  border-radius: 8px;
  padding: 20px 24px;
}
.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 0 0 6px;
}
.step-card p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}

/* Icon-topped 2x2 grid (Exchange Information) */
.step-cards--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.step-cards--grid .step-card {
  border-left: 1px solid var(--border);
  border-top: 4px solid var(--jnz-teal);
  padding: 24px;
}
.step-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(23, 143, 139, 0.12);
  color: var(--jnz-teal);
  margin-bottom: 14px;
}
.step-card-icon svg { width: 22px; height: 22px; }

/* ---- Check-bullet lists ---------------------------------------------------- */

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 62ch;
}
.step-list li {
  position: relative;
  padding-left: 34px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
}
.step-list li svg {
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  color: var(--jnz-teal);
}

/* ---- Emphasis callout ------------------------------------------------------ */

.step-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 0;
  padding: 16px 20px;
  background: rgba(46, 111, 149, 0.10);
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--jnz-navy);
  max-width: 62ch;
}
.step-callout svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--jnz-blue);
}

/* ---- "Not Your Agent Yet?" navy CTA: readable inline link ------------------ */

.accident-cta p a {
  color: var(--jnz-champagne);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.accident-cta p a:hover { color: var(--jnz-white); }

/* ---- Keep This Handy: centered panel, checklist figure + actions ----------- */

.checklist-wrap {
  text-align: center;
  padding: 64px 48px;
}
.checklist-wrap .step-lede { margin-left: auto; margin-right: auto; }

.checklist-figure {
  margin: 32px auto 0;
  max-width: 420px;
}
.checklist-figure button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--jnz-white);
  cursor: zoom-in;
  box-shadow: 0 12px 32px rgba(18, 58, 92, 0.16);
  transition: transform 200ms var(--ease-out, ease), box-shadow 200ms var(--ease-out, ease);
}
.checklist-figure button:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(18, 58, 92, 0.22);
}
.checklist-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.checklist-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fg-muted);
}

.checklist-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.checklist-actions .btn svg { width: 18px; height: 18px; }

.checklist-disclaimer {
  margin: 40px auto 0;
  max-width: 72ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
}

/* ---- Full-size lightbox ----------------------------------------------------- */

.checklist-lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 560px);
  width: 100%;
  max-height: 92vh;
}
.checklist-lightbox::backdrop {
  background: rgba(10, 26, 40, 0.82);
}
.checklist-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 64px);
  object-fit: contain;
  border-radius: 10px;
  background: var(--jnz-white);
}
.checklist-lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.checklist-lightbox-bar .btn { padding: 8px 16px; font-size: 14px; }
.checklist-lightbox-close {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: var(--jnz-white);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.checklist-lightbox-close:hover { background: rgba(255, 255, 255, 0.26); }

/* ---- Responsive -------------------------------------------------------------- */

@media (max-width: 960px) {
  .step-text { padding: 44px 36px; }
  .step-panel--full .step-text { padding: 44px 36px; }
  .step-media img { max-width: 360px; }
}

@media (max-width: 860px) {
  .step-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .step-panel--flip .step-media { order: 1; }
  .step-media { padding: 36px 24px; }
  .step-media img { max-width: 320px; }
  .step-text { padding: 36px 24px; }
  .step-panel--full .step-text { padding: 36px 24px; }
  .step-text h2, .checklist-heading { font-size: 28px; }
  .checklist-wrap { padding: 44px 24px; }
  .step-section--first { padding-top: 48px; }
  .step-section--last { padding-bottom: 64px; }
}

@media (max-width: 560px) {
  .step-cards--grid { grid-template-columns: minmax(0, 1fr); }
}
