.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Modal box */
.modal {
  background: #fff;
  max-width: 90%;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(80, 78, 78, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

/* Header */
.modal-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: none !important;
}

.model p{
  font-size: 0.5rem !important;
}

.model-header .header-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* Close button */
.close-btn {
  width: 100%;
  text-align: end;
  cursor: pointer;
  font-size: 2.5rem;
  color: gray;
  border: none;
  background: none;
}

.modal-body form {
  width: 100%;
  margin: 0 auto;    
}

.modal-body form .btn [type=submit]:not(:disabled), button:not(:disabled){
   cursor: pointer;
}

.modal-body form .btn{
  background: #0070c0;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-outline input.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.form-outline input.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
  outline: none;
}

/* Labels */
.form-outline .form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.input-field {
  width: 40rem;             /* take full width of parent */
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 equal columns */
  gap: 20px;
  margin: 1.5rem auto;       /* center inside modal */
}

/* Inputs full width inside their column */
.input-field .form-control {
  width: 100%;
}

/* Responsive: single column on small devices */
@media (max-width: 768px) {
  .input-field {
    grid-template-columns: 1fr; /* stack */
  }
}


/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
