:root {
  --navy: #181c20;
  --blue: #315f7b;
  --ink: #171717;
  --muted: #656761;
  --line: #e0ded7;
  --soft: #f7f8f5;
  --green: #147362;
  --green-soft: #eaf4ef;
  --amber: #bd7a2c;
  --amber-soft: #fbf0df;
  --white: #ffffff;
  --danger: #b23a45;
  --shadow: 0 24px 70px rgba(24, 28, 32, 0.09);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfbf8 0%, #f3f6f2 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(251, 251, 248, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--navy);
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  background:
    linear-gradient(135deg, rgba(20, 115, 98, 0.92), rgba(49, 95, 123, 0.92)),
    var(--navy);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--white);
}

.brand-mark::before {
  left: 9px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.brand-mark::after {
  right: 8px;
  bottom: 9px;
  width: 13px;
  height: 2px;
  border-radius: 999px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #2b302f;
  font-weight: 700;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero {
  min-height: 430px;
  display: grid;
  align-items: center;
  padding: 58px 32px 96px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(251, 251, 248, 0.98) 0%, rgba(251, 251, 248, 0.9) 44%, rgba(251, 251, 248, 0.24) 78%),
    url("assets/signal-intake.jpg") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  width: min(650px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--green);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4.8vw, 4.55rem);
  line-height: 1.01;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 530px;
  margin-bottom: 24px;
  font-size: 1.12rem;
  line-height: 1.55;
  color: #3d403c;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-signals span,
.time-pill,
#routeBadge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-signals span {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 28, 32, 0.1);
  backdrop-filter: blur(10px);
}

.quote-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: -54px auto 72px;
  align-items: start;
}

.quote-form,
.quote-panel,
.success-content {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-form {
  padding: 30px;
}

.form-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.form-top h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 1.85rem;
  line-height: 1.1;
}

.form-top-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.time-pill {
  flex: 0 0 auto;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #cde5d8;
}

.draft-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.dot {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}

.stepper-item {
  position: relative;
  min-height: 52px;
  padding: 12px 14px 12px 48px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.stepper-item::before {
  content: attr(data-step-label);
  position: absolute;
  left: 14px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  background: #8d928d;
  border-radius: 50%;
  font-size: 0.84rem;
}

.stepper-item.active {
  color: var(--navy);
  background: #eef5f2;
  border-color: #bddbce;
}

.stepper-item.active::before,
.stepper-item.complete::before {
  background: var(--blue);
}

.stepper-item.complete {
  color: var(--green);
  background: var(--green-soft);
  border-color: #c5dfd5;
}

.stepper-item.complete::before {
  content: "✓";
  background: var(--green);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.reassurance-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.reassurance-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #4d5651;
  background: #fbfbf8;
  border: 1px solid #e4e4de;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.reassurance-strip span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: var(--green);
  border-radius: 50%;
}

.step-heading {
  margin-bottom: 22px;
}

.step-heading h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.38rem;
}

.step-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

legend,
.field > span,
.contact-method legend {
  display: block;
  margin-bottom: 9px;
  color: var(--navy);
  font-weight: 900;
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.intent-grid legend {
  grid-column: 1 / -1;
}

.choice-card {
  min-height: 112px;
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice-card:has(input:checked) {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green), 0 14px 34px rgba(20, 115, 98, 0.1);
}

.choice-card:hover {
  transform: translateY(-1px);
  border-color: #becbc2;
}

.choice-card.secondary {
  background: #fbfbf8;
}

.choice-card input {
  margin-top: 4px;
}

.choice-card strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}

.choice-card small,
.helper-text,
.field-meta,
.upload-box small {
  color: var(--muted);
  line-height: 1.35;
}

.helper-text,
.field-meta {
  display: block;
  margin-top: 6px;
}

.field-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: block;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fdfdfb;
  border: 1px solid #cfcfc7;
  border-radius: var(--radius);
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  background: var(--white);
  border-color: #bfc8c0;
}

.field textarea {
  resize: vertical;
  min-height: 136px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(49, 95, 123, 0.12);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
}

.error-message {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 700;
}

.advisor {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 10px;
  padding: 18px;
  background: linear-gradient(90deg, rgba(234, 244, 239, 0.86), rgba(247, 248, 245, 0.88));
  border: 1px solid #cfe1d8;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.advisor p {
  margin: 5px 0 0;
  color: var(--muted);
}

.route-meta,
.handoff-metrics,
.trust-strip,
.panel-insights,
.insight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-meta {
  margin-top: 12px;
}

.route-meta span,
.handoff-metrics span,
.trust-strip span,
.panel-insights span,
.insight-chips span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #e2e2dc;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

#routeBadge {
  color: var(--green);
  background: var(--white);
  border: 1px solid #c5dfd5;
}

.smart-fields {
  margin-bottom: 6px;
}

.segmented,
.contact-method {
  margin-bottom: 18px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.segmented legend {
  grid-column: 1 / -1;
}

.segmented label,
.contact-method label {
  display: block;
}

.segmented input,
.contact-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span,
.contact-method span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 10px;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.segmented span:hover,
.contact-method span:hover {
  transform: translateY(-1px);
}

.segmented input:checked + span,
.contact-method input:checked + span {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.assist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}

.insight-stack {
  margin: 0 0 18px;
  padding: 16px;
  background: #fbfbf8;
  border: 1px solid #e3e4dd;
  border-radius: var(--radius);
}

.insight-stack strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
}

.insight-chips span {
  background: var(--green-soft);
  border-color: #c5dfd5;
  color: var(--green);
}

