.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-box.sm {
  max-width: 400px;
}
.modal-box.md {
  max-width: 600px;
}
.modal-box.lg {
  max-width: 900px;
}

/* ── Close btn ── */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* ── Apply modal inner ── */
.apply-modal-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
}

.modal-left {
  position: relative;
  min-height: 400px;
}

.modal-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-left-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(5, 61, 122, 0.9));
}

.modal-left-overlay h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-left-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.modal-right {
  padding: 40px 30px;
}

.modal-right h2 {
  font-size: 22px;
  font-weight: 700;
  color: #053d7a;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  margin-bottom: 14px;
}

/* ── Inputs, Textarea, Select — unified styling ── */
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Roboto", sans-serif;
  outline: none;
  transition: border 0.2s;
  background: #fff;
  color: #333;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #053d7a;
}

.form-group textarea {
  resize: vertical;
}

/* ── Select custom arrow ── */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Placeholder option styling */
.form-group select option[value=""][disabled] {
  color: #999;
}

.form-group select option {
  color: #333;
}

/* Disabled/empty state — placeholder color */
.form-group select:invalid,
.form-group select.placeholder {
  color: #999;
}

/* ── Form Actions ── */
.form-actions {
  display: flex;
  gap: 12px;
}

.form-actions .btn {
  flex: 1;
}

.form-status {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .apply-modal-inner {
    grid-template-columns: 1fr;
  }

  .modal-left {
    min-height: 200px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-right {
    padding: 24px 20px;
  }
}
