﻿.form-next3 div,
.form-next4 div {
    display: flex;
    flex-direction: column;
    width: auto;
}

.form-next4 {
    font-size: 1.55em;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    justify-content: start;
    background-color: #0A468E;
    color: white;
    padding: 2.5vw 3vw;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%; 
    max-width: 65%;
    margin: 0 auto; 
    margin-top: 2.5vw;
    margin-bottom: 3vw;
    gap:1.5vw;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/*Форма просмотра инфы молодым специалистом*/

.form-next3 {
    font-size: 1vw;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    background-color: #0A468E;
    color: white;
    padding: 2.5vw 3vw;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%; 
    max-width: 45%;
    margin: 0 auto; 
    margin-top: 2.5vw;
    margin-bottom: 3vw;
    gap:1.5vw;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}


.form-next3 input,
.form-next4 input,
.form-next3 input[type="text"],
.form-next4 input[type="text"],
.form-next3 input[type="email"],
.form-next4 input[type="email"],
.form-next3 input[type="number"],
.form-next4 input[type="number"] {
    display: block;
    font-family: 'Comfortaa', sans-serif;
    font-size: 1vw;
    padding: 0.5vw; 
    border: 1px solid #0A468E;
    border-radius: 8px;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 30vw;
    margin-top: 1.5vw;
    margin-bottom: 0.5vw;
}

.form-next3 select,
.form-next4 select {
    width: auto;
    min-width: max-content;
    align-self: flex-start;
    font-family: 'Comfortaa', sans-serif;
    font-size: 1vw; 
    border: 1px solid #0A468E;
    border-radius: 8px;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
    margin-top: 1.5vw;
    margin-bottom: 0.5vw;
}

.form-next3 select, .form-next4 select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0.5vw 2.5vw 0.5vw 1vw; 
    background: url('https://img.icons8.com/ios/50/000000/chevron-down.png') no-repeat right 10px center;
    background-size: 20px;
    background-color: white;
    border-radius: 8px;
}

.form-next3 input[type="text"]:focus,
.form-next4 input[type="text"]:focus,
.form-next3 input[type="email"]:focus,
.form-next4 input[type="email"]:focus,
.form-next3 input[type="number"]:focus,
.form-next4 input[type="number"]:focus,
.form-next3 select:focus,
.form-next4 select:focus {
    border-color: #008CFF;
    box-shadow: 0 0 6px rgba(0, 140, 255, 0.4);
    outline: none;
}

.form-next3 label,
.form-next4 label {
    display: inline-flex;
    align-items: center;
    gap: 0.5vw;
    cursor: pointer;
}

input[type="checkbox"],
input[type="checkbox"] {
    accent-color: #0AA7FF;
    width: 1.5vw; 
    height: 1.5vw;
    margin: 0; 
}



.form-next3 h2, .form-next3 p {
    margin-bottom: 1vw;
    font-size: 1.5vw;
    text-align: start;
}



@media (max-width: 1920px) {
    .form-next3, .form-next4{
        font-size: 1.25em;
    }

    .form-next4{
        max-width: 65%;
    }

    .form-next3 input, .form-next4 input{
        font-size: 1.2vw;
    }

    .form-next3 input,
    .form-next4 input,
    .form-next3 input[type="text"],
    .form-next4 input[type="text"],
    .form-next3 input[type="email"],
    .form-next4 input[type="email"],
    .form-next3 input[type="number"],
    .form-next4 input[type="number"] {
        font-size: 1.2vw;
    }

    .form-next3 select,
    .form-next4 select {
        font-size: 1.2vw;
    }

}

@media (max-width: 1024px) {

    .form-next3{
        font-size: 1.5vw;
        max-width: 40%;
        margin-top: 3vw;
        margin-bottom: 3vw;
    }

    .form-next4{
        font-size: 1.5vw;
        max-width: 80%;
        margin-left: 10vw;
        margin-top: 3vw;
        margin-bottom: 3vw;
    }

    .form-next3 input,
    .form-next4 input,
    .form-next3 input[type="text"],
    .form-next4 input[type="text"],
    .form-next3 input[type="email"],
    .form-next4 input[type="email"],
    .form-next3 input[type="number"],
    .form-next4 input[type="number"] {
        font-size: 1.5vw;
    }

    .form-next3 select,
    .form-next4 select {
        font-size: 1.5vw;
        padding-right: 40px;
    }

    .form-next3 .vhod1, .form-next4 .vhod1 {
        font-size: 1.5vw;
    }


}

