/**
 * ESCO Tool — Single Product Page Styles
 * File: /wp-content/themes/escotool/assets/css/single-product.css
 *
 * All classes prefixed with 'esco-' to avoid GP/BB conflicts.
 */

/* ── GP WRAPPER OVERRIDES ────────────────────────────── */
body.single-product .site-content { display: block !important; }
body.single-product .content-area,
body.single-product #primary { width: 100% !important; max-width: 100% !important; }
body.single-product .inside-article { padding: 0 !important; margin: 0 !important; }
body.single-product .entry-content { margin: 0 !important; }
body.single-product .site-main > * { margin-bottom: 0 !important; }

/* ── TOKENS ──────────────────────────────────────────── */
:root {
  --esco-red: #db0000;
  --esco-red-dark: #b00000;
  --esco-red-light: #fff1f1;
  --esco-red-glow: rgba(219,0,0,0.08);
  --bg-white: #ffffff;
  --bg-light: #f7f7f8;
  --bg-dark: #1a1a2e;
  --text-dark: #1a1a2e;
  --text-body: #444455;
  --text-muted: #6b6b7a;    /* WCAG AA: 5.24:1 on white, 4.89:1 on bg-light */
  --border-light: #e5e5ea;  /* decorative-only, not used for UI controls */
  --border-medium: #888891; /* WCAG AA UI: 3.51:1 on white, 3.28:1 on bg-light */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --container: 1240px;
  --section-pad: 80px;
}

/* ── CONTAINER ───────────────────────────────────────── */
.esco-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.esco-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  padding: 13px 28px; border: none; cursor: pointer;
  transition: all 0.3s; text-decoration: none;
}
.esco-btn-red { background: var(--esco-red); color: #fff; }
.esco-btn-red:hover { background: var(--esco-red-dark); box-shadow: 0 6px 24px rgba(219,0,0,0.25); }
.esco-btn-outline { background: transparent; color: var(--text-dark); border: 2px solid var(--border-medium); }
.esco-btn-outline:hover { border-color: var(--text-dark); background: var(--text-dark); color: #fff; }
.esco-btn-white { background: #fff; color: var(--text-dark); font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; padding: 14px 32px; border: none; cursor: pointer; transition: all 0.3s; text-decoration: none; }
.esco-btn-white:hover { background: var(--text-dark); color: #fff; }

/* ── SCROLL REVEAL ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── BREADCRUMB ──────────────────────────────────────── */
.esco-breadcrumb { background: var(--bg-light); border-bottom: 1px solid var(--border-light); padding: 12px 0; }
.esco-breadcrumb nav { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.esco-breadcrumb a { color: var(--text-body); transition: color 0.3s; text-decoration: none; }
.esco-breadcrumb a:hover { color: var(--esco-red); }
.esco-breadcrumb .sep { opacity: 0.4; }
.esco-breadcrumb .current { color: var(--text-dark); font-weight: 600; }

/* ── HERO ────────────────────────────────────────────── */
.esco-product-hero { padding: 60px 0 80px; background: var(--bg-white); }
.esco-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.esco-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--esco-red-light); border: 1px solid rgba(219,0,0,0.2); padding: 5px 14px; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--esco-red); margin-bottom: 20px; }
.esco-hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--esco-red); border-radius: 50%; }
.esco-hero-series { font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: 4px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.esco-hero-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; text-transform: uppercase; color: var(--text-dark); margin-bottom: 8px; }
.esco-hero-range { display: flex; gap: 32px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border-light); }
.esco-range-label { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.esco-range-value { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-dark); }
.esco-hero-desc { font-size: 15px; line-height: 1.8; color: var(--text-body); margin-bottom: 16px; max-width: 520px; }
.esco-desc-extended { max-height: 0; overflow: hidden; transition: max-height 0.6s cubic-bezier(0.16,1,0.3,1); }
.esco-desc-extended.open { max-height: 800px; }
.esco-read-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--esco-red); background: none; border: none; cursor: pointer; margin-bottom: 28px; }
.esco-read-more:hover { color: var(--esco-red-dark); }
.esco-read-more svg { transition: transform 0.3s; }
.esco-read-more.open svg { transform: rotate(180deg); }
.esco-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.esco-hero-image { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.esco-hero-image img { max-width: 480px; width: 100%; filter: drop-shadow(0 16px 48px rgba(0,0,0,0.12)); transition: opacity 0.3s ease; }

/* ── MOTOR OPTION TABS (hero image switcher) ─────────── */
.esco-motor-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border: 2px solid var(--border-medium);
  width: fit-content;
}
.esco-motor-tab {
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.esco-motor-tab.active {
  background: var(--esco-red);
  color: #fff;
}
.esco-motor-tab:hover:not(.active) {
  background: var(--bg-light);
  color: var(--text-dark);
}

/* ── STICKY PRODUCT NAV ──────────────────────────────── */
.esco-product-nav { position: sticky; top: var(--esco-nav-h, 44px); z-index: 800; background: var(--bg-white); border-bottom: 2px solid var(--border-light); }
.esco-product-nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px;
}
.esco-product-nav-inner::-webkit-scrollbar { display: none; }
.esco-product-nav-inner a {
  flex-shrink: 0;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
  text-decoration: none;
}
.esco-product-nav-inner a:hover,
.esco-product-nav-inner a.active {
  color: var(--esco-red);
  border-bottom-color: var(--esco-red);
}

