/* ABOUTME: RFQ-specific styling for the guided quote wizard and live WhatsApp preview. */
/* ABOUTME: Extends the shared platform system with large selection cards, progress states, and review panels. */

.page-quote {
  gap: 1rem;
}

.quote-hero,
.wizard-progress,
.wizard-step,
.wizard-actions,
.summary-card {
  padding: 1.2rem;
}

.wizard-shell {
  display: grid;
  gap: 1rem;
}

.wizard-main,
.wizard-aside {
  min-width: 0;
}

.wizard-form {
  display: grid;
  gap: 1rem;
}

.progress-copy {
  display: grid;
  gap: 0.45rem;
}

.progress-track {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 1rem 0;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 33.333%;
  background: var(--accent);
  transition: width 200ms ease;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.progress-step {
  display: grid;
  justify-items: center;
  gap: 0.38rem;
  padding: 0.75rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.45);
}

.progress-step.is-active,
.progress-step.is-complete {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.progress-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.progress-step.is-active .progress-step-number,
.progress-step.is-complete .progress-step-number {
  background: var(--accent);
  color: var(--primary);
}

.progress-step-label {
  font-size: 0.78rem;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
}

.wizard-step {
  display: none;
  gap: 1rem;
}

.wizard-step.is-active {
  display: grid;
}

.step-head {
  display: grid;
  gap: 0.6rem;
}

.selection-grid {
  display: grid;
  gap: 0.8rem;
}

.selection-grid.multi-select {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.selection-card {
  position: relative;
  display: block;
}

.selection-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.selection-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.9rem;
  min-height: 5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 180ms ease, background 180ms ease;
}

.selection-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.selection-input:checked + .selection-panel {
  border-color: var(--accent);
  background: rgba(184, 151, 126, 0.08);
}

.selection-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.selection-text {
  display: grid;
  gap: 0.22rem;
}

.selection-title {
  color: var(--text-light);
  line-height: 1.3;
}

.selection-subtitle {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.4;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.choice-pill {
  position: relative;
  display: inline-flex;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  transition: border-color 180ms ease, background 180ms ease;
}

.choice-pill span:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.choice-pill input:checked + span {
  border-color: var(--accent);
  background: rgba(184, 151, 126, 0.1);
  color: #fff;
}

.choice-pill.wide {
  flex: 1 1 auto;
}

.mobile-summary {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.wizard-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.form-feedback {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(243, 179, 179, 0.25);
  background: rgba(104, 44, 44, 0.24);
  color: #f4c6c6;
  line-height: 1.55;
}

.summary-card {
  display: grid;
  gap: 1rem;
}

.summary-card .button {
  width: 100%;
}

@media (min-width: 860px) {
  .wizard-shell {
    grid-template-columns: minmax(0, 1.5fr) minmax(20rem, 0.8fr);
    align-items: start;
  }

  .wizard-aside {
    position: sticky;
    top: 1.25rem;
  }

  .selection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-actions {
    grid-template-columns: auto auto 1fr;
    align-items: center;
  }

  .mobile-summary {
    display: none;
  }
}

@media (max-width: 859px) {
  .wizard-aside {
    display: none;
  }
}

@media (max-width: 639px) {
  .progress-step {
    padding-inline: 0.35rem;
  }

  .progress-step-label {
    font-size: 0.78rem;
  }

  .selection-grid {
    grid-template-columns: 1fr;
  }

  .pill-row.stack-mobile {
    flex-direction: column;
  }

  .wizard-actions .button {
    width: 100%;
  }
}