@media (max-width: 768px) {
    
    .form-next3{
        font-size: 2vw;
        max-width: 50%;
        margin-top: 3vw;
        margin-bottom: 10vw;
    }

    .form-next3 input{
        min-width: 44vw;
    }

    .form-next4 input{
        min-width: 46vw;
    }

    .form-next4{
        font-size: 2vw;
        margin-left: 10vw;
        max-width: 80%;
        margin-top: 3vw;
        margin-bottom: 10vw;
    }


    .form-next3 input,
    .form-next4 input,
    .form-next3 input[type="text"],
    .form-next4 input[type="text"],
    .form-next3 input[type="email"],
    .form-next4 input[type="email"],
    .form-next3 input[type="number"],
    .form-next4 input[type="number"] {
        font-size: 1em;
    }

    .form-next3 select{
        font-size: 1em;
        padding-right: 40px;
    }

    .form-next4 div{
        max-width: 100%;
    }

    select#id_sfera_del{
        font-size: 1.5vw;
    }

    select#id_dom{
        font-size: 1.5vw;
    }

    .form-next4 select{
        font-size: 1em;
        padding-right: 30px;
    }


    .form-next3 .vhod1, .form-next4 .vhod1 {
        font-size: 2vw;
        min-width: 30vw;
        margin-top: 3vw;
    }

    .form-container{
        flex-direction: column;
        gap:7.5vw;
        margin-bottom: 10vw;
    }
    
    input[type="checkbox"],
    input[type="checkbox"] {
        accent-color: #0AA7FF;
        width: 2.5vw; 
        height: 2.5vw;
        margin: 0; 
    }

    form div{
        gap:1vw;
    }

    .form-next4 input[type="checkbox"],
    .form-next4  input[type="checkbox"]{
        min-width: 2.5vw;
        max-width: 2.5vw;
    }
}

@media (max-width: 480px) {

    .form-next3{
        font-size: 1em;
        gap: 2.5vw;
        max-width: 80%;
        margin-top: 3vw;
        margin-bottom: 10vw;
        padding-top: 2.5vw;
        margin-left: 10vw;
    }

    .form-next4{
        font-size: 1em;
        gap: 2.5vw;
        max-width: 90%;
        margin-top: 3vw;
        margin-left: 5vw;
        margin-bottom: 10vw;
        padding-top: 2.5vw;
    }


    .form-next3 input{
        min-width: 65vw;
    }

    .form-next4 input{
        min-width: 67vw;
    }

    .form-next3 input,
    .form-next4 input,
    .form-next3 input[type="text"],
    .form-next4 input[type="text"],
    .form-next3 input[type="email"],
    .form-next4 input[type="email"],
    .form-next3 input[type="number"],
    .form-next4 input[type="number"] {
        font-size: 0.85em;
        border-radius: 5px;
    }

    .form-next3 select{
        font-size: 0.85em;
        padding-right: 40px;
        border-radius: 5px;
    }



    .form-next4 div{
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }


    select#id_sfera_del {
        max-width: 100%;
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    text-overflow: ellipsis;
        font-size: 3vw;
        overflow: hidden; 
        white-space: nowrap; 
        text-overflow: ellipsis; 
    }

    select#id_dom {
        max-width: 100%;
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    text-overflow: ellipsis;
        font-size: 3vw;
        width: 100%; 
        max-width: 100%; 
        overflow: hidden; 
        white-space: nowrap; 
        text-overflow: ellipsis; 
    }

    .form-next4 select{
        font-size: 0.85em;
        padding-right: 30px;
        border-radius: 5px;
    }


    .form-next3 .vhod1, .form-next4 .vhod1 {
        font-size: 0.85em;
        min-width: 30vw;
        margin-top: 3vw;
    }

    .form-container{
        flex-direction: column;
        gap:7.5vw;
        margin-bottom: 10vw;
    }

    .form-next4 input[type="checkbox"],
    .form-next4  input[type="checkbox"]{
        min-width: 3.5vw;
        max-width: 3.5vw;
    }
    
    input[type="checkbox"],
    input[type="checkbox"] {
        accent-color: #0AA7FF;
        width: 3.5vw; 
        height: 3.5vw;
        margin: 0; 
    }

    form div{
        gap:1.5vw;
    }

    
}