.careers-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #003366;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Careers Page */

.careers-apply,
.vacancies {
  padding: 60px 0;
  background: #f9f9f9;
}

.careers-apply .section-title,
.vacancies .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

/* Form Styles */
.career-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.career-form .form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}
.career-form label {
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}
.career-form input[type="text"],
.career-form input[type="email"],
.career-form input[type="tel"],
.career-form input[type="file"],
.career-form input[type="url"]
{
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* Vacancy Cards */
.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.vacancy-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}
.vacancy-card:hover {
  transform: translateY(-5px);
}
.vacancy-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}
.vacancy-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #555;
}

/* ——— Modal Styles ——— */

/* Hide by default */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Show when “open” */
.modal.open {
  display: flex;
}

/* Modal content box */
.modal-content {
  background: #fff;
  padding: 0;              /* remove top/bottom padding—handled by header/body */
  border-radius: 6px;
  max-width: 500px;
  width: 90%;
  max-height: calc(100vh - 40px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #003366;
}
/* Close “×” button */
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
  color: black;
  text-decoration: none;
}

/* Inside the modal, style labels/inputs/textarea/select */
.modal-content label {
  display: block;
  margin-bottom: 0.75rem;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
   display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* If you want the Submit button inside modal to be full width: */
.modal-content .btn {
  width: 100%;
  margin-top: 1rem;
}

/* Scrollable body */
.modal-body {
   overflow-y: auto;
  padding: 1rem;
  flex: 1;                 /* takes the remaining vertical space */
  box-sizing: border-box;
}
/* 2) Make the <form> inside .modal-body a two‐column grid */
.modal-body form {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal‐width columns */
  column-gap: 1rem;
  row-gap: 1rem;
}
/* 3) Make each LABEL fill its grid cell, and ensure its children stack */
.modal-body form label {
  display: flex;
  flex-direction: column;
  /* (optional) add some bottom margin if needed */
  margin-bottom: 0; /* grid’s row-gap handles vertical spacing */
}

/* 4) Make the final submit button span both columns */
.modal-body form button[type="submit"] {
  grid-column: 1 / span 2; /* spans both columns */
  padding: 0.75rem 1.5rem;
  margin-top: 0.5rem;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Ensure form fields fill width */
.modal-body label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #333;
}
.modal-body input,
.modal-body textarea,
.modal-body select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 0.25rem;
}

.modal-body .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #003366;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.modal-body .btn:hover {
  background: #002244;
}
@media (max-width: 480px) {
  .modal-body form {
    grid-template-columns: 1fr; /* single column on narrow viewports */
  }

  .modal-body form button[type="submit"] {
    grid-column: 1 / span 1; /* only span one column now */
  }
}
