button {
    border: none;
}
#open_record_popup{
    max-width: 70rem;
    width: 70rem;
}


.doctor_recording_popup_wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.doctor_recording {
    flex: 0 0 45%;
    align-self: flex-start;
}

.doctor_recording_popup .container {
    width: 90%;
    max-width: 90%;
}
.doctors_wrap {
    gap: 1rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.popup_doctor {
    opacity: 0.6;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1vh 0.5vw;
    margin-bottom: 2vh;
    border-radius: 0.3vw;
    box-shadow: 0 0 0 transparent; /* Начальное состояние */
    transition: all 0.5s ease-in-out;
}

.popup_doctor img {
    width: 5vw;
    aspect-ratio: 1/1;
}

.popup_doctor:hover,
.popup_doctor.active {
    opacity: 1;
    box-shadow: 0 0 0 1px var(--green); /* Цвет и размер тени при появлении */
}
.popup_doctor {
    box-shadow: 0 0 0 1px var(--grey);
}

.popup_doctor:last-of-type {
    margin-bottom: 0;
}

.popup_doctor p {
    cursor: pointer;
    margin-bottom: 0;
}

.popup_form_close {
    position: absolute;
    right: 1em;
    top: 1em;
    width: 2em;
    background: white;
}

.popup_doctors {
    flex: 0 0 55%;
    max-height: 48vh;
    overflow-y: auto;
    padding: 2px 1rem 1px 1px;
}
.doctor_recording_popup .title, .doctor_recording_popup #doc-form-name-output {
    font-size: var(--s22);
    font-family: 'OpenSans-Bold';
    margin: 0 0 1em 0;
    display: block;
    color: var(--grey-dark);
}
.doctor_recording_popup #doc-form-name-output {
    font-size: var(--s20);
    font-family: 'OpenSans-Bold';
    margin: 0 0 1em 0;
    display: block;
}
#open-date-recording {
    font-family: 'OpenSans-Bold';
    margin: 0 0 1em 0;
    display: block;
    color: var(--grey-dark);
}
.doctor_recording_popup .doctor_calendar_date, .doctor_recording_popup .js-open-calendar {
    box-sizing: border-box;
    border: 1px solid var(--grey);
    border-radius: var(--border-radius-btn);
    padding: 0.5rem 0.3rem;
}
.year_price {
    display: flex;
    gap: 2rem;
}
.doctor_calendar_date._active {
    box-sizing: border-box;
    border: 0.1px solid rgb(129, 189, 187);
    border-radius: var(--border-radius-btn);
    padding: 0.5rem 0.3rem;
}
.doctor_calendar_date._active {
    color: var(--grey-dark);
}
.medflex-round-widget__button {
    display: none !important;
}

#popup_review_form {
    padding-top: 1em;
}

.doctor_form_header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: .7rem;
}

#doc-form-date-output {
    color: rgb(110, 112, 130);
    font-size: 1rem;
}
#doc-form-name-output {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgb(64, 65, 76);
}
#doc-form-back-to-recording i::before {
    content: "\f060";
    color: rgb(110, 112, 130);
    font-size: 1.3rem;
    opacity: .6;
}

.popup_doctor_form_btn::before {
    animation-name: pulse-circle;
    animation-duration: 2.8s;
}

.popup_doctor_form_btn::after {
    animation-duration: 2.8s;
    animation-name: pulse-animated-circle;
    animation-timing-function: ease-out;
}
.popup_doctor_form_btn img:hover {
    transform: scale(1.2);
}
.widget_button {
    position: relative;
}



/* Эффект при наведении — небольшое увеличение кнопки */
.popup_doctor_form_btn:hover {
    transform: scale(1.1);
}
.popup_doctor_form_btn img {
    width: 4em;
}


/* Остановить анимацию при наведении на кнопку */
.widget_button:hover::after {
    animation-play-state: paused;
}



