/* 
 * floating-cta.css
 * Styles for the floating call-to-action button
 */

/* Floating CTA Button with better cross-browser positioning */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    display: none; /* Hidden initially, shown with scroll */
}

.floating-button {
    display: block;
    background-color: #ff6600;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-align: center;
    font-weight: bold;
    -webkit-box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    font-size: 1rem;
    white-space: nowrap;
    text-decoration: none;
}

.floating-button:hover {
    background-color: #e65c00;
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
    color: white;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Fix for iPhone X and newer models with notch */
@supports (padding: max(0px)) {
    .floating-cta {
        bottom: max(30px, env(safe-area-inset-bottom));
        right: max(30px, env(safe-area-inset-right));
    }
}

/* For print */
@media print {
    .floating-cta {
        display: none !important;
    }
}