/*
 * Quote page styles — "Request a Quote".
 * Form components ported from the open-house campaign, re-expressed on the
 * shared brand tokens. Loaded ONLY on /quote (the homepage doesn't need form
 * CSS). Depends on tokens.css + site.css (header / footer / .btn-pixel).
 */

/* ---- Intro band ---------------------------------------------------------- */
.quote-intro {
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  padding: var(--space-8) 0 var(--space-7);
}
.quote-intro .eyebrow { margin-bottom: 10px; }
.quote-intro h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 18ch;
}
.quote-intro h1 .accent { color: var(--magenta); }
.quote-intro p {
  margin: 0;
  max-width: 60ch;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.5;
}
.quote-intro .meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--slate);
  text-transform: uppercase;
}
.quote-intro .meta span { display: inline-flex; align-items: center; gap: 7px; }
.quote-intro .meta i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--magenta);
}

/* ---- Form section -------------------------------------------------------- */
.formwrap { background: var(--bone); padding: var(--space-7) 0 var(--space-9); }
.formwrap .wrap { max-width: 820px; }
.formcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.formcard .head {
  background: var(--cyan);
  color: #fff;
  padding: 26px 32px;
}
.formcard .head .badges { display: block; margin-bottom: 12px; }
.formcard .head .badges img { height: 16px; width: auto; display: block; }
.formcard .head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.formcard .head p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.88); }

.formbody { padding: 28px 32px 32px; }

/* fields */
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 16px; }
.field-row.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) {
  .field-row.cols-2 { grid-template-columns: 1fr; }
}
.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field label .opt { font-weight: 400; color: #9a958b; font-size: 12px; }
.field label .req { color: var(--magenta); margin-left: 2px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: 500 15px/1.4 var(--font-sans);
  border: 1.5px solid #e5e2d8;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(237, 0, 140, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: 12px; color: #8a857b; margin-top: 6px; }
.field .err {
  font-size: 12px;
  color: var(--magenta);
  margin-top: 6px;
  display: none;
}
.field.is-invalid .err { display: block; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--magenta); }

/* fieldsets */
.fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.fieldset > legend {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--slate);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 14px 0;
  border-top: 1px dashed #d8d3c4;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fieldset > legend:first-of-type { border-top: 0; padding-top: 0; }
.fieldset > legend .step-of { font-weight: 500; color: #aaa; }

/* drag-and-drop file upload */
.dropzone {
  position: relative;
  border: 1.5px dashed #d8d3c4;
  border-radius: 12px;
  background: #faf8f3;
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover,
.dropzone:focus-visible { border-color: var(--magenta); outline: none; }
.dropzone.is-drag {
  border-color: var(--magenta);
  background: rgba(237, 0, 140, 0.06);
}
.dz-input { display: none; }
.dz-ic { display: inline-flex; color: var(--magenta); margin-bottom: 6px; }
.dz-main { margin: 0 0 2px; font-size: 14px; color: var(--ink); }
.dz-browse {
  color: var(--magenta);
  font-weight: 600;
  text-decoration: underline;
}
.dz-sub { margin: 0; font-size: 12px; color: #8a857b; }
.dz-sub a { color: var(--magenta); font-weight: 600; }

.filelist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filechip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}
.filechip .fc-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.filechip .fc-size {
  flex: none;
  color: #8a857b;
  font: 500 11px/1 var(--font-mono);
}
.filechip .fc-status {
  flex: none;
  font: 500 11px/1 var(--font-mono);
  color: var(--slate);
}
.filechip.is-done .fc-status { color: #1f8a5b; }
.filechip.is-error { border-color: var(--magenta); }
.filechip.is-error .fc-status { color: var(--magenta); }
.filechip .fc-remove {
  flex: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #8a857b;
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
}
.filechip .fc-remove:hover { color: var(--magenta); }

/* submit */
.form-error {
  display: none;
  background: #fdecea;
  border: 1px solid #f5c2bd;
  color: #9b1c1c;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
}
.form-error.is-on { display: block; }
.submitrow {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.submitrow .legal {
  font-size: 12px;
  color: #8a857b;
  max-width: 360px;
  line-height: 1.5;
}
.btn-submit { border: 0; background: transparent; padding: 0; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* success state */
.success { display: none; padding: 40px 32px; }
body.is-submitted .formbody { display: none; }
body.is-submitted .success { display: block; }
.success .big-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1f8a5b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 26px;
}
.success h3 {
  font-size: 27px;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.success p.lead {
  margin: 0 0 22px;
  color: var(--slate);
  font-size: 15px;
  max-width: 520px;
}
.success .receipt {
  background: var(--bone);
  border: 1px dashed #d8d3c4;
  border-radius: 10px;
  padding: 18px 20px;
  font: 500 13px/1.8 var(--font-mono);
  margin-bottom: 22px;
}
.success .receipt .row { display: flex; justify-content: space-between; gap: 12px; }
.success .receipt .row b { color: var(--ink); }
.success .next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .success .next { grid-template-columns: 1fr; }
}
.success .next .item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.success .next .item .num {
  font: 700 11px/1 var(--font-mono);
  color: var(--magenta);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.success .next .item h4 { font-size: 14px; margin: 0 0 4px; font-weight: 700; }
.success .next .item p {
  font-size: 12.5px;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}
.success .next .item a { color: var(--magenta); font-weight: 600; }

/* honeypot — off-screen, not display:none (bots check for that) */
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}