/* Highlight the "Get a Quote" CTA in the sub-nav — red pill, stands out from the
   text-style links. Overrides the default underline-on-hover treatment. */
.esco-product-nav-inner a[href="#quote"] {
  background: var(--esco-red);
  color: #fff;
  border-bottom-color: transparent;
  padding: 10px 24px;
  margin-left: 4px;
  align-self: center;
  border-radius: 2px;
}
.esco-product-nav-inner a[href="#quote"]:hover,
.esco-product-nav-inner a[href="#quote"].active {
  background: var(--esco-red-dark);
  color: #fff;
  border-bottom-color: transparent;
}

/* esco-nav-bar (44px) is the only sticky header; product nav sits flush below it via top:var(--esco-nav-h). */

/* ── SECTIONS ────────────────────────────────────────── */
.esco-section { padding: var(--section-pad) 0; }
.esco-section-white { background: var(--bg-white); }
.esco-section-light { background: var(--bg-light); }
.esco-eyebrow { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--esco-red); margin-bottom: 12px; }
.esco-section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 38px); text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.1; color: var(--text-dark); margin-bottom: 12px; }
.esco-divider { width: 50px; height: 3px; background: var(--esco-red); margin-bottom: 32px; }

/* ── FEATURES ────────────────────────────────────────── */
.esco-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.esco-feature-card { background: var(--bg-white); border: 1px solid var(--border-light); padding: 24px; position: relative; overflow: hidden; transition: all 0.3s; display: flex; gap: 16px; align-items: flex-start; }
.esco-feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--esco-red); transition: height 0.4s; }
.esco-feature-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); transform: translateY(-2px); }
.esco-feature-card:hover::before { height: 100%; }
.esco-feature-icon { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--esco-red-light); color: var(--esco-red); }
.esco-feature-img { flex-shrink: 0; width: 120px; height: 80px; overflow: hidden; border: 1px solid var(--border-light); }
.esco-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.esco-feature-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dark); margin-bottom: 6px; }
.esco-feature-card p { font-size: 14px; color: var(--text-body); line-height: 1.7; margin: 0; }

/* ── SPECS ────────────────────────────────────────────── */
.esco-specs-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.esco-specs-tabs { display: flex; border: 2px solid var(--border-medium); overflow: hidden; }
.esco-spec-tab { padding: 10px 24px; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); background: transparent; border: none; cursor: pointer; transition: all 0.3s; }
.esco-spec-tab.active { background: var(--esco-red); color: #fff; }
.esco-spec-tab:hover:not(.active) { background: var(--bg-light); color: var(--text-dark); }
.esco-specs-wrap { overflow-x: auto; }
.esco-specs-table { width: 100%; border-collapse: collapse; }
.esco-specs-table th { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); text-align: left; padding: 14px 18px; background: var(--bg-light); border-bottom: 2px solid var(--border-light); }
.esco-specs-table td { padding: 14px 18px; font-size: 14px; color: var(--text-body); border-bottom: 1px solid var(--border-light); word-wrap: break-word; }

/* Lock 50/50 column widths only on the imperial/metric spec switcher so the
   columns don't shift when the values change. Chart tables (also using
   .esco-specs-table) keep their natural auto-layout. */
