/* ============================================================
   Survey Modal
   ============================================================ */
.survey-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 7vh 24px 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
}
.survey-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.survey {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-2xl);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(232, 190, 77, 0.18),
    var(--shadow-inset);
  position: relative;
  overflow: hidden;
  transform: translateY(-16px) scale(0.97);
  opacity: 0;
  transition: transform 280ms var(--ease-spring), opacity 220ms var(--ease-out);
}
.survey-overlay.is-open .survey {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.survey::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
  opacity: 0.6;
}

.survey__head {
  padding: var(--space-8) var(--space-8) 0;
  position: relative;
}
.survey__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-base) var(--ease-out);
}
.survey__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--fg);
  transform: rotate(90deg);
}

.survey__eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.survey__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  padding-right: 48px;
}
.survey__sub {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin: 0 0 var(--space-6);
}

.survey__progress {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-6);
}
.survey__progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.survey__progress-bar.is-active,
.survey__progress-bar.is-done {
  background: var(--gold-300);
}

.survey__body {
  padding: 0 var(--space-8) var(--space-6);
}
.survey__q-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  margin-bottom: var(--space-4);
  display: block;
  line-height: 1.3;
  text-wrap: pretty;
}

.survey__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.survey__option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  color: var(--fg);
  text-align: left;
  width: 100%;
  transition: all var(--dur-fast) var(--ease-out);
}
.survey__option:hover {
  background: rgba(232, 190, 77, 0.06);
  border-color: var(--border-gold);
}
.survey__option.is-selected {
  background: rgba(232, 190, 77, 0.1);
  border-color: var(--gold-400);
  color: var(--gold-100);
}
.survey__option-bullet {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease-out);
}
.survey__option.is-selected .survey__option-bullet {
  border-color: var(--gold-300);
  background: var(--gold-300);
}
.survey__option.is-selected .survey__option-bullet::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-900);
}

.survey__input,
.survey__textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--fg);
  font-size: var(--text-base);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--dur-base) var(--ease-out);
}
.survey__input:focus,
.survey__textarea:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(232, 190, 77, 0.12);
}
.survey__textarea { resize: vertical; min-height: 96px; }

.survey__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-8);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.survey__step {
  font-size: var(--text-xs);
  color: var(--fg-faint);
  font-family: var(--font-display);
  letter-spacing: var(--tracking-wide);
}
.survey__nav {
  display: flex;
  gap: var(--space-2);
}
.survey__nav .btn { height: 40px; padding: 0 var(--space-4); font-size: var(--text-sm); }
.survey__nav .btn--ghost { background: transparent; }

.survey__success {
  text-align: center;
  padding: var(--space-12) var(--space-8);
}
.survey__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-500));
  color: var(--ink-900);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-4);
  box-shadow: 0 12px 32px rgba(232, 190, 77, 0.32);
}
.survey__success h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.survey__success p {
  color: var(--fg-muted);
  margin-bottom: var(--space-6);
}
