html {
    height: 100%;
    width: 100%;
}



body {
    margin: 0px;
    background-color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

body * {
    box-sizing: border-box;
}

body button {
    font-family: 'Montserrat'
}

#form {
    width: 1080px; 
    margin: auto;
}

#header {
    display: flex;
    margin-top: 60px;
    height: 80px;
}


#logo {
    height: 72px;
    width: 72px;
    /*align-self: center;*/
    margin: 4px 0px;
    border-radius: 50%;
    /*background-color: rgba(100, 50, 250, 1);*/
}

#form-title {
    margin: 0px;
    margin-left: 16px;
    /*align-self: center;*/
    font-size: 40px;
    line-height: 40px;
    font-weight: 400;
}

#form-info {
    height: 64px;
    width: 405px;
    padding: 12px 20px;
    margin-left: auto;
    line-height: 19,5px;
    align-self: end;
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(100, 50, 250, 1);
    border-radius: 20px;
}

#selector-container {
    display: flex;
    align-items: center;
    column-gap: 104px;
    width: 100%;
    margin-top: 40px;
}

#button-search {
    display: block;
    height: 42px;
    width: 200px;
    border: none;
    border-radius: 20px;
    background-color: rgba(243, 243, 243, 1);
    color: black;
    font-size: 24px;
    font-family: 'Montserrat', sans-serif;
}

.nothing-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 40px;
    margin: 250px auto 0px;
    /*height: 168px;*/
    width: 471px;

    text-align: center;
    padding: 40px;

    font-size: 24px;
    color: white;
    background-color:rgba(100, 50, 250, 1);
}

.nothing-found p,
.search-tip p {
    margin: auto;
}

.search-tip {
    display: flex;
    align-items: top;
    margin: 28px auto 0px;
    padding-bottom: 40px;
    width: 100%;

    text-align: center;
    color: rgba(100, 50, 250, 1);
}

.multiselect-dropdown {
        display: flex;
        flex-wrap: wrap;
    margin: 0;
    padding: 4px 40px 0px 6px;
    min-height: 40px;
    width: 708px;
    max-width: 708px;
    border-radius: 20px;
    border: none;
    background-color: rgba(243, 243, 243, 1);
    position: relative;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
  }

  .multiselect-dropdown span.optext {
    margin: 0px 4px 4px 0px;
    padding: 4px 16px 4px 12px; 
    height: 32px;
    max-width: fit-content;
    border-radius: 20px; 
        display: flex;
    color: white;
    background-color: rgba(100, 50, 250, 1);
    font-size: 20px;
        min-width: 0;
    /*white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;*/
  }

  .multiselect-dropdown span.optext span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
        min-width: 0;
        flex-shrink: 1;
  }

  .multiselect-dropdown span.optext .optdel {
    float: right;
    flex-shrink: 0;
    width: 22px;
    margin: 0 -6px -10px 5px;
    font-size: 0.7em;
    margin-top: 1px;
    cursor: pointer;
    color: white;
    background: no-repeat center/150% url('noun-cross_white.svg');
  }

  .multiselect-dropdown span.placeholder {
    color:rgba(0, 0, 0, 0.8);
    font-size: 20px;
    margin: 4px 19px 8px 6px;
    padding:1px 0; 
    border-radius: 4px; 
    display:inline-block;
  }
  .multiselect-dropdown-list-wrapper {
    z-index: 100;
    padding: 2px;
    border-radius: 20px;
    display: none;
    margin: -1px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.2);
  }

  .multiselect-dropdown-list-wrapper .multiselect-dropdown-search {
    padding: 0px 0px;
    margin: 0px;
    padding-left: 12px;
    min-height: 40px;
    background-color: rgba(243, 243, 243, 1);
    border-radius: 20px;
    border: none;
    font-size: 20px;
  }

  .multiselect-dropdown-search::placeholder,
  #phone-number-input::placeholder {
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    color:rgba(0, 0, 0, 0.8);
  }

  .multiselect-dropdown-list-wrapper .multiselect-dropdown-search:focus-visible {
    outline: none;
  }

  .multiselect-dropdown-list{
    padding: 2px;
    height: 15rem;
    overflow-y:auto;
    overflow-x: hidden;
  }
  .multiselect-dropdown-list::-webkit-scrollbar {
    width: 9px;
  }
  .multiselect-dropdown-list::-webkit-scrollbar-thumb {
    background-color: #bec4ca;
    border-radius: 10px;
  }
  
  .multiselect-dropdown-list div{
    border-radius: 4px;
    height: 36px;
    padding: 2px 5px 5px;
    font-size: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .multiselect-dropdown-list div label{
    vertical-align: middle;
    padding-bottom: 0;
  }

  .multiselect-dropdown-list input{
    height: 23px;
    width: 23px;
    vertical-align: middle;
    margin-right: 10px; 
    background: none;
    border: black 2px;
    border-radius: 4px; 
  }

  .multiselect-dropdown-list div:hover{
    background-color: rgba(219, 223, 255, 1);
  }
  .multiselect-dropdown span.maxselected {width:100%;}
  .multiselect-dropdown-all-selector {border-bottom:solid 1px #999;}

#group-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    padding-top: 24px;
    /*padding-bottom: 100px;*/
}

.group-entry {
    height: 364px;
    width: 336px;
    border-radius: 40px;
    background-color: rgba(243, 243, 243, 1);
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.2);
}