.esco-specs-unified { table-layout: fixed; }
.esco-specs-unified th:first-child,
.esco-specs-unified td:first-child { width: 50%; }
.esco-specs-unified th:last-child,
.esco-specs-unified td:last-child { width: 50%; }
.esco-specs-table tr:hover td { background: var(--esco-red-glow); }
.esco-specs-table td:first-child { font-family: var(--font-display); font-weight: 600; color: var(--text-dark); }
.esco-specs-images img { max-width: 100%; border: 1px solid var(--border-light); }

/* ── KITS ─────────────────────────────────────────────── */
.esco-kits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; margin-top: 40px; }
.esco-kit-card { background: var(--bg-white); border: 1px solid var(--border-light); overflow: hidden; transition: all 0.3s; }
.esco-kit-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.esco-kit-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.esco-kit-header h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; text-transform: uppercase; color: var(--text-dark); margin: 0; }
.esco-kit-number { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 1.5px; color: var(--esco-red); background: var(--esco-red-light); padding: 4px 12px; }
.esco-kit-body { padding: 20px 24px; }
.esco-kit-body ul { list-style: none; margin: 0; padding: 0; }
.esco-kit-body li { padding: 7px 0; font-size: 14px; color: var(--text-body); border-bottom: 1px solid var(--border-light); display: flex; align-items: flex-start; gap: 10px; }
.esco-kit-body li:last-child { border: none; }
.esco-kit-body li::before { content: ''; flex-shrink: 0; width: 5px; height: 5px; background: var(--esco-red); border-radius: 50%; margin-top: 8px; }
.esco-kit-body p { font-size: 15px; line-height: 1.8; color: var(--text-body); margin: 0; }

/* ── ACCESSORIES ──────────────────────────────────────── */
.esco-acc-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--border-light); margin-bottom: 32px; }
.esco-acc-tab { padding: 14px 22px; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); border: none; border-bottom: 3px solid transparent; cursor: pointer; background: none; transition: all 0.3s; }
.esco-acc-tab.active { color: var(--esco-red); border-bottom-color: var(--esco-red); }
.esco-acc-tab:hover:not(.active) { color: var(--text-dark); }
.esco-acc-panel { display: none; }
.esco-acc-panel.active { display: block; }
.esco-acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.esco-acc-grid h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text-dark); margin-bottom: 12px; }
.esco-acc-grid h4 em { color: var(--esco-red); font-style: normal; }
.esco-acc-grid p { font-size: 14px; line-height: 1.8; color: var(--text-body); margin-bottom: 16px; }
.esco-acc-includes { background: var(--bg-light); padding: 14px; border-left: 3px solid var(--esco-red); font-size: 14px; line-height: 1.8; color: var(--text-body); margin-top: 12px; }
.esco-acc-includes strong { color: var(--text-dark); }
.esco-acc-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.esco-acc-images img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border: 1px solid var(--border-light); }

/* ── GALLERY ──────────────────────────────────────────── */
.esco-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 40px; }
.esco-gallery-item { position: relative; aspect-ratio: 3/2; overflow: hidden; border: 1px solid var(--border-light); cursor: pointer; background: var(--bg-light); }
.esco-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.esco-gallery-item:hover img { transform: scale(1.05); }

/* ── VIDEOS ───────────────────────────────────────────── */
.esco-videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.esco-video-item h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dark); margin-bottom: 12px; }
.esco-video-embed { position: relative; padding-top: 56.25%; background: #000; overflow: hidden; }
.esco-video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.esco-video-poster { position: absolute; inset: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.esco-video-poster img { width: 100%; height: 100%; object-fit: cover; }
.esco-play-btn { position: absolute; width: 64px; height: 64px; background: var(--esco-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(219,0,0,0.3); transition: transform 0.3s; }
.esco-video-poster:hover .esco-play-btn { transform: scale(1.12); }
.esco-play-btn svg { width: 24px; height: 24px; color: #fff; margin-left: 3px; }

/* ── RESOURCES ────────────────────────────────────────── */
.esco-resources-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; margin-top: 40px; align-items: start; }
.esco-resource-group { margin-bottom: 32px; }
.esco-resource-group h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dark); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--border-light); }
.esco-resource-links { display: flex; flex-wrap: wrap; gap: 10px; }
.esco-resource-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--border-light); font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dark); transition: all 0.3s; text-decoration: none; }
.esco-resource-link:hover { border-color: var(--esco-red); color: var(--esco-red); background: var(--esco-red-light); }

