/* ═══════════════════════════════════════════════════
   ELITE MENTORSHIP — APPLICATION FLOW
   Premium glass-morphism dark mode
   Motion-powered transitions, confetti, glow rings
   ═══════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #06060a;
  --bg-surface: #0b0b10;
  --bg-elevated: #101018;
  --bg-hover: #16161f;
  --bg-card: #0d0d14;
  --text-primary: #eeeef2;
  --text-secondary: #7a7a8c;
  --text-tertiary: #3e3e4d;
  --text-accent: #c4b5fd;
  --accent: #a78bfa;
  --accent-dim: #7c5cbf;
  --accent-glow: hsl(263 60% 68% / 0.08);
  --accent-strong: hsl(263 60% 68% / 0.25);
  --accent-border: hsl(263 60% 68% / 0.12);
  --accent-subtle: hsl(263 60% 68% / 0.04);
  --font-display: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-editorial: 'Playfair Display', Georgia, serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --page-max: 1200px;
  --page-pad: clamp(1.5rem, 5vw, 4rem);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ─── ATMOSPHERIC BACKGROUND ───────────────────── */
.apply-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.apply-atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.apply-atmosphere__orb--1 {
  width: 600px;
  height: 600px;
  background: hsl(263 60% 40% / 0.12);
  top: -200px;
  right: -150px;
}

.apply-atmosphere__orb--2 {
  width: 500px;
  height: 500px;
  background: hsl(280 50% 35% / 0.08);
  bottom: -100px;
  left: -200px;
}

.apply-atmosphere__orb--3 {
  width: 350px;
  height: 350px;
  background: hsl(240 50% 40% / 0.06);
  top: 40%;
  left: 50%;
}

/* ─── PROGRESS BAR — GLOWING ──────────────────── */
.apply-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
}

.apply-progress__track {
  height: 3px;
  background: var(--bg-elevated);
  position: relative;
}

.apply-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  position: relative;
  will-change: width;
  border-radius: 0 2px 2px 0;
}

.apply-progress__glow-trail {
  position: absolute;
  top: -6px;
  right: 0;
  width: 80px;
  height: 15px;
  background: linear-gradient(90deg, transparent, hsl(263 60% 68% / 0.3));
  filter: blur(6px);
  pointer-events: none;
}

.apply-progress__dot {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 10px hsl(263 60% 68% / 0.7),
    0 0 25px hsl(263 60% 68% / 0.4),
    0 0 40px hsl(263 60% 68% / 0.15);
}

/* ─── STEP COUNTER ─────────────────────────────── */
.apply-counter {
  position: fixed;
  top: 20px;
  right: var(--page-pad);
  z-index: 101;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 400ms ease;
}

.apply-counter.visible {
  opacity: 1;
}

.apply-counter__current {
  color: var(--text-accent);
  font-variant-numeric: tabular-nums;
  min-width: 1.2ch;
  text-align: right;
}

.apply-counter__sep {
  color: var(--text-tertiary);
  margin: 0 1px;
}

/* ─── BACK TO MENTORSHIP LINK ──────────────────── */
.apply-back-link {
  position: fixed;
  top: 18px;
  left: var(--page-pad);
  z-index: 101;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 300ms ease;
}

.apply-back-link:hover {
  color: var(--text-primary);
}

.apply-back-link svg {
  flex-shrink: 0;
}

/* ─── MAIN CONTAINER ───────────────────────────── */
.apply-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px var(--page-pad) 120px;
}

