/* Минималистичная плавающая форма обратной связи */

/* ===== ОСНОВНАЯ КНОПКА ===== */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a6cf7 0%, #6a8aff 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.3);
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: none;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(74, 108, 247, 0.4);
}

/* Пульсация для привлечения внимания */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.floating-contact-btn.pulse {
    animation: pulse 2s infinite;
}

/* ===== МИНИМАЛИСТИЧНАЯ ФОРМА ===== */
.floating-contact-minimal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.floating-contact-minimal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Контейнер иконок */
.minimal-icons {
    display: flex;
    gap: 15px;
    flex-direction: column; //вертикально
}

/* Стили иконок */
.minimal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
}

/* Цвета иконок */
.minimal-icon.telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
}

.minimal-icon.vk {
    background: linear-gradient(135deg, #4C75A3 0%, #3A5F8A 100%);
}

.minimal-icon.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
}

.minimal-icon.call {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
}

.minimal-icon.close {
    background: linear-gradient(135deg, #888 0%, #666 100%);
    font-size: 1.2rem;
}

/* Эффекты при наведении */
.minimal-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Подсказки при наведении */
.minimal-icon::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10000;
}

.minimal-icon:hover::after {
    opacity: 1;
}

/* ===== ВСПЛЫВАЮЩЕЕ ОКОШЕЧКО ===== */
.popup-callback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-callback.active {
    opacity: 1;
    visibility: visible;
}

/* Контент попапа */
.popup-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: popupAppear 0.4s ease;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Кнопка закрытия попапа */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

/* Заголовок попапа */
.popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.popup-header i {
    font-size: 3rem;
    color: #FF6B6B;
    margin-bottom: 15px;
    display: block;
}

.popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Форма в попапе */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Кнопка отправки */
.popup-submit {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.popup-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.popup-submit:active {
    transform: translateY(-1px);
}

/* Информация в попапе */
.popup-info {
    margin-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.popup-info i {
    color: #4a6cf7;
    margin-right: 8px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .floating-contact-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .floating-contact-minimal {
        bottom: 85px;
        right: 20px;
        padding: 15px;
    }
    
    .minimal-icons {
        gap: 10px;
    }
    
    .minimal-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .popup-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .popup-header h3 {
        font-size: 1.3rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .minimal-icons {
        justify-content: center;
    }
    
    .floating-contact-minimal {
        right: 50%;
        transform: translateX(50%) translateY(20px);
    }
    
    .floating-contact-minimal.active {
        
    }
}