/**
 * WESTELECOM Conversion Elements CSS
 * Стилі для конверсійних елементів: sticky bar, social proof, multi-step form
 * 
 * @version 1.0
 * @date 29.11.2025
 */

/* ===== STICKY COUNTDOWN BAR ===== */
.sticky-promo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #E91E8C 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-promo-bar.visible {
    transform: translateY(0);
}

.sticky-promo-bar .promo-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sticky-promo-bar .promo-text {
    font-size: 14px;
    font-weight: 600;
}

.sticky-promo-bar .promo-timer {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.sticky-promo-bar .promo-btn {
    background: #fff;
    color: #E91E8C;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.sticky-promo-bar .promo-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.sticky-promo-bar .promo-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    margin-left: 10px;
}

.sticky-promo-bar .promo-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .sticky-promo-bar .promo-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .sticky-promo-bar .promo-text {
        font-size: 12px;
    }
}

/* ===== SOCIAL PROOF TOAST ===== */
.social-proof-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    max-width: 320px;
    transform: translateX(-120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #10b981;
}

.social-proof-toast.visible {
    transform: translateX(0);
}

.social-proof-toast .toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.social-proof-toast .toast-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.social-proof-toast .toast-name {
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
}

.social-proof-toast .toast-location {
    font-size: 12px;
    color: #6b7280;
}

.social-proof-toast .toast-message {
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}

.social-proof-toast .toast-time {
    font-size: 11px;
    color: #9ca3af;
}

.social-proof-toast .toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .social-proof-toast {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 80px;
    }
}

/* ===== MULTI-STEP FORM ===== */
.multi-step-form {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.multi-step-form .form-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.multi-step-form .form-step.active {
    display: block;
}

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

.multi-step-form .step-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.multi-step-form .form-group {
    margin-bottom: 16px;
}

.multi-step-form .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.multi-step-form .form-control:focus {
    outline: none;
    border-color: #E91E8C;
}

.multi-step-form .form-row {
    display: flex;
    gap: 12px;
}

.multi-step-form .form-row .form-group {
    flex: 1;
}

.multi-step-form .step-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #E91E8C 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.multi-step-form .step-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 30, 140, 0.4);
}

.multi-step-form .step-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Step 2: Checking Animation */
.multi-step-form .checking-animation {
    text-align: center;
    padding: 40px 0;
}

.multi-step-form .checking-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e5e7eb;
    border-top-color: #E91E8C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.multi-step-form .checking-text {
    font-size: 16px;
    color: #6b7280;
}

/* Step 2: Success */
.multi-step-form .coverage-success {
    text-align: center;
    padding: 20px 0;
}

.multi-step-form .success-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.multi-step-form .success-title {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 8px;
}

.multi-step-form .success-address {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* Step 4: Thank You */
.multi-step-form .thank-you {
    text-align: center;
    padding: 30px 0;
}

.multi-step-form .thank-you-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.multi-step-form .thank-you-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.multi-step-form .thank-you-text {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 16px;
}

.multi-step-form .thank-you-bonus {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    display: inline-block;
}

/* ===== SCARCITY & LIVE COUNTER ===== */
.conversion-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(30, 58, 95, 0.1);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a5f;
}

.stat-badge.scarcity {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stat-badge .stat-icon {
    font-size: 16px;
}

.stat-badge .stat-number {
    font-weight: 800;
}

/* ===== EXIT INTENT POPUP ===== */
.exit-intent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.exit-intent-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.exit-intent-popup {
    background: #fff;
    border-radius: 20px;
    max-width: 440px;
    margin: 20px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.exit-intent-overlay.visible .exit-intent-popup {
    transform: scale(1);
}

.exit-intent-popup .popup-header {
    background: linear-gradient(135deg, #E91E8C 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
    position: relative;
}

.exit-intent-popup .popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.8;
}

.exit-intent-popup .popup-close:hover {
    opacity: 1;
}

.exit-intent-popup .popup-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.exit-intent-popup .popup-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.exit-intent-popup .popup-subtitle {
    font-size: 15px;
    opacity: 0.9;
}

.exit-intent-popup .popup-body {
    padding: 30px;
    text-align: center;
}

.exit-intent-popup .popup-offer {
    font-size: 15px;
    color: #374151;
    margin-bottom: 16px;
    line-height: 1.6;
}

.exit-intent-popup .popup-offer strong {
    color: #E91E8C;
}

.exit-intent-popup .popup-scarcity {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.exit-intent-popup .popup-form {
    margin-bottom: 16px;
}

.exit-intent-popup .popup-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #E91E8C;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.exit-intent-popup .popup-input:focus {
    outline: none;
    border-color: #764ba2;
}

.exit-intent-popup .popup-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #E91E8C 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.exit-intent-popup .popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 30, 140, 0.4);
}

.exit-intent-popup .popup-decline {
    margin-top: 16px;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
    text-decoration: underline;
}

.exit-intent-popup .popup-decline:hover {
    color: #6b7280;
}

/* ===== PROGRESS INDICATOR ===== */
.step-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.step-progress .step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.3s;
}

