body {
  font-family: Arial, sans-serif;
  background: #f8f9fc;
  margin: 0;
}

.apply-hero {
  background: linear-gradient(135deg, #0a1f44, #1b3a80);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}
.apply-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.apply-hero p {
  font-size: 1.1rem;
  line-height: 1.6;
}


.apply-steps {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  position: relative;
}
.step {
  padding: 10px 20px;
  border-radius: 50px;
  background: #e5e7eb;
  font-weight: 500;
  min-width: 120px;
  text-align: center;
  transition: all 0.3s;
}
.step.active {
  background: #0a1f44;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


.form-section {
  background: #fff;
  margin: 20px auto;
  padding: 30px;
  max-width: 650px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #0a1f44;
}
input, select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}
input:focus, select:focus {
  border-color: #0a1f44;
  box-shadow: 0 0 0 3px rgba(10,31,68,0.1);
}


.btn-primary {
  width: 100%;
  padding: 14px;
  background: #0a1f44;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover {
  background: #112855;
  transform: translateY(-2px);
}


.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.modal-box {
  background: #fff;
  padding: 35px 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
  position: relative; 
}
.modal-box input {
  margin: 15px 0;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

#otpModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* .modal-box {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
} */

#otpInput {
  width: 100%;
  padding: 10px;
  font-size: 18px;
  margin: 15px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
}

.modal-box button {
  width: 100%;
  padding: 12px;
  background-color: #0a1f44; /* Brand color */
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-box button:hover {
  background-color: #162c5c;
}

/* Make checkbox and label text inline and aligned */
label.checkbox {
  display: flex;          
  align-items: center;    
  gap: 10px;              
  cursor: pointer;        
  font-size: 14px;        
}

label.checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #0a1f44;
}

.close-btn:hover {
  color: red;
}

.privacy-note{
    text-align: center;
    color: #0a1f44;
    font-weight: bold;
}

/* ===============================
   HEADER BASE  
================================= */

.site-header {
  width: 100%;
  z-index: 1100;
  padding: 10px 0;
  position: sticky;
  top: 0;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

/* LOGO */
.header-logo img {
  max-height: 70px;
}

.site-header .container-fluid {
  max-width: 1400px;
}

/* ===============================
   DESKTOP AREA
================================= */

.header-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 25px;
  min-width: 0;
}

@media (max-width: 767px) {
  .top-contact-bar {
    display: none;
  }
}

/* ===============================
   NAVIGATION
================================= */

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
  font-size: 1.05rem;
}

/* underline animation */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2.5px;
  background: #0a1f44;
  transition: 0.3s;
  border-radius: 3px;
}

.main-nav a:hover {
  color: #0a1f44;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ===============================
   DROPDOWN
================================= */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
}

.nav-dropdown-menu a:hover {
  background: #f5f7fa;
}

/* ===============================
   MOBILE TOGGLE
================================= */

.mobile-toggle {
  display: none;
  font-size: 22px;
  border: none;
  background: transparent;
}

/* ===============================
   TABLET FIX (MOST IMPORTANT)
================================= */

@media (max-width: 1280px) {

  .header-contact .email {
    max-width: 220px;
  }

  .main-nav {
    gap: 15px;
  }

  .main-nav a {
    font-size: 15px;
    font-weight: 550;
  }
  
  .nav-dropdown-menu a{
      font-size: 13px;
  }
}

@media (max-width: 1150px) {
  .header-contact .email {
    display: none;
  }
}

/* ===============================
   MOBILE
================================= */

@media (max-width: 991px) {

  .header-desktop {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

/* ===== Overlay Background ===== */
#mobileOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.35s ease;
  z-index: 1040;
}

#mobileOverlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Mobile Nav Panel ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  padding: 90px 25px 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: right 0.4s ease;
  z-index: 1050;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
}

.mobile-nav.active {
  right: 0;
}

/* Links */
.mobile-nav a {
  padding: 14px 0;
  font-size: 1.05rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  background: #0a1f44;
  color: #fff;
  padding-left: 22px;
  border-radius: 6px;
}

/* ===== Dropdown ===== */
.mobile-dropdown-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-left: 15px;
  transition: max-height 0.35s ease;
}

/* open state */
.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 300px;
}

.mobile-dropdown.active i {
  transform: rotate(360deg);
  transition: 0.3s;
}

/* Prevent desktop nav */
@media (max-width: 767px) {
  .d-md-flex {
    display: none !important;
  }
}

/* ================= TOP CONTACT BAR ================= */

.top-contact-bar {
  background: #0a1f44;
  color: #fff;
  font-size: 14px;
  padding: 8px 20px;
  transition: all 0.3s ease;
  position: relative; 
  z-index: 1100;
}

.top-contact-bar i {
  color: #d4af37;
}

.top-contact-bar .container-fluid {
  max-width: 1400px;
}

/* Ensure hero section scales on small screens */
@media (max-width: 767px) {
  .apply-hero {
    padding: 40px 15px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .apply-hero h1 {
    font-size: 1.8rem;
  }

  .apply-hero p {
    font-size: 1rem;
    line-height: 1.4;
  }

  .apply-steps {
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
  }

  .step {
    min-width: auto;
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
  }

  .form-section {
    padding: 20px;
    margin: 15px;
    max-width: 100%;
  }

  input, select, textarea {
    font-size: 0.95rem;
    padding: 10px;
  }

  .btn-primary {
    padding: 12px;
    font-size: 1rem;
  }

  /* OTP Modal */
  .modal-box {
    width: 95%;
    padding: 25px 15px;
  }

  #otpInput {
    font-size: 16px;
    padding: 8px;
  }
}

/* Smallest screens - extra adjustments */
@media (max-width: 480px) {
  .apply-hero h1 {
    font-size: 1.5rem;
  }

  .apply-hero p {
    font-size: 0.95rem;
  }

  .step {
    font-size: 0.9rem;
    padding: 10px;
  }

  .form-section h3 {
    font-size: 1.1rem;
  }
}
