/* TrustPlus Customizations CSS */

/* Desktop Video Button Styles */
.trustplus-video-btn {
    background: #007cba;
    color: white !important;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    margin-right: 15px;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.trustplus-video-btn:hover {
    background: #005a87;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.trustplus-video-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Video Button Container */
.trustplus-video-btn-container {
    display: inline-block;
    margin-right: 15px;
}

/* Video Popup Styles */
.trustplus-video-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.trustplus-video-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trustplus-video-close {
    position: absolute;
    top: -40px;
    right: 10px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.trustplus-video-close:hover {
    color: #ccc;
}

.trustplus-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.trustplus-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Body class when popup is open */
body.popup-open {
    overflow: hidden !important;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Hide desktop-only elements on mobile */
    .desktop-only {
        display: none !important;
    }
    
    /* Enhanced button styling for mobile */
    .wp-block-button__link,
    .btn,
    button[type="submit"],
    input[type="submit"],
    .button,
    a.button,
    .wpcf7-form-control.wpcf7-submit {
        padding: 15px 30px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 5px !important;
        min-height: 50px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
        width: auto !important;
        max-width: 100% !important;
    }
    
    /* Video button adjustments for mobile */
    .trustplus-video-btn {
        margin-right: 10px;
        margin-bottom: 10px;
        width: auto;
        min-width: 160px;
    }
    
    .trustplus-video-btn-container {
        margin-right: 10px;
        margin-bottom: 10px;
    }
    
    /* Mobile popup adjustments */
    .trustplus-video-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .trustplus-video-close {
        top: -30px;
        right: 5px;
        font-size: 30px;
    }
    
    /* Remove extra blue covers/overlays on mobile */
    .site-header + .blue-overlay,
    .header-overlay,
    .top-header-overlay,
    .hero-overlay,
    .page-header-overlay,
    .hero-section::before,
    .header-bg-overlay {
        display: none !important;
    }
    
    /* Additional header cleanup */
    .site-header::after,
    .main-header::after,
    .primary-header::after,
    .header::after {
        display: none !important;
    }
    
    /* Remove any blue background overlays */
    .elementor-section-overlay,
    .elementor-background-overlay {
        background: transparent !important;
    }
    
    /* Specific targeting for common WordPress themes */
    .entry-header::before,
    .page-header::before,
    .site-main::before {
        display: none !important;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .trustplus-video-content {
        width: 85%;
        margin: 8% auto;
    }
}

/* Large screen styles */
@media (min-width: 1200px) {
    .trustplus-video-content {
        max-width: 900px;
    }
}

/* Desktop/Mobile Utility Classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}