/* Modern FAQ Styling */

.faq-item {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-question {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.faq-answer {
    transition: max-height 0.3s ease, padding-top 0.3s ease;
    overflow: hidden;
    max-height: 0;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg) !important;
}

.faq-item.active .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: rgba(99, 102, 241, 0.1);
}

/* Legacy collapsible styles - kept for backward compatibility */
.collapsibles_header {
    font-family: 'Poppins Medium', sans-serif;
    font-size: 1.75rem;
    font-weight: unset;
    margin-top: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.collapsible {
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    color: #69699b;
}

.collapsible_label {
    font-family: 'Poppins Medium', sans-serif;
    font-size: 0.90rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
    padding: 0.8rem;
    width: 100%;
    border: 1px solid #e0e0e0;
}

.collapsible_label:hover {
    background-color: #f8faff;
}

.collapsible:not(:first-child) .collapsible_label {
    border-top: 0;
}

.collapsible:first-child .collapsible_label {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.collapsible:last-child .collapsible_label {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.collapsible:last-child .collapsible_input:checked + .collapsible_label {
    border-radius: 0;
}

.collapsible_input:checked + .collapsible_label {
    border-bottom: 0;
    background-color: #f8faff;
}

.collapsible_content {
    font-size: 0.85rem;
    background-color: #f8faff;
    border-style: solid;
    border-color: rgb(229, 231, 235);
    border-width: 1px;
    border-top-width: 0;
    padding: 0.8rem;
}

.collapsible [type="radio"]:checked,
.collapsible [type="radio"]:not(:checked) {
    position: absolute;
    display: none;
    opacity: 0;
    pointer-events: none;
}


.collapsible_input:not(:checked) ~ .collapsible_content {
    display: none;
}

.collapsible_input:checked ~ .collapsible_content {
    display: flex;
}

.collapsible_label:after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-repeat: no-repeat;
    background-size: contain;
}

.collapsible_input:not(:checked) ~ .collapsible_label:after {
    /* SVG Plus (+) */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%2369699b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' ><polyline points='6 9 12 15 18 9'></polyline></svg>");
}

.collapsible_input:checked ~ .collapsible_label:after {
    /* SVG Minus (-) */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%2369699b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' ><polyline points='18 15 12 9 6 15'></polyline></svg>");
}


/*.collapsible_input:checked ~ .collapsible_content:before,
.collapsible_input:not(:checked) ~ .collapsible_content:before {
    position: fixed;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    z-index: -1;
    cursor: auto;
    pointer-events: none;
}

.collapsible_input:checked ~ .collapsible_content:before {
    pointer-events: auto;
}*/