/* ─── STEP SECTIONS ────────────────────────────── */
.apply-step {
  position: absolute;
  width: 100%;
  max-width: 640px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.apply-step.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* ─── GLASS CARD ───────────────────────────────── */
.apply-card {
  background: hsl(263 30% 15% / 0.05);
  border: 1px solid hsl(263 60% 68% / 0.08);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 6px;
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
}

.apply-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: radial-gradient(ellipse 60% 40% at 30% 0%, hsl(263 60% 50% / 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.apply-card--scrollable {
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-border) transparent;
}

.apply-card--scrollable::-webkit-scrollbar {
  width: 4px;
}

.apply-card--scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.apply-card--scrollable::-webkit-scrollbar-thumb {
  background: var(--accent-border);
  border-radius: 2px;
}

/* ─── CARD TYPOGRAPHY ──────────────────────────── */
.apply-card__eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.apply-card__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.apply-card__subtext {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 480px;
}

/* ─── OPTION BUTTONS (single & multi select) ──── */
.apply-options {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.apply-option {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid var(--text-tertiary);
  border-radius: 6px;
  padding: 0.9rem 1.25rem;
  min-height: 48px;
  cursor: pointer;
  text-align: left;
  transition: color 300ms ease, border-color 300ms ease, background 300ms ease, box-shadow 300ms ease;
  outline: none;
  will-change: transform;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.4;
}

.apply-option:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  background: hsl(263 30% 15% / 0.04);
}

.apply-option:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px hsl(263 60% 68% / 0.15);
}

.apply-option.selected {
  background: hsl(263 60% 68% / 0.12);
  border-color: var(--accent);
  color: var(--text-accent);
  box-shadow:
    0 0 16px hsl(263 60% 68% / 0.1),
    0 0 30px hsl(263 60% 68% / 0.04);
}

.apply-option.selected::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: optionPulse 0.6s ease-out forwards;
  pointer-events: none;
}

.apply-option {
  position: relative;
  overflow: visible;
}

@keyframes optionPulse {
  0% { opacity: 0.5; inset: -1px; }
  100% { opacity: 0; inset: -10px; }
}

/* Multi-select checkbox indicator */
.apply-option__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--text-tertiary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 300ms ease, background 300ms ease;
}

.apply-option__check svg {
  opacity: 0;
  transition: opacity 200ms ease;
}

.apply-option--multi.selected .apply-option__check {
  border-color: var(--accent);
  background: hsl(263 60% 68% / 0.2);
}

.apply-option--multi.selected .apply-option__check svg {
  opacity: 1;
  color: var(--accent);
}

/* ─── PREMIUM INPUTS ───────────────────────────── */
.apply-field {
  position: relative;
  margin-top: 0.5rem;
}

.apply-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--text-tertiary);
  padding: 1rem 0 0.75rem;
  outline: none;
  transition: border-color 400ms ease;
  position: relative;
  z-index: 1;
}

.apply-input::placeholder {
  color: transparent;
}

.apply-input:focus {
  border-bottom-color: var(--accent);
}

.apply-input:focus ~ .apply-input__glow {
  opacity: 1;
}

.apply-field::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.5s var(--ease-out-expo);
  z-index: 2;
}

.apply-field:has(.apply-input:focus)::after {
  width: 100%;
}

.apply-field--textarea::after {
  display: none;
}

.apply-input__glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(0deg, hsl(263 60% 68% / 0.1), transparent);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
  z-index: 0;
}

/* Floating label */
.apply-label {
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: all 300ms var(--ease-out-expo);
  transform-origin: left;
  z-index: 2;
}

.apply-input:focus ~ .apply-label,
.apply-input:not(:placeholder-shown) ~ .apply-label {
  top: -0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-accent);
}

/* ─── TEXTAREA ──────────────────────────────────── */
.apply-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  background: hsl(263 30% 15% / 0.03);
  min-height: 140px;
  resize: vertical;
  line-height: 1.65;
  border: 1.5px solid var(--text-tertiary);
  border-radius: 6px;
  padding: 1rem 1rem 0.75rem;
  outline: none;
  transition: border-color 400ms ease, box-shadow 400ms ease;
}

.apply-textarea::placeholder {
  color: var(--text-tertiary);
  font-weight: 300;
}

.apply-textarea:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px hsl(263 60% 68% / 0.06), 0 0 20px hsl(263 60% 68% / 0.04);
}

/* ─── TEXTAREA TOOLBAR ─────────────────────────── */
.apply-textarea__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.apply-textarea__minchars {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  transition: color 300ms ease;
}

.apply-textarea__minchars.met {
  color: hsl(142 60% 50%);
}

.apply-textarea__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Write with AI button */
.apply-ai-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-accent);
  background: hsl(263 60% 68% / 0.08);
  border: 1px solid hsl(263 60% 68% / 0.15);
  border-radius: 100px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  outline: none;
}

.apply-ai-btn:hover {
  background: hsl(263 60% 68% / 0.15);
  border-color: hsl(263 60% 68% / 0.25);
  box-shadow: 0 0 12px hsl(263 60% 68% / 0.1);
}

