﻿/* Assisted buying (requirements form) */

/* Same tokens as the v3 homepage. Layout: narrow left-aligned column, a three-step progress rail, fine gold rules. */
:root { --green: #183f29; --paper: #f7f5ef; --stone: #ece8de; --gold: #c8a553; --gold-deep: #85651f; --ink: #16231b; --error: #9b2c1f; --wrap: 1080px; }
h1, h2 { font-family: var(--display); line-height: 1.04; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.15; }
.lede { font-size: 1.0625rem; color: var(--muted); max-width: 56ch; }
.link { color: var(--green); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; background: none; border-top: 0; border-left: 0; border-right: 0; font: inherit; font-weight: 600; cursor: pointer; }

/* Progress */
.top { background: var(--forest); color: var(--on-dark); padding-block: clamp(44px, 6vw, 72px) 0; }
.top h1 { color: var(--on-dark); }
.top .lede { color: var(--on-dark-muted); margin-top: 16px; }
main { padding-block: clamp(48px, 6vw, 80px) clamp(72px, 9vw, 120px); }
.or { font-size: 0.8125rem; color: var(--muted); }
.err { font-size: 0.8125rem; color: var(--error); font-weight: 600; min-height: 1.2em; }
.req { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Results */
.confirm { background: var(--forest); color: var(--on-dark); padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; align-items: start; }
.confirm h2 { color: var(--on-dark); }
.confirm p { color: var(--on-dark-muted); max-width: 60ch; margin-top: 10px; }
.confirm .ref { color: var(--gold); font-weight: 600; font-size: 0.875rem; margin-top: 14px; }
.prop-price { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.1; color: var(--green); }
.prop-price span { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .confirm { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .view { animation: fade .45s var(--ease) both; }
  @keyframes fade { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}


/* Personal requirements link (brief.html) and the team's link maker (brief-link.html) */
.rq-hello strong { color: var(--ink); }
.bl-form .rq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bl-out { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(22, 35, 27, 0.12); display: grid; gap: 16px; }
.bl-out[hidden] { display: none; }
.bl-out input[readonly] { background: var(--paper); }
@media (max-width: 600px) { .bl-form .rq-grid { grid-template-columns: 1fr; } }

/* ---- Assisted buying: sample comparison, shortlist builder, mobile cards ----
   Markup: src/pages/assisted.html. Rows and cards are generated by assets/js/assisted.js. */

/* Visually hidden but read by screen readers (not defined in site.css) */
.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; }

/* Hero: space under the text, and the jump link */
.top { padding-bottom: clamp(40px, 5vw, 64px); }
.ab-jump { margin-top: 28px; }

/* Sections: space above and below; the builder sits on the stone band */
main.ab-main { padding-block: 0; }
.ab-section { padding-block: clamp(56px, 7vw, 96px); }
.ab-band { background: var(--stone); }
.ab-sub { margin-top: 14px; max-width: 62ch; }

/* Comparison table (desktop) */
.ab-cmp-wrap { border-top: 1px solid var(--rule-gold); overflow-x: auto; }
.ab-cmp { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.95rem; }
.ab-cmp th, .ab-cmp td { text-align: left; vertical-align: top; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.ab-cmp tbody th { width: 19%; padding-top: 22px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ab-cmp thead th { font-weight: 400; color: var(--ink); }
.ab-cmp .ab-proj { font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1.15; color: var(--ink); text-decoration: none; }
.ab-cmp .ab-proj:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.ab-cmp .ab-dev { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--muted); }
.ab-cmp .ab-rera { display: block; margin-top: 4px; font-size: 0.72rem; color: var(--muted); word-break: break-all; }
.ab-cmp .ab-price { display: block; font-family: var(--display); font-size: 1.55rem; font-weight: 600; line-height: 1.1; color: var(--green); }
.ab-cmp .ab-basis { display: inline-block; margin-top: 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.ab-cmp tr.ab-verdict td { color: var(--green); font-weight: 600; }
.ab-cmp tr.ab-watch td { color: var(--muted); }
.ab-note { margin-top: 16px; max-width: 80ch; font-size: 0.8125rem; color: var(--muted); }

/* Mobile cards: hidden until the table is hidden (760px and below) */
.ab-cards { display: none; }
.ab-card { background: #fff; border-top: 2px solid var(--gold); padding: 20px; }
.ab-card h3 a.ab-proj { font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; color: var(--ink); text-decoration: none; }
.ab-card h3 a.ab-proj:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.ab-card .ab-dev { display: block; font-size: 0.875rem; color: var(--muted); margin-top: 4px; }
.ab-card dl { margin: 12px 0 0; }
.ab-card dl > div { padding: 10px 0; border-top: 1px solid var(--rule); }
.ab-card dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ab-card dd { margin: 4px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.ab-card .ab-price { font-size: 1.35rem; }
.ab-card .ab-rera { display: block; margin-top: 4px; font-size: 0.72rem; color: var(--muted); word-break: break-all; }
.ab-card .ab-basis { display: inline-block; margin-top: 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }

/* Shortlist builder */
.ab-builder { margin-top: 28px; counter-reset: abq; }
.ab-q { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.ab-q[hidden] { display: none; }
.ab-q:not([hidden]) { counter-increment: abq; }
.ab-q legend span::before { content: counter(abq); }
.ab-q legend { padding: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ab-q legend span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; border: 1px solid var(--rule-gold); color: var(--gold-deep); font-size: 0.6875rem; vertical-align: middle; }
.ab-q.ab-missing legend { color: var(--error); }

/* Pills: radio inputs stay focusable and clickable, visually hidden under the label */
.ab-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ab-pills label { position: relative; display: inline-flex; }
.ab-pills input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ab-pills span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--rule-gold); border-radius: 0; background: #fff; color: var(--green); font: 600 0.875rem/1.25 var(--sans); transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.ab-pills small { font-weight: 500; font-size: 0.78rem; opacity: 0.8; }
.ab-pills label:hover span { border-color: var(--gold); }
.ab-pills input:checked + span { background: var(--green); color: var(--on-dark); border-color: var(--green); }
.ab-pills input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Send row and status line */
.ab-send { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ab-status { margin: 0; min-height: 1.2em; font-size: 0.875rem; color: var(--error); }

/* Detailed-form call-out (opens the requirements popup) */
.ab-email-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* Tablet and phone: cards replace the table */
@media (max-width: 760px) {
  .ab-cmp-wrap { display: none; }
  .ab-cards { display: grid; gap: 16px; }
}
@media (max-width: 600px) {
  .ab-send .btn { width: 100%; }
  .ab-email-actions .btn { width: 100%; }
}

/* This page uses a narrower column than the rest of the site */
.top > .wrap, main > .wrap { max-width: 1080px; }
