/* Carsultant4u — intake forms (Submit Your Deal, Vehicle Questionnaire)
   Uses the site palette from site.css. */

.intake { max-width: 760px; margin: 0 auto; }

/* Who reviews it */
.reviewer { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--gulf); border-radius: 0 12px 12px 0; padding: 18px 20px; margin-bottom: 28px; }
.reviewer .badge { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gulf); font: 700 22px var(--serif); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reviewer strong { display: block; font-size: 16px; margin-bottom: 2px; }
.reviewer p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* Progress, sticks under the header */
.progress-wrap { position: sticky; top: 76px; z-index: 5; background: var(--mist); padding: 12px 0 10px; margin-bottom: 8px; }
.progress-track { height: 6px; background: var(--rule); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--gulf); border-radius: 4px; transition: width .4s ease; }
.progress-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 6px; }

/* Sections */
.section { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 26px 26px 6px; margin-bottom: 22px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--orange); }
.section-num { font: 700 13px var(--sans); color: var(--link); letter-spacing: .04em; }
.section-head h2 { font-size: 20px; margin: 0; }

.q { margin-bottom: 22px; }
.q-label { display: block; font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.q-help { font-size: 14px; color: var(--muted); margin-bottom: 10px; line-height: 1.45; }
.q-optional { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 6px; }

.intake input[type="text"], .intake input[type="number"], .intake input[type="email"], .intake input[type="tel"], .intake input[type="url"], .intake select, .intake textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--field); border-radius: 8px;
  font: 16px var(--sans); color: var(--navy); background: var(--paper);
}
.intake input:focus, .intake select:focus, .intake textarea:focus { border-color: var(--navy); outline: 3px solid var(--gulf); outline-offset: 0; }
.intake textarea { resize: vertical; min-height: 84px; }
.intake input:disabled { background: var(--mist); color: var(--muted); cursor: not-allowed; }

/* Errors */
.q.has-error > input, .q.has-error > textarea { border-color: var(--error); border-width: 2px; background: #FCEBEA; }
.q.has-error > .choice-group .choice-pill label, .q.has-error > .method-toggle .method-card label { border-color: var(--error); }
.q.has-error > .q-label { color: var(--error); }
.q-error-msg { display: none; font-size: 13px; font-weight: 700; color: var(--error); margin-top: 6px; }
.q.has-error > .q-error-msg { display: block; }

/* Pills */
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-pill { position: relative; }
.choice-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-pill label { display: block; padding: 9px 16px; border: 1.5px solid var(--field); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--navy); background: var(--paper); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.choice-pill label small { font-weight: 400; color: var(--muted); }
.choice-pill input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.choice-pill input:checked + label small { color: var(--gulf); }
.choice-pill input:focus-visible + label { outline: 3px solid var(--gulf); outline-offset: 2px; }

/* Big two-way choice */
.method-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.method-card { position: relative; }
.method-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.method-card label { display: block; height: 100%; padding: 18px 16px; border: 2px solid var(--rule); border-radius: 12px; text-align: center; background: var(--paper); transition: border-color .15s, background-color .15s; }
.method-title { font: 700 17px var(--serif); color: var(--navy); margin-bottom: 4px; }
.method-desc { font-size: 14px; color: var(--muted); line-height: 1.4; }
.method-card input:checked + label { border-color: var(--navy); background: var(--gulf-tint); }
.method-card input:focus-visible + label { outline: 3px solid var(--gulf); outline-offset: 2px; }

/* Reveals */
.other-box { margin-top: 10px; display: none; }
.other-box.visible { display: block; }
.conditional { display: none; margin-top: 14px; padding: 14px 16px 2px; background: var(--mist); border-left: 3px solid var(--gulf); border-radius: 0 8px 8px 0; }
.conditional.visible { display: block; }
.conditional.plain { padding: 0; background: none; border: 0; }
.note { background: var(--gulf-tint); border: 1px solid var(--link); border-radius: 10px; padding: 14px 16px; font-size: 15px; margin-bottom: 14px; }

/* Trade-in callout */
.appraisal-callout { background: var(--gulf-tint); border: 1px solid var(--link); border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; }
.appraisal-callout strong { display: block; margin-bottom: 4px; }
.appraisal-callout p { font-size: 15px; margin: 0 0 12px; }
.appraisal-links { display: flex; gap: 10px; flex-wrap: wrap; }
.appraisal-links a { display: inline-block; background: var(--paper); color: var(--navy); border: 1.5px solid var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 14px; border-radius: 8px; }
.appraisal-links a:hover { background: var(--navy); color: var(--paper); }

/* Feature priorities */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.feature-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; font-size: 14px; }
.feature-row .fname { font-weight: 600; }
.fbucket-btn { font: 700 12px var(--sans); padding: 5px 9px; border-radius: 6px; border: 1.5px solid var(--field); background: var(--paper); color: var(--muted); cursor: pointer; white-space: nowrap; min-width: 92px; }
.fbucket-btn[data-active="must"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.fbucket-btn[data-active="nice"] { background: var(--gulf-tint); border-color: var(--link); color: var(--navy); }
.fbucket-btn[data-active="none"] { background: var(--mist); border-color: var(--rule); color: var(--muted); }
.feature-counts { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 10px; }
.feature-counts .over { color: var(--error); }

/* VIN check */
.vin-unavailable-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.vin-unavailable-check input { width: 16px; height: 16px; accent-color: var(--navy); margin: 0; }
.vin-waived-note { display: none; font-size: 14px; color: var(--muted); margin-top: 8px; }
.vin-waived-note.visible { display: block; }
.vin-decode-card { display: none; margin-top: 10px; border-radius: 10px; padding: 14px 16px; border: 1px solid var(--rule); background: var(--mist); }
.vin-decode-card.visible { display: block; }
.vin-decode-card.confirmed { background: var(--gulf-tint); border-color: var(--link); }
.vin-decode-card.rejected { background: #FCEBEA; border-color: var(--error); }
.vin-decode-label { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.vin-decode-vehicle { font: 700 17px var(--serif); margin-bottom: 8px; }
.vin-decode-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.vin-confirm-btn { font: 700 14px var(--sans); padding: 8px 14px; border-radius: 8px; cursor: pointer; border: 1.5px solid var(--navy); background: var(--paper); color: var(--navy); }
.vin-confirm-btn.vin-yes { background: var(--navy); color: var(--paper); }

/* Submit + result */
.submit-bar { text-align: center; padding: 6px 0 0; }
.submit-bar .btn { font-size: 17px; padding: 15px 36px; }
.submit-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.submit-note.err { color: var(--error); font-weight: 700; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.success-panel { display: none; text-align: center; background: var(--paper); border: 2px solid var(--navy); border-radius: 12px; padding: 40px 24px; }
.success-panel.visible { display: block; }
.success-panel .check { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--gulf); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; }
.success-panel h2 { font-size: 26px; margin-bottom: 10px; }
.success-panel p { color: var(--muted); max-width: 520px; margin: 0 auto 10px; }
.success-panel .email-note { display: none; color: var(--navy); background: var(--gulf-tint); border: 1px solid var(--link); border-radius: 10px; padding: 12px 16px; margin-top: 16px; }
.success-panel .email-note.visible { display: block; }

@media (max-width: 640px) {
  .section { padding: 20px 16px 4px; }
  .method-toggle, .feature-grid { grid-template-columns: 1fr; }
  .reviewer { padding: 14px 16px; }
  .reviewer .badge { width: 44px; height: 44px; font-size: 19px; }
}