.apply-ai-btn svg {
  flex-shrink: 0;
}

/* Voice input button */
.apply-voice-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--text-tertiary);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 300ms ease, border-color 300ms ease, background 300ms ease, box-shadow 300ms ease;
  outline: none;
  flex-shrink: 0;
}

.apply-voice-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.apply-voice-btn.recording {
  color: hsl(0 80% 60%);
  border-color: hsl(0 80% 60%);
  background: hsl(0 80% 60% / 0.1);
  box-shadow: 0 0 12px hsl(0 80% 60% / 0.2);
  animation: voicePulse 1.2s ease-in-out infinite;
}

.apply-voice-btn.unsupported {
  display: none;
}

@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 12px hsl(0 80% 60% / 0.2); }
  50% { box-shadow: 0 0 20px hsl(0 80% 60% / 0.35); }
}

/* ─── SUPPORT TEXT ──────────────────────────────── */
.apply-support-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-tertiary);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ─── CONTACT FORM FIELDS ──────────────────────── */
.apply-contact-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.apply-contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.apply-contact-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.apply-required {
  color: var(--accent);
}

.apply-contact-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--text-tertiary);
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 400ms ease;
}

.apply-contact-input::placeholder {
  color: hsl(263 10% 30%);
  font-weight: 300;
}

.apply-contact-input:focus {
  border-bottom-color: var(--accent);
}

.apply-contact-input.error {
  border-bottom-color: hsl(0 70% 55%);
}

/* ─── QUESTION GROUP (Step 10 dual questions) ──── */
.apply-question-group {
  margin-bottom: 2rem;
}

.apply-question-group:last-child {
  margin-bottom: 0;
}

.apply-question-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.55;
  display: block;
  margin-bottom: 0.75rem;
}

/* Error message */
.apply-field__error {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: hsl(0 70% 65%);
  margin-top: 0.5rem;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 300ms ease;
}

.apply-field__error.visible {
  opacity: 1;
}

/* ─── BUTTONS ──────────────────────────────────── */
.apply-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: background 300ms ease, box-shadow 300ms ease, color 300ms ease;
  will-change: transform;
  text-decoration: none;
}

.apply-btn--primary {
  background: var(--accent);
  color: #0a0a0f;
  padding: 0.85rem 2rem;
  box-shadow: 0 0 20px hsl(263 60% 68% / 0.15);
  min-height: 48px;
}

.apply-btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsl(0 0% 100% / 0.18) 45%,
    hsl(0 0% 100% / 0.25) 50%,
    hsl(0 0% 100% / 0.18) 55%,
    transparent 100%
  );
  animation: ctaShimmer 4s ease-in-out 2s infinite;
  pointer-events: none;
}

@keyframes ctaShimmer {
  0% { left: -100%; }
  40% { left: 150%; }
  100% { left: 150%; }
}

.apply-btn--primary:hover {
  background: hsl(263 60% 75%);
  box-shadow: 0 0 30px hsl(263 60% 68% / 0.25);
}

.apply-btn--primary:focus-visible {
  box-shadow: 0 0 0 3px hsl(263 60% 68% / 0.3);
}

.apply-btn--sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.82rem;
  min-height: 38px;
}

.apply-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--text-tertiary);
  min-height: 48px;
}

.apply-btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.apply-btn--begin {
  margin-top: 0.5rem;
}

/* Submit spinner */
.apply-btn__spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid hsl(0 0% 10% / 0.3);
  border-top-color: #0a0a0f;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

.apply-btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.apply-btn__arrow {
  transition: transform 300ms var(--ease-out-expo);
}

.apply-btn:hover .apply-btn__arrow {
  transform: translateX(3px);
}

/* ─── NAVIGATION ───────────────────────────────── */
.apply-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--page-pad);
  background: linear-gradient(0deg, var(--bg-deep) 60%, transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}

.apply-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.apply-nav .apply-btn {
  pointer-events: auto;
}

#btnBack {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

