/*
  Project intake form (contact.html)
  -----------------------------------
  Form styles are scoped under .intake-v2. The .contact-refresh overrides
  align the page with the shared About and Services typography and palette.
*/

.intake-v2 {
  --blue: #0067f4;
  --blue-dark: #0052c4;
  --navy: #071a38;
  --ink: #10213d;
  --muted: #5c6b82;
  --line: #dbe3ed;
  /* --soft: #f4f6f7; */
  --white: #fff;
  --danger: #b42318;
  --success: #067647;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(7, 26, 56, .12);

  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(0, 103, 244, .13), transparent 28rem),
    var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.intake-v2 * { box-sizing: border-box; }
.intake-v2 button,
.intake-v2 input,
.intake-v2 select,
.intake-v2 textarea { font: inherit; }
.intake-v2 a { color: var(--blue); }

.intake-v2.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.intake-v2 .eyebrow { margin: 0 0 10px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.intake-v2 h1 { margin: 0; color: var(--navy); font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.055em; text-align: center; }
.intake-v2 .intro { max-width: 690px; margin: 20px auto 34px; color: var(--muted); font-size: 1.08rem; text-align: center; }
.intake-v2 .layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .7fr); gap: 28px; align-items: start; }
.intake-v2 .card, .intake-v2 .aside { border: 1px solid rgba(219, 227, 237, .9); border-radius: var(--radius); background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); }
.intake-v2 .card { padding: clamp(22px, 4vw, 42px); }
.intake-v2 .aside { padding: 28px; position: sticky; top: 24px; }
.intake-v2 .aside h2 { margin: 0 0 12px; color: var(--navy); font-size: 1.2rem; }
.intake-v2 .aside ul { margin: 18px 0 26px; padding: 0; list-style: none; }
.intake-v2 .aside li { position: relative; margin: 12px 0; padding-left: 27px; color: var(--muted); }
.intake-v2 .aside li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.intake-v2 .contact-box { padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
.intake-v2 .contact-box strong { display: block; margin-bottom: 6px; color: var(--navy); }
.intake-v2 .contact-box p { margin: 10px 0 0; }

.intake-v2 .progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 34px; }
.intake-v2 .progress-step { color: var(--muted); font-size: .78rem; font-weight: 750; }
.intake-v2 .progress-step::before { content: ""; display: block; height: 5px; margin-bottom: 8px; border-radius: 10px; background: var(--line); }
.intake-v2 .progress-step.active { color: var(--blue); }
.intake-v2 .progress-step.active::before, .intake-v2 .progress-step.complete::before { background: var(--blue); }
.intake-v2 .progress-step.complete { color: var(--ink); }

