/* ===========================
   EO Staff Application Form
   Design System & Styles
   =========================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #007BC4;
  --bg-card: rgba(0, 60, 110, 0.7);
  --bg-card-border: rgba(255, 255, 255, 0.15);
  --bg-input: rgba(0, 50, 95, 0.8);
  --bg-input-focus: rgba(0, 40, 80, 0.9);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.4);
  --accent: #F8A51B;
  --accent-soft: rgba(248, 165, 27, 0.2);
  --accent-glow: rgba(248, 165, 27, 0.35);
  --accent-orange: #F8A51B;
  --accent-orange-soft: rgba(248, 165, 27, 0.15);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.2);
  --error: #f87171;
  --error-soft: rgba(248, 113, 113, 0.15);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Ambient Background --- */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(248, 165, 27, 0.12), transparent 70%);
  bottom: 10%;
  left: -8%;
  animation-delay: -7s;
}

.bg-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* --- App Container --- */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Header --- */
.app-header {
  text-align: center;
  margin-bottom: 12px;
  animation: fadeInDown 0.6s ease-out;
}

.logo {
  text-align: center;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo span {
  color: var(--accent-orange);
}

.header-subtitle {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* --- Progress Bar --- */
.progress-container {
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease-out 0.1s both;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 70px;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: var(--transition);
}

.progress-step.active .step-circle {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 20px var(--accent-glow);
}

.progress-step.completed .step-circle {
  border-color: var(--success);
  color: var(--success);
  background: var(--success-soft);
}

.step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
  color: var(--text-secondary);
}

.progress-line {
  width: 80px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 1px;
  transition: width 0.5s ease;
}

/* --- Card --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  animation: fadeInUp 0.5s ease-out;
}

.card-header {
  margin-bottom: 32px;
}

.card-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.card-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 24px;
  flex: 1;
}

.form-row {
  display: flex;
  gap: 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

input:focus,
textarea:focus,
select:focus {
  background: var(--bg-input-focus);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(240,240,245,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select option {
  background: #003c6e;
  color: var(--text-primary);
}

.field-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
  min-height: 16px;
  transition: var(--transition);
}

input.error,
textarea.error,
select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-soft);
}

/* --- Question Block --- */
.question-block {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.question-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
}

.question-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* --- Upload Zone --- */
.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--accent-soft);
  margin-bottom: 16px;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.upload-icon {
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.7;
}

.upload-text {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 6px;
}

.upload-browse {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.upload-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--success-soft);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--border-radius);
  padding: 14px 16px;
  margin-bottom: 24px;
  animation: fadeInUp 0.3s ease;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--success);
}

.file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.file-size {
  font-size: 12px;
  color: var(--text-muted);
}

.file-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition);
}

.file-remove:hover {
  color: var(--error);
  background: var(--error-soft);
}

/* --- Buttons --- */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), #e8950a);
  color: white;
  box-shadow: 0 4px 16px rgba(248, 165, 27, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(248, 165, 27, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.btn-submit {
  min-width: 200px;
  justify-content: center;
}

/* --- Spinner --- */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* --- Success Screen --- */
.success-screen {
  animation: fadeInUp 0.6s ease-out;
}

.success-card {
  text-align: center;
  padding: 60px 40px;
}

.success-icon {
  color: var(--success);
  margin-bottom: 24px;
  animation: successBounce 0.6s ease-out 0.2s both;
}

@keyframes successBounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-card h1 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.success-card p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 420px;
  margin: 0 auto 12px;
  line-height: 1.7;
}

.success-note {
  color: var(--text-muted) !important;
  font-size: 14px !important;
  margin-top: 20px !important;
}

/* --- Footer --- */
.app-footer {
  text-align: center;
  margin-top: auto;
  padding-top: 40px;
}

.app-footer p {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Step Transitions --- */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .app-container {
    padding: 24px 16px 40px;
  }

  .card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .card-header h1 {
    font-size: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .progress-line {
    width: 48px;
  }

  .step-label {
    font-size: 10px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .btn-submit {
    min-width: 160px;
  }

  .upload-zone {
    padding: 32px 16px;
  }

  .logo {
    font-size: 28px;
  }

  .success-card {
    padding: 40px 24px;
  }

  .success-card h1 {
    font-size: 22px;
  }

  .bg-orb-1 {
    width: 300px;
    height: 300px;
  }

  .bg-orb-2 {
    width: 250px;
    height: 250px;
  }

  .bg-orb-3 {
    width: 200px;
    height: 200px;
  }
}
/* === AI Notice Banner === */
.ai-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 3px solid var(--accent-gold, #F5A623);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}

.ai-notice-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.ai-notice strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.ai-notice p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
}

/* === Process Roadmap === */
.process-roadmap {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.roadmap-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.roadmap-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.roadmap-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.roadmap-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(248, 165, 27, 0.3);
}

.roadmap-step-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.roadmap-step-content strong {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 600;
}

.roadmap-step-content span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.roadmap-note {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  font-style: italic;
}

/* === Consent Checkbox (Fine Print) === */
.consent-block {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 400;
  margin-bottom: 0;
}

.consent-label input[type="checkbox"] {
  width: auto;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: var(--bg-input);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.consent-label input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.consent-label input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.consent-label input[type="checkbox"].error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-soft);
}

.consent-text {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
}

.consent-text ul {
  margin: 4px 0 4px 16px;
  padding: 0;
  list-style: disc;
}

.consent-text ul li {
  font-size: 10.5px;
  line-height: 1.5;
  margin-bottom: 2px;
  color: var(--text-muted);
}

.consent-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-text a:hover {
  color: #fff;
}

.consent-block .field-error {
  margin-top: 8px;
  margin-left: 28px;
}
