/* ================================================================
 * WORLDCRAFT LOGISTICS - EPA RELABELING SERVICES landing page
 * /epa-relabeling-services
 *
 * Prefix : .epa-   Scope: everything under .epa-page (nothing leaks into site CSS)
 * Type   : Inter (self-hosted by the layout), body weight 500 - same family and
 *          scale approach as hospitality-landing.css / warehouse-landing.css.
 * Colors : navy #002b39, teal #01617f, accent #008db9, alt bg #f7f8f9
 * Break  : desktop >1024, tablet 769-1024, mobile <=768, small <=480
 * ================================================================ */

.epa-page {
  --epa-navy: #002b39;
  --epa-teal: #01617f;
  --epa-accent: #008db9;
  --epa-alt: #f7f8f9;
  --epa-ink: #1f2d33;       /* body copy on white: 13.9:1 */
  --epa-ink-2: #3a4a51;     /* secondary copy: 9:1 */
  --epa-rule: #dce5e8;
  --epa-bullet: #f0c40f;
  --epa-danger: #a72f2f;
  --epa-radius: 12px;
  --epa-gutter: clamp(18px, 4vw, 40px);

  color: var(--epa-ink);
  background: #fff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Bootstrap on the live shell resets these - restate explicitly. */
.epa-page h1, .epa-page h2, .epa-page h3, .epa-page p,
.epa-page ul, .epa-page ol, .epa-page dl, .epa-page dd,
.epa-page figure, .epa-page fieldset, .epa-page legend { margin: 0; padding: 0; }
.epa-page ul, .epa-page ol { list-style: none; }
.epa-page img { display: block; max-width: 100%; }
/* width/height attributes would otherwise beat aspect-ratio; zero specificity keeps this a default. */
:where(.epa-page img) { height: auto; }
.epa-page a { text-decoration: none; }
.epa-page *, .epa-page *::before, .epa-page *::after { box-sizing: border-box; }

.epa-page .epa-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.epa-page .epa-wrap { max-width: 1220px; margin: 0 auto; padding: 0 var(--epa-gutter); }

/* anchor targets clear the site's sticky header */
.epa-page #quote,
.epa-page #process,
.epa-page #faq,
.epa-page #facility,
.epa-page #services,
.epa-page #contact { scroll-margin-top: 96px; }

/* ---------------- focus (visible on every interactive element) ---------------- */
.epa-page a:focus-visible,
.epa-page button:focus-visible,
.epa-page input:focus-visible,
.epa-page select:focus-visible,
.epa-page textarea:focus-visible,
.epa-page summary:focus-visible,
.epa-page [tabindex]:focus-visible {
  outline: 3px solid var(--epa-accent);
  outline-offset: 3px;
}
.epa-page .epa-banner a:focus-visible,
.epa-page .epa-final a:focus-visible,
.epa-page .epa-audience a:focus-visible { outline-color: #fff; }
.epa-page .epa-form a:focus-visible,
.epa-page .epa-form input:focus-visible,
.epa-page .epa-form select:focus-visible,
.epa-page .epa-form textarea:focus-visible,
.epa-page .epa-form summary:focus-visible,
.epa-page .epa-form button:focus-visible { outline-color: var(--epa-accent); }

/* ---------------- typography ---------------- */
.epa-page .epa-h1 {
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 20px;
}
.epa-page .epa-h2 {
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--epa-navy);
  max-width: 900px;
  margin-bottom: 18px;
}
.epa-page .epa-h2--sub { font-size: clamp(22px, 2vw, 28px); margin: 48px 0 22px; }
.epa-page .epa-h2--spaced { margin-top: 64px; }
.epa-page .epa-h2--card { font-size: clamp(22px, 2vw, 27px); margin-bottom: 16px; }
.epa-page .epa-h2--light { color: #fff; font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 10px; }
.epa-page .epa-h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--epa-navy);
  margin-bottom: 8px;
}
.epa-page .epa-h3--rule {
  margin-top: 30px;
  font-size: 21px;
}
.epa-page .epa-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--epa-teal);
  margin-bottom: 14px;
}
.epa-page .epa-eyebrow--light { color: #bfe9f4; }
.epa-page .epa-intro { max-width: 820px; color: var(--epa-ink-2); margin-bottom: 8px; }
.epa-page .epa-section p + p { margin-top: 14px; }
.epa-page .epa-note {
  margin-top: 18px;
  max-width: 820px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #2c3d44;
  background: #eef5f7;
  border-left: 3px solid var(--epa-accent);
  border-radius: 0 8px 8px 0;
}
/* Balanced line breaks for every heading so a lone word never sits on its own last line. */
.epa-page h1, .epa-page h2, .epa-page h3 { text-wrap: balance; }
/* Notes never drop a single word onto a second line; the process notes use the full content width. */
.epa-page .epa-note { text-wrap: balance; }
.epa-page .epa-process .epa-note { max-width: none; }
.epa-page .epa-definition { font-size: 18px; color: var(--epa-navy); }

/* ---------------- sections ---------------- */
.epa-page .epa-section { padding: clamp(52px, 6.5vw, 92px) 0; }
.epa-page .epa-section--alt { background: var(--epa-alt); }

.epa-page .epa-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}
.epa-page .epa-split--top { align-items: start; margin-top: 28px; }
.epa-page .epa-split--explain { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: stretch; }
/* The photo is as tall as the text beside it, so no empty white block is left under it (Angela's proposal, slide 5-6). */
@media (min-width: 1025px) {
  .epa-page .epa-split--explain .epa-photo--bottle { aspect-ratio: auto; height: 100%; min-height: 520px; }
  /* Common labeling issues: photo is exactly as tall as the list + note beside it, no white gap. */
  .epa-page .epa-issues .epa-split--top { align-items: stretch; }
  .epa-page .epa-issues .epa-photo--review { aspect-ratio: auto; height: 100%; min-height: 0; }
  .epa-page .epa-issues .epa-photo--review picture,
  .epa-page .epa-issues .epa-photo--review img { position: absolute; inset: 0; width: 100%; height: 100%; }
}
/* Heading fits on one line on desktop instead of dropping a single word. */
.epa-page .epa-issues .epa-h2 { max-width: 1100px; text-wrap: balance; }
.epa-page .epa-split--cap { align-items: stretch; }

