
/* =========================================
   CSSPLAYER FAQ SECTION
   Light, Modern & Responsive Design
========================================= */

.cssp-faq-section {
    position: relative;
    padding: 90px 0 75px;
    overflow: hidden;
    background:
        radial-gradient(circle at 5% 15%, rgba(255, 220, 220, 0.35), transparent 28%),
        radial-gradient(circle at 95% 80%, rgba(205, 225, 255, 0.38), transparent 30%),
        #ffffff;
}

.cssp-faq-section .container {
    position: relative;
    z-index: 1;
}

/* FAQ Full Width Banner */

.cssp-faq-header {
    width: 100vw;
    max-width: none;
    min-height: 360px;
    margin: 0 calc(50% - 50vw) 48px;
    padding: 80px max(calc((100vw - 1140px) / 2), 40px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    text-align: left;

    background:
        url('../images/faq-banner.png') top center / cover no-repeat;

    position: relative;
}

/* FAQ Subtitle */

.cssp-faq-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: #ff3038;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* FAQ Heading */

.cssp-faq-header h1,
.cssp-faq-header h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
}

.cssp-faq-header h1 span,
.cssp-faq-header h2 span {
    color: #ff3038;
}

/* FAQ Description */

.cssp-faq-header p {
    max-width: 600px;
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
}

/* FAQ Layout */

.cssp-faq-layout {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.cssp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* FAQ Item */

.cssp-faq-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #e9edf5;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 5px 22px rgba(20, 35, 80, 0.045);
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.3s ease;
}

.cssp-faq-item:hover {
    border-color: #d5dff4;
    box-shadow: 0 9px 28px rgba(20, 35, 80, 0.08);
    transform: translateY(-2px);
}

/* FAQ Question */

.cssp-faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    padding: 19px 23px;
    color: #080d4d;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
    transition: all 0.3s ease;
}

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

.cssp-faq-item summary::marker {
    display: none;
    content: "";
}

.cssp-faq-item summary > span:first-child {
    flex: 1;
    color: #080d4d;
    transition: color 0.3s ease;
}

/* Plus Icon */

.cssp-faq-icon {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff0f0;
    color: #ff3038;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
    transition: all 0.3s ease;
}

/* Open FAQ - Blue Active State */

.cssp-faq-item[open] {
    border-color: transparent;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(33, 150, 243, 0.16);
}

.cssp-faq-item[open] summary {
    background: linear-gradient(
        105deg,
        #2196f3 0%,
        #1976d2 50%,
        #673ab7 100%
    );
}

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

.cssp-faq-item[open] .cssp-faq-icon {
    color: #2196f3;
    background: #ffffff;
    transform: rotate(45deg);
}

/* FAQ Answer */

.cssp-faq-answer {
    padding: 22px 25px 25px;
    color: #626b85;
    font-size: 15px;
    line-height: 1.85;
    animation: faqAnswerIn 0.35s ease both;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cssp-faq-answer p {
    margin: 0 0 14px;
    color: #626b85;
    font-size: 15px;
    line-height: 1.85;
}

.cssp-faq-answer p:last-child {
    margin-bottom: 0;
}

.cssp-faq-answer strong {
    color: #20284f;
    font-weight: 700;
}

.cssp-faq-answer a {
    color: #e92f3a;
    font-weight: 600;
    text-decoration: none;
}

.cssp-faq-answer a:hover {
    color: #673ab7;
    text-decoration: underline;
}

/* Unordered Lists */

.cssp-faq-answer ul {
    margin: 15px 0 18px;
    padding: 5px 18px;
    border-radius: 10px;
    background: #f8f9fd;
    list-style: none;
}

.cssp-faq-answer ul li {
    position: relative;
    margin: 0;
    padding: 9px 8px 9px 27px;
    border-bottom: 1px solid #e9edf5;
    color: #626b85;
    font-size: 14px;
    line-height: 1.7;
}

.cssp-faq-answer ul li:last-child {
    border-bottom: 0;
}

.cssp-faq-answer ul li::before {
    content: "✓";
    position: absolute;
    top: 9px;
    left: 3px;
    color: #ff3038;
    font-size: 15px;
    font-weight: 700;
}

/* Ordered Lists */

.cssp-faq-answer ol {
    margin: 15px 0 18px;
    padding: 8px 18px 8px 48px;
    border-radius: 10px;
    background: #f8f9fd;
    counter-reset: faq-step;
}

.cssp-faq-answer ol li {
    padding: 9px 5px;
    border-bottom: 1px solid #e9edf5;
    color: #626b85;
    font-size: 14px;
    line-height: 1.7;
}

.cssp-faq-answer ol li:last-child {
    border-bottom: 0;
}

/* =========================================
   CSSPLAYER FAQ CTA
   Light Background + Centered Design
========================================= */

.cssp-faq-cta {
    position: relative;
    padding: 55px 0 85px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(190, 216, 255, 0.35),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(255, 195, 195, 0.35),
            transparent 32%
        ),
        #ffffff;
}

