.intake { padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 70px); }
.intake .section-head { align-items: end; }
.intake .section-head p { max-width: 420px; }
.intake-panel, .quote-flow {
  --field-edge: #425474;
  --field-bg: #0b1424;
  --subtle: #b5c2da;
}
.intake-panel {
  overflow: hidden;
  border: 1px solid #33425f;
  border-radius: 20px;
  background: linear-gradient(115deg, #141f33, #10192a 58%, #151e36);
}
.vision-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}
.vision-main, .vision-references { min-width: 0; padding: clamp(22px, 3vw, 45px); }
.vision-references {
  border-inline-start: 1px solid var(--edge);
  background: radial-gradient(ellipse at 85% 0, #27396b4d, transparent 80%);
}
.vision-references h3, .service-picker legend {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 610; letter-spacing: -.035em;
}
.service-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.service-picker legend { padding: 0; }
.field-hint, .intake-bottom > span, .quote-note {
  color: var(--subtle); font-size: .88rem; line-height: 1.55;
}
.field-hint { margin: 5px 0 0; }
.service-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.service-options label { position: relative; cursor: pointer; }
.service-options input, .reference-drop input {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.service-options span {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px;
  min-height: 39px; border: 1px solid #4b5c7b; border-radius: 30px;
  color: #e2e9fb; background: #141f32; font-size: .9rem; line-height: 1.25;
}
.service-options span::before {
  content: '+'; color: #a6b9dd; font-size: 1.05rem; font-weight: 450;
  text-align: center; width: 13px;
}
.service-options input:checked + span { background: #d7e3ff; border-color: #c5d8ff; color: #12264b; }
.service-options input:checked + span::before { content: '✓'; color: #1b478d; }
.service-options label:hover span, .reference-drop:hover, .reference-drop.dragging { border-color: #94afff; }
.service-options input:focus-visible + span, .reference-drop:focus-within {
  outline: 3px solid #adcbff; outline-offset: 3px;
}
.brief-field { display: block; min-width: 0; color: #eff3ff; font-size: .94rem; line-height: 1.45; font-weight: 560; }
.brief-field :is(input, textarea, select) {
  width: 100%; display: block; margin-top: 7px; min-height: 46px;
  padding: 11px 13px; border: 1px solid var(--field-edge); border-radius: 9px;
  background-color: var(--field-bg); color: var(--text); font: 400 1rem/1.45 Inter, sans-serif;
}
.brief-field select {
  appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, #aebfe3 50%), linear-gradient(135deg, #aebfe3 50%, transparent 50%);
  background-position: right 17px center, right 12px center;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.brief-field :is(input, textarea)::placeholder { color: #99a9c2; opacity: 1; }
.brief-field select:focus-visible { outline: 3px solid #adcbff; outline-offset: 3px; }
.reference-drop {
  display: grid; justify-items: center; align-content: center; position: relative;
  padding: 16px; margin-top: 16px; min-height: 153px; text-align: center; cursor: pointer;
  border: 1px dashed #6179ad; border-radius: 12px;
  background: radial-gradient(ellipse at 50% 44%, #243e7466, transparent 80%), #111c30;
}
.reference-drop strong { font-size: 1rem; font-weight: 600; }
.reference-drop small { color: #b6c6e2; font-size: .82rem; line-height: 1.5; margin: 3px 0 0; }
.reference-glyph { display: block; position: relative; width: 54px; height: 42px; margin-bottom: 12px; }
.reference-glyph i, .reference-glyph b {
  position: absolute; display: block; width: 38px; height: 29px;
  border: 1px solid #7395e6; border-radius: 5px;
}
.reference-glyph i { background: #233e79; top: 2px; left: 3px; transform: rotate(-14deg); }
.reference-glyph b {
  right: 1px; top: 8px; transform: rotate(5deg); overflow: hidden;
  background: radial-gradient(circle at 73% 28%, #d2dfff 0 2px, transparent 2.7px), #4363ac;
}
.reference-glyph b::after {
  content: ''; position: absolute; inset: 9px 0 0; background: #91b1ff;
  clip-path: polygon(0 100%, 0 70%, 29% 12%, 49% 62%, 69% 31%, 100% 80%, 100% 100%);
}
#reference-list { list-style: none; margin: 12px 0 0; padding: 0; }
#reference-list li { display: flex; align-items: center; gap: 9px; margin-top: 6px; }
#reference-list img { flex: none; width: 38px; height: 38px; border-radius: 5px; object-fit: cover; }
#reference-list span { overflow-wrap: anywhere; font-size: .88rem; }
#reference-list button, .summary-edit { margin-left: auto; padding: 6px; color: #c0d4ff; text-decoration: underline; text-underline-offset: 3px; font-size: .86rem; }
#reference-status:empty { display: none; }
.intake-bottom, .quote-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border-top: 1px solid var(--edge);
}
.intake-bottom { padding: 17px clamp(22px, 3vw, 45px); background: #0b132350; }
.intake-bottom .pill { flex: none; min-height: 45px; }
.contact .contact-detail { max-width: 36ch; margin: -6px 0 23px; line-height: 1.55; color: #e1e8fb; }
dialog.quote-dialog { width: min(94vw, 820px); background: #111b2e; }
.quote-dialog .dialog-head { padding-bottom: 16px; }
.quote-dialog .dialog-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.quote-flow { padding: 0 clamp(18px, 3vw, 28px) 20px; }
.brief-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.brief-steps button {
  min-height: 42px; padding: 0 3px 7px; color: #b6c4de; font-size: .88rem;
  border-bottom: 2px solid #3b4a66; line-height: 1.2;
}
.brief-steps button[aria-current] { color: #e4edff; font-weight: 650; border-color: #86a6ff; }
.quote-page { padding-block: 20px 23px; }
.quote-page > h3 { font-size: clamp(1.4rem, 2.7vw, 1.9rem); letter-spacing: -.045em; font-weight: 600; margin: 0 0 16px; }
.quote-page > h3:focus { outline: none; }
.quote-page .vision-fields { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 23px; }
.quote-page .vision-main, .quote-page .vision-references { padding: 0; border: 0; background: none; }
.quote-page .service-options { gap: 6px; margin: 11px 0 16px; }
.quote-page .service-options span { min-height: 36px; font-size: .85rem; }
.scope-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.scope-grid .wide { grid-column: 1/-1; }
#scope-services:not(:empty) { margin: 18px 0; display: grid; gap: 12px; }
.scope-detail { padding: 14px 16px 16px; border-left: 2px solid #779bff; background: #19263f; border-radius: 0 9px 9px 0; }
.scope-detail h4 { margin: 0 0 10px; color: #c5d6ff; font-size: 1rem; }
.quote-page > .scope-grid + #scope-services:empty + .scope-grid { margin-top: 15px; }
.quote-actions { justify-content: start; padding-top: 15px; }
.brief-back { border: 1px solid #4b5d7c; color: #e0e9f9; }
.quote-progress { margin-right: auto; font-size: .83rem; color: var(--subtle); }
.brief-submit:disabled { background: #344566; color: #d5deed; cursor: default; }
.quote-note { margin-top: 12px; font-size: .8rem; }
.review-block { background: #0c1526; border: 1px solid var(--edge); border-radius: 10px; padding: 16px; margin-top: 20px; }
.review-block h4 { font-size: 1.05rem; margin: 0 0 7px; }
.review-group + .review-group { border-top: 1px solid var(--edge); margin-top: 10px; padding-top: 8px; }
.review-group header { display: flex; align-items: center; gap: 10px; color: #d3e1ff; }
.review-group p { margin: 3px 0; font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; color: #bac8df; }
.review-group p b { color: #e0e9fa; font-weight: 550; }
.quote-flow [hidden], .intake [hidden] { display: none !important; }
@media(max-width: 760px) {
  .intake .section-head { align-items: start; }
  .vision-fields, .quote-page .vision-fields { grid-template-columns: minmax(0,1fr); }
  .vision-references { border-inline-start: 0; border-top: 1px solid var(--edge); }
  .reference-drop { min-height: 124px; }
  .intake-bottom { flex-wrap: wrap; }
}
@media(max-width: 530px) {
  .vision-main, .vision-references { padding: 19px 16px; }
  .intake-bottom { align-items: stretch; flex-direction: column; padding: 15px 16px; gap: 11px; }
  .scope-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .brief-steps { gap: 3px; }
  .brief-steps button { font-size: .79rem; }
  .quote-flow { padding-inline: 14px; }
  .quote-actions { gap: 8px; }
  .quote-actions .pill { padding-inline: 15px; }
}
