/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Nunito Sans", "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; }

/* ── Top nav ── */
.topnav {
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
  padding: 16px 0;
  text-align: center;
}

.wordmark {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.wordmark span {
  color: #1a56db;
}

/* ── Hero ── */
.hero {
  background:
    linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.72)),
    url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1600&q=80')
    center / cover no-repeat;
  color: #fff;
  padding: 56px 0 64px;
  text-align: center;
}

/* Hero form wrapper */
.hero-form-wrap {
  margin-top: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-fields .field label {
  color: #e0e0e0;
}

.hero-fields .field input {
  background: #fff;
  color: #1a1a1a;
}


.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.subhead {
  font-size: 1.15rem;
  color: #aaaaaa;
  max-width: 600px;
  margin: 0 auto 20px;
}

.hero-trust {
  font-size: 0.92rem;
  color: #7ec8a4;
  margin: 0 auto 28px;
  letter-spacing: 0.01em;
}

.contact-fields-hidden {
  display: none;
}

.contact-fields-visible {
  display: block;
  animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact-fields-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 28px 0 16px;
  padding-top: 24px;
  border-top: 1px solid #e2e2e2;
}

.btn-primary {
  display: inline-block;
  background: #1a56db;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover { background: #1547c2; }

.btn-primary .instant {
  font-style: italic;
  letter-spacing: 0.03em;
}

/* ── Why section ── */
.why {
  padding: 72px 0;
  background: #f4f4f4;
  text-align: center;
}

.why h2 {
  font-size: 1.9rem;
  margin-bottom: 20px;
}

.why-intro {
  max-width: 640px;
  margin: 0 auto 48px;
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.pillar {
  flex: 0 1 252px;
  background: #fff;
  border-radius: 10px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-top: 3px solid #1a56db;
}

.icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  color: #1a56db;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: #1a56db;
}

.pillar h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.pillar p { color: #555; font-size: 0.95rem; }

/* ── Ideal car ── */
.ideal {
  padding: 72px 0;
  text-align: center;
}

.ideal h2 {
  font-size: 1.9rem;
  margin-bottom: 32px;
}

.checklist {
  list-style: none;
  display: inline-block;
  text-align: left;
  margin-bottom: 24px;
}

.checklist li {
  padding: 8px 0 8px 36px;
  position: relative;
  font-size: 1.05rem;
  color: #333;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1a56db;
  font-weight: 700;
  font-size: 1.1rem;
}

.ideal-note {
  color: #555;
  font-style: italic;
  margin-top: 8px;
}

/* ── How it works ── */
.how {
  padding: 72px 0;
  background: #fff;
  text-align: center;
}

.how h2 {
  font-size: 1.9rem;
  margin-bottom: 48px;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 240px;
  padding: 0 16px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a56db;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
}

.step-divider {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 14px;
}

.step-divider svg {
  width: 28px;
  height: 28px;
  stroke: #d0d0d0;
}

@media (max-width: 620px) {
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .step { max-width: 100%; padding: 0; }
  .step-divider svg {
    transform: rotate(90deg);
  }
}

/* ── Form ── */
.form-section {
  background: #111111;
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.form-section h2 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.form-section > .container > p {
  color: #aaaaaa;
  margin-bottom: 40px;
}

form {
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field { display: flex; flex-direction: column; }
.field.full { margin-bottom: 16px; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #aaaaaa;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

label span { font-weight: 400; text-transform: none; }

input, textarea {
  background: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 1rem;
  color: #1a1a1a;
  width: 100%;
}

input:focus, textarea:focus {
  outline: 2px solid #1a56db;
}

textarea { resize: vertical; }

form .btn-primary {
  width: 100%;
  margin-top: 8px;
  font-size: 1.05rem;
  padding: 16px;
}

.small {
  font-size: 0.8rem;
  margin-top: 24px;
  color: #777;
}

/* ── Footer ── */
footer {
  background: #000;
  color: #555;
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-notice {
  font-size: 0.85rem;
  color: #ffb347;
  margin-top: -24px;
  margin-bottom: 32px;
}

/* ── Disclaimer ── */
.disclaimer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 580px;
  margin: 0 auto 36px;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid #1a56db;
  border-radius: 0 6px 6px 0;
  padding: 16px 18px;
  text-align: left;
}

.disclaimer svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: #1a56db;
  margin-top: 2px;
}

.disclaimer p {
  font-size: 0.85rem;
  color: #aaaaaa;
  line-height: 1.55;
  margin: 0 !important;
}

.disclaimer p strong {
  color: #ffffff;
  font-weight: 600;
}

/* ── Valuation result box ── */
.valuation-result {
  max-width: 580px;
  margin: 0 auto 32px;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.valuation-result.loading {
  background: rgba(255,255,255,0.08);
  color: #aaa;
}

.valuation-result.error {
  background: rgba(255,255,255,0.06);
  color: #aaa;
  font-size: 0.95rem;
}

.valuation-result.success {
  background: #fff;
  color: #1a1a1a;
}

.result-label {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}

.result-offer {
  font-size: 3rem;
  font-weight: 800;
  color: #1a56db;
  line-height: 1;
  margin-bottom: 8px;
}

.result-sub {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 12px;
}

.result-disclaimer {
  font-size: 0.78rem;
  color: #333;
  margin-bottom: 12px;
  font-style: italic;
}

.result-dealer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f4f7ff;
  border: 1px solid #d0e0ff;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 12px 0;
  text-align: left;
}

.result-dealer svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: #1a56db;
  margin-top: 2px;
}

.dealer-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
  margin-bottom: 2px !important;
}

.dealer-detail {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 2px !important;
}

.dealer-detail a {
  color: #1a56db;
  text-decoration: none;
}

.dealer-detail a:hover { text-decoration: underline; }

.result-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

/* ── Loading steps animation ── */
.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: #ccc;
}

.lstep-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lstep-icon.pending {
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: #1a56db;
  animation: spin 0.8s linear infinite;
}

.lstep-icon.done {
  background: #1a56db;
  border: 2.5px solid #1a56db;
}

.lstep-icon.done::after {
  content: "";
  display: block;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Claim offer button ── */
.btn-claim {
  display: inline-block;
  background: #1a56db;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.2s;
}

.btn-claim:hover { background: #1547c2; }

/* ── Paused state ── */
.valuation-result.paused {
  background: rgba(255, 179, 71, 0.07);
  border-left: 3px solid #ffb347;
  border-radius: 0 8px 8px 0;
  text-align: left;
  padding: 24px 28px;
}

.paused-inner { }

.paused-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffb347;
  margin-bottom: 12px;
}

.paused-body {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 10px;
}

.paused-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 10px;
}

.paused-btn {
  width: 100%;
  background: #ffb347;
  color: #111;
}

.paused-btn:hover { background: #f5a030; }

@media (max-width: 520px) {
  .paused-fields { grid-template-columns: 1fr; }
}

/* ── Thank you state ── */
.thankyou {
  text-align: center;
  padding: 48px 24px;
  color: #fff;
}

.thankyou h3 { font-size: 1.6rem; margin-bottom: 12px; color: #1a56db; }
.thankyou p  { color: #aaaaaa; font-size: 1.05rem; }
.thankyou-small { font-size: 0.82rem !important; color: #666 !important; margin-top: 16px; }

/* ── Try again link ── */
.try-again {
  margin-top: 16px;
  font-size: 0.85rem;
}

.try-again a {
  color: #777;
  text-decoration: none;
}

.try-again a:hover {
  color: #1a56db;
  text-decoration: underline;
}

.valuation-result.success .try-again a { color: #999; }
.valuation-result.success .try-again a:hover { color: #1a56db; }

/* ── Cookie banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
  font-size: 0.88rem;
  flex-wrap: wrap;
}
#cookie-banner a { color: #93c5fd; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btns button {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
#cookie-accept { background: #1a56db; color: #fff; }
#cookie-decline { background: #444; color: #ccc; }
