/*--------------------------------------------------------------
# General Application Section
# Custom styling for the general application section
--------------------------------------------------------------*/

.general-application {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fffe 0%, #f0f8f0 100%);
  position: relative;
  overflow: hidden;
}

.general-application::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(40, 167, 69, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(40, 167, 69, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.general-application .container {
  position: relative;
  z-index: 2;
}

/* General Application Card */
.general-app-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(40, 167, 69, 0.12);
  border: 2px solid rgba(40, 167, 69, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.general-app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #28a745, #20c997, #28a745);
  background-size: 200% 100%;
  animation: gradient-slide 3s ease-in-out infinite;
}

.general-app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(40, 167, 69, 0.15);
  border-color: rgba(40, 167, 69, 0.3);
}

.general-app-card .card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #28a745, #20c997);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
}

.general-app-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(40, 167, 69, 0.4);
}

.general-app-card .card-icon i {
  font-size: 2.5rem;
  color: white;
}

.general-app-card .card-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2d465e;
  margin-bottom: 20px;
}

.general-app-card .card-content p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 30px 0;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(40, 167, 69, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: rgba(40, 167, 69, 0.1);
  transform: translateX(5px);
}

.benefit-item i {
  color: #28a745;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.benefit-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2d465e;
}

/* Card Action */
.card-action {
  margin-top: 30px;
}

.card-action .btn {
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  background: linear-gradient(135deg, #28a745, #20c997);
  position: relative;
  overflow: hidden;
}

.card-action .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.card-action .btn:hover::before {
  left: 100%;
}

.card-action .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.apply-note {
  margin-top: 15px;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.apply-note i {
  color: #28a745;
}

/* Features Row */
.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(40, 167, 69, 0.1);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: rgba(40, 167, 69, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  background: rgba(40, 167, 69, 0.2);
  transform: scale(1.1);
}

.feature-icon i {
  font-size: 1.5rem;
  color: #28a745;
}

.feature-content h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d465e;
  margin-bottom: 5px;
}

.feature-content p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Modal Customizations */
#generalApplicationModal .modal-header {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border-bottom: none;
  border-radius: 15px 15px 0 0;
}

#generalApplicationModal .modal-header .modal-title {
  color: white;
}

#generalApplicationModal .modal-header .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

#generalApplicationModal .modal-header .btn-close:hover {
  opacity: 1;
}

#generalApplicationModal .modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

#generalApplicationModal .modal-body {
  padding: 30px;
}

/* Preferred Job Section */
.preferred-job-section {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.05));
  border: 2px solid rgba(40, 167, 69, 0.1);
  border-radius: 15px;
  padding: 25px;
  position: relative;
  overflow: hidden;
}

.preferred-job-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #28a745, #20c997);
}

.preferred-job-section h6 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Form Styling */
#generalApplicationForm .form-control,
#generalApplicationForm .form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

#generalApplicationForm .form-control:focus,
#generalApplicationForm .form-select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

#generalApplicationForm .form-label {
  font-weight: 600;
  color: #2d465e;
  margin-bottom: 8px;
}

#generalApplicationForm .text-danger {
  color: #dc3545 !important;
}

#generalApplicationForm .text-primary {
  color: #28a745 !important;
}

/* Step Navigation */
#generalApplicationForm .btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
  border-radius: 50px;
  padding: 12px 25px;
  font-weight: 500;
}

#generalApplicationForm .btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
}

#generalApplicationForm .btn-primary {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  font-weight: 500;
}

#generalApplicationForm .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

#generalApplicationForm .btn-success {
  background: linear-gradient(135deg, #28a745, #198754);
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
}

#generalApplicationForm .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* Submission Overlay Styles */
.submission-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submission-overlay.show {
  opacity: 1;
}

.submission-modal {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.submission-overlay.show .submission-modal {
  transform: scale(1);
}

.submission-header h3 {
  color: #28a745;
  margin-bottom: 15px;
  font-weight: 700;
}

.submission-header p {
  color: #666;
  margin-bottom: 30px;
}

.submission-progress {
  margin-bottom: 30px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 10px;
  width: 0%;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #28a745;
}

.submission-status {
  color: #666;
  margin-bottom: 30px;
  font-size: 1rem;
}

.submission-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
}

.step.completed:not(:last-child)::after {
  background: #28a745;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step.active .step-icon {
  background: #28a745;
  color: white;
}

.step.completed .step-icon {
  background: #28a745;
  color: white;
}

.step-number {
  font-weight: 600;
  display: block;
}

.step-checkmark {
  display: none;
  transition: transform 0.3s ease;
}

.step.completed .step-number {
  display: none;
}

.step.completed .step-checkmark {
  display: block;
}

.step-text {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

.step.active .step-text,
.step.completed .step-text {
  color: #28a745;
  font-weight: 600;
}

.submission-success,
.submission-error {
  text-align: center;
}

.success-icon,
.error-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.success-icon {
  color: #28a745;
}

.error-icon {
  color: #dc3545;
}

.submission-success h4 {
  color: #28a745;
  margin-bottom: 15px;
}

.submission-error h4 {
  color: #dc3545;
  margin-bottom: 15px;
}

/* Animations */
@keyframes gradient-slide {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .general-app-card {
    padding: 25px;
    margin-bottom: 30px;
  }
  
  .general-app-card .card-content h3 {
    font-size: 1.5rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .features-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-item {
    padding: 20px;
  }
  
  .preferred-job-section {
    padding: 20px;
  }
  
  #generalApplicationModal .modal-body {
    padding: 20px;
  }
  
  .submission-modal {
    padding: 25px;
    margin: 20px;
  }
  
  .submission-steps {
    flex-direction: column;
    gap: 20px;
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .general-app-card .card-icon {
    width: 70px;
    height: 70px;
  }
  
  .general-app-card .card-icon i {
    font-size: 2rem;
  }
  
  .card-action .btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .submission-modal {
    padding: 20px;
  }
}

/* Loading and validation states */
.email-validation-message {
  margin-top: 5px;
  font-size: 0.875rem;
}

.form-control.is-valid {
  border-color: #28a745;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 5px;
}

/* reCAPTCHA container */
.recaptcha-container {
  background: rgba(40, 167, 69, 0.05);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(40, 167, 69, 0.1);
}