/* ---------------- photos ---------------- */
.epa-page .epa-photo { position: relative; overflow: hidden; border-radius: 14px; background: #dde7e9; }
.epa-page .epa-photo picture { display: block; height: 100%; }
.epa-page .epa-photo img { width: 100%; height: 100%; object-fit: cover; }
.epa-page .epa-photo--facility { aspect-ratio: 4 / 3; }
.epa-page .epa-photo--facility img { object-position: 35% 50%; }
.epa-page .epa-photo--bottle { aspect-ratio: 4 / 3; }
.epa-page .epa-photo--bottle img { object-position: 45% 50%; }
.epa-page .epa-photo--review { aspect-ratio: 11 / 10; }
.epa-page .epa-photo--review img { object-position: 62% 40%; }
.epa-page .epa-photo--cap { min-height: 360px; }
.epa-page .epa-photo--cap img { object-position: 68% 40%; }

.epa-page .epa-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 30px 0 34px; }
.epa-page .epa-photo--trio { aspect-ratio: 3 / 2; }
.epa-page .epa-pos-trio1 img { object-position: 30% 50%; }
.epa-page .epa-pos-trio2 img { object-position: 72% 40%; }
.epa-page .epa-pos-trio3 img { object-position: 50% 45%; }

.epa-page .epa-pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin: 28px 0; }
.epa-page .epa-photo--pair { aspect-ratio: 16 / 9; }
.epa-page .epa-pos-pair1 img { object-position: 45% 50%; }
.epa-page .epa-pos-pair2 img { object-position: 50% 62%; }
.epa-page .epa-pair .epa-photo--pair { aspect-ratio: auto; height: clamp(180px, 20vw, 260px); }