/* ── QUOTE FORM ───────────────────────────────────────── */
.esco-quote-section { padding: var(--section-pad) 0; background: var(--bg-light); background-image: radial-gradient(ellipse at 30% 50%, rgba(219,0,0,0.04) 0%, transparent 50%); }
.esco-quote-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.esco-quote-text h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.5vw, 40px); text-transform: uppercase; line-height: 1.05; color: var(--text-dark); margin-bottom: 16px; }
.esco-quote-text p { font-size: 16px; line-height: 1.8; color: var(--text-body); margin-bottom: 28px; }
.esco-quote-points { list-style: none; display: grid; gap: 16px; margin: 0; padding: 0; }
.esco-quote-points li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--text-body); }
.esco-quote-points li svg { flex-shrink: 0; color: var(--esco-red); }
.esco-quote-form {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  min-height: 480px; /* keeps card height stable while HubSpot script is loading */
}

/* ════════════════════════════════════════════════════════════════
   HUBSPOT FORM — quote section
   Rendered via hbspt.forms.create() (NOT shadow DOM), so theme CSS
   reaches the form markup. All rules scoped under .esco-quote-form.
═══════════════════════════════════════════════════════════════════ */

.esco-quote-form .hs-form,
.esco-quote-form form.hs-form {
  font-family: var(--font-body);
  color: var(--text-dark);
}

/* Reset HubSpot's default fieldset borders/padding */
.esco-quote-form .hs-form fieldset {
  max-width: none;
  border: none;
  padding: 0;
  margin: 0 0 4px 0;
}

/* HubSpot uses tables under the hood for column layouts — override with grid */
.esco-quote-form .hs-form .form-columns-1,
.esco-quote-form .hs-form .form-columns-2,
.esco-quote-form .hs-form .form-columns-3 { display: grid; gap: 16px 20px; }
.esco-quote-form .hs-form .form-columns-1 { grid-template-columns: 1fr; }
.esco-quote-form .hs-form .form-columns-2 { grid-template-columns: 1fr 1fr; }
.esco-quote-form .hs-form .form-columns-3 { grid-template-columns: 1fr 1fr 1fr; }
.esco-quote-form .hs-form .form-columns-2 .hs-form-field,
.esco-quote-form .hs-form .form-columns-3 .hs-form-field {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}
.esco-quote-form .hs-form .form-columns-2 .input,
.esco-quote-form .hs-form .form-columns-3 .input {
  margin-right: 0 !important;
}
@media (max-width: 600px) {
  .esco-quote-form .hs-form .form-columns-2,
  .esco-quote-form .hs-form .form-columns-3 { grid-template-columns: 1fr; }
}

/* Field wrapper */
.esco-quote-form .hs-form-field {
  margin-bottom: 20px;
}

/* Labels */
.esco-quote-form .hs-form-field > label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Required asterisk */
.esco-quote-form .hs-form-required {
  color: var(--esco-red);
  margin-left: 4px;
}

/* Field descriptions / helper text under label */
.esco-quote-form .hs-field-desc {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin: -2px 0 8px;
}

/* Inputs / selects / textareas */
.esco-quote-form .hs-input,
.esco-quote-form input.hs-input,
.esco-quote-form select.hs-input,
.esco-quote-form textarea.hs-input {
  width: 100% !important;
  background: #fff;
  border: 1px solid var(--border-medium);
  color: var(--text-dark);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  border-radius: 0;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.esco-quote-form textarea.hs-input {
  min-height: 120px;
  resize: vertical;
}
.esco-quote-form .hs-input:focus,
.esco-quote-form input.hs-input:focus,
.esco-quote-form select.hs-input:focus,
.esco-quote-form textarea.hs-input:focus {
  border-color: var(--esco-red);
  box-shadow: 0 0 0 3px rgba(219,0,0,0.12);
  outline: none;
}
.esco-quote-form .hs-input::placeholder,
.esco-quote-form textarea.hs-input::placeholder {
  color: var(--text-muted);
}

/* Select dropdown — custom chevron */
.esco-quote-form select.hs-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%236b6b7a' stroke-width='2'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Multi-checkbox / radio lists — 2-3 column grid for product interest */
.esco-quote-form .hs-fieldtype-checkbox .inputs-list,
.esco-quote-form .hs-fieldtype-radio .inputs-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 20px;
}
.esco-quote-form .inputs-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.esco-quote-form .inputs-list label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-body);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}
.esco-quote-form .inputs-list label > span { line-height: 1.3; }

