:root {

  --navy-deep: #433769;
  --navy-card: rgba(24, 18, 47, 0.65);
  --navy-light: #241A41;
  --navy-input: rgba(24, 18, 47, 0.45);
  --navy-input-hover: rgba(36, 26, 65, 0.7);
  --white: #FAF9FB;
  --indigo-accent: #3B82F6;
  --indigo-glow: rgba(59, 130, 246, 0.4);
  --gold-accent: #E0B254;
  --gold-glow: rgba(224, 178, 84, 0.3);
  --emerald-accent: #10B981;
  --rose-accent: #EF4444;
  --violet-accent: #8B5CF6;

  --text-primary: #FAF9FB;
  --text-secondary: #A5B4FC;
  --text-muted: #B3B2C9;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(59, 130, 246, 0.6);

  --font-heading: 'Fraunces', serif;
  --font-body: 'Lora', serif;
  --font-meta: 'Plus Jakarta Sans', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-elastic: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--navy-deep);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

@media (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, select, input, textarea, label {
    cursor: none;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--navy-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--indigo-accent);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--white);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  display: none;
}

.cursor-outline {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  display: none;
}

@media (pointer: fine) {
  .cursor-dot, .cursor-outline {
    display: block;
  }
}

.cursor-hover {
  width: 50px;
  height: 50px;
  border-color: var(--indigo-accent);
  background-color: rgba(59, 130, 246, 0.1);
}

.cursor-input-hover {
  width: 12px;
  height: 24px;
  border-radius: 2px;
  border: 1px solid var(--white);
  background: transparent;
}

.cursor-click {
  transform: translate(-50%, -50%) scale(0.8);
  background-color: var(--gold-accent);
  border-color: var(--gold-accent);
}

.constellation-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  opacity: 0.6;
}

.application-container {
  width: 100%;
  max-width: 1280px;
  min-height: 800px;
  display: grid;
  grid-template-columns: 320px 1fr;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  background: rgba(24, 18, 47, 0.5);
  backdrop-filter: blur(20px);
}

.step-sidebar {
  background: rgba(24, 18, 47, 0.85);
  padding: 40px;
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.steps-progress {
  margin: 40px 0;
}

.progress-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0.4;
  transition: var(--transition-smooth);
}

.progress-item.active {
  opacity: 1;
}

.progress-item.completed {
  opacity: 0.75;
}

.step-num {
  font-family: var(--font-meta);
  font-size: 0.8rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.progress-item.active .step-num {
  border-color: var(--gold-accent);
  background-color: var(--gold-accent);
  color: var(--navy-deep);
  box-shadow: 0 0 15px var(--gold-glow);
}

.progress-item.completed .step-num {
  border-color: var(--indigo-accent);
  background-color: var(--indigo-accent);
  color: var(--white);
}

.step-label {
  font-family: var(--font-meta);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.progress-item.active .step-label {
  color: var(--white);
  font-weight: 600;
}

.sidebar-footer {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.form-card {
  background: var(--navy-card);
  padding: 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.mobile-progress-container {
  display: none;
}

.app-form {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 35px;
  width: 100%;
  flex-grow: 1; 
  animation: stepFadeIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.form-step.active {
  display: flex;
}

@keyframes stepFadeIn {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

.step-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badge-pill {
  align-self: flex-start;
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(224, 178, 84, 0.1);
  color: var(--gold-accent);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(224, 178, 84, 0.2);
  margin-bottom: 5px;
}

.form-main-heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

.form-sub-heading {
  font-family: var(--font-meta);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-accent);
  margin-top: 8px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.sub-emoji {
  display: inline-block;
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.form-description {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 760px;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto;
  gap: 28px; 
  max-width: 650px;
}

.splash-content .form-description {
  text-align: center;
}

.splash-content .action-buttons {
  margin-top: 10px; 
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.field-label {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 4px;
}

.field-label .required {
  color: var(--rose-accent);
}

.form-input, .form-select, .form-textarea {
  font-family: var(--font-meta);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  background: var(--navy-input);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 18px;
  outline: none;
  width: 100%;
  transition: var(--transition-smooth);
}

.form-input:hover, .form-select:hover, .form-textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--navy-input-hover);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--indigo-accent);
  background: var(--navy-light);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
  font-family: var(--font-body);
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
  font-family: var(--font-meta);
}

.custom-select-trigger {
  font-family: var(--font-meta);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  background: var(--navy-input);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 18px;
  padding-right: 40px; 
  outline: none;
  width: 100%;
  text-align: left;
  position: relative;
  transition: var(--transition-smooth);
}

.custom-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--navy-input-hover);
}

.custom-select-trigger:focus, .custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--indigo-accent);
  background: var(--navy-light);
}

.custom-select-trigger::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2.2px solid var(--text-secondary);
  border-bottom: 2.2px solid var(--text-secondary);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  pointer-events: none;
}