/* ---------------- buttons & links ---------------- */
.epa-page .epa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.epa-page .epa-btn--primary { background: var(--epa-teal); color: #fff; }
.epa-page .epa-btn--primary:hover { background: var(--epa-navy); }
.epa-page .epa-btn--light { background: #fff; color: var(--epa-navy); }
.epa-page .epa-btn--light:hover { background: #e6f4f8; }
.epa-page .epa-btn[disabled] { opacity: .65; cursor: not-allowed; }
.epa-page .epa-link { font-weight: 700; color: var(--epa-teal); }
.epa-page .epa-link:hover { text-decoration: underline; }
.epa-page .epa-link--light { color: #fff; }
.epa-page .epa-cta-row { margin-top: 24px; }
.epa-page .epa-cta-row--center { text-align: center; margin-top: 30px; }

/* ================= 1. HERO (banner -> intro -> photo panel with the form) ================= */
.epa-page .epa-hero { position: relative; background: #fff; }
.epa-page .epa-banner { position: relative; background: var(--epa-navy); color: #fff; isolation: isolate; }
.epa-page .epa-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.epa-page .epa-hero__media picture { display: block; height: 100%; }
.epa-page .epa-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.epa-page .epa-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 28, 39, .88) 0%, rgba(0, 28, 39, .6) 55%, rgba(0, 28, 39, .35) 100%);
}
.epa-page .epa-banner__inner { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(44px, 5.4vw, 80px); }
.epa-page .epa-banner .epa-h1 { max-width: 1000px; margin: 0; }
.epa-page .epa-intro-hero { padding-top: 32px; padding-bottom: 26px; }
.epa-page .epa-hero__sub { font-size: 18px; line-height: 1.65; color: var(--epa-ink-2); max-width: 980px; }
.epa-page .epa-hero__small { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--epa-teal); }
.epa-page .epa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 20px; }

.epa-page .epa-booking { padding-bottom: clamp(36px, 4vw, 52px); }
.epa-page .epa-booking__panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; justify-content: flex-end; align-items: center;
  min-height: 600px; padding: 28px 32px;
  border-radius: 16px; background: var(--epa-navy);
}
.epa-page .epa-booking__photo { position: absolute; inset: 0; z-index: -1; }
.epa-page .epa-booking__photo picture { display: block; height: 100%; }
.epa-page .epa-booking__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.epa-page .epa-booking__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 25, 35, .06), rgba(0, 25, 35, .2)); }

/* ---------------- the quote form ---------------- */
.epa-page .epa-form {
  position: relative;
  width: 460px; max-width: 100%;
  background: var(--epa-alt);
  color: var(--epa-ink);
  border-radius: 20px;
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .2);
  min-width: 0;
}
.epa-page .epa-form__title { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: var(--epa-navy); }
.epa-page .epa-form__lead { margin: 6px 0 18px; font-size: 15px; line-height: 1.5; color: var(--epa-ink-2); }
.epa-page .epa-req { color: var(--epa-danger); }

.epa-page .epa-hold { border: 0; background: transparent; padding: 0; margin: 0 0 18px; min-width: 0; }
.epa-page .epa-hold__legend { float: none; width: auto; padding: 0; margin-bottom: 8px; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--epa-navy); }
.epa-page .epa-hold__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.epa-page .epa-hold__opt {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 8px 12px;
  background: #fff; border: 1px solid #b9d3dc; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--epa-navy); cursor: pointer;
}
.epa-page .epa-hold__opt:has(input:checked) { background: #dff1f7; border-color: var(--epa-teal); }
.epa-page .epa-hold__opt:has(input:focus-visible) { outline: 3px solid var(--epa-accent); outline-offset: 2px; }
.epa-page .epa-hold__opt input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--epa-teal); }

.epa-page .epa-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 14px; }
.epa-page .epa-field { min-width: 0; }
.epa-page .epa-field--wide { grid-column: 1 / -1; }
.epa-page .epa-field label,
.epa-page .epa-field__label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; line-height: 1.3; color: #33454c; }
.epa-page .epa-field input:not([type="checkbox"]):not([type="radio"]),
.epa-page .epa-field select,
.epa-page .epa-field textarea {
  display: block; width: 100%; min-height: 44px;
  padding: 8px 0;
  font: inherit; font-size: 16px; font-weight: 500; line-height: 1.3;
  color: var(--epa-ink); background: transparent;
  border: 0; border-bottom: 1px solid #9ca9b7; border-radius: 0;
}
.epa-page .epa-field input:not([type="checkbox"]):not([type="radio"]):focus,
.epa-page .epa-field select:focus,
.epa-page .epa-field textarea:focus { border-bottom-color: var(--epa-teal); box-shadow: 0 1px 0 var(--epa-teal); }
.epa-page .epa-field textarea { min-height: 80px; resize: vertical; }
.epa-page .epa-field input::placeholder,
.epa-page .epa-field textarea::placeholder { color: #66777e; opacity: 1; }
.epa-page .epa-field input:user-invalid,
.epa-page .epa-field select:user-invalid { border-color: var(--epa-danger); }

/* multi-select dropdown (native <details>, no JS needed to open) */
.epa-page .epa-multi { position: relative; }
.epa-page .epa-multi summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 8px 0;
  list-style: none; cursor: pointer;
  font-size: 16px; font-weight: 500; color: var(--epa-ink);
  background: transparent; border: 0; border-bottom: 1px solid #9ca9b7; border-radius: 0;
}
.epa-page .epa-multi summary::-webkit-details-marker { display: none; }
.epa-page .epa-multi summary::after {
  content: ""; flex: 0 0 9px; width: 9px; height: 9px;
  border-right: 2px solid var(--epa-teal); border-bottom: 2px solid var(--epa-teal);
  transform: rotate(45deg) translateY(-2px);
}
.epa-page .epa-multi[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.epa-page .epa-multi__panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px;
  margin-top: 6px; padding: 10px;
  background: #fff; border: 1px solid #9fb3ba; border-radius: 8px;
}
.epa-page .epa-check {
  display: flex !important; align-items: center; gap: 10px;
  min-height: 40px; margin: 0 !important; padding: 6px 8px;
  font-size: 15px !important; font-weight: 500 !important; color: var(--epa-ink) !important;
  border: 1px solid #e0e8eb; border-radius: 6px; cursor: pointer;
}
.epa-page .epa-check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--epa-teal); }
.epa-page .epa-check:has(input:checked) { background: #edf7fa; border-color: var(--epa-accent); }
.epa-page .epa-error { min-height: 0; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--epa-danger); }
.epa-page .epa-error:empty { display: none; }

