.regist{
    width: 400px;
    /* max-height: 280px; */
    /* background-color: #e4e4e4; */
    padding-bottom: 20px;
    border-radius: 10px;
    color: inherit;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
 
}
#suggestions {
    display: none;
    position: fixed;
    border: 1px solid #ddd;
    background-color: #f1f5f9;
    z-index: 999;
    overflow: auto;
    height: auto;
    max-height: 150px;
    border-radius: 5px;
    margin-left: 25px;
 
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);


}

#suggestions div {
    padding-left: 5px;
    padding-right: 7px;
    height: 25px;
    color: black;
    margin: auto;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    width: auto;
    text-align: left;
}

#suggestions div:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

/* #first_msg_btn:hover{
    background-color: #8a2be2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
} */
#first_msg_btn:active,#first_msg_btn:focus{
    background-color: white;
    color:#9370DB;
    border: 2px solid #9370DB;
    outline: none;
}
.regist-head {
    background-color: #73d7f9;
    height: 30px;
    display: flex;
    padding: 10px;
    align-items: center;
   /* Нежное свечение */
    /* text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);   */
   
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* color: black; */
    font-weight: 700; /* Убедитесь, что выбран правильный вес шрифта */
    font-size: 18px;

    position: relative;
    border-top-left-radius: 4px; /* Радиус закругления верхнего левого угла */
    border-top-right-radius: 4px; /* Радиус закругления верхнего правого угла */
    border-bottom: 3px solid #30b6ff;
}
.regist-head #close {
    position: absolute; /* Позиционирование относительно родителя */
    right: 20px; /* Отступ от правого края */
    top: 20px; /* Отступ от верхнего края */
    opacity: 0.7;
}

#close:hover {
    cursor: pointer;
}
.regist-form{
    text-align: center;
    /* margin-top: 15px; */
    padding: 5px;
    margin: auto;
    /* padding: 15px; */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); /* Нежное свечение */
    max-width: 320px;

}
.regist-form h3{
    /* font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px; */

    font-weight: 700;
    /* font-size: 1.125rem; */
    font-size: 0.97rem;
    line-height: 1.75rem;
}


#first_msg_btn{
    padding: 10px 20px;
    justify-content: center;
    background-color: #6366f1;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    padding-left: 10px;
    padding-right: 8px;
    cursor: pointer;
    border-radius: 5px;
    width: 110px;
    height: 41px;
    margin: auto;
    transition: all 0.3s ease;
    /* border-color: #6366f1; */
    border: none;
    transform: translateY(-20px);
    margin-bottom: -25px;
    font-family: 'Ubuntu', monospace;

}
.birth{
    border: solid #94a3b8 1.9px;
    background-color: white;
    height: 34px;
    width: 82px;

    outline: none;
    box-shadow: none;
    margin: auto;
    margin-bottom: 0px;
    /* margin-right: 6px;
    margin-left: 6px; */

    text-align: center;  
    /* border-radius: 0.250rem; */
    border-radius: 0.125rem;
}


input, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid #9370DB;
    outline-offset: -1px;
}

/* Fix for Samsung browser focus issues */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on focus in some mobile browsers */
    }
    
    input:focus, select:focus, textarea:focus {
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-user-modify: read-write-plaintext-only;
    }
}

/* Ensure consistent styling across browsers */
input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Убираем стрелки в Firefox */
input[type=number] {
    -moz-appearance: textfield;
}
#button{
    width: 90%;
    margin: auto;
    margin-top: 15px;
    border: none;
    background-color: #6366f1;
    color: #fff;
}
}
#button_sel{
    width: 80%;
    margin: auto;
    margin-top: 0;

}
.postcode{
    border: solid  2.5px;
    background-color: white;
    width: 140px;
    height: 36px;

    outline: none;
    box-shadow: none;
    margin-bottom: 0px;
    margin-right: 10px;
    margin-left: 10px;
    text-align: center;  
    border-radius: .250rem;
    border-color: #94a3b8;
}
.postcode::placeholder {
    color: #94a3b8;
}
#country option:disabled {
    color: #94a3b8; /* Цвет неактивного элемента */
}
select{
    border: solid  2.5px;
    background-color: white;
    width: 140px;
    height: 42px;

    margin-right: 10px;
    margin-left: 10px;
  /*  padding-left: 1rem;*/
   /* padding-right: 0.6rem;*/
    border-radius: .250rem;
    border-color: #94a3b8;
}
#nick,#pass,#email{
    border: solid #94a3b8 1.9px;
    height: 28px;
    width: 90%;
    background: white;
    outline: none;
    box-shadow: none;

    padding: 5px;
    margin-top: 10px;
	
	padding-left: 15px;
    /* border-radius: 0.125rem; */
    border-radius: 0.250rem;
}
#email{
    margin-top: 0;
    

}
.outer{
    height: 500px;
}
#bar,#progress{
    height: 34px;

    outline: none;
    box-shadow: none;
    

}
#bar{
    position: relative;
    width: 320px;
    background: #f1f5f9;
    margin-top: 20px;
    margin-left: 10px;

}
#progress{
    position: absolute;
    width: 10%;
    height: 100%;
    background-color: #E0F2FE;

}
.error_msg{
    color: #f87171;
    width: 90%;
    margin: auto;
    font-size: 16px;
    font-weight: 700;
    /*  */
    margin-top: 15px;
}
#result{

    color: black;
    margin-bottom: 25px;
    margin-top: 25px;
    margin-right:30px;
    margin-left: 30px;
}
@media screen and (max-width:467px) {
    .regist {
        width: 100%!important; /* Use percentage width for small screens */
    }
         /* Maximum width on small screens */
        /* No need to change left or transform as they will keep it centered */
    
        .modal-content{
            width: 100vw;
            padding: 0;
            margin: 0;
            margin-left: auto;
            margin-right: auto;

        }
        .modal-overlay{
            padding: 0;
        }
        #bar,#progress{
            height: 34px;
            margin: auto;
            outline: none;
            box-shadow: none;
            
        
        }
        #bar{
            position: relative;
            /* width: 320px; */
            width: 100%;
            background: #f1f5f9;
            margin-top: 20px;

        
        }
        #progress{
            position: absolute;
            width: 10%;
            height: 100%;
            background-color: #E0F2FE;
        
        }
    /* Adjust internal elements if needed */

}
@media screen and (max-width:370px) {
    .regist{
        width: calc(100vw - 3px);

    }
    .modal-content{
        left: 50%;
    }
    select, .postcode{
       width: 130px;
    }

}

#send{
    justify-content: center;
    background-color: #9370DB;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    display: flex; /* Используем flexbox для выравнивания иконки и текста */
    align-items: center; /* Центрирование по вертикали */
    gap: 4px; /* Отступ между иконкой и текстом */
    font-size: 18px;
    padding-left: 10px;
    padding-right: 8px;
	
	border: none;
    background-color: #6366f1;

    margin-top: 15px;
    border-radius: 5px;
    width: 95%;
    height: 41px;
 /* Курсор-указатель для интерактивности */
}
#send:hover{
    background-color: #8a2be2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
#send:active, #send:focus{
    background-color: white;
    color:#9370DB;
    border: 2px solid #9370DB;
    outline: none;
}

.cent{
    margin: auto;
}

