/*
 * ============================================================
 * css/modal.css — Visitor Survey Modal
 * ============================================================
 * Responsible for:
 *   - #survey-overlay fixed fullscreen backdrop with blur
 *     and .visible state (opacity + pointer-events)
 *   - .survey-card panel (background, border, transform reveal)
 *   - .survey-header, survey-header h3, survey-header p
 *   - .survey-questions flex column layout
 *   - .survey-question label style
 *   - .survey-options flex wrap
 *   - .survey-option chip style + hover/selected states
 *   - .survey-footer flex row layout
 *   - .survey-skip link style
 *   - .btn-survey-submit button style
 * ============================================================
 */

/* ═══════════════════════════════════════════════════════
   13. VISITOR SURVEY MODAL
       Shows once per browser — controlled via localStorage
═══════════════════════════════════════════════════════ */
#survey-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-med) ease;
}

#survey-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.survey-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3rem;
  max-width: 520px;
  width: 100%;
  margin: 1rem;
  transform: translateY(30px);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

#survey-overlay.visible .survey-card {
  transform: translateY(0);
}

.survey-header {
  margin-bottom: 2rem;
}

.survey-header h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.survey-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
}

.survey-questions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.survey-question label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.survey-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Radio-button-style option chips */
.survey-option {
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  cursor: none;
  transition: all var(--duration-fast) ease;
  user-select: none;
}

.survey-option:hover,
.survey-option.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,213,163,0.06);
}

.survey-footer {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.survey-skip {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: none;
  transition: color var(--duration-fast) ease;
}

.survey-skip:hover { color: var(--text); }

.btn-survey-submit {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.65rem 1.8rem;
  border-radius: 2px;
  cursor: none;
  font-weight: 500;
  transition: background var(--duration-fast) ease;
}

.btn-survey-submit:hover { background: var(--accent-2); }

/* Company field (shown for recruiters) */
.survey-company-field input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.55rem 0.8rem;
  outline: none;
  transition: border-color var(--duration-fast) ease;
}
.survey-company-field input:focus { border-color: var(--accent); }
.survey-company-field input::placeholder { color: rgba(240,237,232,0.25); }
