/* ========================================================================
   Contact Page Styles
   ======================================================================== */

/* Outseta Chat Widget Positioning (Optional)
   ========================================================================
   Uncomment to move chat widget to left side instead of right
   ======================================================================== */

/*
.o--Trigger--trigger,
.o--App--chatWidget {
    right: auto !important;
    left: 20px !important;
}
*/

/* Strategy 2: Hide default Outseta chat button on Contact page
   ========================================================================
   Since we have a prominent "Start Chat" button in the contact methods,
   hide the default floating button to avoid confusion and provide
   a cleaner, more intentional UX.
   ======================================================================== */

/* Hide the default Outseta chat trigger button */
.o--Trigger--trigger {
    display: none !important;
}

/* ========================================================================
   Chat Widget Position Override - Better UX for Contact Page
   ======================================================================== */

/* Strategy A: Center the chat widget (recommended for contact page) */
.o--Widget--widget.o--App--chatWidget.o--App--mode-popup {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 20px !important;
    width: 400px !important;
    max-width: calc(100vw - 40px) !important;
}

/* Optional: Slightly larger on desktop for better visibility */
@media (min-width: 992px) {
    .o--Widget--widget.o--App--chatWidget.o--App--mode-popup {
        width: 450px !important;
        bottom: 40px !important;
    }
}

/* Mobile: Full width at bottom */
@media (max-width: 767.98px) {
    .o--Widget--widget.o--App--chatWidget.o--App--mode-popup {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        bottom: 0 !important;
        border-radius: 12px 12px 0 0 !important;
    }
}

/* ========================================================================
   Alternative Positioning Strategies (Commented Out)
   ======================================================================== 
   Uncomment one of these instead of the centered approach above
   ======================================================================== */

/* Strategy B: Left-aligned (mirrors email/phone/chat layout) */
/*
.o--Widget--widget.o--App--chatWidget.o--App--mode-popup {
    right: auto !important;
    left: 20px !important;
    bottom: 20px !important;
}
*/

/* Strategy C: Keep right but closer to contact section */
/*
.o--Widget--widget.o--App--chatWidget.o--App--mode-popup {
    right: 20px !important;
    bottom: 20px !important;
}
*/

/* Strategy D: Modal-style (centered and higher z-index) */
/*
.o--Widget--widget.o--App--chatWidget.o--App--mode-popup {
    right: auto !important;
    left: 50% !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 200000 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}
*/

/* Strategy E: Attach to contact methods section */
/*
.o--Widget--widget.o--App--chatWidget.o--App--mode-popup {
    position: absolute !important;
    right: auto !important;
    left: 50% !important;
    bottom: auto !important;
    top: 100% !important;
    transform: translateX(-50%) !important;
    margin-top: 20px !important;
}
*/

/* Particles.js Background Fix
   ========================================================================
   Makes particles.js act as a non-intrusive background layer that doesn't
   affect document flow or push content out of viewport.
   ======================================================================== */

/* Hero section with particles background */
.contact-hero {
    position: relative;
    /* Define explicit height to contain particles */
    min-height: 300px;
    /* Ensure proper stacking context */
    z-index: 1;
    /* Add padding for content spacing */
    padding: 80px 0 60px;
    /* Overflow hidden to prevent particles from expanding section */
    overflow: hidden;
}

/* Particles.js container - acts as background layer */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    /* Place behind all content */
    z-index: -1;
    /* Allow clicks to pass through to content below */
    pointer-events: none;
    /* Prevent particles from affecting layout */
    overflow: hidden;
}

/* Ensure content is above particles */
.contact-hero .container {
    position: relative;
    z-index: 1;
}

/* ========================================================================
   Contact Methods Cards
   ======================================================================== */

.contact-method-card {
    padding: 2rem 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    height: 100%;
}

.contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 74, 119, 0.1);
}

.contact-method-card svg {
    transition: transform 0.3s ease;
}

.contact-method-card:hover svg {
    transform: scale(1.1);
}

/* ========================================================================
   Join Our Growth Journey Section
   ======================================================================== */

.bg-gradient-light {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 74, 119, 0.15) !important;
}

.icon-box {
    transition: transform 0.3s ease;
}

.hover-lift:hover .icon-box {
    transform: rotate(5deg) scale(1.05);
}

/* Badge soft backgrounds */
.badge.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.badge.bg-primary-soft {
    background-color: rgba(0, 74, 119, 0.1);
    color: #004a77;
}

.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1);
}

/* Stat items */
.stat-item {
    padding: 1rem;
}

.stat-item h3 {
    font-size: 1.75rem;
}

/* ========================================================================
   Button Enhancements
   ======================================================================== */

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
    color: #000;
}

/* ========================================================================
   Responsive Adjustments
   ======================================================================== */

@media (max-width: 767.98px) {
    .contact-hero {
        min-height: 250px;
        padding: 60px 0 40px;
    }

    .contact-method-card {
        margin-bottom: 2rem;
    }

    .icon-box {
        width: 60px !important;
        height: 60px !important;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .contact-hero {
        min-height: 200px;
        padding: 40px 0 30px;
    }

    .icon-box {
        width: 50px !important;
        height: 50px !important;
    }
}