.esco-quote-form .inputs-list input[type="checkbox"],
.esco-quote-form .inputs-list input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.esco-quote-form .inputs-list input[type="radio"] { border-radius: 50%; }
.esco-quote-form .inputs-list input[type="checkbox"]:hover,
.esco-quote-form .inputs-list input[type="radio"]:hover { border-color: var(--esco-red); }
.esco-quote-form .inputs-list input[type="checkbox"]:checked,
.esco-quote-form .inputs-list input[type="radio"]:checked {
  background: var(--esco-red);
  border-color: var(--esco-red);
}
.esco-quote-form .inputs-list input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.esco-quote-form .inputs-list input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}
.esco-quote-form .inputs-list input:focus {
  outline: 2px solid rgba(219, 0, 0, 0.4);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .esco-quote-form .hs-fieldtype-checkbox .inputs-list,
  .esco-quote-form .hs-fieldtype-radio .inputs-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }
}

/* Single-checkbox booleancheckbox (consent / opt-in) — render as one row */
.esco-quote-form .hs-fieldtype-booleancheckbox .inputs-list { display: block; }
.esco-quote-form .hs-fieldtype-booleancheckbox .inputs-list li { margin-bottom: 8px; }

/* Submit + multi-step navigation buttons */
.esco-quote-form .hs-button,
.esco-quote-form .hs-button.primary,
.esco-quote-form input.hs-button,
.esco-quote-form button.hs-button {
  background: var(--esco-red);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  width: 100%;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.15s ease;
  margin-top: 8px;
}
.esco-quote-form .hs-button:hover,
.esco-quote-form .hs-button.primary:hover,
.esco-quote-form input.hs-button:hover,
.esco-quote-form button.hs-button:hover {
  background: var(--esco-red-dark);
}
.esco-quote-form .hs-button:disabled,
.esco-quote-form .hs-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Step navigation row (multi-step forms) — back + next side by side */
.esco-quote-form .hs-form-step-buttons,
.esco-quote-form .hs-fieldset-step-buttons,
.esco-quote-form .actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-top: 20px;
}
.esco-quote-form .hs-form-step-buttons button,
.esco-quote-form .hs-fieldset-step-buttons button,
.esco-quote-form .hs-form-step-buttons input,
.esco-quote-form .hs-fieldset-step-buttons input {
  flex: 1;
  margin-top: 0;
}
/* Back button: outline secondary */
.esco-quote-form button.hs-form-step-back-button,
.esco-quote-form .hs-back-button,
.esco-quote-form .hs-form-step-buttons button[data-back],
.esco-quote-form .hs-fieldset-step-buttons button[data-back] {
  background: transparent !important;
  color: var(--text-dark) !important;
  border: 2px solid var(--border-medium) !important;
}
.esco-quote-form button.hs-form-step-back-button:hover,
.esco-quote-form .hs-back-button:hover,
.esco-quote-form .hs-form-step-buttons button[data-back]:hover,
.esco-quote-form .hs-fieldset-step-buttons button[data-back]:hover {
  background: var(--text-dark) !important;
  color: #fff !important;
  border-color: var(--text-dark) !important;
}

/* Step progress indicator (if form has one) */
.esco-quote-form .hs-form-step-indicator,
.esco-quote-form .hs-form-progress {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.esco-quote-form .hs-form-step-indicator-active,
.esco-quote-form .hs-form-progress-active {
  color: var(--esco-red);
  font-weight: 600;
}

/* Validation errors */
.esco-quote-form .hs-error-msgs {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.esco-quote-form .hs-error-msg,
.esco-quote-form .hs-error-msgs label {
  color: var(--esco-red);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.esco-quote-form .hs-form-field input.invalid.error,
.esco-quote-form .hs-form-field select.invalid.error,
.esco-quote-form .hs-form-field textarea.invalid.error {
  border-color: var(--esco-red);
}

/* Submitted thank-you state */
.esco-quote-form .submitted-message {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  padding: 20px 0;
}

/* Legal/GDPR consent area */
.esco-quote-form .legal-consent-container {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.esco-quote-form .legal-consent-container a {
  color: var(--esco-red);
  text-decoration: underline;
}

/* Embedded rich text inside the form */
.esco-quote-form .hs-richtext,
.esco-quote-form .hs-richtext p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 12px;
}
.esco-quote-form .hs-richtext h2,
.esco-quote-form .hs-richtext h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* ── CTA BAND ─────────────────────────────────────────── */
.esco-cta-band { background: var(--esco-red); padding: 56px 0; }
.esco-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #fff; }
.esco-cta-inner h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 32px); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.esco-cta-inner p { font-size: 15px; opacity: 0.9; margin: 0; }

/* ── LIGHTBOX ─────────────────────────────────────────── */
.esco-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.esco-lightbox.active { display: flex; }
.esco-lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; cursor: default; }
.esco-lightbox-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; }
.esco-lightbox-close:hover { background: rgba(255,255,255,0.2); }