/* CTA Main Card */

.cssp-faq-cta-content {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 65px 45px;
    border: 1px solid #e5eaf5;
    border-radius: 24px;
    background: linear-gradient(
        125deg,
        #f5f8ff 0%,
        #ffffff 48%,
        #fff5f5 100%
    );
    box-shadow: 0 15px 40px rgba(8, 13, 77, 0.07);
    text-align: center;
    animation: faqCtaAppear 0.9s ease both;
}

/* Decorative Circles */

.cssp-faq-cta-content::before,
.cssp-faq-cta-content::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.cssp-faq-cta-content::before {
    width: 250px;
    height: 250px;
    top: -130px;
    right: -65px;
    border: 1px solid rgba(103, 58, 183, 0.18);
    box-shadow: 0 0 0 20px rgba(103, 58, 183, 0.035);
    animation: faqCtaCircle 8s ease-in-out infinite;
}

.cssp-faq-cta-content::after {
    width: 220px;
    height: 220px;
    bottom: -130px;
    left: -65px;
    border: 1px dashed rgba(33, 150, 243, 0.28);
    animation: faqCtaCircle 10s ease-in-out infinite reverse;
}

/* CTA Label */

.cssp-faq-cta-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 20px;
    color: #ff3038;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: center;
}

.cssp-faq-cta-label::before,
.cssp-faq-cta-label::after {
    content: "";
    width: 23px;
    height: 2px;
    border-radius: 5px;
    background: #ff3038;
}

/* CTA Heading */

.cssp-faq-cta-content h2 {
    max-width: 760px;
    margin: 0 auto 18px;
    color: #080d4d;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.cssp-faq-cta-content h2 span {
    color: #ff3038;
}

/* CTA Description */

.cssp-faq-cta-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #707895;
    font-size: 15px;
    line-height: 1.9;
    text-align: center;
}

/* CTA Button */

.cssp-faq-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    margin: 0 auto;
    padding: 14px 28px;
    border: 0;
    border-radius: 50px;
    background: linear-gradient(
        to right,
        #673ab7 0%,
        #2196f3 100%
    );
    box-shadow: 0 10px 24px rgba(74, 91, 210, 0.23);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.35s ease,
                box-shadow 0.35s ease;
}

.cssp-faq-cta-btn:hover {
    color: #ffffff !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(74, 91, 210, 0.32);
}

/* CTA Button Arrow */

.cssp-faq-cta-btn::after {
    content: "→";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.cssp-faq-cta-btn:hover::after {
    transform: translateX(5px);
}

/* CTA Animations */

@keyframes faqCtaAppear {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes faqCtaCircle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-12px, 15px) rotate(15deg);
    }
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 991px) {

    .cssp-faq-section {
        padding: 70px 0 55px;
    }

    .cssp-faq-header h1,
    .cssp-faq-header h2 {
        font-size: 36px;
    }

    .cssp-faq-cta-content {
        padding: 55px 35px;
    }

    .cssp-faq-cta-content h2 {
        font-size: 34px;
    }
}

