/* ===== СТИЛИ МОДАЛЬНОГО ОКНА ===== */
.jivo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.jivo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.jivo-modal-content {
    background: var(--white, #ffffff);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    border: 1px solid var(--light-gray, #e8e4df);
}

.jivo-modal-overlay.active .jivo-modal-content {
    transform: translateY(0) scale(1);
}

.jivo-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--light, #f8f6f3);
    color: var(--dark, #1a1a2e);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding-bottom: 4px;
}

.jivo-modal-close:hover {
    background: var(--main, #A8453B);
    color: white;
    transform: rotate(90deg);
}

.jivo-modal-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark, #1a1a2e);
    margin-bottom: 8px;
    margin-top: 0;
}

.jivo-modal-content > p {
    color: var(--gray, #6b6b6b);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.jivo-form-group {
    margin-bottom: 16px;
}

.jivo-form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray, #e8e4df);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s;
    background: var(--white, #ffffff);
    color: var(--dark, #1a1a2e);
}

.jivo-form-group input:focus {
    outline: none;
    border-color: var(--main, #A8453B);
    box-shadow: 0 0 0 3px rgba(168, 69, 59, 0.1);
}

.jivo-form-group input::placeholder {
    color: #aaa;
}

.jivo-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--main, #A8453B);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.jivo-submit-btn:hover {
    background: var(--main-dark, #8a3830);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 69, 59, 0.3);
}

.jivo-privacy {
    margin-top: 16px;
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
    line-height: 1.4;
}

.jivo-privacy a {
    color: var(--main, #A8453B);
    text-decoration: underline;
}

/* ===== TOAST УВЕДОМЛЕНИЕ ===== */
.jivo-toast {
    position: fixed;
    top: 90px;
    right: 20px;
    background: var(--dark, #1a1a2e);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 320px;
    border-left: 4px solid var(--main, #A8453B);
}

.jivo-toast.show {
    transform: translateX(0);
}

/* ===== КАСТОМНАЯ КНОПКА JIVO ===== */
.jivo-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
}

/* Адаптив */
@media (max-width: 480px) {
    .jivo-modal-content {
        padding: 28px 20px;
        border-radius: 20px;
    }
    
    .jivo-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        top: auto;
        bottom: 100px;
        transform: translateY(120%);
    }
    
    .jivo-toast.show {
        transform: translateY(0);
    }
}
