.modal-custom__wrap,
.modal-custom_coupon__wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-inner {
    width: 766px;
    /*height: 489px;*/
    margin: 0 auto;
    box-sizing: border-box;
}

.modal-entry__inner {
    max-width: 69vw;
    background: linear-gradient(111.86deg, #30B4FF -38.95%, #0F2036 111.55%);
    border-radius: 30px;
}

.modal__header-container {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.modal-custom__closeBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    outline: none;
    width: 46px;
    height: 46px;
    border: 1px solid white;
    border-radius: 50%;
    text-align: -webkit-center;
}

.modal-title__block {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.modal-entry__title {
    font-size: 44px;
    max-width: 66%;
    font-weight: 600;
    line-height: 121%;
    letter-spacing: 0;
}

.modal-info__block {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-around;
}

.modal-entry__success-info {
    font-size: 26px;
    line-height: 100%;
    color: #fff;
    margin-bottom: 0;
}

.modal-entry__success-info_spec {
    border: 1px solid white;
    border-radius: 27px;
    text-align: center;
    padding: 7px 15px;
    font-size: 16px;
    color: white;
    width: fit-content;
}

.info_side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-entry__success-date {
    margin-bottom: 0;

    span {
        font-size: 18px;
    }
}

.modal-entry__success-content {
    padding: 40px 80px;
}

.feedback__title {
    margin-bottom: 0 !important;
    font-size: 34px;
    font-weight: 500;
    color: white;
}

.status-container {
    padding: 8px 10px;
    border-radius: 24px;
    border: 1px solid #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
}

.my-popup {
    background: linear-gradient(to left, #0F2036 0%, #056399 100%);
    padding: 50px 109px;
    border-radius: 20px;
    width: 766px;
}

.my-btn {
    background: #54C1FF !important;
    width: 357px;
    height: 50px;
    border-radius: 40px !important;

}

.my-title {
    padding: 0;
    color: #FFFFFF;
    font-size: 36px;
    text-align: center;
    font-weight: 600;
}

.pay-container {
    gap: 20px;
}

.close-btn {
    width: 46px;
    height: 46px;
}

.modal-custom_coupon__close {
    position: relative !important;
    top: 0;
    right: 0;
}

.modal-enroll-form-left,
.modal-enroll-form-right {
    width: 100%;
    display: block;
}

.price-container {
    background: rgba(0, 0, 0, 0.102);
    width: 100%;
    margin-top: 50px;
    padding: 14px 19px;
    border-radius: 20px;
}

.container_forprise {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel {
    display: block;
    padding: 0px;
}

.container_forprise > div:nth-child(2) {
    display: grid;
}

.price-title {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 500;
}

.old_price {
    margin-top: 4px;
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-align: end;
}

.new_price {
    color: #54C1FF;
    font-weight: 500;
    font-size: 22px;
}

.modal-entry__confirm {
    margin-top: 24px;
    max-width: 352px;
    width: 100%;
    background-color: #54C1FF;
    color: white;
    height: 42px;
    /* padding: 0px 60px; */
    font-size: 16px;
    font-weight: 500;
    border-radius: 64px;
    outline: none;
    border: none;
    /* margin-left: 20px; */

}

/* .modal-entry__confirm p {
                                                                    width: min-content;
                                                               } */

.modal-entry__toggler {
    position: relative;
    width: 100%;
    height: 60px;
    margin: 50px 0 25px 0;
    display: flex;
    justify-content: space-between;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-entry__toggler-container {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-entry__toggler-container.single {
    background-color: white;
}

.modal-entry__toggler__item {
    color: #54C1FF;
    font-weight: 500;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    z-index: 10;
    padding: 0 10px;
    text-align: center;
    hyphens: auto;
}

.modal-entry__toggler-radio {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.modal-entry__toggler-runner {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: #fff;
}

.modal-entry__toggler-radio#streetToggle_1:checked ~ .modal-entry__toggler-runner {
    animation: moveRunnerLeft .7s forwards;
}

.modal-entry__toggler-radio#streetToggle_2:checked ~ .modal-entry__toggler-runner {
    animation: moveRunnerRight .7s forwards;
}

/* ОБНОВЛЕННЫЕ АНИМАЦИИ ДЛЯ RUNNER */
@keyframes moveRunnerRight {
    0% {
        left: calc(100% / var(--branches-count, 2) * (var(--prev-branch, 0) - 1));
        width: calc(100% / var(--branches-count, 2));
    }
    30% {
        left: calc(100% / var(--branches-count, 2) * (var(--prev-branch, 0) - 1) + 5%);
        width: calc(100% / var(--branches-count, 2) * 0.8);
        border-radius: 10px;
        opacity: 0.8;
    }
    70% {
        left: calc(100% / var(--branches-count, 2) * (var(--current-branch, 1) - 1) - 5%);
        width: calc(100% / var(--branches-count, 2) * 0.8);
        border-radius: 10px;
        opacity: 0.8;
    }
    100% {
        left: calc(100% / var(--branches-count, 2) * (var(--current-branch, 1) - 1));
        width: calc(100% / var(--branches-count, 2));
        border-radius: 20px;
        opacity: 1;
    }
}

@keyframes moveRunnerLeft {
    0% {
        left: calc(100% / var(--branches-count, 2) * (var(--prev-branch, 1) - 1));
        width: calc(100% / var(--branches-count, 2));
    }
    30% {
        left: calc(100% / var(--branches-count, 2) * (var(--prev-branch, 1) - 1) - 5%);
        width: calc(100% / var(--branches-count, 2) * 0.8);
        border-radius: 10px;
        opacity: 0.8;
    }
    70% {
        left: calc(100% / var(--branches-count, 2) * (var(--current-branch, 0) - 1) + 5%);
        width: calc(100% / var(--branches-count, 2) * 0.8);
        border-radius: 10px;
        opacity: 0.8;
    }
    100% {
        left: calc(100% / var(--branches-count, 2) * (var(--current-branch, 0) - 1));
        width: calc(100% / var(--branches-count, 2));
        border-radius: 20px;
        opacity: 1;
    }
}

/* Базовые стили для runner с анимацией */
#branchToggler .modal-entry__toggler-runner {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: #54C1FF;
    /*border-radius: 20px;*/
    width: calc(100% / var(--branches-count, 2));
    transition: all 0.3s ease; /* Плавный переход вместо анимации */
}

/* Позиции для runner через data-атрибуты */
#branchToggler[data-selected="1"] .modal-entry__toggler-runner {
    left: 0%;
}

#branchToggler[data-selected="2"] .modal-entry__toggler-runner {
    left: calc(100% / var(--branches-count, 2));
    background-color: white;
}

#branchToggler[data-selected="3"] .modal-entry__toggler-runner {
    left: calc(100% / var(--branches-count, 2) * 2);
}

#branchToggler[data-selected="4"] .modal-entry__toggler-runner {
    left: calc(100% / var(--branches-count, 2) * 3);
}