.custom-select-wrapper.open .custom-select-trigger::after {
  transform: translateY(-35%) rotate(-135deg);
  border-color: var(--white);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: rgba(36, 26, 65, 0.96);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  z-index: 100;
  max-height: 250px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.custom-option {
  padding: 12px 18px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.custom-option:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.custom-option:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.custom-option:hover {
  background: var(--navy-input-hover);
  color: var(--white);
}

.custom-option.selected {
  background: rgba(59, 130, 246, 0.18);
  color: var(--white);
  font-weight: 600;
}

.custom-select-wrapper.invalid .custom-select-trigger {
  border-color: var(--rose-accent);
}

.dob-group {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 12px;
}

.radio-card-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  grid-column: span 2;
  margin-top: 5px;
}

.radio-card {
  position: relative;
  display: block;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card-content {
  background: var(--navy-input);
  border: 1px solid var(--border-glass);
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.radio-circle {
  width: 16px;
  height: 16px;
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.radio-card-content:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--navy-input-hover);
}

.radio-card input[type="radio"]:checked + .radio-card-content {
  border-color: var(--indigo-accent);
  background: rgba(59, 130, 246, 0.08);
}

.radio-card input[type="radio"]:checked + .radio-card-content .radio-circle {
  border-color: var(--indigo-accent);
}

.radio-card input[type="radio"]:checked + .radio-card-content .radio-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--indigo-accent);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: scaleIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
  from { transform: translate(-50%, -50%) scale(0); }
  to { transform: translate(-50%, -50%) scale(1); }
}

.radio-label {
  font-family: var(--font-meta);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 5px;
}

.team-card {
  position: relative;
  display: block;
}

.team-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.team-card-inner {
  background: var(--navy-input);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  transition: var(--transition-elastic);
}

.team-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.team-card-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.team-card-inner p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.team-card:hover .team-card-inner {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  background: var(--navy-input-hover);
}

.team-card input[type="radio"]:checked + .team-card-inner {
  border-color: var(--gold-accent);
  background: rgba(224, 178, 84, 0.05);
  transform: translateY(-5px);
}

.team-card input[type="radio"]:checked + .team-card-inner h3 {
  color: var(--gold-accent);
}

.archetype-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

@media (min-width: 993px) {
  .archetype-card:last-child {
    grid-column: span 2;
    justify-self: center;
    width: calc(50% - 6px);
  }
}

.archetype-card {
  position: relative;
  display: block;
}

.archetype-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.archetype-card-inner {
  background: var(--navy-input);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  text-align: center;
  align-items: center;
  transition: var(--transition-elastic);
}

.archetype-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.archetype-avatar {
  width: 200px;
  height: 200px;
  border-radius: 18px; 
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  padding: 6px;
}

.archetype-avatar.pip { background-color: rgba(59, 130, 246, 0.15); }
.archetype-avatar.barnaby { background-color: rgba(16, 185, 129, 0.15); }
.archetype-avatar.mimi { background-color: rgba(239, 68, 68, 0.15); }
.archetype-avatar.nix { background-color: rgba(139, 92, 246, 0.15); }
.archetype-avatar.lumi { background-color: rgba(245, 158, 11, 0.15); }

.character-img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 12px; 
  transition: var(--transition-smooth);
}

.archetype-card-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.archetype-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.trait-tags-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.trait-tag {
  font-family: var(--font-meta);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.archetype-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 5px;
}

.archetype-card:hover .archetype-card-inner {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-6px);
  background: var(--navy-input-hover);
}

.archetype-card input[type="radio"]:checked + .archetype-card-inner {
  border-color: var(--indigo-accent);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-6px);
}

.archetype-card input[type="radio"]:checked + .archetype-card-inner .trait-tag {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--white);
}