.step-progress .step-dot.active {
    background: #E91E8C;
    transform: scale(1.2);
}

.step-progress .step-dot.completed {
    background: #10b981;
}


/* ===== STYLISH ICONS FOR GIGABIT PAGES (11.12.2025) ===== */

/* Icon containers with gradient backgrounds */
.icon-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.icon-gradient:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Pink gradient */
.icon-pink {
    background: linear-gradient(135deg, #E91E8C 0%, #ff6bb3 100%);
    color: white;
}

/* Purple gradient */
.icon-purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #a78bfa 100%);
    color: white;
}

/* Green gradient */
.icon-green {
    background: linear-gradient(135deg, #10B981 0%, #34d399 100%);
    color: white;
}

/* Blue gradient */
.icon-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #60a5fa 100%);
    color: white;
}

/* Orange gradient */
.icon-orange {
    background: linear-gradient(135deg, #F59E0B 0%, #fbbf24 100%);
    color: white;
}

/* Cyan gradient */
.icon-cyan {
    background: linear-gradient(135deg, #06B6D4 0%, #22d3ee 100%);
    color: white;
}

/* Dark elegant */
.icon-dark {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

/* Glass effect */
.icon-glass {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(233,30,140,0.2);
    color: #E91E8C;
}

/* Animated pulse for important icons */
.icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(233,30,140,0.2); }
    50% { box-shadow: 0 4px 25px rgba(233,30,140,0.4); }
}

/* Floating animation */
.icon-float {
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Stylish feature badges */
.feature-badge-styled {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(252,231,243,0.9) 100%);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #E91E8C, #8B5CF6) 1;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 4px 20px rgba(233,30,140,0.15);
    transition: all 0.3s;
}

.feature-badge-styled:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(233,30,140,0.25);
}

.feature-badge-styled .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #E91E8C, #8B5CF6);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

/* Minimalist line icons style */
.icon-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.3s;
}

.icon-line:hover {
    background: currentColor;
    color: white;
}

/* Stats cards with icons */
.stat-card-styled {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.stat-card-styled:hover {
    border-color: #E91E8C;
    box-shadow: 0 8px 30px rgba(233,30,140,0.15);
    transform: translateY(-3px);
}

.stat-card-styled .stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #E91E8C 0%, #8B5CF6 100%);
    border-radius: 12px;
    color: white;
    font-size: 20px;
}

.stat-card-styled .stat-content {
    display: flex;
    flex-direction: column;
}

.stat-card-styled .stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #E91E8C;
    line-height: 1;
}

.stat-card-styled .stat-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

/* Enhanced Why Icons for gigabit-promo (11.12.2025) */
.giga-why-icon.icon-gradient {
    width: 70px !important;
    height: 70px !important;
    font-size: 28px !important;
    margin-bottom: 24px !important;
    border-radius: 20px !important;
}

/* Enhanced section emoji */
.giga-section-emoji {
    font-size: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* Review stars with gradient */
.giga-review-stars {
    background: linear-gradient(135deg, #F59E0B 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Complex card icons */
.giga-complex-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E91E8C 0%, #8B5CF6 100%);
    border-radius: 14px;
    color: white;
    font-size: 22px;
    margin: 0 auto 12px;
    box-shadow: 0 4px 15px rgba(233,30,140,0.25);
    transition: all 0.3s;
}

.giga-complex-card:hover .giga-complex-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(233,30,140,0.35);
}

/* Gift badge pulse */
.giga-gift-badge {
    animation: giftPulse 2s ease-in-out infinite;
}

@keyframes giftPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(245,158,11,0.3); }
    50% { box-shadow: 0 4px 25px rgba(245,158,11,0.5); }
}

/* Promo banner elegant */
.giga-promo-banner {
    position: relative;
    overflow: hidden;
}

.giga-promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: bannerShine 3s ease-in-out infinite;
}

@keyframes bannerShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}
