/* Cro Faq Module
 * Block 1
 * ------------------------------------------------------------------------------------------------------------------ */

.cro-faq {
padding: 2rem 1rem;
background: white;
position: relative;
}

/* ===== COMPACT TRUST BADGES (Horizontal) ===== */
.trust-badges-inline {
display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
margin-bottom: 1.25rem;
flex-wrap: wrap;
}

.trust-badge {
display: flex;
align-items: center;
gap: 0.5rem;
background: color-mix(in srgb, var(--brand-green, #10B981) 8%, white);
padding: 0.5rem 0.875rem;
border-radius: 50px;
font-size: 0.8rem;
font-weight: 600;
color: var(--color-secondary-normal-bg, #1a1a2e);
border: 1px solid color-mix(in srgb, var(--brand-green, #10B981) 25%, transparent);
transition: all 0.2s ease;
}

.trust-icon {
font-size: 0.9rem;
display: flex;
align-items: center;
justify-content: center;
}

/* SVG Trust Icons */
.trust-icon-svg svg {
width: 16px;
height: 16px;
stroke: var(--brand-green, #10B981);
stroke-width: 2.5;
fill: none;
flex-shrink: 0;
}

.trust-text {
white-space: nowrap;
}

/* ===== SECTION HEADER ===== */
/* .cro-faq .section-header {
text-align: center;
margin-bottom: 1.75rem;
position: relative;
} */

/* .cro-faq .section-title {
font-size: 1.75rem;
font-weight: 800;
color: var(--color-secondary-normal-bg);
margin-bottom: 0.5rem;
letter-spacing: -0.02em;
}

.cro-faq .section-subtitle {
font-size: 0.95rem;
color: var(--gray-600);
max-width: 500px;
margin: 0 auto 1rem;
} */

/* ===== LIVE ACTIVITY INDICATOR (CRO: Social Proof) ===== */
.live-activity {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: rgba(196, 30, 58, 0.05);
padding: 0.4rem 0.85rem;
border-radius: 50px;
font-size: 0.75rem;
color: var(--success);
font-weight: 600;
margin-bottom: 1.25rem;
border: 1px solid color-mix(in srgb, var(--success) 85%, transparent);
}

.pulse-dot {
width: 6px;
height: 6px;
background: var(--color-primary-normal-bg);
border-radius: 50%;
animation: pulse 2s ease-in-out infinite;
}

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

.activity-text {
white-space: nowrap;
}

/* ===== FAQ FILTERS ===== */
.faq-filter-container {
margin-top: 0;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.5rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}

.faq-filter {
background: var(--gray-100);
color: var(--gray-600);
padding: 0.5rem 0.75rem;
border-radius: 50px;
font-weight: 600;
border: none;
cursor: pointer;
transition: all 0.3s;
font-size: 0.8rem;
min-height: 38px;
}

.faq-filter.active {
background: var(--color-primary-normal-bg);
color: white;
transform: translateY(-1px);
box-shadow: 0 3px 10px color-mix(in srgb, var(--color-primary-normal-bg) 70%, transparent);
}

/* ===== FAQ CONTAINER ===== */
.faq-container-wrapper {
display: flex;
flex-direction: column;
gap: 0.75rem;
max-width: 660px;
margin: 0 auto;
}

.faq-item {
border-radius: 10px;
transition: all 0.3s;
margin: 5px 0;
}

/* ===== FAQ BUTTON ===== */
.faq-button {
width: 100%;
padding: 1rem;
background: white;
border: 2px solid var(--gray-300);
border-radius: 10px;
text-align: left;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.3s;
position: relative;
min-height: 52px;
}

.faq-button:hover {
border-color: var(--color-primary-active-bg);
box-shadow: 0 2px 8px rgba(196, 30, 58, 0.1);
}

.faq-button > span:first-child {
font-weight: 700;
color: var(--color-secondary-normal-bg);
font-size: 0.95rem;
line-height: 1.4;
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}

/* ===== INLINE TRUST BADGES ON FAQ ITEMS ===== */
.verified-badge,
.popular-badge {
display: inline-block;
font-size: 0.65rem;
padding: 0.2rem 0.5rem;
border-radius: 20px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.3px;
}

.verified-badge {
background: var(--success-light);
color: var(--success);
border: 1px solid var(--success);
}

.popular-badge {
background: rgba(196, 30, 58, 0.1);
color: var(--color-primary-normal-bg);
border: 1px solid var(--color-primary-active-bg);
}

.faq-icon {
font-size: 1.35rem;
color: var(--color-primary-active-bg);
transition: transform 0.3s;
flex-shrink: 0;
margin-left: 0.75rem;
font-weight: 300;
}

/* ===== FAQ CONTENT ===== */
.faq-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease;
}

.faq-content-inner {
padding: 0 1rem 1rem;
color: var(--gray-600);
line-height: 1.65;
font-size: 0.9rem;
max-width: 800px;
}

.faq-content-inner p {
margin-bottom: 0.75rem;
}

.faq-content-inner strong {
color: var(--color-secondary-normal-bg);
}

.faq-content-inner ul {
margin-left: 1.1rem;
margin-bottom: 0.75rem;
}

.faq-content-inner li {
margin-bottom: 0.4rem;
}

.faq-proof-box {
padding: 0.85rem;
background: var(--success-light);
border-radius: 8px;
border-left: 3px solid var(--success);
margin-bottom: 0.75rem;
font-size: 0.875rem;
}

/* ===== FAQ CONTENT CTA BUTTONS (Green Accent + Creative Animation) ===== */
.cro-faq .faq-content-inner a,
.cro-faq .faq-content a,
.cro-faq .faq-content-inner a.btn-gradient,
.cro-faq .faq-content-inner a.btn-secondary,
.cro-faq .faq-content-inner a.btn-success {
    display: inline-block !important;
    background: #10B981 !important;
    color: white !important;
    padding: 0.85rem 1.75rem !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    min-height: 48px !important;
    line-height: 1.4 !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important;
    border: none !important;
}

/* ===== CREATIVE ANIMATION: Orbiting Sparkle + Pulse Ring ===== */
.cro-faq .faq-content-inner a::before,
.cro-faq .faq-content-inner a::after {
    content: '' !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Expanding pulse ring */
.cro-faq .faq-content-inner a::before {
    top: 50% !important;
    left: 50% !important;
    width: 100% !important;
    height: 100% !important;
    border: 3px solid #10B981 !important;
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 0 !important;
    animation: faq-pulse-ring 2s ease-out infinite !important;
    border-radius: 12px !important;
    background: transparent !important;
}

@keyframes faq-pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Orbiting sparkle dot */
.cro-faq .faq-content-inner a::after {
    width: 10px !important;
    height: 10px !important;
    background: #34D399 !important;
    border-radius: 50% !important;
    box-shadow: 
        0 0 8px 2px rgba(52, 211, 153, 0.8),
        0 0 16px 4px rgba(16, 185, 129, 0.5) !important;
    animation: faq-orbit 2.5s linear infinite !important;
    z-index: 2 !important;
}

@keyframes faq-orbit {
    0% {
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
    }
    25% {
        top: 50%;
        left: calc(100% + 6px);
        transform: translateY(-50%);
    }
    50% {
        top: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%);
    }
    75% {
        top: 50%;
        left: -16px;
        transform: translateY(-50%);
    }
    100% {
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Shimmer sweep effect on button surface */
.cro-faq .faq-content-inner a,
.cro-faq .faq-content-inner a.btn-gradient {
    background: linear-gradient(
        110deg,
        #10B981 0%,
        #10B981 40%,
        #34D399 50%,
        #10B981 60%,
        #10B981 100%
    ) !important;
    background-size: 200% 100% !important;
    animation: faq-shimmer 2.5s ease-in-out infinite !important;
}

@keyframes faq-shimmer {
    0% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
    100% { background-position: 100% 0; }
}

/* Hover state - enhanced glow */
.cro-faq .faq-content a:hover,
.cro-faq .faq-content-inner a:hover {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 
        0 10px 30px rgba(16, 185, 129, 0.5),
        0 0 50px rgba(16, 185, 129, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
}

.cro-faq .faq-content-inner a:hover::before {
    animation: none !important;
    opacity: 0 !important;
}

.cro-faq .faq-content-inner a:hover::after {
    animation-play-state: paused !important;
    box-shadow: 
        0 0 15px 5px rgba(52, 211, 153, 1),
        0 0 30px 8px rgba(16, 185, 129, 0.6) !important;
    width: 14px !important;
    height: 14px !important;
}

/* ===== SECONDARY BUTTON VARIANT (Dark with glow) ===== */
.cro-faq .faq-content-inner a.btn-secondary {
    background: var(--color-secondary-normal-bg, #1F2937) !important;
    animation: faq-secondary-glow 3s ease-in-out infinite !important;
}

.cro-faq .faq-content-inner a.btn-secondary::before {
    border-color: var(--color-secondary-normal-bg, #1F2937) !important;
}

.cro-faq .faq-content-inner a.btn-secondary::after {
    background: #4B5563 !important;
    box-shadow: 0 0 10px 3px rgba(75, 85, 99, 0.6) !important;
}

@keyframes faq-secondary-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(31, 41, 55, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(31, 41, 55, 0.5); }
}

/* ===== MODERN CTA BOX (Professional Design) ===== */
.faq-cta-box {
    margin-top: 2.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Decorative accent line */
.faq-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #10B981, #34D399);
    border-radius: 0 0 4px 4px;
}

.faq-cta-header {
    margin-bottom: 1.5rem;
}

.faq-cta-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-cta-icon svg {
    width: 24px;
    height: 24px;
    stroke: #10B981;
}

.faq-cta-title {
    color: var(--color-secondary-normal-bg, #1F2937);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.faq-cta-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Hide default markdown content since we're using custom header */
.faq-cta-box > h3,
.faq-cta-box > p {
    display: none;
}

.faq-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.faq-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 50px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.cta-btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cta-btn-text {
    white-space: nowrap;
}

/* Primary Button - Green with Glow Animation */
.faq-cta-button.primary {
    background: #10B981;
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.faq-cta-button.primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: faq-btn-shine 3s ease-in-out infinite;
}

@keyframes faq-btn-shine {
    0% { transform: translateX(-100%); }
    50%, 100% { transform: translateX(100%); }
}

.faq-cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
    background: #059669;
}

/* Secondary Button - Outlined Style */
.faq-cta-button.secondary {
    background: white;
    color: var(--color-secondary-normal-bg, #1F2937);
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-cta-button.secondary .cta-btn-icon {
    stroke: #64748b;
}

.faq-cta-button.secondary:hover {
    transform: translateY(-2px);
    border-color: #10B981;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

.faq-cta-button.secondary:hover .cta-btn-icon {
    stroke: #10B981;
}

/* Trust Indicators */
.faq-cta-trust {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.faq-cta-trust span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.faq-cta-trust svg {
    stroke: #10B981;
}

/* ===================================================================
FLOATING STICKY CTA BAR (Saddle Widget - Mobile CRO)
✅ Appears after 300px scroll
✅ Sticky at bottom on mobile
✅ Hidden on desktop (>768px)
✅ Improves conversion by keeping CTAs visible
===================================================================  */

.floating-cta-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
display: none;
background: white;
box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.15);
padding: 0.75rem 1rem;
z-index: 9999;
border-top: 2px solid var(--gray-200);
transform: translateY(100%);
transition: transform 0.3s ease-in-out;
}

.floating-cta-bar.visible {
transform: translateY(0);
}

.floating-cta-bar {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.75rem;
}

.float-cta-btn {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.25rem;
padding: 0.75rem 1rem;
border-radius: 8px;
text-decoration: none;
font-weight: 700;
transition: all 0.3s;
min-height: 60px;
}

.float-cta-btn.phone {
background: var(--color-secondary-normal-bg);
color: white;
}

.float-cta-btn.quote {
background: var(--color-primary-normal-bg);
color: white;
}

.float-cta-btn:active {
transform: scale(0.97);
}

.cta-icon {
font-size: 1.25rem;
line-height: 1;
}

.cta-label {
font-size: 0.8rem;
line-height: 1;
}

/* ===================================================================
RESPONSIVE MEDIA QUERIES - Mobile-First Optimization
===================================================================  */

@media (min-width: 768px) {
/* Desktop: More spacing */
.cro-faq {
padding: 3rem 2rem;
}

/* .cro-faq .section-title {
font-size: 2.25rem;
}

.cro-faq .section-subtitle {
font-size: 1.05rem;
} */

.faq-item {
max-width: 660px;
margin-left: auto;
margin-right: auto;
}

.faq-cta-box {
max-width: 660px;
padding: 2rem 1.5rem;
}

.faq-cta-box h3 {
font-size: 1.5rem;
}

.faq-cta-box p {
font-size: 1rem;
}

/* Hide floating CTA bar on desktop */
.floating-cta-bar {
display: none !important;
}
}

@media (max-width: 767px) {
/* Mobile: Compact design to save vertical space */
.cro-faq {
padding: 1.5rem 1rem;
}

/* .cro-faq .section-title {
font-size: 1.5rem;
margin-bottom: 0.4rem;
}

.cro-faq .section-subtitle {
font-size: 0.85rem;
margin-bottom: 0.75rem;
} */

.trust-badges-inline {
margin-bottom: 1rem;
}

.trust-badge {
padding: 0.35rem 0.65rem;
font-size: 0.7rem;
}

.live-activity {
font-size: 0.7rem;
padding: 0.35rem 0.75rem;
margin-bottom: 1rem;
}

.faq-filter-container {
grid-template-columns: repeat(2, 1fr);
gap: 0.4rem;
}

.faq-filter {
padding: 0.45rem 0.6rem;
font-size: 0.75rem;
min-height: 36px;
}

.faq-container-wrapper {
gap: 0.6rem;
width: 85%;
margin-left: auto;
margin-right: auto;
}

.faq-item {
width: 90%;
margin-left: auto;
margin-right: auto;
}

.faq-button {
padding: 0.85rem;
min-height: 48px;
}

.faq-button > span:first-child {
font-size: 0.875rem;
}

.faq-content-inner {
padding: 0 0.85rem 0.85rem;
font-size: 0.85rem;
}

.faq-cta-box {
margin-top: 1.5rem;
padding: 1.25rem 1rem;
margin-bottom: 5rem; /* Space for floating bar */
}

.faq-cta-box h3 {
font-size: 1.2rem;
margin-bottom: 0.4rem;
}

.faq-cta-box p {
font-size: 0.85rem;
margin-bottom: 1rem;
}

.faq-cta-buttons {
flex-direction: column;
gap: 0.6rem;
}

.faq-cta-button {
width: 100%;
font-size: 0.875rem;
padding: 0.75rem 1.25rem;
}

/* Show floating CTA bar on mobile */
.floating-cta-bar {
display: grid !important;
}
}

/* ------------------------------------------------------------------------------------------------------------------ *