@media screen and (orientation: portrait) {
    #open_record_popup{
        max-width: 95vw;
        width: 95vw;
        height: 87vh;

        overflow-y:auto;
    }
    .doctor_recording_popup {
        width: 100%;
        border-radius: .4em;
        height: auto;
        padding: 1rem 0 0 0 ;
    }
    .doctor_recording_popup .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    .doctor_recording_popup .container h3 {
        text-align: center;
    }
    .doctor_recording {
        padding: 0 .3em;
    }
    .doctors_wrap {
        display: block;
    }
    .popup_doctor {
        border-radius: 1.3vw;
    }
    .popup_doctor:hover, .popup_doctor.active {
        box-shadow: 0 0 0 1px #81BDBB;
    }
    .popup_doctor img{
        width: 13vw;
    }
    .popup_doctors{
        margin-bottom: 1em;
        padding: 2px .3em;
        max-height: 41vh;
    }
    .mfp-content > div {
        max-width: 45rem;
        height: 15rem;
        width: 90%;
        align-items: center;
        display: flex;
    }
    .doctor_calendar_full {
       width: 95%;
    }
    .recording_btn{
        width: 15vw !important;
    }
    .popup_doctor_form_btn {
        bottom: 2.5em;
    }
    .popup_doctor_form_btn img {
        width: 4.5em;
    }
    #doc-form-name-output {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    .doctor_form_block label {
        font-size: .9rem;
        margin-bottom: .4rem;
    }
    .doctor_form_block input {
        border-radius: .7em;
        padding: .8em 1.3em;
        font-size: .8rem;
    }
    .checkbox_wrap p {
        font-size: .8rem;
    }
    .doctor_form_wrap {
        background: white;
        bottom: 0;
        position: absolute;
        width: 95vw;
        left: 50%;
        transform: translate(-50%, 0);
        padding: 1.5rem 1.5rem 2rem;
        border-radius: 1.125rem;
        box-shadow: 0 -.8rem 6px rgba(0, 0, 0, 0.05);
    }
    #open_record_popup .mfp-close {
        font-size: 2.1rem;
        font-weight: 300;
    }
}


.popup_doctor_form_btn {
    border: none;
    background: transparent;
    padding: .5rem;
    cursor: pointer;
    overflow: visible;
    z-index: 1;
    position: relative;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 1em;
    left: 10%;
}

/* Основная пульсация */
.popup_doctor_form_btn::before {
    content: "";
    position: absolute;
    top: -0.25rem;
    left: -0.25rem;
    right: -0.25rem;
    bottom: -0.25rem;
    border-radius: 50%;
    border: .1rem solid var(--green);
    box-shadow: 0 0 12px var(--green), 0 0 20px var(--green);
    opacity: 0.6;
    pointer-events: none;
    animation: pulse 2s infinite ease-in-out;
    z-index: -1;
}

/* Второй слой пульсации — более широкий и мягкий */
.popup_doctor_form_btn::after {
    content: "";
    position: absolute;
    top: -0.6rem;
    left: -0.6rem;
    right: -0.6rem;
    bottom: -0.6rem;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(129, 189, 187, 0.3); /* #81bdbb с прозрачностью */
    opacity: 0.3;
    animation: pulse 2.5s infinite ease-in-out;
    z-index: -2;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}
.doc-submit{
    max-width: none;
}

/* Пауза при наведении — опционально */
.popup_doctor_form_btn:hover::before,
.popup_doctor_form_btn:hover::after {
    animation-play-state: paused;
}
@media screen and (max-width: 1990px) {
    .button-widget {
        left: 5%;
    }
    .button-messengers {
        right: 5%;
    }
}
@media screen and (max-width: 1500px) {
    .button-widget {
        left: 1%;
    }
    .button-messengers {
        right: 1%;
    }
}
@media screen and (orientation: portrait) {

    .popup_doctor_form_btn img {
        width: 3.5em;
    }
    .button-widget {
        left: 4%;
    }
    .button-messengers {
        right: 5%;
    }
    .button-messengers {
        bottom: 4em;
    }
    .button-widget {
        bottom: 3.2em;
    }
    .year_price {
        gap: 0.2rem;
        flex-direction: column;
    }
    .doctor_recording_popup .doctor_calendar_date, .doctor_recording_popup .js-open-calendar {
        font-size: .9rem;
    }
}
.js-open-form-recording{
    max-width: none;
}