/* BunchSpeed Conversion Optimization Styles */

/* ==========================================================================
   STICKY CTA BUTTON
   ========================================================================== */

.sticky-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideInUp 0.5s ease-out;
}

.sticky-cta-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.sticky-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    border-color: #fbbf24;
}

.sticky-cta-icon {
    font-size: 16px;
    animation: pulse 2s infinite;
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sticky-cta {
        bottom: 15px;
        right: 15px;
    }
    
    .sticky-cta-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .sticky-cta-text {
        display: none;
    }
    
    .sticky-cta-icon {
        font-size: 18px;
    }
}

/* ==========================================================================
   FREE GUIDE TOP STRIP
   ========================================================================== */

.free-guide-strip {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    padding: 8px 0;
    position: relative;
    z-index: 1000;
    border-bottom: 2px solid #dc2626;
    animation: slideInDown 0.5s ease-out;
}

.strip-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.strip-text {
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.strip-button {
    background: #dc2626;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.strip-button:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.strip-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 5px;
    line-height: 1;
}

.strip-close:hover {
    opacity: 1;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile strip adjustments */
@media (max-width: 768px) {
    .strip-content {
        flex-direction: column;
        gap: 8px;
        padding: 0 45px;
    }
    
    .strip-text {
        font-size: 13px;
    }
    
    .strip-button {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .strip-close {
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ==========================================================================
   EXIT INTENT MODAL
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    z-index: 1;
    padding: 5px;
    line-height: 1;
}

.modal-close:hover {
    color: #dc2626;
}

.modal-header {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    padding: 30px 25px 25px;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.modal-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.modal-subtitle {
    color: #ccc;
    font-size: 0.95rem;
    margin: 0;
}

.modal-body {
    padding: 25px;
}

.modal-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.modal-benefits li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: #444;
    line-height: 1.5;
}

.modal-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: bold;
    font-size: 16px;
}

.modal-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.modal-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.modal-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.modal-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-submit-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.modal-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile modal adjustments */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 25px 20px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-benefits li {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   NAVBAR ADJUSTMENTS FOR TOP STRIP
   ========================================================================== */

/* Add top margin to main content when strip is visible */
.free-guide-strip + .navbar + * {
    margin-top: 50px;
}

/* Adjust fixed navbar when strip is present */
.free-guide-strip + .navbar {
    top: 42px;
}

@media (max-width: 768px) {
    .free-guide-strip + .navbar {
        top: 60px;
    }
    
    .free-guide-strip + .navbar + * {
        margin-top: 70px;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Hide elements when JavaScript is disabled */
.no-js .sticky-cta,
.no-js .free-guide-strip,
.no-js .modal-overlay {
    display: none !important;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Focus styles for accessibility */
.sticky-cta-button:focus,
.strip-button:focus,
.modal-submit-btn:focus,
.modal-input:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}