#signup-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
  padding-top: 0;
}

/* The Close Button (x) */
.close {
  position: relative;
  top: 0;
  left: 0;
  color: var(--milk);
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: red;
  cursor: pointer;
}
.closecontainer {
  text-align: center;
  margin: 0;
}

#signup-modal .modal-content {
  position: relative;
  margin: 5% auto 15% auto;
  background: #0b1821;
  box-shadow: 0px 4px 40px rgba(173, 228, 255, 0.3);
  border-radius: 40px;
  width: 100%;
  max-width: 1260px;
  padding: 20px 40px;
  /* Could be more or less, depending on screen size */
  top: 20%;
}

.modal-content__header h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 29px;
  color: #ffffff;
}

.modal-content__wrapper {
  display: flex;
  flex-direction: row;
}

#signup-modal .modal-content__wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.fullname,
.contacts,
.complaint {
  flex: 30%;
  min-width: 300px;
}

.fullname__last-name,
.fullname__first-name,
.fullname__patronymic,
.contacts__email,
.contacts__phone,
.birth_date,
.complaint__wrapper {
  position: relative;
  margin-bottom: 15px;
}

.modal-content__wrapper .fullname input,
.modal-content__wrapper .contacts input,
.modal-content__wrapper .complaint input {
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--cst-blue);
  padding: 20px 0 4px 0;
  width: 100%;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: #fff;
}

.modal-content__wrapper .fullname input:focus,
.modal-content__wrapper .contacts input:focus,
.modal-content__wrapper .complaint input:focus {
  outline: none;
}

input[type="date"] {
  color-scheme: dark;
}

/* LABEL ======================================= */
label {
  color: rgb(228, 225, 225);
  opacity: 0.4;
  font-size: 20px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 0;
  bottom: 3px;
  transition: 0.2s ease all;
  -moz-transition: 0.2s ease all;
  -webkit-transition: 0.2s ease all;
}

/* active state */
input[type="date"] ~ label,
input:focus ~ label,
input:valid ~ label,
select:valid ~ label {
  top: 0;
  font-size: 14px;
  color: rgb(204, 202, 202);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-transition: "color 9999s ease-out, background-color 9999s ease-out";
  -webkit-transition-delay: 9999s;
  -webkit-transition: background-color 9999s ease-out;
  -webkit-text-fill-color: #fff !important;
}

@media (max-width: 1440px) {
  #signup-modal {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  #signup-modal .modal-content {
    padding: 10px 10px;
  }

  #basket-modal-slots .modal-content__wrapper {
    flex-direction: column;
  }

  .modal-content__navigation {
    flex-direction: column;
  }
}

@media (max-width: 550px) {
  .modal-content__navigation button {
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    min-width: 136px;
    min-height: 40px;
    padding: 8px 0;
  }
}

@media (max-width: 425px) {
  #signup-modal {
    padding: 0 5px;
  }

  #signup-modal .modal-content__header h3 {
    font-size: 16px;
    line-height: 19px;
  }
  
  .fullname,
  .contacts,
  .complaint {
    min-width: 100%;
  }

  .modal-content__navigation__buttons button {
    font-size: 14px;
    line-height: 18px;
  }
}
