/* ====================================================================
   🔵 MULTITOUR PROJECT - admin.otelgroup.info - PORT 8001
   📞 Callback Widget - "Перезвоните мне"
   ==================================================================== */

/* Плавающая кнопка */
.callback-widget-button {
    position: fixed;
    bottom: 20px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--callback-color, #ff6b35);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.callback-widget-button.left {
    left: 20px;
}

.callback-widget-button.right {
    right: 20px;
}

.callback-widget-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Иконка телефона */
.callback-widget-button svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Пульсация */
.callback-widget-button.pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--callback-color, #ff6b35);
    animation: callbackPulse 2s infinite;
    z-index: -1;
}

@keyframes callbackPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Модальное окно */
.callback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.callback-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.callback-modal {
    background: white;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.callback-modal-overlay.active .callback-modal {
    transform: translateY(0);
}

/* Шапка модального окна */
.callback-modal-header {
    background: var(--callback-color, #ff6b35);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.callback-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.callback-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
}

.callback-modal-close:hover {
    opacity: 1;
}

/* Тело модального окна */
.callback-modal-body {
    padding: 24px;
}

.callback-modal-text {
    color: #333;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
}

/* Изображение телефона */
.callback-phone-image {
    text-align: center;
    margin-bottom: 20px;
}

.callback-phone-image img {
    max-width: 120px;
    height: auto;
}

/* Форма */
.callback-form-group {
    margin-bottom: 16px;
}

.callback-form-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.callback-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.callback-form-input:focus {
    outline: none;
    border-color: var(--callback-color, #ff6b35);
}

.callback-form-input::placeholder {
    color: #999;
}

/* Чекбокс согласия */
.callback-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}

.callback-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--callback-color, #ff6b35);
}

.callback-consent a {
    color: var(--callback-color, #ff6b35);
    text-decoration: none;
}

.callback-consent a:hover {
    text-decoration: underline;
}

/* Кнопка отправки */
.callback-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--callback-color, #ff6b35);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.callback-submit-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.callback-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Сообщение успеха */
.callback-success {
    text-align: center;
    padding: 40px 20px;
}

.callback-success-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.callback-success-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.callback-success-text {
    color: #666;
    font-size: 14px;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .callback-widget-button {
        width: 54px;
        height: 54px;
        bottom: 15px;
    }
    
    .callback-widget-button.left {
        left: 15px;
    }
    
    .callback-widget-button.right {
        right: 15px;
    }
    
    .callback-modal {
        width: 95%;
        margin: 10px;
    }
    
    .callback-modal-body {
        padding: 20px;
    }
}

/* Скрытие виджета */
.callback-widget-hidden {
    display: none !important;
}

/* Дополнительные стили для JS-генерируемых элементов */
.callback-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.callback-input:focus {
    outline: none;
    border-color: var(--callback-color, #ff6b35);
}

.callback-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.callback-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--callback-color, #ff6b35);
    flex-shrink: 0;
}

.callback-submit {
    width: 100%;
    padding: 16px;
    background: var(--callback-color, #ff6b35);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.callback-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.callback-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.callback-modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.callback-modal-icon svg {
    width: 28px;
    height: 28px;
}

.callback-success-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 40px;
}
