.white-popup {
    position: relative;
    background: #fff;
    padding: 40px 30px 30px;
    width: auto;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.white-popup .mfp-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 24px;
    height: 24px;
    opacity: 0.7;
    font-size: 0;
    transition: opacity 0.2s;
}

.white-popup .mfp-close:hover {
    opacity: 1;
}

.white-popup .mfp-close:before,
.white-popup .mfp-close:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #333;
}

.white-popup .mfp-close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.white-popup .mfp-close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.diag-message {
    color: #333;
    line-height: 1.5;
    font-size: 16px;
}

.diag-message strong {
    color: #000;
    font-size: 18px;
    display: block;
    margin-bottom: 15px;
}

.diag-message br {
    display: block;
    content: '';
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .white-popup {
        width: 90%;
        padding: 30px 20px 20px;
        margin: 10px auto;
    }

    .white-popup .mfp-close {
        right: 10px;
        top: 10px;
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .white-popup {
        padding: 25px 15px 15px;
    }

    .diag-message {
        font-size: 14px;
    }
}


.diagnostics-modal-fallback {
    position: fixed;
    z-index: 100000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
}

.diagnostics-modal-fallback .white-popup {
    margin: 0 auto;
}


#diagnostics_book .check-time__item.blocked,
#diagnostics_book .check-time__item.blocked label,
#diagnostics_book .check-time__item.blocked span {
    cursor: not-allowed;
}

#diagnostics_book .check-time__item.blocked span {
    background: #e5e5e5;
    border-color: #e5e5e5;
    color: #999;
}

#diagnostics_book .check-time__item.blocked input {
    pointer-events: none;
}

#diagnostics_book .enroll__item.diagnostics-invalid {
    box-shadow: 0 0 0 2px #d82929;
}

#diagnostics_book .diagnostics-validation-message {
    margin: 20px 0 0;
    color: #d82929;
    text-align: center;
}

