/* ============================
   Base Styles for Careers Page
============================ */
.careers-page {
  font-family: 'Poppins', sans-serif;
  background-image: url('../img/background.jpg'); /* Background image */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  color: #333;
  line-height: 1.6;
  padding: 2rem 1rem;
}

/* Header Section */
.careers-page .careers-header {
  text-align: center;
  padding: 2rem 2rem 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
}
.careers-page .careers-header h1 {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  color: #000000; /* Deep blue for strong impact */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 25px;
  position: relative;
  text-transform: uppercase;
  
}

.careers-page .careers-header h1::after {
  content: '';
  display: block;
  width: 260px;
  height: 6px;
  background: linear-gradient(90deg, #940bfc, #02fddc);
  margin: 0 auto;
  border-radius: 2px;
  margin-top: 0.5rem;
}

.careers-page .careers-header p {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: #072189; /* Rich Purple */
  max-width: 700px;
  margin: 0 auto;
  opacity: 1;
}

/* Form Section */
.careers-page .career-form-section {
  margin-bottom: 2rem;
}

/* Grid Layout for Forms */
.careers-page .forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Each Form Container */
.careers-page .form-container {
  position: relative;  /* For absolute positioning of arrows */
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  margin: 20px auto;
}
.careers-page .form-container h2 {
    margin-bottom: 1rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #1b02a8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Arrow Images (Positioned above the forms) */
.arrow-left {
  position: absolute;
  top: -60px;      /* Position above form */
  left: -80px;     /* Position to the left */
  width: 120px;    /* Arrow width */
  height: auto;    /* Maintain aspect ratio */
  z-index: 2;
  transform: rotate(0deg);
}
.arrow-right {
  position: absolute;
  top: -60px;
  right: -80px;    /* Position to the right */
  width: 120px;
  height: auto;
  z-index: 2;
  transform: rotate(0deg);
}

/* Form Elements */
.careers-page form {
  display: flex;
  flex-direction: column;
}
.careers-page label {
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #000000; /* Rich Purple */
}
.careers-page input[type="text"],
.careers-page input[type="email"],
.careers-page input[type="tel"],
.careers-page input[type="file"],
.careers-page select,
.careers-page textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease;
}
.careers-page input[type="text"]:focus,
.careers-page input[type="email"]:focus,
.careers-page input[type="tel"]:focus,
.careers-page input[type="file"]:focus,
.careers-page select:focus,
.careers-page textarea:focus {
  border-color: #555;
}
.careers-page textarea {
  resize: vertical;
}

/* Submit Button */
.careers-page button[type="submit"] {
  margin-top: 1.5rem;
  padding: 0.8rem 1.2rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  background: #4B6EF5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-family: 'Quicksand', sans-serif;
}
.careers-page button[type="submit"]:hover {
  background: #3F5ED0;
  transform: translateY(-2px);
}
.careers-page button[type="submit"]:active {
  transform: scale(0.98);
}

/* Optional Utility Spacing */
.careers-page .mb-0 {
  margin-bottom: 0 !important;
}

/* ============================
         Media Queries
============================ */

/* For screens 900px and below (e.g., tablets/small desktops) */
@media (max-width: 1200px) {
  /* Stack forms in one column */
  .careers-page .forms-grid {
    grid-template-columns: 1fr;
  }
  /* Adjust arrow size and position */
  .arrow-left, .arrow-right {
    top: -40px;      /* Slightly lower */
    width: 80px;      /* Reduce arrow width */
  }
  .arrow-left {
    left: -40px;
  }
  .arrow-right {
    right: -40px;
  }
  /* Adjust form container width */
  .careers-page .form-container {
    max-width: 90%;
  }
  /* Adjust header text sizes */
  .careers-page .careers-header h1 {
    font-size: 2.2rem;
  }
  .careers-page .careers-header p {
    font-size: 1rem;
  }
  .careers-page .form-container h2 {
    font-size: 1.6rem;
  }
  .careers-page button[type="submit"] {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
}

/* For screens 600px and below (mobile devices) */
@media (max-width: 600px) {
  .careers-page .careers-header h1 {
    font-size: 2rem;
  }
  .careers-page .careers-header p {
    font-size: 0.95rem;
  }
  .arrow-left, .arrow-right {
    top: -35px;      /* Lower the arrow a bit more */
    width: 60px;      /* Smaller arrow for mobile */
  }
  .arrow-left {
    left: -30px;
  }
  .arrow-right {
    right: -30px;
  }
  .careers-page .form-container {
    max-width: 95%;
    padding: 1.5rem;
  }
  .careers-page input[type="text"],
  .careers-page input[type="email"],
  .careers-page input[type="tel"],
  .careers-page input[type="file"],
  .careers-page select,
  .careers-page textarea {
    font-size: 0.9rem;
    padding: 0.7rem;
  }
  .careers-page button[type="submit"] {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }
}

/* For extra small devices (400px and below) */
@media (max-width: 400px) {
  .careers-page {
    overflow-x: hidden; /* Fixes white gap */
    padding: 0 10px;  /* Ensures even spacing on both sides */
  }
  
  /* Adjust header text size */
  .careers-page .careers-header h1 {
    font-size: 1.8rem;
  }

  .careers-page .careers-header p {
    font-size: 0.9rem;
  }

  /* Centering the forms properly */
  .careers-page .forms-grid {
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures forms are centered */
    justify-content: center;
    gap: 20px; /* Keeps proper spacing between forms */
  }

  /* Fixing form width & centering */
  .careers-page .form-container {
    width: 90%; /* Prevents it from being too large */
    max-width: 380px; /* Keeps forms balanced */
    margin: 0 auto 28px; /* Ensures perfect centering */
    padding: 1.5rem;
  }

  /* Adjust arrows */
  .arrow-left, .arrow-right {
    top: -25px; /* Lower the arrows slightly */
    width: 50px; /* Reduce size for better fit */
  }

  .arrow-left {
    left: 10px;  /* Move slightly inside */
  }

  .arrow-right {
    right: 10px; /* Move slightly inside */
  }

  /* Adjust submit button */
  .careers-page button[type="submit"] {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }
}

