.team-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(12, 74, 154, 0.85), rgba(8, 51, 102, 0.9)),
    url("../Images/ISIGEF_LOGO.png") center 25% / contain no-repeat;
  color: var(--white);
  overflow: hidden;
  padding-top: 80px;
}

.team-hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--copper-light), transparent);
  z-index: 1;
}

.team-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(225, 154, 97, 0.15) 0%,
    transparent 50%
  );
}

.team-hero-content {
  position: relative;
  z-index: 2;
}

.team-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.team-hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto var(--space-md);
  line-height: 1.8;
}

.hero-badge {
  display: inline-block;
  background: rgba(225, 154, 97, 0.9);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.team-hero .breadcrumb {
  margin-top: var(--space-md);
}

.team-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.team-hero .breadcrumb-item a:hover {
  color: var(--accent-copper);
}

.team-hero .breadcrumb-item.active {
  color: var(--white);
}

.team-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
  content: "›";
  font-size: 1.2rem;
}

/* ===== SECTION HEADER ===== */
.team-section-header {
  margin-bottom: var(--space-xl);
}

.team-section-header .section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.team-section-header .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-copper));
  border-radius: 2px;
}

/* Additional styles for application form */
.application-hero {
  background: var(--primary-blue);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.application-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://i.ibb.co/Wpy3sxmp/IMG-20251103-WA0009-removebg-preview.png");
  background-size: cover;
  opacity: 0.3;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
  color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

.application-form-container {
  margin-top: -40px;
  margin-bottom: 80px;
}

.form-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .form-card {
    padding: 24px;
  }
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
  position: relative;
}

.progress-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gray-light);
  z-index: 0;
}

.progress-line {
  position: absolute;
  top: 20px;
  left: 0;
  height: 2px;
  background: var(--accent-copper);
  transition: width 0.5s ease;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--gray-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: var(--accent-copper);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(225, 154, 97, 0.4);
}

.step.completed .step-number {
  background: var(--primary-blue);
  color: var(--white);
}

.step.completed .step-number i {
  display: block;
}

.step-number i {
  display: none;
}

.step-label {
  font-size: 0.875rem;
  color: var(--gray-medium);
  text-align: center;
  font-weight: 600;
}

.step.active .step-label {
  color: var(--accent-copper);
}

.step.completed .step-label {
  color: var(--primary-blue);
}

@media (max-width: 768px) {
  .step-label {
    font-size: 0.75rem;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Form Steps */
.form-step {
  display: none;
}

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

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

.step-title {
  font-size: 1.75rem;
  color: var(--primary-blue);
  margin-bottom: 24px;
}

/* Program Selection Cards */
.program-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.program-option {
  position: relative;
}

.program-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.program-option-card {
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-option input:checked + .program-option-card {
  border-color: var(--accent-copper);
  background: var(--copper-pale);
}

.program-option-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.program-option-icon {
  width: 50px;
  height: 50px;
  background: var(--blue-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.program-option input:checked + .program-option-card .program-option-icon {
  background: var(--accent-copper);
}

.program-option-icon i {
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.program-option input:checked + .program-option-card .program-option-icon i {
  color: var(--white);
}

.program-option-title {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.program-option-desc {
  font-size: 0.875rem;
  color: var(--gray-medium);
  margin: 0;
}

.checkmark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-copper);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.program-option input:checked ~ .checkmark {
  display: flex;
}

/* Form Controls */
.form-label {
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

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

.form-control,
.form-select {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--blue-pale);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: #198754;
}

.invalid-feedback,
.valid-feedback {
  font-size: 0.875rem;
}

.helper-text {
  font-size: 0.875rem;
  color: var(--gray-medium);
  margin-top: 4px;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.char-counter {
  font-size: 0.75rem;
  color: var(--gray-medium);
  text-align: right;
  margin-top: 4px;
}

/* File Upload */
.file-upload {
  border: 2px dashed var(--gray-light);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload:hover {
  border-color: var(--accent-copper);
  background: var(--copper-pale);
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload-icon {
  font-size: 3rem;
  color: var(--accent-copper);
  margin-bottom: 12px;
}

.file-upload-text {
  color: var(--gray-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

.file-upload-hint {
  font-size: 0.875rem;
  color: var(--gray-medium);
}

.uploaded-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-pale);
  border-radius: 8px;
  margin-top: 12px;
}

.uploaded-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uploaded-file-icon {
  color: var(--primary-blue);
  font-size: 1.5rem;
}

.uploaded-file-name {
  font-weight: 600;
  color: var(--gray-dark);
}

.uploaded-file-size {
  font-size: 0.875rem;
  color: var(--gray-medium);
}

.remove-file {
  color: #dc3545;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Review Section */
.review-section {
  background: var(--gray-pale);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.review-section-title {
  font-size: 1.25rem;
  color: var(--primary-blue);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edit-link {
  font-size: 0.875rem;
  color: var(--accent-copper);
  cursor: pointer;
}

.edit-link:hover {
  text-decoration: underline;
}

.review-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
}

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

.review-label {
  font-weight: 600;
  color: var(--gray-dark);
}

.review-value {
  color: var(--gray-medium);
}

@media (max-width: 768px) {
  .review-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.selected-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.program-badge {
  background: var(--accent-copper);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Consent Checkbox */
.consent-box {
  background: var(--blue-pale);
  border: 1px solid var(--primary-blue);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.form-check-input:checked {
  background-color: var(--accent-copper);
  border-color: var(--accent-copper);
}

/* Form Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}

@media (max-width: 576px) {
  .form-navigation {
    flex-direction: column-reverse;
  }

  .form-navigation .btn {
    width: 100%;
  }
}

/* Success Modal Content */
.success-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-copper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: scaleIn 0.5s ease;
}

.success-icon i {
  font-size: 3rem;
  color: var(--white);
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.reference-number {
  background: var(--blue-pale);
  border: 2px dashed var(--primary-blue);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  text-align: center;
}

.reference-label {
  font-size: 0.875rem;
  color: var(--gray-medium);
  margin-bottom: 8px;
}

.reference-code {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  font-family: monospace;
}

.timeline-steps {
  text-align: left;
  margin: 24px 0;
}

.timeline-step {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.timeline-number {
  width: 32px;
  height: 32px;
  background: var(--accent-copper);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

.timeline-content h6 {
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.timeline-content p {
  color: var(--gray-medium);
  font-size: 0.875rem;
  margin: 0;
}

/* Fix long text in review section */
.review-value {
  white-space: pre-wrap; /* Preserves line breaks */
  word-wrap: break-word; /* Breaks long words */
  word-break: break-word; /* Additional word breaking */
  overflow-wrap: break-word; /* Modern word breaking */
  max-width: 100%; /* Prevent overflow */
  display: block; /* Ensure block display */
}

/* Additional fix for motivation specifically */
.review-item {
  display: flex;
  flex-direction: column; /* Stack label and value vertically */
  gap: 8px;
  margin-bottom: 15px;
  word-wrap: break-word;
}

/* Make sure review labels don't take too much space */
.review-label {
  font-weight: 600;
  color: #666;
  margin-bottom: 5px;
  flex-shrink: 0;
}

/* Mobile specific fix */
@media (max-width: 768px) {
  .review-value {
    font-size: 14px;
    line-height: 1.6;
  }
}
