/* ============================================================
   request.css — Request a Gate flow
   Depends on the tokens declared in styles.css (:root).
   ============================================================ */

/* ---------- Layout shell ---------- */

.req-main {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.req-head {
  max-width: 680px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.req-head h1 {
  margin: 0.6rem 0 0.9rem;
}

.req-head p {
  color: var(--iron);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
}

.eyebrow.center {
  display: block;
  text-align: center;
}

/* ---------- Step visibility ---------- */

.step {
  max-width: 720px;
  margin: 0 auto;
}

.step.hidden,
.hidden {
  display: none !important;
}

.step-label {
  font-family: var(--mont);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne);
  margin: 2rem 0 0.75rem;
}

.step-label:first-of-type {
  margin-top: 0;
}

/* ---------- Mode chooser (step 1) ---------- */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  max-width: 860px;
  margin: 0 auto;
}

.mode-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
  padding: 1.9rem 1.7rem;
  background: var(--forged);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.mode-btn:hover,
.mode-btn:focus-visible {
  border-color: var(--brass);
  transform: translateY(-3px);
  background: #191919;
}

.mode-btn .tag {
  font-family: var(--mont);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.mode-btn .t {
  font-family: var(--serif);
  font-size: 1.42rem;
  line-height: 1.2;
  color: var(--bone);
}

.mode-btn .d {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--iron);
}

/* ---------- Chips (option selectors) ---------- */

.chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 5.4rem;
  padding: 0.75rem 1.05rem;
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mont);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.chip .sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--iron);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}

.chip:hover .sub {
  color: var(--champagne);
}

.chip.sel {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--obsidian);
}

.chip.sel .sub {
  color: rgba(10, 10, 10, 0.72);
}

/* ---------- Quantity stepper ---------- */

.steprow {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stepbtn {
  width: 2.9rem;
  height: 2.9rem;
  background: transparent;
  color: var(--bone);
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.stepbtn:hover {
  background: var(--brass);
  color: var(--obsidian);
}

.stepval {
  min-width: 3.2rem;
  text-align: center;
  font-family: var(--mont);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  border-inline: 1px solid var(--line);
  padding: 0.72rem 0;
}

/* ---------- Spec summary card ---------- */

.spec-card {
  margin: 2rem 0 0.5rem;
  padding: 1.3rem 1.5rem;
  background: var(--forged);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
}

.spec-line {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.45;
  color: var(--bone);
}

.spec-badge {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  font-family: var(--mont);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-badge.stock {
  background: rgba(122, 168, 122, 0.16);
  color: #86bd86;
}

.spec-badge.custom {
  background: rgba(176, 137, 76, 0.18);
  color: var(--brass-bright);
}

.spec-note {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--iron);
}

/* ---------- Fields ---------- */

.req-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.req-field {
  margin-bottom: 1rem;
}

.req-field label {
  display: block;
  font-family: var(--mont);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 0.4rem;
}

.req-field input,
.req-field textarea,
.req-field select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  background: var(--obsidian);
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.req-field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.req-field input::placeholder,
.req-field textarea::placeholder {
  color: rgba(154, 154, 154, 0.7);
}

.req-field input:focus,
.req-field textarea:focus,
.req-field select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176, 137, 76, 0.18);
}

.req-field input.err,
.req-field textarea.err {
  border-color: #c46a5a;
  box-shadow: 0 0 0 3px rgba(196, 106, 90, 0.15);
}

/* ---------- Actions ---------- */

.req-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.req-back {
  background: transparent;
  color: var(--iron);
  border-color: var(--line);
}

.req-back:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}

.req-actions .btn-brass {
  margin-left: auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .mode-grid,
  .req-two {
    grid-template-columns: 1fr;
  }

  .mode-btn {
    padding: 1.5rem 1.3rem;
  }

  .chip {
    min-width: 4.6rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
  }

  .req-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .req-actions .btn {
    width: 100%;
    text-align: center;
  }

  .req-actions .btn-brass {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mode-btn,
  .chip,
  .stepbtn,
  .req-field input,
  .req-field textarea {
    transition: none;
  }

  .mode-btn:hover,
  .mode-btn:focus-visible {
    transform: none;
  }
}