.intake-v2 .step { display: none; }
.intake-v2 .step.active { display: block; animation: intake-reveal .24s ease-out; }
@keyframes intake-reveal { from { opacity: 0; transform: translateY(6px); } }
.intake-v2 .step h2 { margin: 0; color: var(--navy); font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; }
.intake-v2 .step-copy { margin: 8px 0 26px; color: var(--muted); }
.intake-v2 .intake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.intake-v2 .field { min-width: 0; }
.intake-v2 .field.full { grid-column: 1 / -1; }
.intake-v2 label, .intake-v2 legend { display: block; margin-bottom: 7px; color: var(--navy); font-size: .92rem; font-weight: 750; }
.intake-v2 .optional { color: var(--muted); font-weight: 500; }
.intake-v2 input:not([type="checkbox"]):not([type="radio"]), .intake-v2 select, .intake-v2 textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.intake-v2 textarea { min-height: 122px; resize: vertical; }
.intake-v2 input:focus, .intake-v2 select:focus, .intake-v2 textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 103, 244, .12); }
.intake-v2 [aria-invalid="true"] { border-color: var(--danger) !important; }
.intake-v2 .hint, .intake-v2 .error { display: block; margin-top: 6px; font-size: .78rem; }
.intake-v2 .hint { color: var(--muted); }
.intake-v2 .error { color: var(--danger); font-weight: 650; }
.intake-v2 fieldset { margin: 0; padding: 0; border: 0; }
.intake-v2 .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.intake-v2 .choice { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); cursor: pointer; font-weight: 620; }
.intake-v2 .choice:has(input:checked) { border-color: var(--blue); background: rgba(0, 103, 244, .055); }
.intake-v2 .choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: 0 0 auto; }
.intake-v2 .consent { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 0; color: var(--muted); font-size: .88rem; font-weight: 500; }
.intake-v2 .consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex: 0 0 auto; }
.intake-v2 .actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.intake-v2 .button { min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 800; transition: transform .16s, background .16s; }
.intake-v2 .button:hover { transform: translateY(-1px); }
.intake-v2 .button.primary { margin-left: auto; color: var(--white); background: var(--blue); }
.intake-v2 .button.primary:hover { background: var(--blue-dark); }
.intake-v2 .button.secondary { color: var(--ink); border-color: var(--line); background: var(--white); }
.intake-v2 .status { display: none; margin-top: 22px; padding: 14px 16px; border-radius: 10px; font-weight: 650; }
.intake-v2 .status.show { display: block; }
.intake-v2 .status.error-state { color: var(--danger); background: #fff1f0; }
.intake-v2 .status.success-state { color: var(--success); background: #ecfdf3; }
.intake-v2 .honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 840px) {
  .intake-v2 .layout { grid-template-columns: 1fr; }
  .intake-v2 .aside { position: static; }
}
@media (max-width: 590px) {
  .intake-v2.shell { width: min(100% - 20px, 1180px); padding: 28px 0; }
  .intake-v2 .card { padding: 22px 17px; }
  .intake-v2 .intake-grid, .intake-v2 .choices { grid-template-columns: 1fr; }
  .intake-v2 .progress-step span { display: none; }
  .intake-v2 .actions { flex-wrap: wrap; }
  .intake-v2 .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .intake-v2 *, .intake-v2 *::before, .intake-v2 *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Override Bootstrap's .progress dimensions and grid intrinsic sizing. */
.intake-v2 { --soft: #f4f6f7; }
.intake-v2 .progress { height: auto; overflow: visible; background: transparent; border-radius: 0; }
.intake-v2 .layout > *, .intake-v2 fieldset { min-width: 0; }
.intake-v2 .card { scroll-margin-top: 120px; }
.intake-v2 .button:disabled { cursor: wait; opacity: .65; }
.intake-v2 input, .intake-v2 select, .intake-v2 textarea { min-width: 0; font-size: 16px; }

/* Shared visual language with About and Services. */
.contact-refresh { padding: 160px 0 80px; background: #fff; }
.contact-refresh .intake-v2 { --blue: #0055ce; --navy: #15243b; --ink: #15243b; --muted: #52627a; --radius: 14px; --shadow: 0 8px 28px rgba(21,36,59,.04); background: none; font-family: inherit; }
.contact-refresh .intake-v2.shell { width: 100%; padding: 0 15px; }
.intake-v2 h1 { font-size: clamp(38px, 3.5vw, 50px); line-height: 1.15; letter-spacing: -1.6px; text-align: left; }
.intake-v2 .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.8px; margin-bottom: 20px; }
.intake-v2 .intro { max-width: 690px; margin: 24px 0; text-align: left; line-height: 1.8; font-size: 17px; }
.intake-v2 .contact-direct { margin-bottom: 36px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.intake-v2 .contact-direct > span { margin: 0 6px; }
.intake-v2 .contact-direct a { display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.intake-v2 .aside { background: #eef5ff; box-shadow: none; border-color: #eef5ff; top: 108px; }
.intake-v2 .aside h2 { line-height: 1.4; }
.intake-v2 .contact-next-steps { list-style: none; padding: 0; margin: 24px 0; counter-reset: next-step; }
.intake-v2 .contact-next-steps li { counter-increment: next-step; padding-left: 32px; margin: 20px 0; font-size: 14px; }
.intake-v2 .contact-next-steps li::before { content: counter(next-step, decimal-leading-zero); font-size: 12px; top: 3px; }
.intake-v2 .contact-next-steps strong, .intake-v2 .contact-next-steps span { display: block; }
.intake-v2 .contact-next-steps strong { color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.intake-v2 .contact-reassurance { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.intake-v2 .contact-box p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.intake-v2 .step-summary { color: var(--blue); font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.intake-v2 .progress { margin-bottom: 28px; }
.intake-v2 .progress-step { font-size: 11px; font-weight: 500; }
.intake-v2 .step h2 { font-size: 26px; line-height: 1.3; }
.intake-v2 .step-copy { font-size: 14px; line-height: 1.7; }
.intake-v2 label, .intake-v2 legend { font-size: 13px; font-weight: 600; }
.intake-v2 .button { border-radius: 8px; font-size: 14px; font-weight: 600; }
@media (max-width: 991px) { .contact-refresh { padding-top: 116px; } }
@media (max-width: 575px) {
  .contact-refresh { padding: 108px 0 48px; }
  .intake-v2 .intro { font-size: 16px; }
  .intake-v2 .contact-direct { font-size: 12px; }
  .intake-v2 .contact-direct > span { display: none; }
  .intake-v2 .contact-direct a { display: block; width: fit-content; min-height: 36px; padding: 6px 0; }
  .intake-v2 .step h2 { font-size: 23px; }
  .intake-v2 .aside { padding: 24px; }
}
