.hero {
    background: #4f7f5a;
    height: 55vh;
    margin-top: -14vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
  max-width: 265px;
  width: 80%;
  margin-top: 6vh;
}

/* CAREER SECTION */
.career-section {
  position: relative;
  padding: 80px 20px;
}

.career-section {
    position: relative;
    background-image: url('../img/img_bg_carrers_sm.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 45% center; /* moved left */
    padding: 80px 20px;
    z-index: 1000;
    min-height: 100vh; 
}


.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
}

.career-form {
  position: relative;
  max-width: 1100px;
  margin: auto;
  z-index: 1;
}

.career-form h2 {
  color: #44674B;
  font-size: 28px;
  margin-bottom: 10px;
   /* font-size: 16px; */
  font-weight: 900;
  font-family: 'Poppins', sans-serif;
}

.career-form .subtitle {
  max-width: 500px;
  margin-bottom: 40px;
  color: #333;
  font-family: 'Poppins', sans-serif;
}

/* GRID */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}



/* FLOATING INPUTS */
.input-box, .select-box {
  position: relative;
  margin-bottom: 30px;
  font-family: 'Poppins', sans-serif;
}
}

.input-box input,
.select-box select {
  width: 100%;
  padding: 14px;
  border: 1px solid #4f7f5a;
  background: transparent;
  font-size: 16px;
  outline: none;
  font-family: 'Poppins', sans-serif;

}

.input-box label,
.select-box label {
  position: absolute;
  left: 12px;
  top: 70%;
  transform: translateY(-90%);
  padding: 0 1px;
  color: #4f7f5a;
  font-size: 14px;
  transition: 0.3s;
  pointer-events: none;
  font-family: 'Poppins', sans-serif;
}

.select-box select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 14px;
  padding-right: 48px; 
}

.select-box {
  position: relative;
}

.select-box select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;
  cursor: pointer;
}

/* Custom arrow */
.select-box::after {
  content: "\f078"; 
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  pointer-events: none;
  color: #4f7f5a;
  font-size: 14px;
  transition: transform 0.25s ease; 
}


/* Floating effect */
.input-box input:focus + label,
.input-box input:not(:placeholder-shown) + label,
.select-box select:focus + label,
.select-box select:valid + label{
  top: -1px;
  font-size: 12px;
  
}


/* FILE UPLOAD */
.upload-box {
  margin: 0;
}

.upload-area {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #4f7f5a;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    color: #4f7f5a;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
    background: #C4D8CA;
    position: relative;
}

.upload-area:hover {
    background: rgba(79,127,90,0.08);
}

/* Success style */
.upload-area.success {
    border-color: #4CAF50;
    background-color: #d6f5d6;
    color: #4CAF50;
    font-weight: 500;
}

.upload-area.success::after {
    content: "\f00c"; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}
.upload-label{
     font-family: 'Poppins', sans-serif;
     color: #4f7f5a;
     font-size: 14px;
}

.remove-file {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}

.remove-icon {
    width: 18px;
    height: 18px;
}


/* BUTTON */

.btn-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 0vh;
}

.btn-wrapper .send-btn {
    display: inline-block;
    padding: 10px 50px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
 }

.btn-wrapper  .send-btn:hover {
     background-color: #45a049;
}
.back-button {
    position: absolute;
    display: inline-block;
    color: white;
    text-decoration: none;
    font-family: Poppins;
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
    margin-top: 40px;
    padding: 5px 10px 5px 10px;
}

.back-button:hover {
    transform: scale(1.05);
}

.position-info {
    margin-top: 7vh !important;   
    color: #d30e0e !important;
    font-style: italic !important; 
}

/* Disable file upload interactions when form is disabled */
.form-disabled .upload-area {
    pointer-events: none;     
    cursor: not-allowed;
    opacity: 1;              
    border-color: #ccc !important;
}

/* Stop hover styling */
.form-disabled .upload-area:hover {
    border-color: #ccc;
    background: none;
}

/* Disable remove icon too */
.form-disabled .remove-file {
    display: none !important;
}

.send-btn:disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}



/* MOBILE RESPONSIVE */
@media (max-width: 900px) {

    /* Hero section adjustment */
    .hero {
       height: auto;
        margin-top: -105px;
        padding: 53px 0;
    }

    .hero-image {
        max-width: 200px;
        width: 60%;
        margin: 0 auto 20px auto;
        display: block;
    }

    /* Career section padding */
    .career-section {
        padding: 40px 20px;
    }

    /* Form adjustments */
    .career-form {
        max-width: 100%;
        margin: 20px auto;
        padding: 20px;
    }

    /* Title and subtitle centered */
    .career-form h2,
    .career-form .subtitle {
        text-align: center;
        max-width: 100%;
    }

    /* Form grid becomes vertical */
    .form-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Left and Right columns take full width */
    .form-grid .left,
    .form-grid .right {
        width: 100%;
    }

    /* Center the select dropdown */
    .select-box {
        margin: 0 auto 20px auto;
        max-width: 300px;
    }

    /* Input boxes full width */
    .input-box {
        width: 100%;
        margin-bottom: 15px;
    }

    .input-box input {
        padding: 12px;
    }

    /* File upload section */
    .upload-box {
        width: 100%;
        margin: 20px 0;
    }

    .upload-area {
        padding: 30px 20px;
        font-size: 14px;
    }

    /* Send button centered */
    .btn-wrapper {
        justify-content: center;
    }

    .btn-wrapper .send-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 12px 0;
    }

    /* Back button adjustment */
    .back-button {
        position: relative;
        margin-top: 20px;
        margin-left: 0;
        display: inline-block;
    }

    /* Select arrow adjustment for smaller screens */
    .select-box::after {
        right: 15px;
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    .hero-image {
        max-width: 200px;
        width: 60%;
        margin: 56px auto 20px auto;
        display: block;
    }
    .career-section {
       background-image: url('../img/img_bg_carrers_mb.png');
    }
}