:root {
  --black: #000;
  --orange: #fb9c27;
  --cream: #f7f3ef;
  --ink: #343a40;
  --muted: #6c757d;
  --line: #ded7d0;
  --green: #1c6645;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--cream); font-family: Montserrat, "Open Sans", Roboto, "Helvetica Neue", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }

.brand-bar { min-height: 76px; padding: 6px max(3vw, 24px); display: flex; align-items: center; justify-content: space-between; background: var(--orange); color: #fff; }
.brand-identity { display: flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; font-size: 1.02rem; font-weight: 500; }
.brand-identity img { width: 58px; height: 58px; object-fit: contain; flex: 0 0 58px; }
.brand-bar nav { display: flex; align-items: center; gap: 4px; }
.brand-bar nav a { padding: 12px 9px; color: rgba(255,255,255,.72); font-size: .8rem; text-decoration: none; letter-spacing: .03em; }
.brand-bar nav a:hover, .brand-bar nav a.active { color: #fff; }

.hero { max-width: 1200px; margin: 0 auto; padding: 64px 28px 58px; display: grid; grid-template-columns: minmax(0,.92fr) minmax(430px,1.08fr); gap: 54px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.eyebrow, .section-title p { color: var(--orange); font-size: .75rem; font-weight: 700; letter-spacing: .2em; margin: 0 0 11px; }
.hero h1 { color: var(--cream); font-size: clamp(2.5rem,4.6vw,4.35rem); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 24px; }
.hero-copy > p:not(.eyebrow) { color: #d6d1cb; font-family: "Open Sans", Arial, sans-serif; font-size: 1.05rem; line-height: 1.7; }
.hero aside { border-left: 4px solid var(--orange); padding: 19px 0 19px 23px; margin-top: 18px; display: flex; flex-direction: column; gap: 7px; color: #d6d1cb; font-family: "Open Sans", Arial, sans-serif; line-height: 1.55; }
.hero aside strong { color: #fff; }
.hero-photo { position: relative; min-height: 430px; overflow: hidden; border: 1px solid #343a40; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 55%,rgba(0,0,0,.75)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo > span { position: absolute; z-index: 1; left: 24px; bottom: 21px; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .2em; }

.quote-form { width: min(1120px,calc(100% - 40px)); margin: 0 auto 64px; background: var(--cream); }
.validation-summary { display: flex; flex-direction: column; gap: 7px; padding: 22px 64px; background: #fff0e3; border-left: 5px solid #c75a16; color: #74401f; font-family: "Open Sans", Arial, sans-serif; line-height: 1.5; outline: none; }
.validation-summary strong { color: #7b3510; }
.form-section { padding: 52px 64px; border-bottom: 1px solid var(--line); background: var(--cream); }
.section-title { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 34px; }
.section-title > span { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-weight: 800; }
.section-title p { margin: 2px 0 5px; }
.section-title h2 { color: var(--ink); font-size: 2rem; font-weight: 500; margin: 0; }
.field-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.field-grid.two { grid-template-columns: repeat(2,1fr); }
.field-grid.three { grid-template-columns: repeat(3,1fr); }
label { display: flex; flex-direction: column; gap: 9px; color: var(--ink); font-family: "Open Sans", Arial, sans-serif; font-size: .88rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #ced4da; border-radius: .25rem; padding: 13px 14px; background: #fff; color: var(--ink); outline: none; transition: .18s; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 .2rem rgba(251,156,39,.24); }
.optional, .field-note { color: #81878c; font-weight: 400; }
.field-note { font-size: .76rem; line-height: 1.35; }

.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; border: 0; margin: 0; padding: 0; }
.choice { min-height: 88px; display: flex; flex-direction: row; align-items: flex-start; border: 1px solid var(--line); padding: 17px 18px; border-radius: .25rem; background: #fff; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.choice > span:last-child { display: flex; flex-direction: column; gap: 5px; }
.choice strong { font-size: .97rem; }
.choice small { color: var(--muted); font-weight: 400; line-height: 1.45; }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #aebbc5; flex: 0 0 20px; margin-top: 2px; }
.choice.selected { border-color: var(--orange); background: #fff4e7; }
.choice.selected .radio-dot { border: 6px solid var(--orange); }

.inline-fieldset { border: 0; padding: 0; margin: 24px 0 0; }
.inline-fieldset legend { color: var(--ink); font-family: "Open Sans", Arial, sans-serif; font-size: .88rem; font-weight: 700; margin-bottom: 10px; }
.inline-fieldset > div { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: flex; flex-direction: row; align-items: center; justify-content: center; min-width: 110px; border: 1px solid #cbd5dc; border-radius: 50px; background: #fff; padding: 11px 16px; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill.selected { border-color: var(--orange); background: #fff4e7; color: #a85010; }
.check-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; padding: 5px 0 24px; }
.check-row label, .acknowledge { flex-direction: row; align-items: flex-start; color: #465058; font-weight: 600; }
.check-row input, .acknowledge input { width: 18px; height: 18px; accent-color: var(--orange); flex: 0 0 18px; margin: 0; }
.notice { display: flex; flex-direction: column; gap: 6px; background: #e8eee9; border-left: 4px solid var(--green); padding: 18px 20px; margin-bottom: 24px; color: var(--muted); line-height: 1.5; }
.notice strong { color: var(--ink); }
.submit-section { padding: 34px 64px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #000; color: #fff; }
.submit-section > div { display: flex; flex-direction: column; gap: 6px; max-width: 650px; }
.submit-section > div span { color: #cbc6c0; font-size: .84rem; line-height: 1.5; }
.submit-button, .secondary-button { display: inline-block; border: 0; border-radius: .3rem; background: var(--orange); color: #fff; padding: 16px 22px; min-width: 220px; font-weight: 800; cursor: pointer; text-align: center; text-decoration: none; }
.submit-button:hover { background: #e88a16; }
.secondary-button { background: var(--green); }
.secondary-button:hover { background: #15543a; }

footer { padding: 38px 28px 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; background: var(--orange); color: #fff; font-size: .78rem; text-align: center; }
footer strong { letter-spacing: .12em; }
footer small { width: 100%; }

.message-page { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 40px 20px; }
.message-card { width: min(780px,100%); padding: 58px; background: var(--cream); color: var(--ink); }
.message-card h1 { font-size: clamp(2rem,5vw,3.5rem); font-weight: 500; margin: 0 0 20px; }
.message-card > p:not(.eyebrow) { color: var(--muted); font-family: "Open Sans", Arial, sans-serif; font-size: 1.02rem; line-height: 1.7; margin-bottom: 28px; }
.success-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #e4f2e9; color: var(--green); font-size: 1.8rem; margin-bottom: 26px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .brand-bar nav { display: none; }
  .hero { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .brand-bar { min-height: 64px; }
  .brand-identity { font-size: .78rem; }
  .brand-identity img { width: 48px; height: 48px; flex-basis: 48px; }
  .hero { padding: 38px 22px; gap: 24px; }
  .hero h1 { font-size: 2.75rem; }
  .hero-photo { min-height: 280px; }
  .quote-form { width: calc(100% - 24px); }
  .validation-summary { padding: 20px 22px; }
  .form-section { padding: 38px 22px; }
  .section-title h2 { font-size: 1.55rem; }
  .field-grid.two, .field-grid.three, .choice-grid, .check-row { grid-template-columns: 1fr; }
  .submit-section { padding: 28px 22px; flex-direction: column; align-items: stretch; }
  .submit-button { width: 100%; }
  .inline-fieldset > div { display: grid; grid-template-columns: repeat(2,1fr); }
  .pill { min-width: 0; }
  .message-card { padding: 38px 24px; }
}
