/* ==========================================================================
   Injury Treatment page — Injury Care Associates
   Scoped under .itp. Tokens map to the site's Bootstrap custom properties;
   hex fallbacks are the live values so the page also works standalone.
   ========================================================================== */

.itp {
  --itp-primary: var(--bs-primary-hex, #0072bc);
  --itp-primary-dark: #005b96;
  --itp-navy: var(--bs-tertiary-hex, #1e2d3b);
  --itp-light: var(--bs-light-hex, #f2f8fc);
  --itp-ink: var(--bs-heading-color-hex, #212124);
  --itp-body: #495356;
  --itp-line: var(--bs-secondary-border-hex, #e7e7e7);
  --itp-field: #cfd8de;
  --itp-accent: #80b7e3;
  --itp-warning: var(--bs-warning-hex, #ffd240);
  --itp-warning-tint: #fff5d6;
  --itp-radius: var(--bs-border-radius, 10px);
  --itp-heading: 'Catamaran', sans-serif;
  --itp-body-font: 'Nunito Sans', system-ui, sans-serif;

  font-family: var(--itp-body-font);
  color: var(--itp-ink);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.itp *, .itp *::before, .itp *::after { box-sizing: border-box; }
.itp img { max-width: 100%; }
.itp a:not([class]) { color: var(--itp-navy); }
.itp a:not([class]):hover { color: var(--itp-primary); }
.itp input, .itp select, .itp textarea, .itp button { font: inherit; }

.itp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
.itp-h1 { font-family: var(--itp-heading); font-weight: 800; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px; max-width: 17ch; text-wrap: balance; }
.itp-h2 { font-family: var(--itp-heading); font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 12px; }
.itp-h2--tight { margin: 0; }
.itp-h2--md { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; margin-bottom: 14px; }
.itp-h2--faq { max-width: 16ch; }
.itp-kicker { font-family: var(--itp-heading); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--itp-primary); margin: 0 0 10px; }
.itp-kicker--accent { color: var(--itp-accent); }
.itp-sub { font-size: 18px; line-height: 1.55; color: var(--itp-body); margin: 0 0 14px; }
.itp-sub:last-child { margin-bottom: 0; }
.itp-sub--narrow { max-width: 52ch; }
.itp-sub--faq { font-size: 17px; max-width: 40ch; margin-bottom: 24px; }
.itp-head { margin-bottom: 32px; }
.itp-head--narrow { max-width: 64ch; }
.itp-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 30px; }
.itp-head--row .itp-head--narrow { max-width: 60ch; }
.itp-textlink { font-size: 16px; font-weight: 700; color: var(--itp-primary); text-decoration: underline; white-space: nowrap; }
.itp-textlink:hover { color: var(--itp-navy); }
.itp-textlink--after { display: inline-flex; margin-top: 22px; white-space: normal; }

/* ---------- buttons ---------- */
.itp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--itp-body-font); font-weight: 700; font-size: 17px; padding: 14px 26px; border-radius: var(--itp-radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .18s, border-color .18s, color .18s; }
.itp-btn--lg { padding: 15px 26px; }
.itp-btn--round { border-radius: 999px; font-weight: 600; padding: 13px 22px; display: flex; }
.itp-btn--primary { background: var(--itp-primary); border-color: var(--itp-primary); color: #fff; }
.itp-btn--primary:hover { background: var(--itp-primary-dark); border-color: var(--itp-primary-dark); color: #fff; }
.itp-hero .itp-btn--primary { box-shadow: 0 6px 18px rgba(0,114,188,.35); }
.itp-btn--outline-blue { background: transparent; border-color: var(--itp-primary); color: var(--itp-primary); }
.itp-btn--outline-blue:hover { background: var(--itp-primary); color: #fff; }
.itp-btn--ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.itp-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.itp-btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

/* ---------- hero ---------- */
.itp-hero { position: relative; background: var(--itp-navy); color: #fff; overflow: hidden; }
.itp-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .7; }
.itp-hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,45,59,.88) 0%, rgba(30,45,59,.6) 55%, rgba(30,45,59,.15) 100%); }
.itp-hero__inner { position: relative; padding-top: 72px; padding-bottom: 64px; }
.itp-hero__lede { font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--itp-light); max-width: 50ch; margin: 0 0 28px; }
.itp-hero__link { display: inline-flex; font-size: 16px; color: var(--itp-accent); font-weight: 600; text-decoration: underline; }
.itp-hero__link:hover { color: #fff; }

/* ---------- sections ---------- */
.itp-sec { border-bottom: 1px solid var(--itp-line); }
.itp-sec > .itp-wrap { padding-top: 68px; padding-bottom: 68px; }
.itp-sec > .itp-wrap--steps { padding-top: 56px; padding-bottom: 60px; }
.itp-sec--white { background: #fff; }
.itp-sec--light { background: var(--itp-light); }
.itp-sec--last { border-bottom: 0; }
.itp-stack { display: flex; flex-direction: column; gap: 56px; }
.itp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.itp-sticky { position: sticky; top: 20px; }

/* ---------- steps ---------- */
.itp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.itp-step { background: var(--itp-light); border-radius: var(--itp-radius); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.itp-step__num { font-family: var(--itp-heading); font-weight: 800; font-size: 15px; color: var(--itp-primary); letter-spacing: .06em; }
.itp-step__title { font-family: var(--itp-heading); font-weight: 800; font-size: 20px; line-height: 1.2; margin: 0; }
.itp-step p { font-size: 16px; line-height: 1.5; color: var(--itp-body); margin: 0; }

/* ---------- split rows ---------- */
.itp-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; align-items: center; }
.itp-split__img { width: 100%; aspect-ratio: 7 / 6; object-fit: cover; border-radius: var(--itp-radius); display: block; }
.itp-split--flip .itp-split__img { order: 2; }
.itp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.itp-chip { font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--itp-field); color: var(--itp-navy); text-decoration: none; background: #fff; transition: border-color .18s, color .18s; }
.itp-chip:hover { border-color: var(--itp-primary); color: var(--itp-primary); }

/* ---------- yellow bands ---------- */
.itp-band { background: var(--itp-warning); overflow: hidden; }
.itp-band__inner { max-width: 1320px; margin: 0 auto; padding: 48px 24px; display: flex; flex-wrap: wrap; gap: 28px 36px; align-items: center; }
.itp-band__inner--art { padding-top: 40px; padding-bottom: 0; }
.itp-band__art { flex: 0 1 240px; min-width: 170px; align-self: flex-end; margin-bottom: -40px; }
.itp-band__art img { width: 100%; display: block; }
.itp-band__text { flex: 1 1 380px; min-width: 0; }
.itp-band__title { font-family: var(--itp-heading); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--itp-primary); margin: 0 0 10px; max-width: 26ch; }
.itp-band__sub { font-style: oblique; font-size: 16px; line-height: 1.5; color: var(--itp-primary); margin: 0; max-width: 62ch; }
.itp-band__btns { flex: 0 1 300px; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- injury cards ---------- */
.itp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.itp-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1.5px solid var(--itp-line); border-radius: var(--itp-radius); padding: 20px 22px; text-decoration: none; color: var(--itp-navy); transition: border-color .18s, transform .18s; }
.itp-card:hover { border-color: var(--itp-primary); transform: translateY(-2px); color: var(--itp-navy); }
.itp-card h3 { font-family: var(--itp-heading); font-weight: 800; font-size: 19px; line-height: 1.2; margin: 0; }
.itp-card p { font-size: 15px; line-height: 1.45; color: var(--itp-body); margin: 0; }

/* ---------- designated provider ---------- */
.itp-callout { background: var(--itp-warning-tint); border: 1px solid var(--itp-warning); border-radius: var(--itp-radius); padding: 14px 18px; font-size: 16px; line-height: 1.5; max-width: 52ch; margin-top: 14px; }
.itp-callout b { font-family: var(--itp-heading); }
.itp-clinics { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; max-width: 52ch; font-size: 15px; line-height: 1.4; }
.itp-clinics b { font-family: var(--itp-heading); font-weight: 800; font-size: 16px; display: block; }
.itp-clinics a { color: var(--itp-primary); font-weight: 700; text-decoration: none; }
.itp-clinics a:hover { text-decoration: underline; }
.itp-form { background: #fff; border: 1px solid var(--itp-line); border-radius: var(--itp-radius); padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.itp-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--itp-navy); }
.itp-form__full { grid-column: 1 / -1; }
.itp-form input, .itp-form select, .itp-form textarea { padding: 12px 14px; border: 1.5px solid var(--itp-field); border-radius: 8px; font-size: 16px; background: #fff; color: var(--itp-ink); }
.itp-form textarea { resize: vertical; }
.itp-form input:focus, .itp-form select:focus, .itp-form textarea:focus { border-color: var(--itp-primary); outline: none; }
.itp-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.itp-form__actions .itp-btn { flex: none; border: 0; }
.itp-form__note { font-size: 14px; color: var(--itp-body); flex: 1 1 200px; }

/* ---------- FAQ ---------- */
.itp-faq__img { width: 100%; max-width: 440px; aspect-ratio: 7 / 6; object-fit: cover; border-radius: var(--itp-radius); display: block; }
.itp-faq { border-top: 1px solid var(--itp-line); }
.itp-faq details { border-bottom: 1px solid var(--itp-line); }
.itp-faq summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--itp-heading); font-weight: 800; font-size: 19px; line-height: 1.25; color: var(--itp-navy); }
.itp-faq summary::-webkit-details-marker { display: none; }
.itp-faq summary:hover { color: var(--itp-primary); }
.itp-faq__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--itp-field); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; transition: transform .2s; }
.itp-faq__icon::before { content: '+'; }
.itp-faq details[open] .itp-faq__icon { transform: rotate(45deg); }
.itp-faq details p { font-size: 16px; line-height: 1.6; color: var(--itp-body); margin: 0; padding: 0 40px 20px 0; animation: itpFadeIn .25s ease both; }

/* ---------- motion ---------- */
@keyframes itpHeroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes itpFadeIn { from { opacity: 0; } to { opacity: 1; } }
.itp-anim { animation: itpHeroIn .7s cubic-bezier(.2,.7,.3,1) both; }
.itp-anim--1 { animation-duration: .6s; }
.itp-anim--2 { animation-delay: .08s; }
.itp-anim--3 { animation-delay: .16s; }
.itp-anim--4 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .itp * { animation: none !important; transition: none !important; } }
@media print { .itp-sticky { position: static; } .itp-faq details { break-inside: avoid; } }


/* ======================================================================
   ICA build additions — appended, never merged (append-only CSS rule).
   ====================================================================== */

/* --- reveal fail-open ---------------------------------------------------
   The site's SAL leaves [data-sal] at opacity:0 when its observer does not
   fire, and the design's own reveal hides content behind html.js-reveal.
   Neither is loaded here; guarantee the design's [data-reveal] blocks and
   .itp-anim entrance classes are always visible. */
.itp [data-reveal], .itp .itp-anim { opacity: 1 !important; transform: none !important; animation: none !important; }

/* --- theme collision: heading colour --------------------------------------
   The design sets colour on inverted sections and lets headings inherit; the
   ICA theme sets `color` on h1/h2/h3 directly, and a direct rule beats an
   inherited value. Restate the design's intent, scoped to inverted contexts. */
.itp-hero .itp-h1, .itp-hero .itp-hero__lede, .itp-hero .itp-kicker, .itp-hero .itp-hero__link, .itp-hero .itp-hero__worker { color: #fff; }
.itp-sec--navy .itp-h2, .itp-sec--navy .itp-h3, .itp-sec--navy .itp-sub { color: #fff; }
.itp-band__item b, .itp-point b { color: #fff; }
.itp-card--navy .itp-h3, .itp-card--navy .itp-list, .itp-col--navy .itp-col__title, .itp-col--navy ul { color: #fff; }

/* --- band numbering as a CSS counter ---------------------------------------
   MODX has no lpad modifier; a counter renumbers if an editor reorders rows. */
.itp-band__grid { counter-reset: itpband; }
.itp-band__item { counter-increment: itpband; }
.itp-band__n::before { content: counter(itpband, decimal-leading-zero); }
.itp-steps { counter-reset: itpstep; }
.itp-step { counter-increment: itpstep; }
.itp-step__n::before, .itp-step__num::before { content: counter(itpstep, decimal-leading-zero); }

/* --- free-text body region ([[*content]]) ----------------------------- */
.itp-freetext { font-size: 16px; line-height: 1.6; color: #495356; }
.itp-freetext p:last-child { margin-bottom: 0; }

/* image is first in DOM for every row; flip visually on row 2 */
.itp-split--flip > .itp-split__img { order: 2; }
.itp-chips--stack { margin-top: 8px; }

/* === injury-treatment: designated-provider form (itp-form), 2026-10-06 ================ */
/* The <form> sits inside the .itp-form card grid; give it the same grid so fields pair up. */
.itp-form form.itp-form__grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.itp-form__summary { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--itp-warning-tint); border: 1px solid var(--itp-warning); font-size: 15px; line-height: 1.5; }
.itp-form__err { font-weight: 400; font-size: 14px; line-height: 1.4; color: #b42318; }
/* Routing state: everything but the inquiry select collapses (Gate 2, decision 1). */
.itp-form__grid[data-routing="1"] .itp-form__field:not(.itp-form__field--inquiry),
.itp-form__grid[data-routing="1"] .itp-form__actions,
.itp-form__grid[data-routing="1"] .itp-form__summary { display: none; }
.itp-form__route:not([hidden]) { display: grid; gap: 14px; }
.itp-form__route .itp-callout { margin-top: 0; max-width: none; }
.itp-form__route .itp-callout:focus { outline: 2px solid var(--itp-primary); outline-offset: 2px; }
.itp-form__route .itp-clinics { margin: 0; }
.itp-form__route .itp-btn { justify-self: start; }
@media (max-width: 480px) {
  .itp-form__actions .itp-btn, .itp-form__route .itp-btn { width: 100%; justify-self: stretch; text-align: center; }
}
/* The hCaptcha-invisible chunk renders the submit as <input>, which the generic .itp-form input
   rule (0,1,1) restyles as a text field. Re-assert the primary button at higher specificity. */
.itp-form input[type="submit"].itp-btn--primary { background: var(--itp-primary); border: 2px solid var(--itp-primary); color: #fff; padding: 14px 26px; font-size: 17px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.itp-form input[type="submit"].itp-btn--primary:hover { background: var(--itp-primary-dark); border-color: var(--itp-primary-dark); }
.itp-form input[type="submit"].itp-btn--primary:disabled { opacity: .6; cursor: progress; }