.upload-dropzone {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: var(--navy-input);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  transition: var(--transition-smooth);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.upload-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.upload-text {
  font-family: var(--font-meta);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.browse-link {
  color: var(--indigo-accent);
  text-decoration: underline;
}

.upload-hint {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.upload-dropzone.dragover {
  border-color: var(--indigo-accent);
  background: rgba(59, 130, 246, 0.15);
}

.upload-dropzone.dragover .dropzone-inner {
  transform: scale(0.95);
}

.file-preview {
  display: none;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 450px;
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 15px;
  z-index: 3;
}

.file-preview-details {
  flex-grow: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.file-preview-name {
  font-family: var(--font-meta);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.file-preview-size {
  font-family: var(--font-meta);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.btn-remove-file {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  padding: 5px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.btn-remove-file:hover {
  color: var(--rose-accent);
  transform: scale(1.15);
}

.leadership-toggle-wrapper {
  background: var(--navy-input);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.leadership-text {
  flex-grow: 1;
}

.toggle-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

.toggle-switch-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--navy-light);
  border: 1px solid var(--border-glass);
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-secondary);
  transition: .4s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--indigo-accent);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(28px);
  background-color: var(--white);
}

.toggle-status-label {
  font-family: var(--font-meta);
  font-size: 0.95rem;
  font-weight: 700;
  width: 35px;
}

.review-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
  background: var(--navy-input);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 30px;
  max-height: 480px;
  overflow-y: auto;
}

.review-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 20px;
}

.review-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-section h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold-accent);
  font-weight: 700;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.review-grid > div {
  font-family: var(--font-meta);
  font-size: 0.88rem;
  line-height: 1.5;
  display: flex;
  gap: 8px;
}

.review-grid > div.full-row {
  grid-column: span 2;
  flex-direction: column;
  gap: 5px;
}

.review-title {
  color: var(--text-secondary);
  font-weight: 500;
}

.review-value {
  color: var(--white);
  font-weight: 600;
}

.review-block {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.5;
  margin-top: 2px;
}

.validation-message {
  font-family: var(--font-meta);
  font-size: 0.78rem;
  color: var(--rose-accent);
  font-weight: 600;
  display: none;
  margin-top: 3px;
  animation: shakeError 0.3s ease-in-out;
}

.validation-message.centered-msg {
  text-align: center;
  margin: 10px 0;
}

.form-feedback-error {
  font-family: var(--font-meta);
  font-size: 0.88rem;
  color: var(--rose-accent);
  font-weight: 600;
  text-align: center;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; 
  padding-top: 20px;
  gap: 15px;
}

.center-actions {
  justify-content: center;
  width: 100%;
}

.btn {
  font-family: var(--font-meta);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-elastic);
}

.btn-primary {
  background-color: var(--white);
  color: var(--navy-deep);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--gold-accent);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover:not(:disabled) {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.02);
}

.btn-secondary:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.btn-submit {
  background-color: var(--indigo-accent);
  color: var(--white);
  padding: 14px 40px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  background-color: #2563EB;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.spinner {
  animation: rotate 2s linear infinite;
  width: 18px;
  height: 18px;
}

.spinner .path {
  stroke: var(--white);
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy-deep);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.success-overlay.active {
  display: flex;
}

.success-card {
  max-width: 500px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: stepFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: var(--white);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--emerald-accent);
  animation: fillCheckmark .4s ease-in-out .4s forwards, scaleCheckmark .3s ease-in-out .9s alternate both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--emerald-accent);
  fill: none;
  animation: strokeCircle .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes strokeCircle {
  100% { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
  100% { stroke-dashoffset: 0; }
}

@keyframes fillCheckmark {
  100% { box-shadow: inset 0px 0px 0px 40px var(--emerald-accent); }
}

@keyframes scaleCheckmark {
  0% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
  100% { transform: none; }
}

.success-card h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--white);
}

.success-card p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.success-card .success-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .application-container {
    grid-template-columns: 1fr;
    border-radius: 0;
    min-height: 100vh;
    border: none;
  }

  body {
    padding: 0;
  }

  .step-sidebar {
    display: none; 
  }

  .form-card {
    padding: 40px 24px;
  }

  .mobile-progress-container {
    display: block;
    margin-bottom: 30px;
  }

  .mobile-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--navy-light);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
  }

  .mobile-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress-pct, 0%);
    background: var(--gold-accent);
    transition: var(--transition-smooth);
  }

  .mobile-step-indicator {
    font-family: var(--font-meta);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
    text-align: right;
  }

  .form-main-heading {
    font-size: 2rem;
  }

  .form-description {
    font-size: 1rem;
  }

  .fields-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .radio-card-group {
    grid-template-columns: 1fr;
    grid-column: span 1;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .archetype-grid {
    grid-template-columns: 1fr;
  }
}
