/* Apply Page Styles */

.apply-section {
  background-color: var(--bg-light);
  min-height: 100vh;
  padding: 3rem 0;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 3rem;
}

.progress-bar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 500px;
  margin: 0 auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.step-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.progress-step.active .step-label {
  color: var(--primary-color);
  font-weight: 600;
}

.progress-line {
  flex: 1;
  height: 2px;
  background-color: var(--border-color);
  margin: 0 1rem;
  position: relative;
  top: -25px;
}

.progress-step.active ~ .progress-line {
  background-color: var(--primary-color);
}

/* Step Card */
.step-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.step-title {
  font-size: 1.75rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.apply-form {
  width: 100%;
}

.form-label {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control,
.form-select {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 75, 154, 0.1);
}

/* File Upload */
.file-upload-area {
  position: relative;
  margin-bottom: 2rem;
}

.file-input {
  display: none;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  border: 2px dashed var(--primary-color);
  border-radius: 12px;
  background-color: #f0f7ff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  background-color: #e3f2fd;
  border-color: var(--primary-dark);
}

.upload-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.file-upload-label h5 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.file-upload-label p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.file-upload-label small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Textarea */
textarea.form-control {
  resize: vertical;
  font-family: "Inter", sans-serif;
}

/* Step Actions */
.step-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.step-actions .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

.btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-success {
  background-color: #28a745;
  border: none;
}

.btn-success:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Review Section */
.review-section {
  background-color: #f0f7ff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.review-title {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.review-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 75, 154, 0.1);
}

.review-item:last-child {
  border-bottom: none;
}

.review-label {
  color: var(--text-muted);
  font-weight: 500;
}

.review-value {
  color: var(--text-dark);
  font-weight: 600;
}

/* Success Card */
.success-card {
  background: var(--bg-white);
  padding: 3rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 1rem;
}

.success-title {
  font-size: 1.75rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.success-message {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Hidden Steps */
.apply-step {
  display: none;
}

.apply-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .step-card {
    padding: 1.5rem;
  }

  .step-title {
    font-size: 1.5rem;
  }

  .progress-bar-wrapper {
    max-width: 100%;
  }

  .progress-line {
    margin: 0 0.5rem;
  }

  .step-actions {
    flex-direction: column;
  }

  .step-actions .btn {
    width: 100%;
  }

  .file-upload-label {
    padding: 2rem 1rem;
  }

  .review-item {
    flex-direction: column;
    gap: 0.5rem;
  }
}