.project-brief {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 18px;
  background: #f6f8f9;
  border: 1px solid #dde5e8;
  border-radius: var(--radius);
}

.project-brief strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}

.project-brief p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.ghost-button,
.secondary-button,
.primary-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 900;
  border: 1px solid transparent;
}

.ghost-button {
  min-height: 40px;
  color: var(--blue);
  background: #eef4f6;
  border-color: #d4e0e4;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-1px);
}

.upload-box {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 16px;
  margin-bottom: 10px;
  background: #fbf7ef;
  border: 1px dashed #cda36f;
  border-radius: var(--radius);
}

.upload-box input {
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.upload-box::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 900;
}

.contact-method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.contact-method legend {
  grid-column: 1 / -1;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.consent-row.optional {
  color: var(--muted);
  font-weight: 600;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.secondary-button {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.primary-button {
  color: var(--white);
  background: var(--navy);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #2b302f;
  transform: translateY(-1px);
}

.secondary-button:hover,
.secondary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(49, 95, 123, 0.12);
}

.submit-button {
  display: none;
  background: var(--green);
}

.submit-button:hover,
.submit-button:focus-visible {
  background: #095f54;
}

.quote-panel {
  position: sticky;
  top: 94px;
  overflow: hidden;
}

.panel-image {
  height: 136px;
  background:
    linear-gradient(180deg, rgba(24, 28, 32, 0) 0%, rgba(24, 28, 32, 0.22) 100%),
    url("assets/signal-intake.jpg") center / cover no-repeat;
}

.score-block,
.summary-card,
.intelligence-card,
.next-best,
.support-box {
  padding: 22px;
}

.score-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.score-block strong {
  display: block;
  color: var(--navy);
  max-width: 245px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.score-caption {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.guidance-meter {
  flex: 0 0 118px;
  height: 10px;
  overflow: hidden;
  background: #e4e5df;
  border-radius: 999px;
}

.guidance-meter span {
  display: block;
  width: 12%;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--green), var(--blue));
  border-radius: inherit;
  transition: width 180ms ease;
}

.summary-card,
.intelligence-card,
.next-best {
  border-bottom: 1px solid var(--line);
}

.quote-panel h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 1.06rem;
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #edf0f5;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.availability-grid,
.tracking-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.availability-grid div,
.tracking-panel div {
  padding: 12px;
  background: var(--soft);
  border: 1px solid #e4e4de;
  border-radius: var(--radius);
}

.availability-grid span,
.tracking-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.availability-grid strong,
.tracking-panel strong {
  color: var(--navy);
  line-height: 1.25;
}

.next-best p,
.support-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.panel-insights,
.handoff-metrics {
  margin-top: 14px;
}

.panel-insights span {
  background: #fbf7ef;
  border-color: #ead4b8;
  color: #735020;
}

.support-box {
  background: #fbfbf8;
}

.handoff-metrics span {
  background: var(--white);
  color: var(--green);
  border-color: #c5dfd5;
}

.trust-strip {
  padding: 18px 22px 22px;
  background: #fbfbf8;
}

.trust-strip span {
  color: var(--muted);
  background: var(--white);
}

.success-state {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 72px;
}

.success-content {
  padding: 36px;
  border-color: #c5dfd5;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92), rgba(234, 244, 239, 0.66)),
    url("assets/signal-intake.jpg") center right / cover no-repeat;
}

.success-content h2 {
  max-width: 620px;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 2rem;
}

.success-content p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  line-height: 1.55;
}

.status-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  padding: 0;
  margin: 24px 0 12px;
  list-style: none;
}

.status-timeline li {
  position: relative;
  min-height: 54px;
  padding: 14px 14px 14px 42px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.status-timeline li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 14px;
  height: 14px;
  background: #dfe1db;
  border-radius: 50%;
}

.status-timeline .complete {
  border-color: #c5dfd5;
  background: var(--green-soft);
}

.status-timeline .complete::before {
  background: var(--green);
}

.tracking-copy {
  font-weight: 800;
}

.tracking-panel {
  max-width: 760px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 980px) {
  .quote-shell {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    position: static;
  }

  .intent-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 0 16px;
  }

  .header-actions a {
    display: none;
  }

  .hero {
    min-height: 350px;
    padding: 32px 20px 62px;
    background:
      linear-gradient(90deg, rgba(251, 251, 248, 0.98) 0%, rgba(251, 251, 248, 0.88) 64%, rgba(251, 251, 248, 0.42) 100%),
      url("assets/signal-intake.jpg") center right / cover no-repeat;
  }

  .quote-shell {
    width: calc(100% - 20px);
    margin-top: -36px;
  }

  .quote-form {
    padding: 18px;
  }

  .form-top,
  .advisor,
  .score-block,
  .project-brief {
    display: block;
  }

  .form-top-actions {
    align-items: flex-start;
    margin-top: 14px;
  }

  .time-pill,
  #routeBadge {
    margin-top: 14px;
  }

  .field-grid.two,
  .stepper,
  .segmented,
  .contact-method {
    grid-template-columns: 1fr;
  }

  .stepper {
    gap: 6px;
  }

  .stepper-item {
    min-height: 44px;
    padding: 10px 12px 10px 44px;
  }

  .intent-grid {
    gap: 10px;
  }

  .choice-card {
    min-height: 94px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }

  .guidance-meter {
    margin-top: 16px;
  }

  .status-timeline {
    grid-template-columns: 1fr;
  }

  .tracking-panel {
    grid-template-columns: 1fr;
  }

  .success-state {
    width: calc(100% - 20px);
  }
}
