.is-hidden {
    display: none;
}

.price-col-code {
    font-size: 0.9em;
    color: #888;
    padding-right: 10px;
    white-space: nowrap;
}

.price-col-name {
    font-weight: 500;
    padding-left: 5px;
}

.price-col-price {
    text-align: right;
    font-weight: 500;
    padding-left: 10px;
}

.price-col-action {
    text-align: right;
    padding-left: 10px;
}

.price-nowrap {
    white-space: nowrap;
}

.price-book-btn {
    display: none;
    padding: 5px 15px;
    background: #1BA1F2;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.booking-modal-dialog {
    width: 80%;
    max-width: 80%;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    margin: 5vh auto;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.booking-modal-header {
    flex-shrink: 0;
    padding: 10px 20px;
    background: #1BA1F2;
    border-bottom: 1px solid #EAEDEE;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.booking-service-name {
    margin: 0;
    font-size: 20px;
    color: #fff;
    flex: 1;
    padding-right: 15px;
}

.booking-service-price {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

.booking-modal-content {
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.booking-doctors-list {
    padding: 20px;
}

.service-description-modal-content {
    max-width: 700px;
}

.service-description-info {
    margin-bottom: 15px;
}

.service-description-code {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.service-description-price {
    font-size: 16px;
    color: #1BA1F2;
    font-weight: 600;
    margin-top: 5px;
}

.service-description-content {
    font-size: 14px;
    line-height: 1.6;
    color: #041520;
    white-space: pre-wrap;
}

.price-accordion {
        margin-top: 10px;
    }
    .price-accordion-item {
        margin-bottom: -1px;
    }
    .price-accordion-title {
        display: block;
        padding: 8px 20px;
        border: 1px solid #EAEDEE;
        color: #041520;
        margin: 0;
        text-decoration: none;
        position: relative;
        cursor: pointer;
        background-color: #fff;
        transition: background-color 0.2s, border-color 0.2s;
        font-size: 15px;
    }
    .price-accordion-title:hover {
        background-color: #E3F2FD;
        border-color: #1BA1F2;
    }
    .price-accordion-title:focus {
        outline: 2px solid #1BA1F2;
        outline-offset: -2px;
        background-color: #E3F2FD;
        border-color: #1BA1F2;
    }
    .price-accordion-title:before {
        content: "";
        display: block;
        width: 22px;
        height: 11px;
        background: url(../images/arrow.svg);
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.2s ease-out;
    }
    .price-accordion-title.active {
        background-color: #fff;
        border-color: #1BA1F2;
    }
    .price-accordion-title.active:before {
        transform: translateY(-50%) rotate(180deg);
    }
    .price-accordion-title.active:hover {
        background-color: #E3F2FD;
    }
    .price-accordion-content {
        display: none;
        padding: 20px 35px;
        background-color: #F9FAFB;
        border: 1px solid #EAEDEE;
        border-top: none;
        border-radius: 0 0 20px 20px;
    }
    .price-accordion-content.active {
        display: block;
    }
    .price-service-item {
        font-size: 14px;
        line-height: 140%;
        margin-top: 8px;
        border-bottom: 1px solid #e4e7e8;
        padding: 10px 15px;
        margin-bottom: 8px;
        cursor: pointer;
        transition: background-color 0.2s, box-shadow 0.2s;
        background-color: #E3F2FD;
        border-radius: 4px;
    }
    .price-service-item:hover {
        background-color: #BBDEFB;
        box-shadow: 0px 4px 12px 0 rgba(27, 161, 242, 0.15);
    }
    .price-service-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    .service-book-btn {
        transition: background-color 0.2s;
    }
    .service-book-btn:hover {
        background: #0d8cd9 !important;
    }
    .service-book-btn:active {
        background: #0a6ba8 !important;
    }
    .doctor-card {
        background: white;
        border: 1px solid #EAEDEE;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
    }
    .doctor-header {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }
    .doctor-photo {
        width: 70px;
        height: 80px;
        border-radius: 8px;
        object-fit: contain;
        margin-right: 15px;
        background: #f0f0f0;
    }
    .doctor-info {
        flex: 1;
    }
    .doctor-name {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 5px;
        color: #041520;
    }
    .doctor-position {
        font-size: 14px;
        color: #666;
    }
    .doctor-experience {
        font-size: 13px;
        color: #888;
        margin-top: 3px;
    }
    .time-slots-section {
        margin-top: 15px;
        margin-bottom: 15px;
        padding: 12px 15px;
        background: #F9FAFB;
        border: 1px solid #EAEDEE;
        border-radius: 8px;
    }
    .date-label {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 12px;
        color: #041520;
        padding-bottom: 8px;
        border-bottom: 2px solid #1BA1F2;
    }
    .more-dates-container {
        margin-top: 15px;
    }
    .more-dates-btn {
        transition: all 0.2s;
    }
    .more-dates-btn:hover {
        background: #E3F2FD !important;
        border-color: #1BA1F2 !important;
    }
    .time-slots {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .time-slot-btn {
        padding: 8px 16px;
        background: #F9FAFB;
        border: 1px solid #EAEDEE;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s;
    }
    .time-slot-btn:hover {
        background: #E3F2FD;
        border-color: #1BA1F2;
    }
    .time-slot-btn.selected {
        background: #1BA1F2;
        color: white;
        border-color: #1BA1F2;
    }
    /* Скрываем крестики в модальных окнах */
    #serviceBookingModal .uk-modal-close {
        display: none !important;
    }
    
    /* Стили для модального окна описания услуги */
    #serviceDescriptionModal.appointment-modal {
        display: none;
        position: fixed;
        z-index: 10002;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    #serviceDescriptionModal.appointment-modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
    }
    
    #serviceDescriptionModal .appointment-modal-content {
        background-color: #fff;
        padding: 20px 25px;
        border-radius: 12px;
        max-width: 700px;
        width: 90%;
        max-height: 90vh;
        overflow: hidden;
        position: relative;
        transform: scale(0.9);
        transition: transform 0.3s ease;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }
    
    #serviceDescriptionModal.appointment-modal.active .appointment-modal-content {
        transform: scale(1);
    }
    
    #serviceDescriptionModal .appointment-modal-close {
        position: absolute;
        right: 15px;
        top: 15px;
        font-size: 28px;
        font-weight: bold;
        color: #999;
        cursor: pointer;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
        z-index: 10;
    }
    
    #serviceDescriptionModal .appointment-modal-close:hover {
        background-color: #f0f0f0;
        color: #333;
    }
    
    #serviceDescriptionModal .appointment-modal-title {
        font-size: 20px;
        font-weight: 600;
        color: #041520;
        margin-bottom: 10px;
        padding-right: 30px;
        width: 100%;
        box-sizing: border-box;
    }
    
    #serviceDescriptionModal .appointment-modal-info {
        padding: 8px 15px;
        background-color: #f5f5f5;
        border-radius: 8px;
        margin-bottom: 14px;
        font-size: 14px;
        line-height: 1.4;
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
    }
    #serviceDescriptionCode {
        flex: 1;
        min-width: 0;
    }
    #serviceDescriptionPrice {
        margin-top: 0 !important;
        text-align: right;
        white-space: nowrap;
    }
    #serviceDescriptionContent {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding-right: 6px;
    }
    
    /* Стили для модального окна формы записи (как в снипете 50) */
    #bookingAppointmentModal.appointment-modal {
        display: none;
        position: fixed;
        z-index: 10001;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    #bookingAppointmentModal.appointment-modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
    }
    
    #bookingAppointmentModal .appointment-modal-content {
        background-color: #fff;
        padding: 20px 25px;
        border-radius: 12px;
        max-width: 650px;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        transform: scale(0.9);
        transition: transform 0.3s ease;
        box-sizing: border-box;
    }
    
    #bookingAppointmentModal.appointment-modal.active .appointment-modal-content {
        transform: scale(1);
    }
    
    #bookingAppointmentModal .appointment-modal-close {
        position: absolute;
        right: 15px;
        top: 15px;
        font-size: 28px;
        font-weight: bold;
        color: #999;
        cursor: pointer;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
        z-index: 10;
    }
    
    #bookingAppointmentModal .appointment-modal-close:hover {
        background-color: #f0f0f0;
        color: #333;
    }
    
    #bookingAppointmentModal .appointment-modal-title {
        font-size: 20px;
        font-weight: 600;
        color: #041520;
        margin-bottom: 10px;
        padding-right: 30px;
        width: 100%;
        box-sizing: border-box;
    }
    
    #bookingAppointmentModal .appointment-modal-info {
        padding: 8px 15px;
        background-color: #f5f5f5;
        border-radius: 8px;
        margin-bottom: 14px;
        font-size: 14px;
        line-height: 1.4;
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }
    .appointment-modal-info-inner {
        flex: 1;
        min-width: 0;
    }
    .appointment-modal-doctor-photo {
        flex-shrink: 0;
        width: 120px;
        height: 150px;
        border-radius: 8px;
        overflow: hidden;
    }
    .appointment-modal-doctor-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scaleX(-1);
    }
    
    #bookingAppointmentModal .appointment-modal-doctor {
        color: #041520;
        font-weight: 600;
        margin-bottom: 3px;
    }
    
    #bookingAppointmentModal .appointment-modal-doctor-position {
        color: #666;
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    #bookingAppointmentModal .appointment-modal-datetime {
        color: #1BA1F2;
        font-weight: 500;
        padding-top: 6px;
        margin-top: 4px;
        border-top: 1px solid #e0e0e0;
        margin-bottom: 4px;
    }
    
    #bookingAppointmentModal .appointment-modal-service {
        color: #041520;
        font-size: 13px;
        margin-top: 4px;
        margin-bottom: 2px;
    }
    
    #bookingAppointmentModal .appointment-modal-service-price {
        color: #1BA1F2;
        font-weight: 600;
        font-size: 14px;
        margin-top: 2px;
    }
    
    /* Стили для формы записи (как в снипете 50) */
    #bookingAppointmentModal .appointment-form-fields {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    #bookingAppointmentModal .appointment-form-group {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: relative;
        padding-top: 9px;
    }
    
    #bookingAppointmentModal .appointment-form-label {
        font-size: 14px;
        font-weight: 500;
        color: #041520;
        margin: 0;
        display: inline-block;
        width: auto;
        max-width: 100%;
        line-height: 1.2;
        position: absolute;
        top: 0;
        left: 10px;
        z-index: 1;
        background: #fff;
        padding: 0 6px;
        pointer-events: none;
    }
    
    #bookingAppointmentModal .appointment-form-label .required-star {
        color: #d32f2f;
        margin-left: 2px;
    }
    
    #bookingAppointmentModal .appointment-form-input {
        width: 100%;
        padding: 7px 10px;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        font-size: 16px;
        line-height: 1.5;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
        box-sizing: border-box;
        margin-top: 0;
        margin-bottom: 0;
        height: auto;
        min-height: 38px;
        min-width: 0;
    }
    
    #bookingAppointmentModal .appointment-form-input:focus {
        outline: none;
        border-color: #1BA1F2;
        box-shadow: 0 0 0 2px rgba(27, 161, 242, 0.1);
    }
    
    #bookingAppointmentModal .appointment-form-input.empty {
        border-color: #d32f2f;
        box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1);
    }
    
    #bookingAppointmentModal .appointment-form-input.empty:focus {
        border-color: #d32f2f;
        box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
    }
    
    #bookingAppointmentModal .appointment-form-row {
        display: flex;
        gap: 6px;
    }
    
    #bookingAppointmentModal .appointment-form-row .appointment-form-group {
        flex: 1;
        width: 100%;
        min-width: 0;
    }
    
    #bookingAppointmentModal .appointment-form-submit {
        width: 100%;
        padding: 10px;
        background-color: #1BA1F2;
        color: #fff;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.3s ease;
        margin-top: 4px;
        box-sizing: border-box;
    }
    
    #bookingAppointmentModal .appointment-form-submit:hover:not(:disabled) {
        background-color: #4DC160;
    }
    
    #bookingAppointmentModal .appointment-form-submit:disabled {
        background-color: #ccc;
        cursor: not-allowed;
        opacity: 0.6;
    }
    
    .appointment-form-note {
        font-size: 12px;
        color: #666;
        text-align: center;
        margin-top: 6px;
        margin-bottom: 0;
        line-height: 1.3;
    }
    
    /* Стили для поля поиска услуг */
    .services-search-wrapper {
        position: relative;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
    }
    .services-search-input {
        width: 100%;
        padding: 12px 40px 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 16px;
        transition: border-color 0.3s ease;
        box-sizing: border-box;
    }
    .services-search-input:focus {
        outline: none;
        border-color: #1BA1F2;
    }
    .services-search-clear {
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 24px;
        color: #999;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: color 0.2s ease;
    }
    .services-search-clear:hover {
        color: #333;
    }
    .services-search-icon {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        pointer-events: none;
        width: 20px;
        height: 20px;
    }
    .services-search-icon svg {
        width: 100%;
        height: 100%;
        fill: currentColor;
    }
    .price-service-item.hidden {
        display: none !important;
    }
