/* ====== BACKGROUND WRAPPER ====== */
.careers-page-wrapper {
  position: relative;
  overflow: hidden;       /* keep bg contained */
}
.careers-page-wrapper .careers-page-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;   /* allow clicks through */
  z-index: 0;
}
.careers-page-wrapper .careers-page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;           /* adjust for more/less visibility */
}

/* ====== MAIN CONTENT ====== */
body {
  background-color: #f8f9fa;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
.careers-portal {
  position: relative;
  z-index: 1;             /* above the bg */
  background: rgba(255,255,255,0.5);  /* semi-transparent white */
  padding: 60px 20px;
  color: #333;
  text-align: center;
  font-family: Arial, sans-serif;
}

/* ====== HEADING & INTRO ====== */
.careers-portal h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: normal;
}
.careers-portal p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ====== FORM CONTAINER ====== */
.careers-form-container {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.careers-form-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #002147;
}
.careers-form-container input[type="text"],
.careers-form-container input[type="email"],
.careers-form-container input[type="tel"],
.careers-form-container input[type="file"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.careers-form-container button {
  background: #002147;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: block;
  margin: 0 auto;
}
.careers-form-container button:hover {
  background: #001f3f;
}
#formMessage {
  margin-top: 20px;
}

/* ====== LOADING & SUBMITTING OVERLAYS ====== */
#submitting {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #333;
  padding: 15px 25px;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.2rem;
  font-weight: 600;
  z-index: 1000;
  display: none;
}
.spinner {
  width: 30px;
  height: 30px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ====== DISABLED FORM STATE ====== */
.careers-form-container.disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .careers-portal {
    padding: 40px 15px;
  }
  .careers-portal h1 {
    font-size: 2rem;
  }
  .careers-portal p {
    font-size: 1rem;
  }
  .careers-form-container {
    padding: 20px;
  }
}
