/* ==========================================================================
   Quote / ERP Requirements Intake page
   ========================================================================== */

.quote-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 96px 20px 80px;
}

.quote-hero {
  text-align: center;
  margin-bottom: 28px;
}

.quote-hero h1 {
  font-size: 34px;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.quote-hero p {
  color: var(--text-secondary);
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
}

/* ---- Industry selector + sample toggle ---- */

.q-industry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 12px;
}

.q-ind-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 4px;
}

.q-ind-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.q-ind-chip .material-icons-outlined {
  font-size: 16px;
}

.q-sample-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.q-sample-toggle input {
  accent-color: var(--primary-gold);
  width: 16px;
  height: 16px;
}

.q-sample-toggle.on {
  color: var(--text-gold);
  font-weight: 600;
}

.q-sample-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(184, 134, 11, 0.12);
  border: 1px solid var(--primary-gold);
  color: var(--text-gold);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.q-banner {
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid #ff5252;
  color: #ff5252;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ---- Progress ---- */

.q-progress-bar {
  height: 4px;
  background: rgba(128, 128, 128, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.q-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 2px;
  transition: width 0.3s;
}

.q-steps {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  -webkit-overflow-scrolling: touch;
}

.q-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 20px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  color: var(--text-secondary);
  background: var(--card-bg);
  cursor: pointer;
  flex-shrink: 0;
}

.q-step .material-icons-outlined {
  font-size: 15px;
}

.q-step.active {
  border-color: var(--primary-gold);
  color: var(--text-gold);
  font-weight: 600;
  background: rgba(184, 134, 11, 0.08);
}

.q-step.done {
  color: var(--primary-gold);
}

/* ---- Wizard card ---- */

.q-card {
  background: var(--card-bg);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 16px;
  padding: 28px;
}

.q-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.q-section-head h2 {
  font-size: 24px;
  color: var(--text-primary);
}

.q-section-icon {
  color: var(--icon-gold);
  font-size: 28px;
}

.q-intro {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.q-field {
  margin-bottom: 20px;
}

.q-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.q-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.q-req {
  color: #ff5252;
}

.q-help-btn {
  display: inline-flex;
  align-items: center;
  color: var(--icon-gold);
  opacity: 0.85;
  border-radius: 50%;
  padding: 2px;
}

.q-help-btn:hover {
  opacity: 1;
  background: rgba(184, 134, 11, 0.12);
}

.q-help-btn .material-icons-outlined {
  font-size: 18px;
}

.q-example {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 6px;
  padding-left: 10px;
  border-left: 2px solid rgba(184, 134, 11, 0.4);
}

.q-example b {
  color: var(--text-gold);
}

.q-note {
  margin-top: 8px;
}

.q-tall {
  min-height: 180px;
}

select.form-input {
  appearance: auto;
  -webkit-appearance: auto;
}

/* ---- Segmented yes/no & priority ---- */

.q-seg {
  display: inline-flex;
  gap: 6px;
}

.q-seg-btn {
  padding: 7px 16px;
  font-size: 13px;
  border-radius: 20px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  color: var(--text-secondary);
  background: none;
  cursor: pointer;
}

.q-seg-btn.active {
  background: var(--gold-gradient);
  color: #1A1A1A;
  border-color: transparent;
  font-weight: 600;
}

/* ---- Chips ---- */

.q-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.q-chip {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 20px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  color: var(--text-secondary);
  background: none;
  cursor: pointer;
  transition: all 0.15s;
}

.q-chip.active {
  background: var(--gold-gradient);
  color: #1A1A1A;
  border-color: transparent;
  font-weight: 600;
}

.q-chip-add {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  max-width: 320px;
}

.q-chip-add .form-input {
  padding: 8px 12px;
  font-size: 13px;
}

.q-chip-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  border-radius: 8px;
  border: 1px solid var(--primary-gold);
  color: var(--icon-gold);
  flex-shrink: 0;
}

/* ---- Person grid / location grid ---- */

.q-person-grid,
.q-loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ---- Sub-cards (locations, modules, roles, review) ---- */

.q-subcard {
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--bg);
}

[data-theme="dark"] .q-subcard {
  background: rgba(255, 255, 255, 0.02);
}

.q-subcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.q-subcard-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.q-subcard-title .material-icons-outlined {
  color: var(--icon-gold);
  font-size: 20px;
}

