/* ==========================================================================
   Page · D07 Request a quote (3-step RFQ, reduced header)
   ========================================================================== */

.rfq {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) 24px 96px;
}

/* ---- Confirmation ------------------------------------------------------- */

.rfq-done {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
  align-items: start;
}

.rfq-done__status {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--sig-green);
  font: 600 13px var(--f-mono);
}

.rfq-done__number {
  margin: 0 0 16px;
  font: 800 clamp(56px, 9vw, 144px)/.84 var(--f-display);
  text-transform: uppercase;
}

.rfq-done__text {
  margin: 0 0 24px;
  font-size: var(--fs-lead);
  color: var(--ink-2);
  max-width: 44ch;
}

.rfq-done__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.rfq-done__step {
  padding-top: 10px;
  border-top: 4px solid var(--panel);
}

.rfq-done__step--active {
  border-top-color: var(--ink);
}

.rfq-done__when {
  font: 500 11px var(--f-mono);
  color: var(--muted);
}

.rfq-done__what {
  color: var(--ink-2);
}

.rfq-done__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rfq-done__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--target);
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font: 600 14px var(--f-text);
  text-transform: uppercase;
}

.rfq-done__download:hover {
  color: var(--ink);
}

.rfq-done__home {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 12px;
  font: 600 14px var(--f-text);
  text-transform: uppercase;
}

.rfq-contact {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  clip-path: var(--chamfer-m);
}

.rfq-contact__label {
  margin-bottom: 6px;
  font: 500 11px var(--f-mono);
  color: var(--muted);
}

.rfq-contact__name {
  margin-bottom: 8px;
  font: 700 28px/1 var(--f-display);
  text-transform: uppercase;
}

.rfq-contact__line {
  font: 400 15px var(--f-mono);
}

.rfq-contact__line--last {
  margin-bottom: 10px;
}

.rfq-contact__note {
  font-size: 14px;
  color: var(--ink-2);
}

/* ---- Head + step indicator --------------------------------------------- */

.rfq-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}

.rfq-head__title {
  margin: 0;
  font: 800 clamp(48px, 6.4vw, 104px)/.86 var(--f-display);
  text-transform: uppercase;
}

.rfq-head__meta {
  font: 500 13px var(--f-mono);
  color: var(--ink-2);
}

.rfq-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.rfq-progress__step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rfq-progress__bar {
  height: 8px;
  background: var(--panel);
}

.rfq-progress__label {
  font: 500 12px var(--f-mono);
  color: var(--ink-2);
}

.rfq-progress__step--current .rfq-progress__bar {
  background: var(--action);
}

.rfq-progress__step--current .rfq-progress__label {
  color: var(--ink);
}

.rfq-progress__step--done .rfq-progress__bar {
  background: var(--ink);
}

.rfq-progress__step--done .rfq-progress__label::after {
  content: " ✓";
}

/* ---- Layout: form + aside ---------------------------------------------- */

.rfq-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.rfq-form {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* a step's children take part in the form's flex column directly */
.rfq-step {
  display: contents;
}

.rfq-form__title {
  margin: 0;
  font: 700 clamp(30px, 3.4vw, 44px)/.95 var(--f-display);
  text-transform: uppercase;
  outline: none;
}

/* ---- Error summary ------------------------------------------------------ */

.rfq-errors {
  padding: 14px 16px;
  border: 2px solid var(--sig-red);
}

.rfq-errors__count {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font: 600 14px var(--f-mono);
  color: var(--sig-red);
}

.rfq-errors__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.rfq-errors__list li::before {
  content: "· ";
}

/* ---- Step 1 · Items ----------------------------------------------------- */

.rfq-items {
  border-top: 1.5px solid var(--ink);
}

.rfq-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 44px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-strong);
}

.rfq-item__id {
  display: block;
  font: 500 15px var(--f-mono);
}

.rfq-item__title {
  font-size: 14px;
  color: var(--ink-2);
}

.rfq-item__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--ink);
  cursor: pointer;
}

/* quantity stepper  [−] 4 [+] */
.qty {
  display: inline-flex;
  min-height: 40px;
  border: 1.5px solid var(--ink);
}

.qty__btn {
  width: 36px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.qty__value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  font: 500 15px var(--f-mono);
}

