/* ==========================================================================
   quote.css — the request-a-quote page
   ========================================================================== */

.quote-page {
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* --------------------------------------------------------------------------
   Left column — what happens after you press send
   -------------------------------------------------------------------------- */
.quote-intro h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin-bottom: var(--sp-4);
}
.quote-intro > p { color: var(--ink-muted); max-width: 42ch; }

.quote-steps {
  display: grid;
  gap: var(--sp-5);
  margin-top: clamp(2rem, 5vw, 3rem);
  counter-reset: step;
}
/* These are numbered because they are a real sequence — what happens first,
   second, third after the form is sent. */
.quote-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}
.quote-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-label);
  font-size: 0.78rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  padding-top: 0.28rem;
}
.quote-steps h2 {
  font-size: 1.02rem;
  font-weight: 500;
  font-family: var(--font-body);
  margin-bottom: 0.2rem;
}
.quote-steps p { color: var(--ink-muted); font-size: var(--fs-small); max-width: 40ch; }

.quote-aside {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: var(--sp-5);
  border-radius: var(--r-soft);
  background: var(--surface);
  border: 1px solid var(--line);
}
.quote-aside p { color: var(--ink-muted); font-size: var(--fs-small); }
.quote-aside a { color: var(--gold); }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.quote-form {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(0, 63, 102, 0.4), transparent 58%),
    var(--ground-raised);
  box-shadow: var(--shadow-md);
}

.quote-form fieldset { border: 0; margin: 0; padding: 0; }
.quote-form legend {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0;
  margin-bottom: var(--sp-5);
}

.field-grid > * { min-width: 0; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

.field { display: grid; gap: 0.45rem; min-width: 0; align-content: start; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.field .req { color: var(--gold); }
.field .opt { color: var(--ink-dim); text-transform: none; letter-spacing: 0.02em; }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  background: var(--ground);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-tight);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field textarea { min-height: 9.5rem; resize: vertical; line-height: 1.55; }

/* Native select needs its own colours or Windows dark mode renders it white. */
.field select {
  background-color: var(--ground);
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239DAEBC' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.15rem;
  padding-right: 2.6rem;
}
.field select option { background: var(--ground); color: var(--ink); }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-dim); }

.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--ink-dim); }

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--gold); }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.field-error {
  color: var(--error);
  font-size: 0.85rem;
  line-height: 1.4;
}

.field-hint { color: var(--ink-dim); font-size: 0.82rem; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.form-actions .btn { min-width: 12rem; }

.form-status {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-muted);
  flex: 1 1 16rem;
  min-width: 0;
}
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="notice"] { color: var(--gold-hi); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 64rem) {
  .quote-layout { grid-template-columns: minmax(0, 1fr); }
  .quote-intro > p { max-width: 60ch; }
}

@media (max-width: 40rem) {
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
}