.epa-page .epa-more { margin-top: 14px; }
.epa-page .epa-more summary { display: inline-block; min-height: 44px; padding: 10px 0; font-size: 15px; font-weight: 700; color: var(--epa-teal); cursor: pointer; }
.epa-page .epa-more summary:hover { text-decoration: underline; }
.epa-page .epa-more__fields { margin: 4px 0 6px; }

.epa-page .epa-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }
.epa-page .epa-consent__box { flex: 0 0 20px; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--epa-teal); }
.epa-page .epa-consent label { font-size: 13px; line-height: 1.5; font-weight: 500; color: #44565d; }
.epa-page .epa-consent a { color: var(--epa-teal); text-decoration: underline; }
.epa-page .epa-form__submit { width: 100%; margin-top: 18px; border-radius: 30px; }

/* ================= trust bar ================= */
.epa-page .epa-trustbar { background: var(--epa-alt); border-bottom: 1px solid #e1e7e9; }
.epa-page .epa-trustbar__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 24px; padding-bottom: 24px; }
.epa-page .epa-trustbar__list li { padding: 0 22px; border-right: 1px solid #d3dfe3; }
.epa-page .epa-trustbar__list li:first-child { padding-left: 0; }
.epa-page .epa-trustbar__list li:last-child { border-right: 0; }
.epa-page .epa-trustbar__list strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--epa-navy); }
.epa-page .epa-trustbar__list span { display: block; font-size: 14px; line-height: 1.4; color: var(--epa-ink-2); }

/* ================= 2. facility ================= */
.epa-page .epa-regcard {
  margin-top: 22px; padding: 20px 22px;
  background: #f7fafb; border: 1px solid #dce8ec; border-left: 3px solid var(--epa-accent); border-radius: 8px;
}
.epa-page .epa-regcard > div + div { margin-top: 12px; }
.epa-page .epa-regcard dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--epa-teal); }
.epa-page .epa-regcard dd { font-size: 17px; font-weight: 600; color: var(--epa-navy); overflow-wrap: anywhere; }

/* ================= 3. services ================= */
.epa-page .epa-cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.epa-page .epa-card {
  grid-column: span 3;
  padding: 26px 24px 28px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 43, 57, .06);
  transition: transform .2s, box-shadow .2s;
}
.epa-page .epa-card:nth-child(n+5) { grid-column: span 4; }
.epa-page .epa-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 43, 57, .1); }
.epa-page .epa-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 16px;
  color: var(--epa-teal); background: #e6f4f8; border-radius: 12px;
}
.epa-page .epa-card p { font-size: 16px; line-height: 1.6; color: var(--epa-ink-2); }

