@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --fmp-primary: #0094DA;
    --fmp-bg-light: #F8F9FA;
    --fmp-text-dark: #000000;
    --fmp-text-muted: #333333;
    --fmp-border-radius: 8px;
    --fmp-font: 'Poppins', sans-serif;
}

.fmp-faq-wrapper,
.fmp-home-section {
    font-family: var(--fmp-font);
}

.fmp-faq-wrapper {
    max-width: 1000px;
    margin: 40px auto;
}

/* Category Tabs */
.fmp-category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.fmp-tab-btn {
    background: #FFFFFF;
    border: 1px solid var(--fmp-primary);
    padding: 12px 25px;
    border-radius: 5px;
    color: var(--fmp-primary);
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-family: var(--fmp-font);
}

.fmp-tab-btn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    background: var(--fmp-bg-light);
}

.fmp-tab-btn.active {
    background: var(--fmp-primary);
    color: #FFFFFF;
}

/* Accordion Items */
.fmp-faq-item {
    background: #FFFFFF;
    border-radius: var(--fmp-border-radius);
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.fmp-faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.fmp-faq-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.fmp-faq-question {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--fmp-text-dark);
    line-height: 1.4;
    padding-right: 20px;
}

.fmp-faq-icon {
    color: #333;
    flex-shrink: 0;
}

/* Accordion Body */
.fmp-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fmp-faq-content {
    padding: 0 30px 25px 30px;
    color: var(--fmp-text-muted);
    line-height: 1.6;
    font-size: 16px;
}

.fmp-faq-icon .plus {
    display: block !important;
}

.fmp-faq-icon .minus {
    display: none !important;
}

/* Open State */
.fmp-faq-item.open .fmp-faq-body {
    max-height: 800px;
}

.fmp-faq-item.open .plus {
    display: none !important;
}

.fmp-faq-item.open .minus {
    display: block !important;
}

/* Home Section Layout */
.fmp-main-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    background-color: transparent;
    overflow: hidden;
}

.fmp-home-section {
    position: relative;
    width: 100%;
    padding: 30px 0;
    background-color: transparent;
    overflow: hidden;
}

/* Home Section Header */
.fmp-home-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.fmp-subheading {
    display: block;
    color: var(--fmp-sh-color, #F9A509);
    font-size: var(--fmp-sh-size, 16px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.fmp-heading {
    color: var(--fmp-h-color, #0A1018);
    font-size: var(--fmp-h-size, 48px);
    font-family: var(--fmp-h-font, 'Inter', sans-serif);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* Home Section Footer/Button */
.fmp-home-footer {
    text-align: center;
    margin-top: 40px;
}

.fmp-btn-primary {
    display: inline-block;
    background-color: var(--fmp-btn-bg, #000000);
    color: var(--fmp-btn-text, #FFFFFF);
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--fmp-btn-radius, 999px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fmp-main-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #000000;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.2;
}

.fmp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: var(--fmp-btn-text, #FFFFFF);
    opacity: 0.9;
}

.fmp-faq-container.fmp-main-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.fmp-faq-container.fmp-home-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 2;
}

/* Home View Specific Card Styling */
.fmp-home-view .fmp-faq-item {
    background: #FFFFFF;
    border: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    font-family: 'Poppins', sans-serif !important;
}

.fmp-home-view .fmp-faq-item .fmp-faq-question,
.fmp-home-view .fmp-faq-item .fmp-faq-icon {
    color: #000000 !important;
    font-family: 'Poppins', sans-serif !important;
}

.fmp-home-view .fmp-faq-item .fmp-faq-content {
    color: #000000 !important;
    font-family: 'Poppins', sans-serif !important;
}

.fmp-home-view .fmp-faq-item.open {
    border: none !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Decorative Shapes */
.fmp-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.fmp-shape-main-top          { top: 0; left: 0; }
.fmp-shape-main-right        { top: 50%; right: 0; transform: translateY(-50%); }
.fmp-shape-main-bottom-left  { left: 0; bottom: 0; }
.fmp-shape-main-bottom-right { right: 0; bottom: 0; }

/* Each path starts hidden */
.fmp-shape svg path {
    stroke: none;
    clip-path: inset(0 100% 0 0);
}

/* When in viewport: reveal each path by sweeping clip-path left→right */
.fmp-shape-main-top.fmp-animate svg path,
.fmp-shape-main-right.fmp-animate svg path,
.fmp-shape-main-bottom-left.fmp-animate svg path,
.fmp-shape-main-bottom-right.fmp-animate svg path {
    animation: fmp-reveal 0.8s ease-out forwards;
}

.fmp-shape-main-top.fmp-animate svg path:nth-child(1),
.fmp-shape-main-right.fmp-animate svg path:nth-child(1),
.fmp-shape-main-bottom-left.fmp-animate svg path:nth-child(1),
.fmp-shape-main-bottom-right.fmp-animate svg path:nth-child(1) { animation-delay: 0s; }

.fmp-shape-main-top.fmp-animate svg path:nth-child(2),
.fmp-shape-main-right.fmp-animate svg path:nth-child(2),
.fmp-shape-main-bottom-left.fmp-animate svg path:nth-child(2),
.fmp-shape-main-bottom-right.fmp-animate svg path:nth-child(2) { animation-delay: 0.2s; }

.fmp-shape-main-top.fmp-animate svg path:nth-child(3),
.fmp-shape-main-right.fmp-animate svg path:nth-child(3),
.fmp-shape-main-bottom-left.fmp-animate svg path:nth-child(3),
.fmp-shape-main-bottom-right.fmp-animate svg path:nth-child(3) { animation-delay: 0.4s; }

.fmp-shape-main-top.fmp-animate svg path:nth-child(4),
.fmp-shape-main-right.fmp-animate svg path:nth-child(4),
.fmp-shape-main-bottom-left.fmp-animate svg path:nth-child(4),
.fmp-shape-main-bottom-right.fmp-animate svg path:nth-child(4) { animation-delay: 0.6s; }

.fmp-shape-main-top.fmp-animate svg path:nth-child(5),
.fmp-shape-main-right.fmp-animate svg path:nth-child(5),
.fmp-shape-main-bottom-left.fmp-animate svg path:nth-child(5),
.fmp-shape-main-bottom-right.fmp-animate svg path:nth-child(5) { animation-delay: 0.8s; }

@keyframes fmp-reveal {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0% 0 0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fmp-faq-question {
        font-size: 16px;
    }

    .fmp-faq-header {
        padding: 20px;
    }

    .fmp-faq-content {
        padding: 0 20px 20px 20px;
    }
}