.enroll-footer-form {
    background: rgba(0, 0, 0, 0.102);
    padding: 30px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

#modalCouponInfo .modal-inner {
    max-width: 766px;
}

.btn-container {
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
}

.info-container {
    margin-bottom: 20px;
    margin-top: 20px;
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.info-container > div:nth-child(1) p {
    text-decoration: underline;
    cursor: pointer;
    color: #FFFFFF;
    font-weight: 400;
    font-size: 16px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    z-index: 1;
}

.checkbox-style {
    width: 20px;
    height: 20px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    margin-right: 8px;
    transition: all 0.3s ease;
    background-color: transparent;
    display: inline-block;
}

.panel__faq-header {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 10px 26px !important;
    margin-top: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.panel__faq-header > div {
    margin-left: 6px;
}

.panel__faq-header .ui-accordion-header-icon {
    display: none !important;
}

.ui-accordion-content {
    background: #FFFFFF;
    border-radius: 14px;
}

.ui-accordion-content p {
    color: #202020 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.panel__faq-header p {
    color: #202020;
    font-size: 14px;
    font-weight: 400;
}

.panel__faq-header img {
    width: 15px;
    height: 15px;
}

.panel__faq-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 24px;
}

.arrow-btn {
    width: 15px;
    height: 15px;
    transition: transform 0.3s ease;
}

.ui-accordion-header .arrow-btn {
    transform: rotate(270deg);
}

.ui-accordion-header-active .arrow-btn {
    transform: rotate(90deg);
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-style {
    background-color: #54C1FF;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-style::after {
    background-color: transparent !important;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-style::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 16px;
    text-align: center;
    display: block;
    position: relative;
    top: 0px;
    left: 4px;
}

/* Анимация при клике */
.checkbox-style:hover {
    border-color: #54C1FF;
}

.container-warning {
    margin-top: 30px;
    border: 1px solid #54C1FF;
    border-radius: 50px;
    padding: 12px 64px;
}

.container-warning p {
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

#timeSlotsGrid {
    max-width: 850px;
}

.coupons-block {
    flex-wrap: wrap;
    display: flex;
    gap: 10px;
    margin-top: 30px;
    /* justify-content: space-between; */
    align-items: center;
    padding: 5px 0;
    width: 100%;
}

.coupon-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.container_1 {
    display: flex;
    flex-direction: column
}

.coupon-card.active img {
    opacity: 1;
}

.coupon-card.active .coupon-text {
    color: #fff;
}

.coupon-card img {
    width: 120px;
    height: 59px;
    opacity: 0.6;
}

.coupon-text {
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 115px;
    font-weight: 400;
    font-size: 16px;
}

.coupon-card:hover {
    transform: scale(1.02);
}

.swal2-popup {
    background: linear-gradient(112.12deg, #30B4FF -39.22%, #0F2036 109.15%);
}

@media only screen and (min-width: 1024px) {

    .modal-enroll-form-left,
    .modal-enroll-form-right {
        width: 100%;
        /* Apply 50% width on desktops */
    }
}

@media only screen and (max-width: 768px) {
    .sova_icon {
        display: block;
    }

    .container-warning {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .btn-container {
        justify-content: center;
    }
}

@media only screen and (max-width: 1024px) {
    .modal-entry__inner {
        max-width: 100%;
    }

    .modal-inner {
        width: 100%;
        padding: 10px;
    }

    .modal-enroll-form-left,
    .modal-enroll-form-right {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .modal-enroll-form-right {
        margin-top: 10px;
    }

    .pay-container {
        margin-left: 0px;
        margin-top: 4px;
        gap: 10px;
    }

    .modal-entry__confirm {
        padding: 0px;
        margin-left: 0px;
    }

    .info-container {
        margin-top: 4px;
        margin-bottom: 4px;
    }
}

@media only screen and (max-width: 1350px) {
    .container_1 {
        margin-bottom: 12px;
    }

}

@media only screen and (max-width: 768px) {
    .form-container {
        flex-direction: column
    }

    .form-container > div {
        width: 100% !important;
    }

    .close-btn {
        width: 34px;
        height: 34px;
    }

    .confirm-container {
        flex-direction: column;
        width: 100%;
    }

    .enroll-footer-form .custom-checkbox {
        max-width: 100%;
    }

    .confirm-container button {
        margin-top: 14px;
    }

    .my-popup {
        background: linear-gradient(to left, #0F2036 0%, #056399 100%);
        padding: 28px 34px;
        border-radius: 20px;
    }

    .my-title {
        padding: 0;
        color: #FFFFFF;
        font-size: 20px;
        text-align: center;
        font-weight: 600;
    }

    .my-btn {
        width: 270px;
    }
}

@media only screen and (max-width: 480px) {
    .modal-inner {
        padding: 5px;
    }

    .modal-enroll-form-right {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .modal-entry__toggler__item {
        font-size: 16px;
    }

    .modal-entry__input,
    .modal-entry__textarea,
    .select,
    .custom-checkbox {
        width: 100%;
    }

    .enroll-footer-form {
        flex-direction: column;
    }

    .my-btn {
        width: 230px;
    }

    .modal-entry__form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Сохраняем существующие стили */
    .modal-enroll-form-left,
    .modal-enroll-form-right {
        width: 100%;
        display: block;
    }

    .form-container {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* СТИЛИ ДЛЯ ЛОАДЕРА НА КНОПКЕ */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .sova_icon {
    display: none !important;
}

.btn-loading p {
    visibility: hidden;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: buttonSpin 1s linear infinite;
}

@keyframes buttonSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* СТИЛИ ДЛЯ УВЕДОМЛЕНИЯ ОБ ОШИБКЕ */
.error-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100000;
    max-width: 400px;
    background: #ff4444;
    color: white;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #ff6b6b;
    font-family: inherit;
    display: none;
}

.error-toast.show {
    display: block;
    animation: toastSlideIn 0.4s ease forwards;
}

.error-toast.hiding {
    display: block;
    animation: toastSlideOut 0.4s ease forwards;
}

/* Ключевые кадры для анимаций */
@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}

.error-toast-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.error-toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

.error-toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

/* Для мобильных */
@media (max-width: 768px) {
    .error-toast {
        left: 15px;
        right: 15px;
        max-width: none;
        bottom: 15px;
    }

    @keyframes toastSlideIn {
        0% {
            opacity: 0;
            transform: translateY(50px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes toastSlideOut {
        0% {
            opacity: 1;
            transform: translateY(0);
        }
        100% {
            opacity: 0;
            transform: translateY(50px);
        }
    }
}

.date-cards-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.date-card {
    width: calc((100% - 70px) / 7); /* 7 карточек с отступами */
    /*min-width: 60px;*/
    margin: 0 5px;
    text-align: center;
    padding: 10px 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.date-card.selected {
    background: #ffffff;
    color: #2197DA;
}

.date-card.today {
    border: 2px solid #54C1FF;
}

.date-nav-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-nav-arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
}

.date-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.date-selection-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.branch-primary.active:not(.single) > .modal-entry__toggler__item,
.branch-secondary:not(.active) > .modal-entry__toggler__item {
    color: white;
}

.branch-primary:not(.active) > .modal-entry__toggler__item,
.branch-secondary.active > .modal-entry__toggler__item {
    color: #54C1FF;
}

.time-slots-grid > .branch-primary,
.date-cards-wrapper > .branch-primary:not(.disabled) {
    border: 1px solid #54C1FF;
}

.time-slots-grid > .branch-primary:not(.selected),
.date-cards-wrapper > .branch-primary:not(.disabled, .selected) {
    color: #54C1FF;
}

.time-slots-grid > .branch-primary.selected,
.date-cards-wrapper > .branch-primary.selected {
    background-color: #54C1FF;
    color: white;
}

.discount-badge {
    position: absolute;
    left: 20px;
    font-size: 48px;
    font-weight: 600;
    color: #3696cc;
}

.coupon-card.active .discount-badge {
    color: #54C1FF;
}

/* Стили для блокировки формы */
.enroll-form-blocked {
    position: relative;
    pointer-events: none;
    user-select: none;
}

.enroll-form-blocked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 30px;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

/* Стили для модального окна сообщения */
.no-schedule-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.no-schedule-modal {
    background: linear-gradient(135deg, #0F2036 0%, #056399 100%);
    border-radius: 30px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
    z-index: 1001;
}

.no-schedule-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.no-schedule-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.no-schedule-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 30px;
}

.no-schedule-close-btn {
    background: #54C1FF;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.no-schedule-close-btn:hover {
    background: #3aa8e8;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(84, 193, 255, 0.3);
}

.no-schedule-close-btn:active {
    transform: scale(0.98);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Медиа-запросы для мобильных */
@media only screen and (max-width: 768px) {
    .no-schedule-modal {
        padding: 30px 25px;
        margin: 20px;
        width: calc(100% - 40px);
    }

    .no-schedule-icon {
        font-size: 60px;
    }

    .no-schedule-title {
        font-size: 24px;
    }

    .no-schedule-message {
        font-size: 14px;
    }

    .no-schedule-close-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Стили для селектора формата консультации */
#consultationModeGroup {
    position: relative;
}

/* Плашка с информацией о режиме специалиста */
.specialist-mode-banner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(4px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specialist-mode-banner.online-only {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(46, 125, 50, 0.1));
    color: #fff;
    border-left: 4px solid #4CAF50;
    border-right: 1px solid rgba(76, 175, 80, 0.3);
}

.specialist-mode-banner.offline-only {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(230, 81, 0, 0.1));
    color: #fff;
    border-left: 4px solid #FF9800;
    border-right: 1px solid rgba(255, 152, 0, 0.3);
}

.specialist-mode-banner .banner-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.specialist-mode-banner .banner-text {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Селектор режимов */
.mode-selector {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap; /* Запрещаем перенос */
    padding: 10px 0;
    position: relative;
    z-index: 1;
}

.mode-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 14px 24px;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    flex: 1; /* Растягиваем на равную ширину */
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    gap: 10px;
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 1;
    white-space: nowrap; /* Запрещаем перенос текста */
}

.mode-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.mode-option input[type="radio"] {
    display: none;
}

/* Неактивное состояние (не выбрано) */
.mode-option:not(:has(input:checked)) {
    opacity: 0.7;
}

/* Выбранное состояние */
.mode-option:has(input:checked) {
    background: linear-gradient(135deg, #54C1FF, #3A8FD4);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(84, 193, 255, 0.3);
    transform: scale(1.02);
}

.mode-option[data-mode="online"]:has(input:checked) {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.mode-option[data-mode="offline"]:has(input:checked) {
    background: linear-gradient(135deg, #FF9800, #E65100);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

/* Заблокированная опция */
.mode-option.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.6);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    transform: none;
    box-shadow: none;
}

/* Когда одна из опций заблокирована, другая занимает всю ширину */
/*.mode-selector:has(.mode-option.disabled) {*/
/*    gap: 0;*/
/*}*/

/*.mode-selector:has(.mode-option.disabled) .mode-option:not(.disabled) {*/
/*    flex: 1 0 100%;*/
/*    max-width: 100%;*/
/*}*/

.mode-icon {
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.mode-label {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

.mode-hint {
    text-align: center;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: color 0.3s ease;
    font-style: italic;
}

.mode-hint.error {
    color: #ff6b6b !important;
    font-style: normal;
}

/* Скрываем старый бейдж */
.specialist-mode-badge {
    display: none;
}

/* Анимация появления расписания */
#scheduleContainer {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-times-message {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .mode-selector {
        flex-wrap: wrap; /* На мобильных разрешаем перенос */
    }

    .mode-option {
        white-space: normal; /* Разрешаем перенос текста */
        padding: 12px 16px;
    }

    .specialist-mode-banner {
        padding: 12px 16px;
        border-radius: 14px;
    }

    .specialist-mode-banner .banner-icon {
        font-size: 24px;
    }

    .specialist-mode-banner .banner-text {
        font-size: 14px;
    }

    .mode-hint {
        font-size: 12px;
    }
}

/* ==================== СТИЛИ ДЛЯ ЛОАДЕРОВ ==================== */

/* Основной лоадер (загрузка данных специалиста) */
.schedule-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 40px 20px;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #54C1FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-spinner.small {
    width: 30px;
    height: 30px;
    border-width: 2px;
}

.loader-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Лоадер внутри контейнера расписания */
.schedule-content-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

/* Анимация появления контента */
#consultationModeContent,
#scheduleContent {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Состояние загрузки для кнопок */
.mode-option.loading {
    pointer-events: none;
    opacity: 0.5;
    position: relative;
}

.mode-option.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translateY(-50%);
}

/* Скелетон загрузки для дат */
.date-card.skeleton {
    background: rgba(255, 255, 255, 0.05);
    animation: pulse 1.5s ease-in-out infinite;
}

.date-card.skeleton .date-card__day,
.date-card.skeleton .date-card__date,
.date-card.skeleton .date-card__month {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: transparent;
    min-height: 16px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Скелетон для слотов времени */
.time-slot-button.skeleton {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: transparent;
    animation: pulse 1.5s ease-in-out infinite;
    pointer-events: none;
    min-width: 80px;
}

.specialist-mode-banner .banner-text {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.specialist-mode-banner .banner-text small {
    font-size: 12px;
    font-weight: 400;
    display: inline-block;
    margin-top: 4px;
}