/* =========================================
   CSSPlayer FAQ — Bold Professional Design
   Scoped only to .cssp-faq-section
========================================= */

.cssp-faq-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 100px 0;
    background:
        radial-gradient(ellipse at 8% 12%, rgba(103, 58, 183, 0.08), transparent 32%),
        radial-gradient(ellipse at 95% 85%, rgba(33, 150, 243, 0.09), transparent 30%),
        #f7f9ff;
}

/* Subtle decorative glow */
.cssp-faq-section::before,
.cssp-faq-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(103, 58, 183, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.cssp-faq-section::before {
    top: -145px;
    left: -100px;
    box-shadow: 0 0 0 35px rgba(103, 58, 183, 0.025),
                0 0 0 70px rgba(103, 58, 183, 0.02);
}

.cssp-faq-section::after {
    right: -150px;
    bottom: -170px;
    border-color: rgba(33, 150, 243, 0.15);
    box-shadow: 0 0 0 35px rgba(33, 150, 243, 0.025),
                0 0 0 70px rgba(33, 150, 243, 0.02);
}

.cssp-faq-section .cssp-faq-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
    animation: csspFaqFadeUp 0.75s ease both;
}

.cssp-faq-section .cssp-faq-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: #ff0000;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.cssp-faq-section .cssp-faq-tag::before,
.cssp-faq-section .cssp-faq-tag::after {
    content: "";
    width: 25px;
    height: 2px;
    background: linear-gradient(90deg, #673ab7, #2196f3);
}

.cssp-faq-section .cssp-faq-heading h2 {
    margin: 0 0 17px;
    color: #080d4d;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.cssp-faq-section .cssp-faq-heading h2 span {
    color: #ff0000;
}

.cssp-faq-section .cssp-faq-heading p {
    max-width: 620px;
    margin: 0 auto;
    color: #777a9c;
    font-size: 16px;
    line-height: 1.8;
}

/* Two-column section */
.cssp-faq-section .cssp-faq-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.5fr);
    gap: 35px;
    align-items: start;
}

/* Left contact panel */
.cssp-faq-section .cssp-faq-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 38px 32px;
    border-radius: 20px;
    background: linear-gradient(145deg, #080d4d 0%, #171d68 62%, #273d91 100%);
    box-shadow: 0 22px 50px rgba(8, 13, 77, 0.18);
    animation: csspFaqFadeUp 0.8s 0.12s ease both;
}

.cssp-faq-section .cssp-faq-intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -85px;
    right: -85px;
    width: 210px;
    height: 210px;
    border: 35px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.cssp-faq-section .cssp-faq-intro::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #673ab7, #2196f3, #ff0000);
}

.cssp-faq-section .cssp-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 26px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 17px;
    background: linear-gradient(135deg, #673ab7, #2196f3);
    color: #fff;
    font-size: 25px;
    box-shadow: 0 12px 25px rgba(33, 150, 243, 0.2);
    animation: csspFaqIconFloat 4s ease-in-out infinite;
}

.cssp-faq-section .cssp-faq-intro h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 27px;
    line-height: 1.35;
    font-weight: 800;
}

.cssp-faq-section .cssp-faq-intro p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.8;
}

.cssp-faq-section .cssp-faq-contact {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: linear-gradient(90deg, #673ab7, #2196f3);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cssp-faq-section .cssp-faq-contact span {
    display: inline-block;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.cssp-faq-section .cssp-faq-contact:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 28px rgba(0, 0, 0, 0.22);
}

.cssp-faq-section .cssp-faq-contact:hover span {
    transform: translate(3px, -3px);
}

/* FAQ rows */
.cssp-faq-section .cssp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.cssp-faq-section .cssp-faq-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #e4e8f3;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(8, 13, 77, 0.035);
    transition: border-color 0.3s ease, transform 0.3s ease,
                box-shadow 0.3s ease;
    animation: csspFaqFadeUp 0.65s ease both;
}

.cssp-faq-section .cssp-faq-item:nth-child(1) { animation-delay: 0.12s; }
.cssp-faq-section .cssp-faq-item:nth-child(2) { animation-delay: 0.2s; }
.cssp-faq-section .cssp-faq-item:nth-child(3) { animation-delay: 0.28s; }
.cssp-faq-section .cssp-faq-item:nth-child(4) { animation-delay: 0.36s; }
.cssp-faq-section .cssp-faq-item:nth-child(5) { animation-delay: 0.44s; }

