/* Modal Base */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  position: relative;
  padding: 40px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.large-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.modal-left {
  flex: 1;
}

.modal-title {
  font-size: 28px;
  font-weight: bold;
  color: #0a2237;
  margin-bottom: 15px;
}

.modal-subtitle {
  color: #f2994a;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.modal-description {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: #f2994a;
  outline: none;
  background: #fff;
}

.modal-form textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  background-color: #f2994a;
  color: #fff;
  border: none;
  padding: 14px 0;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #e68a3e;
}

/* Close Button */
.close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.close:hover {
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
    width: 95%;
  }
  
  .large-modal .modal-body {
    flex-direction: column;
    gap: 20px;
  }
  
  .modal-title {
    font-size: 24px;
  }
}