/*
 Theme Name:   Astra Child - Avom Academy
 Theme URI:    https://avom.academy
 Description:  Astra Child Theme for Avom Academy with conversion optimization features
 Author:       Avom Academy
 Author URI:   https://avom.academy
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
*/

/* ==========================================================================
   CONVERSION OPTIMIZATION STYLES
   ========================================================================== */

/* Top Bar - Click to Call */
.avom-top-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    padding: 8px 15px;
    text-align: center;
    font-size: 14px;
    position: relative;
    z-index: 9999;
}

.avom-top-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.avom-top-bar a:hover {
    text-decoration: underline;
}

.avom-top-bar .phone-icon {
    margin-right: 8px;
    animation: pulse-phone 2s infinite;
}

@keyframes pulse-phone {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Floating WhatsApp Button */
.avom-whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.avom-whatsapp-float .wa-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.avom-whatsapp-float .wa-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.avom-whatsapp-float .wa-button svg {
    width: 35px;
    height: 35px;
    fill: #fff;
}

.avom-whatsapp-float .wa-tooltip {
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.avom-whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Countdown Timer */
.avom-countdown-bar {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
}

.avom-countdown-bar .countdown-text {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.avom-countdown-bar .countdown-timer {
    display: inline-flex;
    gap: 8px;
}

.avom-countdown-bar .countdown-item {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 5px;
    min-width: 45px;
    text-align: center;
}

.avom-countdown-bar .countdown-item span {
    display: block;
}

.avom-countdown-bar .countdown-item .number {
    font-size: 18px;
    font-weight: 700;
}

.avom-countdown-bar .countdown-item .label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.9;
}

.avom-countdown-bar .enroll-btn {
    background: #fff;
    color: #ff6b35;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.avom-countdown-bar .enroll-btn:hover {
    background: #1e3a5f;
    color: #fff;
    transform: scale(1.05);
}

/* Lead Capture Popup */
.avom-lead-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.7) !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.avom-lead-popup-overlay.active {
    display: flex !important;
}

.avom-lead-popup {
    background: #fff !important;
    border-radius: 15px !important;
    max-width: 450px !important;
    width: 100% !important;
    position: relative !important;
    overflow: visible !important;
    animation: popupSlideIn 0.4s ease !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.avom-lead-popup .popup-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%) !important;
    color: #fff !important;
    padding: 25px 45px 25px 25px !important;
    text-align: center !important;
    position: relative !important;
}

.avom-lead-popup .popup-header h3 {
    margin: 0 0 5px 0 !important;
    font-size: 22px !important;
    color: #fff !important;
}

.avom-lead-popup .popup-header p {
    margin: 0 !important;
    opacity: 0.9 !important;
    font-size: 14px !important;
    color: #fff !important;
}

.avom-lead-popup .popup-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: rgba(255,255,255,0.3) !important;
    border: none !important;
    color: #fff !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-weight: normal !important;
    line-height: 1 !important;
    text-align: center !important;
    transition: background 0.3s !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
}

.avom-lead-popup .popup-close:hover {
    background: rgba(255,255,255,0.5) !important;
}

.avom-lead-popup .popup-body {
    padding: 25px !important;
    box-sizing: border-box !important;
}

.avom-lead-popup .form-group {
    margin-bottom: 15px !important;
}

.avom-lead-popup .form-group label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 14px !important;
}

.avom-lead-popup .form-group input,
.avom-lead-popup .form-group select {
    width: 100% !important;
    height: 48px !important;
    padding: 0 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    transition: border-color 0.3s !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
    color: #333 !important;
    line-height: 48px !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

.avom-lead-popup .form-group select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
    line-height: normal !important;
}

.avom-lead-popup .form-group input:focus,
.avom-lead-popup .form-group select:focus {
    border-color: #1e3a5f;
    outline: none;
}

.avom-lead-popup .submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avom-lead-popup .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.avom-lead-popup .popup-footer {
    text-align: center;
    padding: 0 25px 20px;
    font-size: 12px;
    color: #888;
}

/* Sticky CTA Button (Mobile) */
@media (max-width: 768px) {
    .avom-mobile-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px 15px;
        box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
        z-index: 99998;
        display: flex;
        gap: 10px;
    }
    
    .avom-mobile-cta a {
        flex: 1;
        text-align: center;
        padding: 12px;
        border-radius: 8px;
        font-weight: 700;
        text-decoration: none;
        font-size: 14px;
    }
    
    .avom-mobile-cta .cta-call {
        background: #1e3a5f;
        color: #fff;
    }
    
    .avom-mobile-cta .cta-whatsapp {
        background: #25D366;
        color: #fff;
    }
    
    .avom-whatsapp-float {
        bottom: 80px;
    }
    
    body {
        padding-bottom: 70px;
    }
}

/* Trust Badges */
.avom-trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
    background: #f8f9fa;
    margin: 20px 0;
}

.avom-trust-badges .badge-item {
    text-align: center;
    padding: 15px;
}

.avom-trust-badges .badge-item .badge-number {
    font-size: 36px;
    font-weight: 700;
    color: #1e3a5f;
    display: block;
}

.avom-trust-badges .badge-item .badge-text {
    font-size: 14px;
    color: #666;
}

/* Urgency Styles */
.avom-limited-seats {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
    font-weight: 600;
}

.avom-limited-seats .seats-icon {
    margin-right: 8px;
}

/* Form Success Message */
.avom-form-success {
    text-align: center;
    padding: 30px;
}

.avom-form-success .success-icon {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.avom-form-success .success-icon svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.avom-form-success h4 {
    color: #1e3a5f;
    margin-bottom: 10px;
}

.avom-form-success p {
    color: #666;
    margin: 0;
}
