/* <!-- Registration Modal CSS --> */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-items: center;
  align-items: center;
  padding-top: 25px;
}

.modal-content {
  background: #fff;
  /* padding: 0px 25px; */
  border-radius: 10px 10px;
  /* max-height: 90vh; */
  /* overflow-y: auto; */
  width: 95%;
  max-width: 1000px;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

/* <!-- Registration Form CSS --> */

.foroverflow {
  padding: 15px;
  height: calc(100vh - 220px);
  overflow-y: auto;
}

.form-container {
  background-color: white;
  /* width: 100%; */
  height: calc(100vh - 50px);
  padding: 40px;
  border-radius: 12px;
  /* Removed box-shadow to eliminate the border effect */
}

.modal h2 {
  color: #e01a23;
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 30px;
  font-weight: 700;
  text-align: center;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.modal label {
  display: block;
  font-size: 14px;
  color: #ff8000;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 600;
}

.modal input,
.modal select {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border 0.3s;
}

.modal input:focus,
.modal select:focus {
  outline: none;
  border-color: #e01a23;
}

.modal .checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.modal .checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 2px;
}

.modal .checkbox-label {
  font-size: 14px;
  color: #333;
}

.modal .submit .btn {
  font-size: 16px;
  padding: 12px 14px;
}

.modal .required:after {
  content: " *";
  color: #e01a23;
}

.modal a {
  color: #e01a23;
  text-decoration: none;
}

.modal a:hover {
  text-decoration: underline;
}

.modal .hidden {
  display: none;
}

#sbutt:disabled {
  background: #a9a9a9 !important; /* grey */
  cursor: not-allowed;
  border-color: #a9a9a9 !important;
}

/* ===========
   RESPONSIVE 
============== */

@media (max-width: 1024px) {
  .modal-content {
    max-width: 900px;
  }

  .form-container {
    padding: 30px;
  }

  .foroverflow {
    height: calc(100vh - 200px);
  }
}

@media (max-width: 769px) {
  .modal {
    padding-top: 15px;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .foroverflow {
    height: calc(100vh - 180px);
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .modal h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 430px) {
  .modal-content {
    border-radius: 8px;
  }

  .form-container {
    padding: 20px;
  }

  .modal h2 {
    font-size: 18px;
  }

  .modal label,
  .modal .checkbox-label {
    font-size: 12px;
  }

  .modal input,
  .modal select {
    padding: 10px;
    font-size: 13px;
  }

  .modal .submit .btn {
    width: 100%;
    justify-content: center;
  }
}
