/**
 * Dropdown & Interactive Component Fixes
 * Ensures billing cycle dropdowns work properly
 */

/* ============================================
   BILLING CYCLE DROPDOWN FIX
   ============================================ */

/* Ensure dropdown menus display */
.btn-group {
    position: relative !important;
}

.btn-group .dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    margin-top: 4px !important;
}

.btn-group.show .dropdown-menu,
.btn-group .dropdown-toggle:focus+.dropdown-menu,
.btn-group .dropdown-menu:hover {
    display: block !important;
}

/* Dropdown toggle button */
.dropdown-toggle {
    cursor: pointer !important;
    user-select: none !important;
}

.dropdown-toggle:hover {
    background: rgba(0, 255, 136, 0.1) !important;
}

/* Dropdown menu items */
.dropdown-menu li {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.dropdown-menu li:hover {
    background: rgba(0, 255, 136, 0.15) !important;
}

.dropdown-menu li a {
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
}

/* Hide/show pricing based on selection */
.pricing_main {
    display: block !important;
}

.pricing_main.w-hidden {
    display: none !important;
}

/* ============================================
   DISABLE EXCESSIVE TILT ON CARDS
   ============================================ */

/* Remove or reduce tilt effect */
.card-tilt {
    transform: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card-tilt:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3) !important;
}

/* Pricing cards should have minimal movement */
.pricing-card {
    transform: none !important;
}

.pricing-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 50px rgba(0, 255, 136, 0.4) !important;
}

/* ============================================
   ACCORDION FUNCTIONALITY
   ============================================ */

/* Accordion items */
.accordion li h5 {
    cursor: pointer !important;
    user-select: none !important;
    transition: color 0.3s ease !important;
}

.accordion li h5:hover {
    color: var(--neon-green) !important;
}

.accordion li.active h5 {
    color: var(--neon-green) !important;
}

.accordion li p {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.5s ease, padding 0.5s ease !important;
}

.accordion li.active p {
    max-height: 500px !important;
    display: block !important;
}

/* Icon rotation on accordion */
.accordion li h5 i {
    transition: transform 0.3s ease, color 0.3s ease !important;
}

.accordion li.active h5 i {
    transform: rotate(45deg) !important;
    color: var(--neon-red) !important;
}

/* ============================================
   BUTTON GROUP JAVASCRIPT SUPPORT
   ============================================ */

/* Ensure button groups work with JS */
.billinging_wrapr {
    cursor: pointer !important;
}

.billinging_wrapr.active {
    background: rgba(0, 255, 136, 0.2) !important;
}

/* ============================================
   FAQ ACCORDION - NEW INTERACTIVE DESIGN
   ============================================ */

/* FAQ item interactions */
.faq-item {
    transition: all 0.3s ease !important;
}

.faq-item:hover {
    border-color: var(--neon-green) !important;
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.2) !important;
}

.faq-item.active {
    border-color: var(--neon-green) !important;
    background: rgba(20, 20, 30, 0.8) !important;
}

/* FAQ question hover */
.faq-question:hover h5 {
    color: var(--neon-green) !important;
}

.faq-item.active .faq-question h5 {
    color: var(--neon-green) !important;
}

/* FAQ answer expand */
.faq-item.active .faq-answer {
    max-height: 500px !important;
}

/* FAQ icon rotation */
.faq-icon.rotated i {
    transform: rotate(45deg) !important;
    color: var(--neon-red) !important;
}

.faq-item.active .faq-icon {
    background: rgba(255, 0, 85, 0.1) !important;
    border-color: var(--neon-red) !important;
}