.group-header {
    display: flex;
    align-items: center;
    height: 94px;
    padding-left: 24px;
    color: white;
    background-color: rgba(100, 50, 250, 1);
    border-radius: 40px 40px 0 0;
    font-size: 24px;
}

.group-body {
    height: 270px;
    display: flex;
    flex-direction: column;
    padding: 8px 24px 26px 24px;
}

.group-body p {
    margin-bottom: 0;
}

.address {
    margin-top: 8px;
    color: rgba(0, 0, 0, 0.5);
}

.teacher {
    margin-top: 2px;
}

.description {
    margin-top: 16px;
    color: rgba(0, 0, 0, 0.8);
}

.group-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: end;
    /*column-gap: 33px;*/
}

.schedule {
    font-size: 20px;
    margin-top: 0;
}

.small .schedule {
    font-size: 18px;
}

/*.description.small {
    font-size: 14px;
}*/

.sign-up-button {
    height: 32px;
    min-width: 144px;
    border: none;
    border-radius: 30px;
    color: white;
    background-color: rgba(100, 50, 250, 1);
    font-size: 20px;
}


.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 85%; 
    margin: auto;
    border-radius: 40px;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.2);
}

#input-number {
    width: 708px;
    background-color: aliceblue;
    border-radius: 40px;
}

#input-number p {
    margin: 0;
}

#modal-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 35px 16px 24px;
    color: white;
    background-color: rgba(100, 50, 250, 1);
    border-radius: 40px 40px 0 0;
    font-size: 17px;
}

#modal-title {
    font-size: 20px;
}

#modal-title p:first-of-type {
    font-size: 24px;
    margin-bottom: 5px;
}

#modal-title p:last-of-type {
    font-size: 20px;
}

#modal-bottom-container {
    padding: 16px 18px 20px 24px;
    background-color: rgba(243, 243, 243, 1);
    border-radius: 0 0 40px 40px;
}

#modal-bottom-container p {
    font-size: 24px;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 24px;
}

.button-close {
    background: rgba(100, 50, 250, 1) no-repeat center -10% / 100% url(noun-cross_white.svg);        color: white;
    border: none;
    padding: 0;
    border-radius: 100%;
    height: 43px;
    width: 43px;
    line-height: 43px;
    font-size: 43px;
}

.button-close:hover {
    background-color: #ced4da;
}

.button-close:active {
    background-color: #bec4ca;
}

#error-message .button-close {
    float: right;
    background: rgba(243, 243, 243, 1) no-repeat center -10% / 100% url(noun-cross_purple.svg);        color: white;

}

#input-number .input-group,
#selector-container {
    display: flex;
}

.input-group {
    justify-content: space-between;
    height: 32px;
    border-radius: 20px;
}

#phone-number-input {
    width: 368px;
    padding-left: 10px;
    background-color: white;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
}

#button-send,
#button-whatsapp {
    width: 250px;
    border: none;
    border-radius: 20px;
    background-color: rgba(100, 50, 250, 1);
    color:white;
    font-size: 20px;
}

/*#phone-number-input:user-invalid {
    border-color: red;
}

#phone-number-input:valid {
    border-color: green;
}*/

#button-send {
    min-width: 185px;
}

#go-whatsapp,
#error-message {
    width: 537px;
    padding: 40px 54px 20px;
    font-size: 24px;
    background-color: rgba(243, 243, 243, 1);
    text-align: center;
}

#go-whatsapp p,
#error-message p {
    margin: 0 0 45px;
}

#button-whatsapp {
    display: block;
    margin: auto;
    text-decoration: none;
    height: 32px;
    line-height: 32px;
}

#error-message {
    padding: 35px 54px 10px;
}

#error-message p {
    margin-bottom: 1em;
}