.epa-page .epa-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 30px 0 34px; align-items: stretch; }
.epa-page .epa-svc__group { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.epa-page .epa-svc__label {
  margin: 2px 0 0; padding-top: 12px; border-top: 3px solid var(--epa-accent);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--epa-teal);
}
.epa-page .epa-svc__cards { display: flex; flex-direction: column; gap: 14px; flex: 1; }
/* Compact cards (icon beside the text) and equal-height columns, so the 2/2/3 split lines up at the bottom. */
.epa-page .epa-svc .epa-card {
  grid-column: auto; flex: 1;
  display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; align-content: center; align-items: start;
  padding: 20px 22px;
}
.epa-page .epa-svc .epa-card__icon { grid-row: 1 / span 2; margin-bottom: 0; }
.epa-page .epa-svc .epa-card .epa-h3 { align-self: center; margin-bottom: 4px; }
.epa-page .epa-svc .epa-card p { font-size: 15px; line-height: 1.55; }

/* ================= 4. audience ================= */
.epa-page .epa-audience {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  padding: 30px; color: #d7e6eb; background: var(--epa-navy); border-radius: 14px;
}
.epa-page .epa-audience > div + div { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .2); }
.epa-page .epa-audience .epa-h3 { color: #fff; font-size: 19px; }
.epa-page .epa-audience__tag { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a9e1f0; }
.epa-page .epa-audience p:not(.epa-audience__tag) { font-size: 16px; line-height: 1.6; color: #d7e6eb; }

/* ================= 5. explain ================= */
.epa-page .epa-explain .epa-split__text p { color: var(--epa-ink-2); }
.epa-page .epa-explain .epa-split__text .epa-definition { color: var(--epa-navy); }

/* lists */
.epa-page .epa-bullets { margin-top: 12px; }
.epa-page .epa-bullets li { position: relative; padding: 5px 0 5px 22px; font-size: 16px; line-height: 1.55; }
.epa-page .epa-bullets li::before { content: "\2022"; position: absolute; left: 4px; top: 3px; color: var(--epa-bullet); font-size: 24px; line-height: 1.2; }

/* ================= 6. issues ================= */
.epa-page .epa-checklist { margin: 0; }
.epa-page .epa-checklist li { position: relative; padding: 13px 12px 13px 34px; font-size: 17px; line-height: 1.5; border-bottom: 1px solid var(--epa-rule); }
.epa-page .epa-checklist li::before { content: "\2022"; position: absolute; left: 8px; top: 9px; color: var(--epa-bullet); font-size: 28px; line-height: 1.2; }
.epa-page .epa-checklist--single li { font-size: 16px; padding: 11px 8px 11px 32px; }

/* ================= 7. process table ================= */
.epa-page .epa-tablewrap { overflow-x: auto; border: 1px solid #dce6e9; border-radius: 12px; background: #fff; }
.epa-page .epa-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.epa-page .epa-table thead th { padding: 16px 20px; text-align: left; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--epa-navy); }
.epa-page .epa-table tbody th,
.epa-page .epa-table tbody td { padding: 17px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid #e3ebed; }
.epa-page .epa-table tbody th { width: 26%; font-weight: 700; color: var(--epa-navy); }
.epa-page .epa-table tbody tr:nth-child(even) { background: var(--epa-alt); }
.epa-page .epa-table tbody tr:last-child th,
.epa-page .epa-table tbody tr:last-child td { border-bottom: 0; }

/* ================= 8. timeline ================= */
.epa-page .epa-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: epa-step; }
.epa-page .epa-timeline li {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 26px 18px 18px 0;
  font-size: 15px; line-height: 1.5; color: var(--epa-ink-2);
  border-bottom: 2px solid #d9e7eb;
}
.epa-page .epa-timeline li::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 14px; height: 14px; background: var(--epa-accent);
  border: 4px solid #e2f2f6; border-radius: 50%; box-sizing: content-box;
}
.epa-page .epa-timeline__n { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--epa-teal); }
.epa-page .epa-timeline strong { font-size: 17px; font-weight: 700; color: var(--epa-navy); }