@media (max-width: 767px) {

    .cssp-faq-section {
        padding: 55px 0 45px;
    }

    .cssp-faq-header {
        margin-bottom: 30px;
    }

    .cssp-faq-header h1,
    .cssp-faq-header h2 {
        font-size: 29px;
    }

    .cssp-faq-header p {
        font-size: 14px;
    }

    .cssp-faq-list {
        gap: 11px;
    }

    .cssp-faq-item summary {
        min-height: 60px;
        padding: 15px 16px;
        font-size: 15px;
        gap: 12px;
    }

    .cssp-faq-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 21px;
    }

    .cssp-faq-answer {
        padding: 17px 17px 20px;
        font-size: 14px;
    }

    .cssp-faq-answer p {
        font-size: 14px;
    }

    .cssp-faq-answer ul,
    .cssp-faq-answer ol {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .cssp-faq-cta {
        padding: 40px 0 55px;
    }

    .cssp-faq-cta-content {
        padding: 45px 22px;
        border-radius: 18px;
    }

    .cssp-faq-cta-content h2 {
        font-size: 28px;
    }

    .cssp-faq-cta-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .cssp-faq-cta-content::before {
        width: 170px;
        height: 170px;
        top: -100px;
        right: -70px;
    }

    .cssp-faq-cta-content::after {
        width: 160px;
        height: 160px;
        bottom: -100px;
        left: -70px;
    }
}

@media (max-width: 480px) {

    .cssp-faq-header h1,
    .cssp-faq-header h2 {
        font-size: 26px;
    }

    .cssp-faq-item summary {
        font-size: 14px;
    }

    .cssp-faq-cta-content {
        padding: 38px 18px;
    }

    .cssp-faq-cta-content h2 {
        font-size: 24px;
    }

    .cssp-faq-cta-content p {
        font-size: 13px;
    }

    .cssp-faq-cta-btn {
        padding: 12px 23px;
        font-size: 14px;
    }
}

/* Accessibility: Reduce Motion */

@media (prefers-reduced-motion: reduce) {

    .cssp-faq-item,
    .cssp-faq-answer,
    .cssp-faq-cta-content,
    .cssp-faq-cta-content::before,
    .cssp-faq-cta-content::after,
    .cssp-faq-cta-btn,
    .cssp-faq-cta-btn::after {
        animation: none !important;
        transition: none !important;
    }
}
@media (max-width: 767px) {
    .cssp-faq-header {
        min-height: 300px;
        padding: 60px 25px;
        background-position: 96% center;
    }

    .cssp-faq-header h1,
    .cssp-faq-header h2 {
        font-size: 29px;
    }

    .cssp-faq-header p {
        font-size: 14px;
    }
}

/* =========================================
   CSSPlayer FAQ Assistant
========================================= */

.cssp-faq-assistant {
    max-width: 1000px;
    margin: 45px auto;
    padding: 35px;
    background: #fff;
    border: 1px solid #f0e1e1;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(30, 20, 20, 0.06);
}

.cssp-faq-assistant-header {
    text-align: center;
    margin-bottom: 25px;
}

.cssp-faq-assistant-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #ff0000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.cssp-faq-assistant-header h2 {
    margin: 0 0 10px;
    color: #171717;
    font-size: 30px;
    font-weight: 700;
}

.cssp-faq-assistant-header p {
    margin: 0;
    color: #777;
    font-size: 15px;
}

