/* Callback Widget Styles */
.callback-widget {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: callbackFadeIn 0.3s ease-out;
}

.callback-widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.callback-widget-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: callbackSlideUp 0.4s ease-out;
    z-index: 10001;
}

.callback-widget-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    opacity: 0.7;
}

.callback-widget-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.callback-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    text-align: center;
}

.callback-description {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 30px 0;
    text-align: center;
}

.callback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.callback-input-wrapper {
    position: relative;
}

.callback-phone-input {
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: #fff;
    color: #1a1a1a;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.callback-phone-input:focus {
    outline: none;
    border-color: #ff006e;
    box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.1);
}

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

.callback-input-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

.callback-cta-button {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff006e 0%, #ff4da6 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.callback-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.4);
}

.callback-cta-button:active {
    transform: translateY(0);
}

.callback-cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.callback-trust-text {
    font-size: 13px;
    color: #b0b0b0;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

.callback-trust-text #callback-timer {
    color: #ff006e;
    font-weight: 600;
}

/* Success State */
#callback-success-container {
    text-align: center;
}

.callback-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: callbackBounce 0.6s ease-out;
}

.callback-success-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.callback-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.callback-countdown-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ff006e;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 110, 0.1);
    position: relative;
}

.callback-countdown-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #ff006e;
    animation: callbackRotate 1s linear infinite;
}

#callback-countdown-number {
    font-size: 36px;
    font-weight: 700;
    color: #ff006e;
    z-index: 1;
}

.callback-countdown-text {
    color: #b0b0b0;
    font-size: 14px;
    margin: 0;
}

/* Animations */
@keyframes callbackFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes callbackSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes callbackBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes callbackRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Плавающая кнопка с телефоном (справа снизу) */
.callback-floating-button {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, #ff006e 0%, #ff4da6 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 20px rgba(255, 0, 110, 0.4) !important;
    transition: all 0.3s ease !important;
    animation: callbackPhonePulse 2s ease-in-out infinite !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.callback-floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 0, 110, 0.6);
}

.callback-phone-icon {
    color: #fff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.callback-phone-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: callbackPhoneRing 2s ease-in-out infinite;
}

@keyframes callbackPhonePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes callbackPhoneRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .callback-floating-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .callback-phone-icon {
        width: 24px;
        height: 24px;
    }
    
    .callback-widget-content {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .callback-title {
        font-size: 24px;
    }
    
    .callback-description {
        font-size: 14px;
    }
    
    .callback-phone-input {
        font-size: 16px;
        padding: 16px;
    }
    
    .callback-cta-button {
        padding: 16px;
        font-size: 16px;
    }
}