.sign-up-button,
#button-send,
#button-whatsapp {
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.3);
}

.sign-up-button:hover,
#button-send:hover,
#button-whatsapp:hover {
    background-color: rgb(129, 90, 247);
}

#modal-overlay,
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

#loading-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

#thank-you {
    padding: 26px 40px;
}

#thank-you p:first-of-type {
    margin-bottom: 1em;
}

.hidden {
    display: none !important;
}

@media (768px <= width <= 1179px) {

    #form {
        width: 708px;
    }

    #header {
        height: 108px;
    }

    #form-info {
        height: 104px;
        width: 251px;
        padding: 12px;
    }

    #selector-container {
        column-gap: 38px;
    }

    .nothing-found {
        margin-top: 294px;
    }

    .search-tip {
        margin-top: 8px;
    }

    .multiselect-dropdown {
        width: 470px;
        max-width: 470px;
    }

    .multiselect-dropdown span.placeholder {
        content: 'Введите название станции...';
    }
}

@media  (width <= 767px) {

    #form {
        max-width: 500px;
        padding: 0px 20px;
    }

    #header {
        height: fit-content;
        flex-wrap: wrap;
    }

    #logo {
        /*display: inline-block;*/
        height: 58px;
        width: 58px;
    }

    #form-title {
        font-size: 32px;
        line-height: 32px;
    }

    #form-info {
        height: fit-content;
        width: 100%;
        margin-top: 24px;
        font-size: 16px;
    }

    #selector-container {
        display: block;
    }

    .nothing-found {
        margin-top: 64px;
    }

    .search-tip {
        margin-top: 8px;
    }

    .multiselect-dropdown {
        max-width: 100%;
    }

    .multiselect-dropdown span.optext {
        padding-right: 6px;
    }

    .multiselect-dropdown span.optext .optdel {
        float: right;
       /* margin-left: 5px;*/
        margin: 0 0 0 5px;
        font-size: 0.7em;
        height: 24px;
        width: 78px;
        border-radius: 22px;
        cursor: pointer;
        color: rgba(100, 50, 250, 1);
        background: white no-repeat center 29% / 50% url(noun-cross_purple.svg);        vertical-align: middle;
        text-align: center;
        font-size: 22px;
        line-height: 23px;
      }

    #button-search {
        margin-left: auto;
        margin-top: 8px;
    }

    .group-entry {
        width: 100%;
    }

    .modal {
        max-width: 460px;
    }

   /* #input-number,
    #modal-top-container,
    #modal-bottom-container {
        width: fit-content;
    }*/

    #modal-top-container {
        padding: 15px 23px 8px;
    }

    #modal-title p:first-of-type {
        font-size: 24px;
        margin-bottom: 7px;
    }

    #modal-title p:last-of-type {
        font-size: 16px;
    }

    .button-close {
        position: absolute;
        top: -52px;
        right: 0;
        background: rgba(100, 50, 250, 1) no-repeat center -10% / 100% url(noun-cross_white.svg);        color: white;
    }

    #modal-bottom-container {
        padding: 23px 23px 12px 23px;
    }

    #modal-bottom-container p {
        margin-bottom: 12px;
    }

    .input-group {
        flex-direction: column;
        justify-content: initial;
        align-items: center;
        row-gap: 24px;
        height: fit-content;
        border-radius: 20px;
    }

    #phone-number-input,
    #button-send,
    #button-whatsapp {
        height: 49px;
    }

    #phone-number-input,
    #button-whatsapp{
       width: 100%;
    }

    #button-send,
    #phone-number-input,
    #phone-number-input::placeholder,
    #button-whatsapp {
        font-size: 24px;
    }

    #go-whatsapp {
        padding: 53px 7px 12px;
    }

    #button-whatsapp {
        line-height: 49px;
        max-width: 250px
    }

    #thank-you {
        padding: 27px;
    }

    .mobile-hidden {
        display: none;
    }
}

@media (width <= 520px) {

    #form {
        max-width: 100%;
        padding: 0px 20px;
    }

    #input-number {
        max-width: calc(100vw - 57px);
    }

    #go-whatsapp {
        max-width: calc(100vw - 42px);
    }
}

@media  (width <= 405px) {

    #form-title {
        font-size: 28px;
        line-height: 28px;
    }

    #logo {
        height: 51px;
        width: 51px;
    }

    .description {
        margin-top: 12px;
        font-size: 15px;
    }

    .group-body {
        padding-bottom: 20px;
    }

    .sign-up-button {
        min-width: 124px;
        font-size: 19px;
    }

    .small .schedule {
        font-size: 17px;
    }
}