.cb-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.cb-modal-overlay.active {
    display: flex;
}
.cb-modal {
    display: flex;
    background: #fff;
    border-radius: 20px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: cbSlideIn 0.3s ease-out;
}
@keyframes cbSlideIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.cb-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cb-close:hover {
    background: #fff;
    color: #0f172a;
    transform: scale(1.1);
}

/* Sidebar */
.cb-sidebar {
    width: 320px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 32px;
    display: flex;
    flex-direction: column;
    color: #fff;
}
.cb-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.cb-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 8px;
}
.cb-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
}
.cb-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: auto;
}
.cb-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.cb-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #60a5fa;
}
.cb-feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cb-feature-text strong {
    font-size: 0.9rem;
    font-weight: 600;
}
.cb-feature-text span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}
.cb-stats {
    display: flex;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 32px;
}
.cb-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
}
.cb-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

/* Form Section */
.cb-form-section {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
}
.cb-form-header {
    margin-bottom: 24px;
}
.cb-form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}
.cb-form-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}
.cb-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cb-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
}
.cb-field label span {
    color: #ef4444;
}
.cb-field input {
    padding: 14px 16px;
    font-size: 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s;
    background: #f8fafc;
}
.cb-field input:focus {
    border-color: #0285ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(2, 133, 255, 0.1);
}
.cb-field input::placeholder {
    color: #94a3b8;
}
.cb-submit {
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #0285ff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}
.cb-submit:hover {
    background: #0070e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 133, 255, 0.3);
}
.cb-privacy {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin: 0;
}
.cb-privacy a {
    color: #0285ff;
    text-decoration: none;
}
.cb-privacy a:hover {
    text-decoration: underline;
}

/* Divider */
.cb-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}
.cb-divider::before,
.cb-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.cb-divider span {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* Contacts */
.cb-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cb-contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.cb-phone-btn {
    background: #f1f5f9;
    color: #334155;
    flex: 1;
    justify-content: center;
}
.cb-phone-btn:hover {
    background: #e2e8f0;
}
.cb-messengers {
    display: flex;
    gap: 8px;
}
.cb-messenger {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.cb-tg { background: #e7f5ff; color: #0088cc; }
.cb-tg:hover { background: #0088cc; color: #fff; }
.cb-vb { background: #f3eeff; color: #7360f2; }
.cb-vb:hover { background: #7360f2; color: #fff; }
.cb-wa { background: #e8f8ee; color: #25d366; }
.cb-wa:hover { background: #25d366; color: #fff; }

/* Mobile */
@media (max-width: 768px) {
    .cb-modal {
        flex-direction: column;
        max-height: 95vh;
    }
    .cb-sidebar {
        width: 100%;
        padding: 24px;
    }
    .cb-features {
        display: none;
    }
    .cb-stats {
        margin-top: 16px;
        padding-top: 16px;
    }
    .cb-form-section {
        padding: 24px;
    }
    .cb-contacts {
        flex-direction: column;
    }
    .cb-phone-btn {
        width: 100%;
    }
    .cb-messengers {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .cb-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .cb-modal {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
    }
    .cb-sidebar {
        padding: 20px;
    }
    .cb-form-section {
        padding: 20px;
    }
}
