.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;
}

.form-group input,
.form-group textarea {
  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;
}

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

.form-group textarea {
  resize: vertical;
}

.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;
  }
}
