/* ==========================================================================
   FAQ page — scoped styles
   Palette follows the site: orange #ff5e1a, navy #163762.
   ========================================================================== */

.faq_section {
    padding: 70px 0;
    background:
        radial-gradient(900px 300px at 90% -20%, rgba(255, 94, 26, 0.06), transparent 60%),
        radial-gradient(700px 300px at -10% 120%, rgba(22, 55, 98, 0.05), transparent 60%),
        #f7f9fc;
    /* The global `.main > * { float:left }` in style.css can cause the first
       child inside the section to shrink. Kill floats inside the FAQ list. */
}

/* Ensure the whole FAQ tree behaves as a normal block flow, not the site's
   floated grid system (see `.main > * { float: left }` and `p { float: left }`
   in style.css). */
.faq_section .faq_list,
.faq_section .faq_item,
.faq_section .faq_item summary,
.faq_section .faq_item .faq_answer,
.faq_section .faq_item .faq_answer p {
    float: none !important;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Intro */
.faq_intro {
    max-width: 780px;
    margin: 0 auto 40px;
    text-align: center;
}

.faq_intro h1 {
    color: #163762;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 14px;
}

.faq_intro p {
    color: #55607a;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* List */
.faq_list {
    max-width: 900px;
    margin: 0 auto;
    /* Clear any floats coming from global .main > * float:left */
    clear: both;
    display: block;
    width: 100%;
}

/* Item card — force block width so global float rules don't break the layout */
.faq_item {
    display: block;
    width: 100%;
    float: none;
    clear: both;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    margin: 0 0 14px 0;
    box-shadow: 0 8px 20px rgba(22, 55, 98, 0.05);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    box-sizing: border-box;
}

.faq_item:hover {
    box-shadow: 0 14px 30px rgba(22, 55, 98, 0.08);
}

.faq_item[open] {
    box-shadow: 0 14px 32px rgba(255, 94, 26, 0.12);
    border-color: #ffd7c2;
}

/* Question header */
.faq_item summary {
    display: block;
    width: 100%;
    float: none;
    list-style: none;
    cursor: pointer;
    padding: 20px 60px 20px 26px;
    font-size: 16px;
    font-weight: 600;
    color: #163762;
    position: relative;
    user-select: none;
    line-height: 1.5;
    transition: color 0.2s ease;
    box-sizing: border-box;
}

.faq_item summary::-webkit-details-marker {
    display: none;
}

.faq_item summary:hover {
    color: #ff5e1a;
}

/* Plus/minus circle on the right */
.faq_item summary::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background:
        linear-gradient(#ff5e1a, #ff5e1a) center/12px 2px no-repeat,
        linear-gradient(#ff5e1a, #ff5e1a) center/2px 12px no-repeat,
        #fff3ec;
    transition: transform 0.25s ease, background 0.25s ease;
}

.faq_item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
    background:
        linear-gradient(#fff, #fff) center/12px 2px no-repeat,
        linear-gradient(#fff, #fff) center/2px 12px no-repeat,
        #ff5e1a;
}

/* Answer */
.faq_answer {
    padding: 0 26px 22px;
    animation: faq-fade 0.25s ease-out;
}

.faq_answer p {
    color: #55607a;
    font-size: 15.5px;
    line-height: 1.75;
    margin: 0;
    margin-bottom: 2rem;
}

.faq_answer a {
    color: #ff5e1a;
    text-decoration: none;
    font-weight: 600;
}

.faq_answer a:hover {
    text-decoration: underline;
}

@keyframes faq-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Bottom CTA */
.faq_cta {
    max-width: 900px;
    margin: 40px auto 8rem;
    background: linear-gradient(135deg, #163762 0%, #0b2b56 100%);
    color: #fff;
    padding: 28px 34px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 18px 40px rgba(22, 55, 98, 0.18);
}

.faq_cta__text h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.faq_cta__text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.faq_cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #ff7a3d 0%, #ff5e1a 100%);
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 12px 26px rgba(255, 94, 26, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.faq_cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(255, 94, 26, 0.45);
    color: #fff;
    text-decoration: none;
}

.faq_cta__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 20px;
}

.faq_cta__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    opacity: 0.9;
    line-height: 1.2;
}

.faq_cta__btn strong {
    display: block;
    font-size: 17px;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 767px) {
    .faq_section {
        padding: 45px 0;
    }
    .faq_intro h1 {
        font-size: 26px;
    }
    .faq_item summary {
        font-size: 15px;
        padding: 18px 52px 18px 20px;
    }
    .faq_item summary::after {
        right: 14px;
    }
    .faq_answer {
        padding: 0 20px 20px;
    }
    .faq_cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
    }
    .faq_cta__btn {
        width: 100%;
        justify-content: center;
    }
}