/* ================= 9. capabilities ================= */
.epa-page .epa-cap { display: grid; gap: 18px; }
.epa-page .epa-cap__card { padding: 26px; background: #fff; border-radius: 12px; }
.epa-page .epa-cap__card--dark { background: var(--epa-navy); color: #e3eef1; }
.epa-page .epa-cap__card--dark .epa-h3 { color: #fff; }

/* ================= 10 + 11 ================= */
.epa-page .epa-prepare__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; margin-top: 4px; }
.epa-page .epa-prepare__card { padding: clamp(22px, 2.6vw, 34px); border: 1px solid #dce6e9; border-radius: 14px; }
.epa-page .epa-prepare__card--tint { background: #eaf3f6; border-color: #eaf3f6; }
.epa-page .epa-prepare__card p { margin-bottom: 4px; color: var(--epa-ink-2); }

/* ================= 12. provider cards ================= */
.epa-page .epa-provider__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.epa-page .epa-provider__card { padding: 24px 22px 26px; background: #fff; border-top: 3px solid var(--epa-accent); border-radius: 10px; box-shadow: 0 4px 16px rgba(0, 43, 57, .05); }
.epa-page .epa-provider__n { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--epa-teal); }
.epa-page .epa-provider__card p:not(.epa-provider__n) { font-size: 16px; line-height: 1.6; color: var(--epa-ink-2); }

/* ================= 14. FAQ (summary styled as the site's accordion look) ================= */
/* Heading on top, questions full width below it (Angela's proposal, slide 12). The old two-column layout left an empty block under the heading. */
.epa-page .epa-faq__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.epa-page .epa-faq__head { position: static; }
.epa-page .epa-qa { margin: 0 0 8px; background: #fff; border: 1px solid #7797a5; color: #24566f; }
.epa-page .epa-qa summary {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 18px;
  list-style: none; cursor: pointer;
}
.epa-page .epa-qa summary::-webkit-details-marker { display: none; }
.epa-page .epa-qa summary::before { content: "+"; flex: 0 0 14px; font-size: 20px; font-weight: 500; line-height: 1; }
.epa-page .epa-qa[open] summary::before { content: "\2212"; }
.epa-page .epa-qa summary h3 { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.4; color: inherit; }
.epa-page .epa-qa p { margin: 0; padding: 0 18px 18px 44px; font-size: 16px; line-height: 1.65; color: inherit; }
.epa-page .epa-qa[open] { background: #24566f; border-color: #24566f; color: #fff; }
.epa-page .epa-qa[open] summary:focus-visible { outline-color: #fff; }

/* ================= 15. final CTA ================= */
.epa-page .epa-final { padding: 0 0 clamp(40px, 5vw, 64px); }
.epa-page .epa-final__box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(28px, 4vw, 46px); color: #dcebf0;
  background: var(--epa-navy); border-radius: 16px;
}
.epa-page .epa-final__text p { margin: 0; max-width: 560px; font-size: 17px; color: #dcebf0; }
.epa-page .epa-final__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; flex: 0 0 auto; }
.epa-page .epa-final__contact { display: flex; flex-direction: column; gap: 4px; }
.epa-page .epa-final__contact-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a9e1f0; }
.epa-page .epa-final__contact .epa-link { display: inline-flex; align-items: center; min-height: 32px; overflow-wrap: anywhere; }

/* ================= mobile sticky bar ================= */
.epa-page .epa-sticky { display: none; }

/* ================= TABLET (<=1024) ================= */
@media (max-width: 1100px) {
  /* Three narrow columns: icon goes above the title again so long titles do not wrap to 3 lines. */
  .epa-page .epa-svc .epa-card { display: block; }
  .epa-page .epa-svc .epa-card__icon { margin-bottom: 12px; }
}

@media (max-width: 900px) {
  .epa-page .epa-svc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 1024px) {
  .epa-page { font-size: 16.5px; }
  .epa-page .epa-booking__panel { display: block; min-height: 0; padding: 0; background: none; }
  .epa-page .epa-booking__photo { position: static; z-index: auto; border-radius: 14px 14px 0 0; overflow: hidden; aspect-ratio: 16 / 9; }
  .epa-page .epa-booking__photo::after { display: none; }
  .epa-page .epa-form { width: 100%; border-radius: 0 0 14px 14px; box-shadow: none; border: 1px solid var(--epa-rule); border-top: 0; }
  .epa-page .epa-split,
  .epa-page .epa-split--explain { grid-template-columns: minmax(0, 1fr); }
  .epa-page .epa-split--explain .epa-photo { order: 2; }
  .epa-page .epa-photo--facility,
  .epa-page .epa-photo--bottle,
  .epa-page .epa-photo--review { aspect-ratio: auto; width: 100%; height: min(440px, 62vw); }
  .epa-page .epa-photo--cap { min-height: 280px; max-height: 420px; }
  .epa-page .epa-card,
  .epa-page .epa-card:nth-child(n+5) { grid-column: span 6; }
  .epa-page .epa-card:last-child { grid-column: 1 / -1; }
  .epa-page .epa-provider__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .epa-page .epa-prepare__grid { gap: 18px; }
  .epa-page .epa-faq__layout { grid-template-columns: minmax(0, 1fr); }
  .epa-page .epa-faq__head { position: static; }
  /* timeline turns vertical */
  .epa-page .epa-timeline { grid-template-columns: minmax(0, 1fr); border-left: 2px solid #d9e7eb; margin-left: 8px; }
  .epa-page .epa-timeline li { padding: 0 0 22px 30px; border-bottom: 0; }
  .epa-page .epa-timeline li::before { top: 2px; left: -11px; }
  .epa-page .epa-trustbar__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .epa-page .epa-trustbar__list li { padding: 0 20px; }
  .epa-page .epa-trustbar__list li:nth-child(odd) { padding-left: 0; }
  .epa-page .epa-trustbar__list li:nth-child(2) { border-right: 0; }
  .epa-page .epa-final__box { flex-direction: column; align-items: flex-start; }
}

/* ================= MOBILE (<=768) ================= */
@media (max-width: 768px) {
  .epa-page { padding-bottom: 76px; }
  .epa-page .epa-trio { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .epa-page .epa-photo--trio { aspect-ratio: 16 / 10; }
  .epa-page .epa-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .epa-page .epa-card,
  .epa-page .epa-card:nth-child(n+5),
  .epa-page .epa-card:last-child { grid-column: 1 / -1; }
  .epa-page .epa-audience { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 22px; }
  .epa-page .epa-audience > div + div { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
  .epa-page .epa-pair { grid-template-columns: 1fr 1fr; gap: 12px; }
  .epa-page .epa-pair .epa-photo--pair { height: clamp(120px, 28vw, 180px); }
  .epa-page .epa-prepare__grid { grid-template-columns: minmax(0, 1fr); }
  .epa-page .epa-h2--spaced { margin-top: 48px; }
  .epa-page .epa-btn { min-height: 48px; }
  .epa-page .epa-actions .epa-btn { width: 100%; }
  .epa-page .epa-actions .epa-link { display: inline-flex; align-items: center; min-height: 44px; }
  .epa-page .epa-hold__opt,
  .epa-page .epa-check { min-height: 48px; }
  .epa-page .epa-consent label { font-size: 14px; }
  .epa-page .epa-final__actions .epa-btn { width: 100%; }
  .epa-page .epa-final__actions { width: 100%; }

  .epa-page .epa-sticky {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--epa-rule);
    box-shadow: 0 -6px 20px rgba(0, 43, 57, .12);
    transition: transform .25s ease, visibility .25s;
  }
  .epa-page .epa-sticky .epa-btn { width: 100%; min-height: 50px; }
  .epa-page .epa-sticky.is-hidden { transform: translateY(110%); visibility: hidden; }

  /* The site's fixed "Refer a friend" card (_ReferralCard, z-index 1050) sits on top of this bar and covers the
     "Request a Quote" button on phones. This stylesheet only loads on the EPA page, so hiding the card here at
     mobile widths affects no other page; on this conversion page the quote button must stay tappable. */
  #refer-card { display: none !important; }
}

/* ================= SMALL (<=480) ================= */
@media (max-width: 480px) {
  .epa-page { font-size: 16px; }
  .epa-page .epa-hero__sub { font-size: 17px; }
  .epa-page .epa-form { padding: 18px 16px; border-radius: 14px; }
  .epa-page .epa-fields { grid-template-columns: minmax(0, 1fr); }
  .epa-page .epa-hold__options { grid-template-columns: minmax(0, 1fr); }
  .epa-page .epa-multi__panel { grid-template-columns: minmax(0, 1fr); }
  .epa-page .epa-trustbar__list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .epa-page .epa-trustbar__list li,
  .epa-page .epa-trustbar__list li:nth-child(odd) { padding: 0; border-right: 0; }
  .epa-page .epa-provider__grid { grid-template-columns: minmax(0, 1fr); }
  .epa-page .epa-checklist li { font-size: 16px; }
  .epa-page .epa-qa p { padding-left: 18px; }
  .epa-page .epa-qa summary h3 { font-size: 16px; }
  .epa-page .epa-regcard { padding: 16px; }
  .epa-page .epa-cap__card { padding: 20px; }
}

/* ================= reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  .epa-page *, .epa-page *::before, .epa-page *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .epa-page .epa-card:hover { transform: none; }
}
