/* =========================================================
   career-apply.css  –  Apply Now button + modal styles
   Compatible with all modern browsers
   ========================================================= */

/* ---- Apply Now Button ---- */
.apply-now-btn {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #198754;
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
  z-index: 10;
}
.apply-now-btn:hover {
  background-color: #146c43;
}

/* ---- Modal Overlay ---- */
#applyModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px 10px;
}
#applyModal.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

/* ---- Modal Box ---- */
.apply-modal-box {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 560px;
  padding: 32px 28px 24px;
  position: relative;
  -webkit-box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  margin: auto;
}
.apply-modal-box h4 {
  color: #198754;
  margin-bottom: 18px;
  font-weight: 700;
}

/* ---- Close Button ---- */
.apply-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  background: none;
  border: none;
  padding: 0;
}
.apply-modal-close:hover {
  color: #000;
}

/* ---- Form Labels ---- */
.apply-modal-box .form-label {
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}
.apply-modal-box .form-control {
  display: block;
  width: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 7px 10px;
  font-size: 14px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  margin-bottom: 2px;
}
.apply-modal-box .form-control:focus {
  border-color: #198754;
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.18);
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.18);
}
.apply-modal-box .mb-3 {
  margin-bottom: 14px;
}
.apply-modal-box small {
  font-size: 12px;
  color: #6c757d;
}

/* ---- Captcha Row ---- */
.captcha-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.captcha-row img {
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 44px;
}
.captcha-row input {
  max-width: 150px;
}
#applyRefreshCaptcha {
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
#applyRefreshCaptcha:hover {
  background: #e0e0e0;
}

/* ---- Alert ---- */
#applyAlert {
  display: none;
  margin-top: 10px;
  margin-bottom: 6px;
  padding: 9px 14px;
  border-radius: 5px;
  font-size: 14px;
}
#applyAlert.error {
  background: #fde8e8;
  color: #c0392b;
  border: 1px solid #f5c6cb;
  display: block;
}
#applyAlert.success {
  background: #e8f5e9;
  color: #1a7a3c;
  border: 1px solid #b2dfdb;
  display: block;
}

/* ---- Submit Button ---- */
#applySubmitBtn {
  background-color: #198754;
  color: #fff;
  border: none;
  padding: 9px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}
#applySubmitBtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
#applySubmitBtn:hover:not(:disabled) {
  background-color: #146c43;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .apply-modal-box {
    padding: 22px 14px 18px;
  }
  .apply-now-btn {
    font-size: 13px;
    padding: 6px 14px;
  }
}