/* Topic chips */
.cssp-faq-assistant-topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.cssp-faq-topic {
    padding: 10px 17px;
    border: 1px solid #e8dada;
    border-radius: 30px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cssp-faq-topic:hover,
.cssp-faq-topic.active {
    border-color: #ff0000;
    background: #fff1f1;
    color: #e60000;
    transform: translateY(-2px);
}

/* Conversation area */
.cssp-faq-assistant-chat {
    min-height: 150px;
    max-height: 360px;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 18px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fafafa;
}

.cssp-faq-assistant-message {
    max-width: 85%;
    padding: 15px 18px;
    border: 1px solid #f0e0e0;
    border-radius: 12px 12px 12px 3px;
    background: #fff;
    color: #333;
}

.cssp-faq-assistant-message strong {
    display: block;
    margin-bottom: 7px;
    color: #171717;
    font-size: 14px;
}

.cssp-faq-assistant-message p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

/* Suggested questions */
.cssp-faq-assistant-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.cssp-faq-assistant-suggestions:empty {
    display: none;
}

.cssp-faq-assistant-suggestions button {
    padding: 10px 14px;
    border: 1px solid #dedede;
    border-radius: 9px;
    background: #fff;
    color: #333;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cssp-faq-assistant-suggestions button:hover {
    border-color: #ff0000;
    color: #e60000;
    background: #fff7f7;
}

/* Question form */
.cssp-faq-assistant-form label {
    display: block;
    margin-bottom: 9px;
    color: #222;
    font-size: 14px;
    font-weight: 600;
}

.cssp-faq-assistant-input-wrap {
    display: flex;
    gap: 10px;
}

.cssp-faq-assistant-input-wrap input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #222;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cssp-faq-assistant-input-wrap input:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.08);
}

.cssp-faq-assistant-input-wrap button {
    min-width: 100px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: #ff0000;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cssp-faq-assistant-input-wrap button:hover {
    background: #d90000;
    transform: translateY(-1px);
}

/* Contact link */
.cssp-faq-assistant-contact {
    margin: 18px 0 0;
    color: #777;
    text-align: center;
    font-size: 13px;
}

.cssp-faq-assistant-contact a {
    color: #ff0000;
    font-weight: 600;
    text-decoration: none;
}

.cssp-faq-assistant-contact a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 767px) {
    .cssp-faq-assistant {
        margin: 30px 15px;
        padding: 22px 16px;
    }

    .cssp-faq-assistant-header h2 {
        font-size: 24px;
    }

    .cssp-faq-assistant-chat {
        padding: 14px;
    }

    .cssp-faq-assistant-message {
        max-width: 100%;
    }

    .cssp-faq-assistant-input-wrap {
        flex-direction: column;
    }

    .cssp-faq-assistant-input-wrap button {
        min-height: 48px;
    }
}

/* FAQ Assistant Loading & Disabled State */

.cssp-faq-assistant-input-wrap button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.cssp-faq-assistant-input-wrap button:disabled:hover {
    background: #ff0000;
    transform: none;
}

.cssp-faq-assistant-chat {
    overflow-wrap: anywhere;
    word-break: normal;
    scroll-behavior: smooth;
}

.cssp-faq-assistant-suggestions button {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Small Mobile Screens */

@media (max-width: 480px) {
    .cssp-faq-assistant {
        margin: 25px 10px;
        padding: 18px 13px;
        border-radius: 14px;
    }

    .cssp-faq-assistant-header h2 {
        font-size: 21px;
    }

    .cssp-faq-assistant-header p {
        font-size: 13px;
        line-height: 1.6;
    }

    .cssp-faq-assistant-topics {
        gap: 8px;
    }

    .cssp-faq-topic {
        padding: 8px 12px;
        font-size: 12px;
    }

    .cssp-faq-assistant-chat {
        max-height: 320px;
        padding: 12px;
    }

    .cssp-faq-assistant-suggestions button {
        width: 100%;
        font-size: 13px;
    }
}


@media (max-width: 767px) {
    .cssp-faq-assistant-input-wrap input {
        min-height: 48px;
        padding: 13px 15px;
        font-size: 15px;
        box-sizing: border-box;
    }

    .cssp-faq-assistant-input-wrap button {
        min-height: 46px;
    }
}