.rfq-empty {
  padding: 16px;
  background: var(--surface);
  font-size: 15px;
}

/* ---- Step 1 · Upload ---------------------------------------------------- */

.rfq-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1.5px dashed var(--ink-2);
  background: var(--surface);
  cursor: pointer;
}

.rfq-upload__text {
  flex: 1;
}

.rfq-upload__hint {
  font: 400 13px var(--f-mono);
  color: var(--muted);
}

.rfq-upload__browse {
  font: 600 13px var(--f-text);
  text-transform: uppercase;
  color: var(--action);
}

/* visually hidden, the whole label opens the file dialog */
.rfq-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rfq-files {
  display: contents;
}

.rfq-file {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 400 14px var(--f-mono);
}

.rfq-file__state {
  color: var(--sig-green);
}

/* ---- Step 2 · Dates ----------------------------------------------------- */

.rfq-dates {
  display: grid;
  gap: 10px;
}

.rfq-date {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--surface);
}

.rfq-date__id {
  font: 500 14px var(--f-mono);
  overflow: hidden;
  text-overflow: ellipsis;
}

.rfq-date__qty {
  font: 400 14px var(--f-mono);
  color: var(--ink-2);
}

/* compact .field */
.rfq-date__field {
  gap: 4px;
  font-size: 11px;
}

.rfq-date__input {
  min-height: 40px;
  padding: 0 8px;
  border: 1.5px solid var(--line-strong);
  background: var(--canvas);
  color: var(--ink);
  font: 500 14px var(--f-mono);
}

/* ---- Form fields -------------------------------------------------------- */

.rfq-fields {
  display: grid;
  gap: 12px;
}

.rfq-fields--delivery {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.rfq-fields--contact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

/* fields: .field / .field__input (components/form.css) */
.rfq-notes {
  resize: vertical;
}

/* ---- Step 3 · Consent checkboxes --------------------------------------- */

.rfq-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rfq-check__box {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--action-ink);
  font-size: 13px;
}

.rfq-check[aria-checked="true"] .rfq-check__box {
  background: var(--action);
}

.rfq-check[aria-checked="true"] .rfq-check__box::after {
  content: "✓";
}

.rfq-check__note {
  font-size: 14px;
  color: var(--ink-2);
}

.rfq-privacy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---- Back / continue ---------------------------------------------------- */

.rfq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rfq-nav__back {
  min-height: var(--target);
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  background: none;
  color: var(--ink);
  font: 600 14px var(--f-text);
  text-transform: uppercase;
  cursor: pointer;
}

/* keeps its space on step 1 so "Continue" does not jump */
.rfq-nav__back--hidden {
  visibility: hidden;
}

/* .form-submit with side padding: it does not stretch here */
.rfq-nav__next {
  padding: 0 28px;
}

.rfq-nav__next:active {
  transform: scale(.98);
}

/* ---- Aside: trust stack ------------------------------------------------- */

.rfq-aside {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rfq-aside__label {
  margin-bottom: 10px;
  font: 500 11px var(--f-mono);
  color: var(--muted);
}

.rfq-aside__label--spaced {
  margin-bottom: 12px;
}

.rfq-why {
  padding: 18px;
  border: 1.5px solid var(--ink);
}

.rfq-why__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.rfq-why__item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rfq-next {
  padding: 18px;
  background: var(--surface);
}

.rfq-next__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* timeline step: square marker + connecting line down to the next step */
.next-step {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
}

.next-step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.next-step__rail::after {
  content: "";
  flex: 1;
  width: 1px;
  background: var(--line-strong);
}

.next-step__dot {
  display: block;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink);
}

.next-step--now .next-step__dot {
  border: 0;
  background: var(--ink);
}

.next-step__text {
  padding-bottom: 14px;
}

/* last step: no line, marker sits flush left (as in the original) */
.next-step:last-child .next-step__rail {
  display: block;
}

.next-step:last-child .next-step__rail::after {
  display: none;
}

.next-step:last-child .next-step__text {
  padding-bottom: 0;
}

.rfq-help {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-2);
}

.rfq-help__photo {
  flex: none;
  width: 48px;
  height: 48px;
  background: var(--photo);
  background-image: repeating-linear-gradient(135deg, var(--photo-stripe) 0 1px, transparent 1px 6px);
}
