:root {
  --navy: #071a2e;
  --navy-2: #0b2945;
  --ink: #10283c;
  --muted: #5d7182;
  --paper: #f1f4f6;
  --white: #fff;
  --line: #d5dfe6;
  --red: #c91924;
  --red-dark: #9f111a;
  --red-soft: #fff1f2;
  --sky: #a9ddf4;
  --lime: #b9e46b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Arial, Helvetica, sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 14px; background: #fff; color: var(--navy); }
.skip-link:focus { transform: none; }

.concept-ribbon { display: flex; justify-content: center; gap: 24px; padding: 7px 18px; background: var(--lime); color: #173407; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 92px; padding: 18px max(28px, calc((100vw - 1240px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.site-header a { text-decoration: none; font-size: 13px; font-weight: 850; }
.back-link { justify-self: start; }
.sales-link { justify-self: end; padding: 11px 16px; border-radius: 4px; background: var(--red); color: #fff; }
.collins-mark img { display: block; width: 176px; max-height: 54px; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); min-height: 650px; align-items: center; overflow: hidden; padding: 86px max(28px, calc((100vw - 1240px) / 2)) 120px; background: var(--navy); color: #fff; }
.hero-product { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.9); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,18,32,.98) 0%, rgba(4,18,32,.92) 48%, rgba(4,18,32,.45) 100%), linear-gradient(0deg, rgba(4,18,32,.72), transparent 52%); }
.hero-content, .hero-boundary { position: relative; z-index: 1; }
.hero-content { max-width: 800px; }
.thermon-logo { display: block; width: 225px; max-height: 88px; margin-bottom: 38px; padding: 9px 13px; border-radius: 4px; background: rgba(255,255,255,.96); object-fit: contain; object-position: left center; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { max-width: 900px; margin: 0 0 22px; font-size: clamp(50px, 6vw, 84px); line-height: .96; letter-spacing: -.055em; }
.hero h1 em { color: var(--sky); font-style: normal; }
.hero-content > p:last-of-type { max-width: 690px; color: #cad9e4; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.hero-actions a { padding: 13px 18px; border: 1px solid rgba(255,255,255,.36); border-radius: 4px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-size: 13px; font-weight: 850; }
.hero-actions a:first-child { border-color: var(--red); background: var(--red); }
.hero-boundary { align-self: end; justify-self: end; max-width: 360px; padding: 24px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(5,25,43,.82); backdrop-filter: blur(14px); }
.hero-boundary span { color: var(--lime); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.hero-boundary strong { display: block; margin: 10px 0 7px; font-size: 20px; line-height: 1.25; }
.hero-boundary p { margin: 0; color: #bfd0dc; font-size: 13px; }

.process-band { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1240px; margin: -40px auto 0; background: #fff; box-shadow: 0 18px 55px rgba(7,26,46,.14); }
.process-band > div { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; padding: 24px 28px; border-right: 1px solid var(--line); }
.process-band > div:last-child { border-right: 0; }
.process-band span { grid-row: 1 / 3; color: var(--red); font-size: 25px; font-weight: 900; }
.process-band strong { font-size: 15px; }
.process-band small { color: var(--muted); }

.application-centre { max-width: 1240px; margin: 0 auto; padding: 115px 0 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 70px; align-items: end; margin-bottom: 38px; }
.section-heading h2, .workspace-heading h2, .application-boundary h2 { margin: 0; font-size: clamp(40px, 5.4vw, 68px); line-height: .98; letter-spacing: -.05em; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.75; }
.application-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.application-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 17px; align-items: center; min-height: 150px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; box-shadow: 0 8px 25px rgba(7,26,46,.04); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.application-card:hover, .application-card:focus-visible { transform: translateY(-3px); border-color: #9eb0bd; outline: none; box-shadow: 0 15px 35px rgba(7,26,46,.1); }
.application-card[aria-pressed="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red), 0 15px 35px rgba(127,16,24,.13); }
.application-icon { display: grid; width: 47px; height: 47px; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.application-card[aria-pressed="true"] .application-icon { background: var(--red); }
.application-card small { display: block; color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.application-card strong { display: block; margin: 3px 0 5px; font-size: 18px; line-height: 1.2; }
.application-card em { display: block; color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.application-card b { color: var(--red); font-size: 21px; }
.selection-prompt { display: flex; justify-content: center; gap: 18px; align-items: center; margin-top: 28px; padding: 32px; border: 1px dashed #aebcc7; border-radius: 8px; background: rgba(255,255,255,.55); text-align: left; }
.selection-prompt > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: #fff; color: var(--red); font-size: 21px; }
.selection-prompt strong { display: block; }
.selection-prompt p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.rfq-workspace { margin-top: 35px; padding: 48px; border-radius: 10px; background: #e7edf1; box-shadow: 0 25px 70px rgba(7,26,46,.12); scroll-margin-top: 22px; }
.workspace-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-bottom: 34px; }
.workspace-heading h2 { font-size: clamp(38px, 5vw, 62px); }
.workspace-heading > div:first-child > p:last-child { max-width: 760px; margin: 15px 0 0; color: var(--muted); }
.source-badge { min-width: 230px; padding: 18px 20px; border-left: 4px solid var(--red); background: #fff; }
.source-badge span, .source-badge small { display: block; }
.source-badge span { color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.source-badge strong { display: block; margin: 5px 0 3px; font-size: 14px; }
.source-badge small { color: var(--muted); font-size: 11px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 18px; align-items: start; }
.rfq-form { display: grid; gap: 14px; }
.form-section { padding: 31px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form-section-heading { display: grid; grid-template-columns: 43px 1fr; gap: 15px; align-items: start; margin-bottom: 25px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-section-heading > span { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 900; }
.form-section-heading h3 { margin: 0 0 3px; font-size: 22px; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-grid.three-column { grid-template-columns: repeat(3, 1fr); }
.field, .measurement-field { min-width: 0; }
.field.full, .measurement-field.full, .choice-field.full { grid-column: 1 / -1; }
.field label, .measurement-field > label, .choice-field legend, .line-table-title { display: block; margin: 0 0 7px; color: #263d50; font-size: 12px; font-weight: 850; }
.field input, .field select, .field textarea, .measurement-input input, .measurement-input select, .line-table input, .line-table select { width: 100%; min-height: 49px; padding: 11px 12px; border: 1px solid #9fb0bd; border-radius: 5px; background: #fff; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .measurement-input input:focus, .measurement-input select:focus, .line-table input:focus, .line-table select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(201,25,36,.09); }
.measurement-input { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 7px; }
.choice-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-grid label { position: relative; display: block; margin: 0; cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { display: flex; min-height: 46px; align-items: center; padding: 10px 12px; border: 1px solid #afbdc8; border-radius: 5px; background: #fff; color: #334b5d; font-size: 12px; font-weight: 750; }
.choice-grid input:focus-visible + span { outline: 3px solid rgba(201,25,36,.18); outline-offset: 1px; }
.choice-grid input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); box-shadow: inset 0 0 0 1px var(--red); }
.checkbox-field .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-note { margin: 16px 0 0; padding: 13px 15px; border-left: 3px solid var(--red); background: #f7f9fa; color: var(--muted); font-size: 12px; }
.conditional-field { margin-top: 17px; padding: 17px; border-radius: 6px; background: #f4f7f9; }
.conditional-field[hidden] { display: none; }

.line-table-wrap { overflow-x: auto; }
.line-table { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0 8px; }
.line-table th { padding: 0 6px 5px; color: var(--muted); font-size: 9px; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.line-table td { padding: 6px; background: #f5f7f9; }
.line-table td:first-child { width: 38px; color: var(--red); font-size: 12px; font-weight: 900; text-align: center; }
.line-table input, .line-table select { min-width: 105px; min-height: 43px; padding: 9px; font-size: 12px; }
.line-table .wide-cell input { min-width: 145px; }

.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 13px 0 0; }
.form-actions button { min-height: 51px; padding: 13px 18px; border-radius: 5px; cursor: pointer; font-weight: 850; }
.clear-button { border: 1px solid #a8b6c1; background: transparent; color: var(--ink); }
.review-button { display: flex; min-width: 245px; justify-content: space-between; border: 0; background: var(--red); color: #fff; }
.review-button:hover { background: var(--red-dark); }
.validation-status { min-height: 20px; margin: 0; color: var(--red-dark); font-size: 12px; font-weight: 750; }

.review-panel { position: sticky; top: 18px; min-height: 540px; overflow: hidden; border-radius: 8px; background: radial-gradient(circle at 85% 10%, rgba(169,221,244,.25), transparent 34%), linear-gradient(145deg, var(--navy), var(--navy-2)); color: #fff; }
.review-empty, #review-complete { padding: 34px; }
.review-empty { display: flex; min-height: 540px; flex-direction: column; justify-content: center; }
.review-empty > span { display: grid; width: 48px; height: 48px; margin-bottom: 20px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: var(--sky); font-size: 20px; }
.review-panel h3 { margin: 0 0 11px; font-size: 31px; line-height: 1.08; }
.review-panel p { color: #bcd0df; }
.review-kicker { margin: 0 0 13px; color: var(--lime) !important; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.review-intro { font-size: 13px; }
#review-list { display: grid; gap: 1px; max-height: 620px; overflow-y: auto; margin: 25px 0; padding-right: 5px; }
#review-list div { padding: 11px 12px; background: rgba(255,255,255,.07); }
#review-list dt { color: #8fb0c7; font-size: 8px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
#review-list dd { margin: 3px 0 0; color: #fff; font-size: 12px; overflow-wrap: anywhere; }
.review-boundary { padding: 15px; border-left: 3px solid var(--lime); background: rgba(185,228,107,.09); }
.review-boundary strong { color: #e9ffc0; font-size: 12px; }
.review-boundary p { margin: 4px 0 0; color: #cfdebf; font-size: 11px; }
.review-stale { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid #ffd274; background: rgba(255,210,116,.11); color: #ffe7b2 !important; font-size: 12px; font-weight: 800; }
.calculator-lead-slot { grid-column: 1 / -1; margin-top: 18px; }

.application-boundary { display: grid; grid-template-columns: .85fr 1.15fr; gap: 65px; max-width: 1240px; margin: 120px auto 0; padding: 66px; border-top: 5px solid var(--red); background: #fff; box-shadow: 0 22px 60px rgba(7,26,46,.08); }
.boundary-grid { display: grid; gap: 14px; }
.boundary-grid p { margin: 0; color: var(--muted); }
.boundary-grid strong { display: block; color: var(--navy); }
.application-boundary > a { grid-column: 2; color: var(--red); font-size: 13px; font-weight: 900; text-decoration: none; }
footer { display: flex; max-width: 1240px; align-items: center; gap: 25px; margin: 85px auto 0; padding: 32px 0; border-top: 1px solid #cbd7e0; color: var(--muted); font-size: 12px; }
footer img { width: 150px; }
footer p { flex: 1; }
footer a { color: var(--red); font-weight: 800; }

@media (max-width: 1280px) {
  .process-band, .application-centre, .application-boundary, footer { margin-left: 24px; margin-right: 24px; }
}

@media (max-width: 1000px) {
  .application-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace-grid { grid-template-columns: 1fr; }
  .review-panel { position: static; min-height: 400px; }
  .review-empty { min-height: 400px; }
  .field-grid.three-column { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto; }
  .collins-mark { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 45px; padding-top: 70px; padding-bottom: 95px; }
  .hero-boundary { justify-self: start; }
  .process-band { grid-template-columns: repeat(2, 1fr); }
  .process-band > div:nth-child(2) { border-right: 0; }
  .process-band > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading, .workspace-heading, .application-boundary { grid-template-columns: 1fr; }
  .section-heading, .workspace-heading { gap: 22px; }
  .source-badge { max-width: 360px; }
  .application-boundary > a { grid-column: auto; }
  .application-boundary { padding: 40px; gap: 32px; }
}

@media (max-width: 640px) {
  .concept-ribbon { justify-content: flex-start; overflow: hidden; white-space: nowrap; }
  .concept-ribbon span:last-child { display: none; }
  .site-header { padding: 16px 18px; }
  .hero { padding: 55px 22px 80px; }
  .hero h1 { font-size: 47px; }
  .thermon-logo { width: 185px; }
  .process-band, .application-centre, .application-boundary, footer { margin-left: 14px; margin-right: 14px; }
  .process-band { margin-top: -25px; grid-template-columns: minmax(0, 1fr); }
  .process-band > div { min-width: 0; grid-template-columns: auto minmax(0, 1fr); padding: 18px 20px; border-right: 0; }
  .process-band > div:not(:last-child) { border-bottom: 1px solid var(--line); }
  .process-band strong, .process-band small { min-width: 0; overflow-wrap: anywhere; }
  .application-centre { padding-top: 80px; }
  .application-grid { grid-template-columns: 1fr; }
  .application-card { min-height: 130px; }
  .rfq-workspace { padding: 20px 14px; }
  .workspace-heading { padding: 8px; }
  .form-section { padding: 22px 18px; }
  .field-grid, .field-grid.three-column { grid-template-columns: 1fr; }
  .measurement-input { grid-template-columns: minmax(0, 1fr) 96px; }
  .choice-grid, .checkbox-field .choice-grid { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .review-button { min-width: 0; }
  .application-boundary { padding: 32px 24px; }
  footer { align-items: flex-start; flex-direction: column; }
}
