/* Pages written for car buyers (the pre-purchase inspection enquiry page). Builds on seo.css (tokens, buttons,
   .steps, .faq); everything here is scoped to body.consumer so it can never change the mechanic-facing pages. */

body.consumer { background: var(--white); }

.c-head { background: var(--nav); padding: 14px 0; }
.c-head img { display: block; height: 32px; width: auto; }

.c-hero { background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%); padding: 40px 0 48px; border-bottom: 1px solid var(--line); }
.c-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: start; }
.c-hero-text h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 16px; }
.c-hero-text .lead { max-width: 520px; }
/* The price statement: the thing a buyer wants to know before filling anything in. */
.c-price { margin: 22px 0 0; max-width: 520px; padding: 14px 16px; border-left: 4px solid var(--pass); background: var(--pass-bg); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); font-size: 1.02rem; }
.c-price strong { display: block; margin-bottom: 4px; font-size: 1.1rem; }
.c-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; max-width: 520px; }
.c-points li { position: relative; padding-left: 32px; color: var(--ink-2); }
.c-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--pass-bg); }
.c-points li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 10px; border: solid var(--pass); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.c-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 12px 32px rgba(15, 23, 42, .08); }
.c-card h2 { font-size: 1.35rem; margin: 0 0 16px; }

.f-row { margin: 0 0 14px; }
.f-row label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 5px; color: var(--ink); }
.f-row .opt { font-weight: 400; color: var(--muted); }
.f-row input, .f-row select, .f-row textarea { display: block; width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #cbd5e1; border-radius: var(--radius); }
.f-row textarea { min-height: 84px; resize: vertical; }
.f-row input::placeholder, .f-row textarea::placeholder { color: #94a3b8; }
/* Only after the visitor has interacted: an empty required field is not an error yet. */
.f-row input:user-invalid, .f-row select:user-invalid, .f-row textarea:user-invalid { border-color: var(--fail); }
.f-hint { margin: 5px 0 0; font-size: .85rem; color: var(--muted); }
.f-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* "I'm the seller of this car" and the seller's details it removes. */
.f-check { display: flex; gap: 10px; align-items: center; margin: 4px 0 14px; }
.f-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.f-check label { font-weight: 600; font-size: .95rem; }
.f-seller { border: 0; margin: 0 0 14px; padding: 12px 14px 2px; min-width: 0; background: var(--soft); border-radius: var(--radius); }
.f-seller[hidden] { display: none; }
.f-seller legend { padding: 0 6px; font-weight: 700; font-size: .92rem; }
.f-seller .opt, .f-more .opt { font-weight: 400; color: var(--muted); }
.f-more { margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; }
.f-more summary { cursor: pointer; font-weight: 600; font-size: .95rem; padding: 12px 0; }
.f-more[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }

.f-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 6px; }
.f-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; }
.f-consent label { font-size: .92rem; font-weight: 500; }
.c-form .btn { width: 100%; margin-top: 14px; }
.c-form .btn:disabled { opacity: .6; cursor: not-allowed; }

/* Honeypot: off-screen rather than display:none, because some bots skip fields that are display:none. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.c-error { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--radius); background: var(--fail-bg); color: var(--fail); font-size: .92rem; }
.c-error[hidden] { display: none; }
.c-success { text-align: center; padding: 16px 4px; }
.c-success[hidden], .c-form[hidden] { display: none; }
.c-success h2 { color: var(--pass); }
.c-success:focus { outline: none; }

.c-section { padding: 44px 0; }
.c-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.c-section h2 { font-size: 1.55rem; margin: 0 0 14px; }
.c-covers { padding-left: 1.3rem; margin: 0; }
.c-covers li { margin: .35rem 0; }
.c-faq { margin-top: 0; }

.c-foot { background: #0b1220; color: #94a3b8; padding: 32px 0; font-size: .85rem; }
.c-foot p { margin: 0 0 10px; max-width: 720px; }
.c-foot a { color: #cbd5e1; margin-right: 16px; }

@media (max-width: 900px) {
  /* On a phone the form should be as close to the top as possible; the same two points are in "How it works". */
  .c-points { display: none; }
  .c-hero { padding: 28px 0 36px; }
  .c-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .c-card { padding: 20px 16px; }
}
@media (max-width: 360px) {
  .f-pair { grid-template-columns: 1fr; }
}