/**
 * ESCO Tool — Single Product CSS Addendum
 * Append to: /wp-content/themes/escotool/assets/css/single-product.css
 *
 * Contains styles ONLY for the new sections added to single-product.php:
 *   - Product logo in hero
 *   - Hero video section
 *   - New kits repeater (kit_includes / kit_notes)
 *   - Reference charts
 *   - Related products
 *   - Accessory size/part tables
 *   - Blade catalog mode
 *
 * Existing styles for hero, specs, features, accessories, gallery,
 * videos, resources, quote form, CTA band, and lightbox are unchanged.
 */


/* ════════════════════════════════════════════════════════════
   HERO LOGO (product_logo ACF image)
   ════════════════════════════════════════════════════════════ */
.esco-hero-logo {
  margin-bottom: 20px;
  max-width: 200px;
}
.esco-hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  object-position: left center;
}


/* ════════════════════════════════════════════════════════════
   HERO VIDEO SECTION (hero_video_vimeo_id)
   Sits between hero and sticky nav. Full-width container,
   centered 16:9 video with Vimeo poster + play button.
   ════════════════════════════════════════════════════════════ */
.esco-hero-video-section {
  background: var(--bg-light, #f6f6f8);
  padding: 60px 0;
  border-top: 1px solid var(--border-light, #e2e3e8);
  border-bottom: 1px solid var(--border-light, #e2e3e8);
}
.esco-hero-video-wrap {
  max-width: 960px;
  margin: 0 auto;
}
.esco-hero-video-wrap .esco-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}


/* ════════════════════════════════════════════════════════════
   KITS — NEW REPEATER STYLES
   The new `kits` repeater uses kit_includes (textarea, new_lines:br)
   and kit_notes (textarea, new_lines:br) instead of <ul> bullets.
   Existing .esco-kit-card, .esco-kit-header, .esco-kit-body,
   .esco-kit-number, .esco-kits-grid stay as-is.
   ════════════════════════════════════════════════════════════ */
.esco-kit-includes {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body, #484848);
  margin: 0 0 16px;
}
.esco-kit-includes br + br { /* tighten double-spaces */
  display: none;
}

.esco-kit-notes {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg-light, #f6f6f8);
  border-left: 3px solid var(--esco-red, #db0000);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body, #484848);
}


/* ════════════════════════════════════════════════════════════
   REFERENCE CHARTS (#charts)
   Repeater of clamp rib / cutterhead / fin head / expander charts.
   Each block can have title + description + image + table.
   ════════════════════════════════════════════════════════════ */
.esco-chart-block {
  background: #fff;
  border: 1px solid var(--border-light, #e2e3e8);
  padding: 32px;
  margin-bottom: 32px;
}
.esco-chart-block:last-child {
  margin-bottom: 0;
}
.esco-chart-title {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dark, #1c1c1c);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--esco-red, #db0000);
}
.esco-chart-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body, #484848);
  margin-bottom: 24px;
}
.esco-chart-desc p:last-child {
  margin-bottom: 0;
}
.esco-chart-image {
  margin: 24px 0;
  text-align: center;
}
.esco-chart-image img {
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
  border: 1px solid var(--border-light, #e2e3e8);
  background: var(--bg-light, #f6f6f8);
}

/* Header row in a chart_table (first row rendered as <th>) */
.esco-chart-block .esco-specs-table {
  margin: 0;
}
.esco-chart-block .esco-chart-thead th {
  background: var(--text-dark, #1c1c1c);
  color: #fff;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  padding: 12px 14px;
}


/* ════════════════════════════════════════════════════════════
   RELATED PRODUCTS
   Shown above the quote form. 4-up grid of cards with image,
   tagline pill, name, and "View Product →" link.
   ════════════════════════════════════════════════════════════ */
.esco-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.esco-related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-light, #e2e3e8);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  overflow: hidden;
}
.esco-related-card:hover {
  border-color: var(--esco-red, #db0000);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.esco-related-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-light, #f6f6f8);
  overflow: hidden;
}
.esco-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.esco-related-card:hover .esco-related-img img {
  transform: scale(1.04);
}
.esco-related-info {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.esco-related-tag {
  display: inline-block;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--esco-red, #db0000);
  margin-bottom: 8px;
}
.esco-related-info h3 {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dark, #1c1c1c);
  margin: 0 0 14px;
  line-height: 1.2;
}
.esco-related-link {
  margin-top: auto;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--esco-red, #db0000);
}


/* ════════════════════════════════════════════════════════════
   ACCESSORY SIZE / PART TABLE
   Optional accessory_table sub-repeater inside an accessory panel.
   Used for accessories like Membrane Removal heads with size-dependent
   parts. Inherits .esco-specs-table styling but constrained.
   ════════════════════════════════════════════════════════════ */
.esco-acc-table-wrap {
  margin-top: 20px;
}
.esco-acc-table-wrap .esco-specs-table {
  font-size: 14px;
}
.esco-acc-table-wrap .esco-specs-table th {
  background: var(--text-dark, #1c1c1c);
  color: #fff;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
}


/* ════════════════════════════════════════════════════════════
   BLADE CATALOG MODE
   Used when is_blade_catalog = true (M-Series, G-Series, Inserts).
   Replaces the entire product layout with a sectioned blade grid.
   ════════════════════════════════════════════════════════════ */
.esco-blade-hero {
  padding: 60px 0;
  text-align: center;
}
.esco-blade-hero .esco-hero-name {
  margin-bottom: 16px;
}
.esco-blade-intro {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: left;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body, #484848);
}
.esco-blade-intro p:last-child {
  margin-bottom: 0;
}

.esco-blades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.esco-blade-card {
  background: #fff;
  border: 1px solid var(--border-light, #e2e3e8);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.esco-blade-card:hover {
  border-color: var(--esco-red, #db0000);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.esco-blade-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-light, #f6f6f8);
  margin: -20px -20px 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.esco-blade-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.4s;
}
.esco-blade-card:hover .esco-blade-img img {
  transform: scale(1.04);
}
.esco-blade-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.esco-blade-pn {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--esco-red, #db0000);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light, #e2e3e8);
}
.esco-blade-specs {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body, #484848);
}
.esco-blade-specs p:last-child {
  margin-bottom: 0;
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .esco-hero-logo {
    max-width: 160px;
  }
  .esco-hero-logo img {
    max-height: 60px;
  }

  .esco-hero-video-section {
    padding: 40px 0;
  }

  .esco-chart-block {
    padding: 20px;
  }
  .esco-chart-title {
    font-size: 18px;
  }

  .esco-related-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
  .esco-related-info {
    padding: 16px 18px 18px;
  }
  .esco-related-info h3 {
    font-size: 17px;
  }

  .esco-blades-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  .esco-blade-card {
    padding: 16px;
  }
  .esco-blade-img {
    margin: -16px -16px 14px;
  }
}

@media (max-width: 480px) {
  .esco-related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .esco-blades-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .esco-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .esco-hero-image { order: -1; }
  .esco-hero-image img { max-width: 380px; margin: 0 auto; }
  .esco-acc-grid { grid-template-columns: 1fr; }
  .esco-quote-layout { grid-template-columns: 1fr; }
  .esco-resources-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --section-pad: 56px; }
  .esco-hero-range { flex-direction: column; gap: 12px; }
  .esco-hero-actions { flex-direction: column; }
  .esco-btn { justify-content: center; }
  .esco-features-grid,
  .esco-kits-grid { grid-template-columns: 1fr; }
  .esco-gallery-grid { grid-template-columns: 1fr 1fr; }
  .esco-videos-grid { grid-template-columns: 1fr; }
  .esco-motor-tabs { width: 100%; }
  .esco-motor-tab { flex: 1; text-align: center; padding: 10px 12px; font-size: 14px; }
  .esco-cta-inner { flex-direction: column; text-align: center; }
  .esco-specs-header { flex-direction: column; align-items: flex-start; }
  .esco-acc-images { grid-template-columns: 1fr; }
}