#btnBack.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ─── AI WRITING PANEL ─────────────────────────── */
.apply-ai-panel {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(240 20% 4% / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.apply-ai-panel.active {
  opacity: 1;
  pointer-events: auto;
}

.apply-ai-panel__content {
  background: var(--bg-elevated);
  border: 1px solid hsl(263 60% 68% / 0.12);
  border-radius: 8px;
  padding: 1.75rem;
  width: min(90vw, 480px);
  max-height: 80vh;
  overflow-y: auto;
}

.apply-ai-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.apply-ai-panel__title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.apply-ai-panel__close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  transition: color 300ms ease;
}

.apply-ai-panel__close:hover {
  color: var(--text-primary);
}

.apply-ai-panel__hint {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.apply-ai-panel__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
  background: hsl(263 30% 15% / 0.06);
  border: 1.5px solid var(--text-tertiary);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  min-height: 90px;
  resize: vertical;
  outline: none;
  transition: border-color 400ms ease;
}

.apply-ai-panel__input::placeholder {
  color: var(--text-tertiary);
  font-weight: 300;
}

.apply-ai-panel__input:focus {
  border-color: var(--accent-border);
}

.apply-ai-panel__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* AI generating state */
.apply-ai-panel__generating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-accent);
  padding: 0.5rem 0;
}

.apply-ai-panel__dots {
  display: flex;
  gap: 4px;
}

.apply-ai-panel__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: aiDot 1.2s ease-in-out infinite;
}

.apply-ai-panel__dots span:nth-child(2) { animation-delay: 0.2s; }
.apply-ai-panel__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ─── CONFETTI CANVAS ──────────────────────────── */
.apply-confetti {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
}

.apply-confetti.active {
  opacity: 1;
}

/* ─── SUCCESS OVERLAY ──────────────────────────── */
.apply-success {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(240 20% 4% / 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.apply-success.active {
  opacity: 1;
  pointer-events: auto;
}

.apply-success__content {
  text-align: center;
  padding: 2rem;
  max-width: 520px;
  position: relative;
}

.apply-success__rings {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
}

.apply-success__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid hsl(263 60% 60% / 0.15);
  opacity: 0;
}

.apply-success__ring--1 { inset: 20px; }
.apply-success__ring--2 { inset: 0; }
.apply-success__ring--3 { inset: -20px; }

.apply-success__icon {
  margin-bottom: 2rem;
  opacity: 0;
  position: relative;
  z-index: 1;
}

.apply-success__icon svg circle {
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
}

.apply-success__icon svg path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}

.apply-success__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.apply-success__subtext {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(15px);
}

.apply-success__support {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(10px);
}

.apply-success__cta {
  opacity: 0;
  transform: translateY(10px);
}

/* ─── RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
  .apply-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
  }

  .apply-card__heading {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .apply-option {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }

  .apply-counter {
    top: 16px;
    right: 1.5rem;
  }

  .apply-back-link {
    top: 14px;
    left: 1.5rem;
  }

  .apply-nav {
    padding: 1rem 1.5rem;
  }

  .apply-card--scrollable {
    max-height: 60vh;
  }

  .apply-textarea__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .apply-container {
    padding: 70px 1rem 110px;
  }

  .apply-card {
    padding: 1.5rem 1.25rem;
  }

  .apply-card__subtext {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }

  .apply-options {
    gap: 0.5rem;
  }

  .apply-option {
    font-size: 0.82rem;
    padding: 0.65rem 0.85rem;
  }

  .apply-btn--primary {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }

  .apply-btn--ghost {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  .apply-contact-fields {
    gap: 1rem;
  }

  .apply-ai-btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }
}

/* ─── REDUCED MOTION ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .apply-atmosphere__orb {
    animation: none !important;
  }

  .apply-progress__fill {
    transition: width 100ms linear !important;
  }

  .apply-step {
    transition: none !important;
  }

  .apply-confetti {
    display: none !important;
  }

  .apply-success__icon,
  .apply-success__heading,
  .apply-success__subtext,
  .apply-success__support,
  .apply-success__cta {
    opacity: 1 !important;
    transform: none !important;
  }

  .apply-success__icon svg circle,
  .apply-success__icon svg path {
    stroke-dashoffset: 0 !important;
  }

  .apply-success__ring {
    opacity: 0 !important;
  }

  .apply-option.selected::after {
    animation: none !important;
    display: none !important;
  }

  .apply-btn--primary::after {
    animation: none !important;
    display: none !important;
  }

  .apply-field::after {
    transition: none !important;
    width: 100%;
  }

  .apply-voice-btn.recording {
    animation: none !important;
  }
}
