.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 0 20px;
  border-radius: 10px;
  width: 80%;
  overflow-y: auto;
  height: 61vh;
  max-width: 600px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
}

.close-btn {
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.form-header {
  position: sticky;
  top: 0;
  padding: 13px;
  z-index: 1;
  background-color: white;
  justify-content: center;
  display: flex;
  align-items: center;
  text-align: center;
}


.modal h1 {
  text-align: center;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;

  span {
    color: red;
  }
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 5px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

.name,
.dob-gend,
.email-phone,
.address {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.name .form-group,
.dob-gend .form-group,
.email-phone .form-group,
.address .form-group {
  flex: 1;
}

textarea {
  resize: none;
  height: 80px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin: 5px;
  gap: 2vw;
}

.clear-btn,
.submit-btn {
  padding: 5px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.clear-btn {
  background: #ccc;
  color: black;
}

.submit-btn {
  background: #3197A8;
  color: white;
}

.submit-btn:hover {
  background: #3197A8;
}

@media (min-width: 320px) and (max-width: 668px) {
    .modal-content {
    width: 90%;
    }
}