.q-del-btn {
  display: inline-flex;
  color: var(--text-muted);
  border-radius: 50%;
  padding: 4px;
}

.q-del-btn:hover {
  color: #ff5252;
  background: rgba(255, 82, 82, 0.1);
}

.q-add-btn {
  margin-top: 4px;
}

/* ---- Modules / roles ---- */

.q-mod {
  padding: 0;
  overflow: hidden;
}

.q-mod-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
}

.q-mod-head:hover {
  background: rgba(184, 134, 11, 0.05);
}

.q-mod-check {
  color: var(--text-muted);
}

.q-mod.selected .q-mod-check {
  color: var(--primary-gold);
}

.q-mod-icon {
  color: var(--icon-gold);
  font-size: 20px;
}

.q-mod-label {
  font-weight: 500;
  flex: 1;
}

.q-mod.selected {
  border-color: var(--primary-gold);
}

.q-mod-body {
  padding: 0 16px 16px 46px;
}

.q-prio-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.q-prio-title {
  font-size: 13px;
  color: var(--text-secondary);
}

.q-prio-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.q-prio-must {
  background: rgba(184, 134, 11, 0.15);
  color: var(--text-gold);
}

.q-prio-phase2 {
  background: rgba(33, 150, 243, 0.15);
  color: #2196F3;
}

.q-prio-nice {
  background: rgba(128, 128, 128, 0.15);
  color: var(--text-muted);
}

/* ---- Note bar ---- */

.q-note-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(184, 134, 11, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.q-note-bar .material-icons-outlined {
  color: var(--icon-gold);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.q-seelink {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-gold);
  font-size: 13px;
  text-decoration: underline;
}

/* ---- Review ---- */

.q-review-list {
  list-style: none;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.q-review-list li {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(128, 128, 128, 0.15);
}

.q-review-list li:last-child {
  border-bottom: none;
}

.text-btn {
  color: var(--text-gold);
  font-size: 14px;
  cursor: pointer;
}

/* ---- Nav buttons ---- */

.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

/* ---- Helper panel ---- */

.q-hp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 3000;
}

.q-hp-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.q-help-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100%;
  background: var(--card-bg);
  z-index: 3001;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px var(--shadow-color);
}

.q-help-panel.open {
  transform: translateX(0);
}

.q-hp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.q-hp-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.q-hp-title .material-icons-outlined {
  color: var(--icon-gold);
}

.q-hp-body {
  padding: 20px;
  overflow-y: auto;
}

.q-hp-body h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gold);
  margin: 18px 0 6px;
}

.q-hp-body h4:first-child {
  margin-top: 0;
}

.q-hp-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.q-hp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.q-hp-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 16px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  color: var(--text-secondary);
  cursor: pointer;
}

.q-hp-tab .material-icons-outlined {
  font-size: 14px;
}

.q-hp-tab.active {
  background: var(--gold-gradient);
  color: #1A1A1A;
  border-color: transparent;
  font-weight: 600;
}

.q-hp-example {
  background: var(--bg);
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 10px;
  padding: 14px;
}

[data-theme="dark"] .q-hp-example {
  background: rgba(255, 255, 255, 0.03);
}

.q-hp-ex-ind {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.q-hp-ex-ind .material-icons-outlined {
  font-size: 15px;
  color: var(--icon-gold);
}

.q-hp-ex-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.65;
  font-style: italic;
}

.q-hp-use {
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 13px;
}

/* ---- Success ---- */

.quote-success {
  text-align: center;
  padding: 60px 20px;
}

.quote-success h2 {
  color: var(--text-primary);
  margin: 16px 0 8px;
}

.quote-success p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

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

@media (max-width: 640px) {
  .quote-page {
    padding: 84px 12px 60px;
  }

  .quote-hero h1 {
    font-size: 26px;
  }

  .q-card {
    padding: 18px 14px;
  }

  .q-person-grid,
  .q-loc-grid {
    grid-template-columns: 1fr;
  }

  .q-mod-body {
    padding-left: 16px;
  }

  .q-sample-toggle {
    margin-left: 0;
    width: 100%;
    margin-top: 6px;
  }

  .q-help-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 78vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }

  .q-help-panel.open {
    transform: translateY(0);
  }
}
