/* public/js/front/components/Faq.css
   Extracted from resources/js/index/components/Faq.vue <style scoped> block — scoping
   dropped (the CDN runtime string template has no mechanism to process <style> tags, scoped
   or otherwise). Load this file via a <link rel="stylesheet"> tag in the Blade layout head. */

/* ── Section wrapper ─────────────────────────────────────── */
.faq-section {
    padding: 72px 0;
    background: #f4f6f9;
}

/* ── Two-column grid ─────────────────────────────────────── */
.faq-inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: start;
}

/* ── Left: header ────────────────────────────────────────── */
.faq-header {
    position: sticky;
    top: 100px;
}

.faq-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: #005F85;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.faq-title {
    font-size: 30px;
    font-weight: 800;
    color: #1a2d3d;
    line-height: 1.28;
    margin-bottom: 16px;
}

.faq-subtitle {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 28px;
}

.faq-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #005F85;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid #005F85;
    transition: opacity 0.18s ease;
}

.faq-cta:hover {
    opacity: 0.75;
}

/* ── Right: FAQ list ─────────────────────────────────────── */
.faq-list {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 30px rgba(15, 30, 50, 0.07);
    overflow: hidden;
}

/* ── Single FAQ item ─────────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid #eef0f4;
    transition: background 0.2s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

/* ── Question button ─────────────────────────────────────── */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-question-text {
    font-size: 15px;
    font-weight: 600;
    color: #1a2d3d;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.faq-item--active .faq-question-text {
    color: #005F85;
}

/* ── +/- icon circle ─────────────────────────────────────── */
.faq-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.faq-item--active .faq-icon {
    background: #005F85;
    color: #ffffff;
    transform: rotate(0deg);
}

/* show/hide plus vs minus inside the icon */
.faq-icon-plus  { display: block; }
.faq-icon-minus { display: none;  }

.faq-item--active .faq-icon-plus  { display: none;  }
.faq-item--active .faq-icon-minus { display: block; }

/* ── Answer panel (CSS max-height animation) ─────────────── */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s ease;
}

.faq-item--active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.8;
    padding: 0 28px 0;
    transition: padding 0.32s ease;
}

.faq-item--active .faq-answer-inner {
    padding: 4px 28px 24px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1199.98px) {
    .faq-inner {
        grid-template-columns: 280px 1fr;
        gap: 40px;
    }

    .faq-title { font-size: 26px; }
}

@media (max-width: 767.98px) {
    .faq-section { padding: 48px 0; }

    .faq-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .faq-header { position: static; }

    .faq-title { font-size: 24px; }

    .faq-question { padding: 18px 20px; }

    .faq-answer-inner { padding: 0 20px 0; }
    .faq-item--active .faq-answer-inner { padding: 4px 20px 20px; }
}
