/* Career Application Modal Styles */

.career-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.career-modal-overlay.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
}

.career-modal-content {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.career-modal-header {
  background: linear-gradient(135deg, #003087 0%, #0056b3 100%);
  color: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 16px 16px 0 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.career-modal-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
}

.career-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.career-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.career-modal-body {
  padding: 2.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.career-form-subtitle {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Form Sections */
.form-section {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: #f9f9f9;
}

.form-section legend {
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.form-section h3 {
  color: #003087;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.form-group input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
  border-color: #003087;
  background-color: #f0f7ff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #003087;
  box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-help {
  display: block;
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.85rem;
  font-style: italic;
}

.required-fields-indicator {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin: 1.5rem 0;
  font-style: italic;
}

/* Form Buttons */
.form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.btn-cancel,
.btn-submit {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-cancel {
  background-color: #f0f0f0;
  color: #666;
}

.btn-cancel:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.btn-submit {
  background: linear-gradient(135deg, #003087 0%, #0056b3 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 48, 135, 0.4);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .career-modal-overlay.active {
    padding: 1rem;
  }

  .career-modal-content {
    max-width: 100%;
  }

  .career-modal-header {
    padding: 1.5rem;
  }

  .career-modal-header h2 {
    font-size: 1.4rem;
  }

  .career-modal-body {
    padding: 1.5rem;
    max-height: 65vh;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-section {
    padding: 1rem;
  }

  .form-buttons {
    flex-direction: column-reverse;
  }

  .btn-cancel,
  .btn-submit {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .career-modal-header {
    padding: 1rem;
  }

  .career-modal-header h2 {
    font-size: 1.2rem;
  }

  .career-modal-body {
    padding: 1rem;
  }

  .form-section {
    padding: 0.75rem;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea {
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
  }
}

/* Custom scrollbar for modal body */
.career-modal-body::-webkit-scrollbar {
  width: 8px;
}

.career-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.career-modal-body::-webkit-scrollbar-thumb {
  background: #003087;
  border-radius: 4px;
}

.career-modal-body::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}