.cssp-faq-section .cssp-faq-item:hover {
    transform: translateY(-3px);
    border-color: rgba(103, 58, 183, 0.35);
    box-shadow: 0 13px 30px rgba(8, 13, 77, 0.08);
}

.cssp-faq-section .cssp-faq-item[open] {
    border-color: rgba(103, 58, 183, 0.45);
    box-shadow: 0 14px 32px rgba(8, 13, 77, 0.085);
}

.cssp-faq-section .cssp-faq-item[open]::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(180deg, #673ab7, #2196f3);
}

.cssp-faq-section .cssp-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
    padding: 20px 23px;
    color: #080d4d;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.cssp-faq-section .cssp-faq-item summary::-webkit-details-marker {
    display: none;
}

.cssp-faq-section .cssp-faq-item summary:focus-visible {
    outline: 2px solid #2196f3;
    outline-offset: 3px;
}

.cssp-faq-section .cssp-faq-plus {
    position: relative;
    display: inline-block;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f2ff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cssp-faq-section .cssp-faq-plus::before,
.cssp-faq-section .cssp-faq-plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: #673ab7;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, background 0.3s ease;
}

.cssp-faq-section .cssp-faq-plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.cssp-faq-section .cssp-faq-item[open] .cssp-faq-plus {
    background: linear-gradient(135deg, #673ab7, #2196f3);
    transform: rotate(180deg);
}

.cssp-faq-section .cssp-faq-item[open] .cssp-faq-plus::before,
.cssp-faq-section .cssp-faq-item[open] .cssp-faq-plus::after {
    background: #fff;
}

.cssp-faq-section .cssp-faq-item[open] .cssp-faq-plus::after {
    transform: translate(-50%, -50%) rotate(0);
}

.cssp-faq-section .cssp-faq-answer {
    padding: 0 70px 24px 23px;
    color: #686d8c;
    font-size: 15px;
    line-height: 1.85;
    animation: csspFaqAnswerIn 0.35s ease both;
}

.cssp-faq-section .cssp-faq-item[open] .cssp-faq-answer {
    padding-left: 27px;
}

/* Motion */
@keyframes csspFaqFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes csspFaqAnswerIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes csspFaqIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Responsive */
@media (max-width: 991px) {
    .cssp-faq-section {
        padding: 75px 0;
    }

    .cssp-faq-section .cssp-faq-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cssp-faq-section .cssp-faq-intro {
        padding: 32px;
    }
}

@media (max-width: 575px) {
    .cssp-faq-section {
        padding: 55px 0;
    }

    .cssp-faq-section .cssp-faq-heading {
        margin-bottom: 35px;
    }

    .cssp-faq-section .cssp-faq-intro {
        padding: 27px 23px;
    }

    .cssp-faq-section .cssp-faq-intro h3 {
        font-size: 23px;
    }

    .cssp-faq-section .cssp-faq-item summary {
        min-height: 68px;
        padding: 17px;
        font-size: 14px;
    }

    .cssp-faq-section .cssp-faq-answer,
    .cssp-faq-section .cssp-faq-item[open] .cssp-faq-answer {
        padding: 0 17px 20px;
        font-size: 14px;
    }
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cssp-faq-section *,
    .cssp-faq-section *::before,
    .cssp-faq-section *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* FAQ content and Know More button */
.cssp-faq-section .cssp-faq-content {
    min-width: 0;
}

.cssp-faq-section .cssp-faq-more-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.cssp-faq-section .cssp-faq-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 13px 22px;
    border-radius: 30px;
    background: linear-gradient(to right, #673ab7 0%, #2196f3 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(56, 0, 189, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cssp-faq-section .cssp-faq-more-btn span {
    font-size: 19px;
    transition: transform 0.25s ease;
}

.cssp-faq-section .cssp-faq-more-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 25px rgba(56, 0, 189, 0.25);
}

.cssp-faq-section .cssp-faq-more-btn:hover span {
    transform: translateX(4px);
}

@media (max-width: 575px) {
    .cssp-faq-section .cssp-faq-more-wrap {
        margin-top: 18px;
    }
}

.cssp-faq-item span{
    color: #000000;
}


/* Active FAQ question: red background, white text */
.cssp-faq-section .cssp-faq-item[open] summary {
    background: linear-gradient(90deg, #ff0000, #d90000);
    color: #ffffff;
}

.cssp-faq-section .cssp-faq-item[open] summary > span:first-child {
    color: #ffffff;
}