/* ============================================================
   MCNEISH SOLUTION LLC — QUOTE PAGE SPECIFIC STYLES
   ============================================================ */

.quote-wizard-section {
  background: var(--void);
  padding: var(--space-128) 0 var(--space-64);
  min-height: calc(100vh - 100px);
}

.quote-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-80);
  align-items: center;
}

/* ─── PROGRESS BAR ───────────────────────────────────────── */
.wizard-progress-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: var(--space-48);
  max-width: 320px;
}

.wizard-progress-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--steel);
  z-index: 1;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--steel);
  border: 1px solid transparent;
  position: relative;
  z-index: 2;
  transition: background 0.4s, border-color 0.4s;
}

.progress-dot.active {
  background: var(--copper);
  border-color: var(--copper-lit);
  box-shadow: 0 0 10px rgba(232,148,58,0.5);
}

/* ─── WIZARD STEPS & OPTIONS CARD GRID ───────────────────── */
.wizard-stepper-container {
  overflow: hidden;
  position: relative;
}

.wizard-step {
  display: none;
  opacity: 0;
}

.wizard-step.active {
  display: block;
  opacity: 1;
}

.step-heading {
  color: var(--ivory);
  margin-bottom: var(--space-8);
}

.step-sub {
  color: var(--ash);
  margin-bottom: var(--space-32);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  margin-bottom: var(--space-40);
}

.opt-card {
  background: var(--steel);
  border: var(--border-steel);
  border-radius: 4px;
  padding: var(--space-24);
  cursor: pointer;
  text-align: center;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
}

.opt-card:hover {
  border-color: rgba(184,115,51,0.5);
  transform: translateY(-2px);
}

.opt-card.selected {
  border-color: var(--copper);
  background: rgba(184, 115, 51, 0.05);
  box-shadow: 0 0 20px rgba(184,115,51,0.15);
  transform: scale(1.02) translateZ(10px);
}

.opt-card__visual {
  width: 48px;
  height: 48px;
  color: var(--ash-light);
  margin: 0 auto var(--space-16);
  transition: color 0.3s;
}

.opt-card.selected .opt-card__visual {
  color: var(--copper-lit);
}

.opt-card__title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--ash-light);
  text-transform: uppercase;
}

.step-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── CUSTOM SVG RULER ESTIMATOR SLIDER ──────────────────── */
.ruler-slider-container {
  background: var(--steel);
  border: var(--border-steel);
  padding: var(--space-32);
  border-radius: 4px;
  margin-bottom: var(--space-40);
}

.ruler-scroller-track {
  position: relative;
  width: 100%;
  height: 40px;
  background: var(--void);
  border-radius: 2px;
  cursor: ew-resize;
  overflow: hidden;
}

.ruler-svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ruler-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30%; /* Set dynamically by JS */
  width: 2px;
  background: var(--copper);
  transform: translateX(-50%);
}

.handle-copper-pin {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--copper-lit);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(232,148,58,0.7);
}

.ruler-slider-readout {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ivory);
  margin-top: var(--space-16);
}

/* ─── TELEGRAPH SIGNAL RADIO BUTTONS ─────────────────────── */
.telegraph-group {
  display: flex;
  gap: var(--space-16);
}

.tel-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-12);
  background: var(--steel);
  border: var(--border-steel);
  padding: var(--space-16);
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.3s, background 0.3s;
}

.tel-btn:hover {
  border-color: rgba(184,115,51,0.4);
}

.tel-btn.active {
  border-color: var(--copper);
  background: rgba(184,115,51,0.05);
}

.tel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ash);
  transition: border-color 0.3s, background 0.3s;
}

.tel-btn.active .tel-dot {
  background: var(--copper-lit);
  border-color: var(--copper-lit);
  box-shadow: 0 0 6px rgba(232,148,58,0.7);
}

.tel-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--ash-light);
}

/* ─── REAL-TIME PREVIEW PANEL (3D BRACKET ENVELOPE) ──────── */
.brief-preview-container {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.envelope-3d-wrapper {
  position: relative;
  width: 320px;
  height: 420px;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* submitted success triggers folding animations */
.envelope-3d-wrapper.envelope-folded {
  transform: rotateY(180deg) rotateX(15deg) translateZ(-40px);
}

.physical-brief-paper {
  position: absolute;
  inset: 0;
  background: #EBE5DB; /* Vintage technical document paper */
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(0,0,0,0.08);
  padding: var(--space-48) var(--space-32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #2b251d;
  transform-style: preserve-3d;
  backface-visibility: visible;
  transition: transform 1s;
}

.brief-seal {
  position: absolute;
  top: 15px;
  right: 15px;
  border: 1.5px solid rgba(184,115,51,0.5);
  font-family: var(--font-mono);
  font-size: 0.45rem;
  color: var(--copper);
  padding: 2px 6px;
  border-radius: 1px;
}

.brief-title-block {
  border-bottom: 1.5px solid rgba(43,37,29,0.15);
  padding-bottom: var(--space-16);
}

.brief-metadata-rows {
  flex: 1;
  padding: var(--space-32) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.brief-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-head);
  border-bottom: 1px dashed rgba(43,37,29,0.08);
  padding-bottom: 4px;
}

.brief-line span:first-child {
  font-size: 0.55rem;
  color: rgba(43,37,29,0.6);
}

.brief-line span:last-child {
  font-weight: 700;
}

.brief-footer-stamp {
  border-top: 1px solid rgba(43,37,29,0.15);
  padding-top: var(--space-16);
}

/* ─── SUCCESS SCREEN STATE ───────────────────────────────── */
.success-screen-overlay {
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-content {
  text-align: center;
}

.success-checkmark-svg {
  width: 64px;
  height: 64px;
  color: var(--copper);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .quote-layout {
    grid-template-columns: 1fr;
    gap: var(--space-64);
  }

  .brief-preview-container {
    order: 2;
  }

  .wizard-stepper-container {
    order: 1;
  }
}
