/* ═══════════════════════════════════════════════════════
   FAQ PAGE — Main layout
═══════════════════════════════════════════════════════ */
.faq-page {
    padding-top: 100px;
    background: var(--white);
}

.faq-main__wrap {
    max-width: 1400px;
    margin: 0 auto 160px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ─── Left sticky column ──────────────────────────────────────────────────── */

.faq-main__left {
    width: 680px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ─── Right FAQ list column ───────────────────────────────────────────────── */

.faq-main__right {
    width: 680px;
    flex-shrink: 0;
    padding-top: 220px;
}

.faq-list {
    position: relative;
}

/* ═══════════════════════════════════════════════════════
   KNOWLEDGE BASE TAG
═══════════════════════════════════════════════════════ */

.faq-kb-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--second-bg);
    border-left: 3px solid var(--accent);
    padding: 13px 5px 11px 15px;
    position: relative;
    align-self: flex-start;
    /* space for right arrow */
    margin-right: 15px;
}

.faq-kb-tag__text {
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--black-70);
    text-transform: uppercase;
    white-space: nowrap;
}

.faq-kb-tag__arrow {
    position: absolute;
    right: -15px;
    top: 0;
    bottom: 0;
    width: 15px;
}

.faq-kb-tag__arrow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ═══════════════════════════════════════════════════════
   FAQ HEADING & DESCRIPTION
═══════════════════════════════════════════════════════ */

.faq-title {
    font-family: var(--font-plus);
    font-weight: 700;
    font-size: 61px;
    line-height: 1;
    color: var(--black);
    text-transform: capitalize;
}

.faq-desc {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: var(--black-70);
    max-width: 560px;
}

/* ═══════════════════════════════════════════════════════
   FAQ FILTERS
═══════════════════════════════════════════════════════ */

.faq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
}

.faq-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--second-bg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
}

.faq-filter--active {
    background: var(--black);
}

/* Yellow accent bar on left */
.faq-filter__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

/* Cut corner image at top-right */
.faq-filter__corner {
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 20px;
}

.faq-filter__corner img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Active: push corner above clip boundary → full rectangle */
.faq-filter--active .faq-filter__corner {
    top: -20px;
}

.faq-filter__label {
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--black-70);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.faq-filter--active .faq-filter__label {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   FAQ ITEMS / ACCORDION
═══════════════════════════════════════════════════════ */

.faq-item {
    background: var(--second-bg);
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

/* Question row — full-width button */
.faq-item__question {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
}

.faq-item__question-text {
    flex: 1;
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    color: var(--black);
    min-width: 0;
}

/* Toggle button: 40×40 yellow square */
.faq-item__btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    position: relative;
}

.faq-item__btn-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.faq-item__btn-icon {
    position: absolute;
    left: 50%;
    top: calc(50% - 3px);
    transform: translate(-50%, -50%) rotate(0deg);
    width: 18px;
    height: 18px;
    display: block;
    opacity: 1;
    transition: opacity 0.2s, transform 0.2s;
}
.faq-item__btn-icon.faq-item__btn-icon--close {
    width: 14px;
    height: 14px;
}

/* Default: close icon hidden */
.faq-item__btn-icon--close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

/* Open state: swap icons */
.faq-item--open .faq-item__btn-icon--open {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item--open .faq-item__btn-icon--close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Answer — hidden by default */
.faq-item__answer {
    display: none;
    overflow: hidden;
    padding: 0 20px 20px;
}

.faq-item--open .faq-item__answer {
    display: block;
}

.faq-item__answer-text {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--black-70);
}

.faq-item__answer-text p {
    margin-bottom: 15px;
}

.faq-item__answer-text p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   CTA SECTION — "Still have questions?"
═══════════════════════════════════════════════════════ */

.section-faq-cta {
    background: var(--accent);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto 160px;
}

/* Left content panel */
.section-faq-cta__content {
    width: 680px;
    flex-shrink: 0;
    padding: 80px 40px 80px 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* "Still have questions?" tag */
.section-faq-cta__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--second-bg);
    border-left: 3px solid var(--black);
    padding: 13px 5px 11px 15px;
    position: relative;
    align-self: flex-start;
    margin-right: 15px;
}

.section-faq-cta__tag-text {
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--black-70);
    text-transform: uppercase;
    white-space: nowrap;
}

.section-faq-cta__tag-arrow {
    position: absolute;
    right: -15px;
    top: 0;
    bottom: 0;
    width: 15px;
}

.section-faq-cta__tag-arrow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.section-faq-cta__title {
    font-family: var(--font-plus);
    font-weight: 700;
    font-size: 39px;
    line-height: 1;
    color: var(--black);
    text-transform: capitalize;
}

.section-faq-cta__desc {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: var(--black);
}

/* ─── Form ────────────────────────────────────────────────────────────────── */

.section-faq-cta__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-faq-cta .wpcf7-form {
    position: relative;
}

.section-faq-cta .wpcf7 p {
    margin: 0;
}

.section-faq-cta .wpcf7-form-control-wrap {
    flex: 1;
    width: 100%;
}

.section-faq-cta__fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-faq-cta__row {
    display: flex;
    gap: 20px;
}

.section-faq-cta__input {
    border-bottom: 1px solid var(--black-30);
    padding: 20px 0;
    display: flex;
    align-items: center;
}

.section-faq-cta__row .section-faq-cta__input {
    flex: 1;
    min-width: 0;
}

.section-faq-cta__input--full {
    width: 100%;
}

.section-faq-cta__input-field,
.section-faq-cta__textarea {
    flex: 1;
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: var(--black);
}

.section-faq-cta__input-field.is-invalid {
    color: #c63b3b;
}

.section-faq-cta__input.is-invalid {
    border-bottom-color: #c63b3b;
}

.section-faq-cta__input:has(.wpcf7-not-valid) {
    border-bottom-color: #c63b3b;
}

.section-faq-cta .wpcf7-not-valid-tip {
    display: none;
}

.section-faq-cta__input-field::placeholder,
.section-faq-cta__textarea::placeholder {
    color: var(--black-30);
}

.section-faq-cta__textarea {
    resize: none;
    min-height: 80px;
}

.section-faq-cta__notice {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-family: var(--font-onest);
    font-size: 14px;
    line-height: 1.4;
}

.section-faq-cta__notice[hidden] {
    display: none;
}

.section-faq-cta__notice--loading {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(51, 54, 57, 0.08);
    color: var(--black);
}

.section-faq-cta__notice--success {
    background: rgba(58, 130, 74, 0.12);
    color: #24542f;
}

.section-faq-cta .wpcf7 form .wpcf7-response-output {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    font-family: var(--font-onest);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.section-faq-cta .wpcf7 form.sent .wpcf7-response-output,
.section-faq-cta .wpcf7 form.invalid .wpcf7-response-output,
.section-faq-cta .wpcf7 form.failed .wpcf7-response-output,
.section-faq-cta .wpcf7 form.aborted .wpcf7-response-output,
.section-faq-cta .wpcf7 form.spam .wpcf7-response-output {
    opacity: 1;
    transform: translateY(0);
}

.section-faq-cta .wpcf7 form.sent .wpcf7-response-output {
    background: rgba(58, 130, 74, 0.12);
    color: #24542f;
}

.section-faq-cta .wpcf7 form.invalid .wpcf7-response-output,
.section-faq-cta .wpcf7 form.failed .wpcf7-response-output,
.section-faq-cta .wpcf7 form.aborted .wpcf7-response-output,
.section-faq-cta .wpcf7 form.spam .wpcf7-response-output {
    background: rgba(181, 55, 55, 0.12);
    color: #8f1f1f;
}

.section-faq-cta__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(51, 54, 57, 0.2);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: faq-cta-spin 0.8s linear infinite;
    flex-shrink: 0;
}

.section-faq-cta .wpcf7-spinner {
    width: 16px;
    height: 16px;
    margin: 0 0 0 10px;
    background: transparent;
    border: 2px solid rgba(51, 54, 57, 0.2);
    border-top-color: var(--black);
    border-radius: 50%;
    opacity: 1;
    vertical-align: middle;
    animation: faq-cta-spin 0.8s linear infinite;
}

.section-faq-cta .wpcf7-spinner::before {
    content: none;
}

.section-faq-cta__privacy {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    color: var(--black-70);
}

.section-faq-cta__privacy a {
    color: var(--black);
    text-decoration: underline;
}
.section-faq-cta__privacy a:hover {
    text-decoration: none;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.section-faq-cta__btns {
    display: flex;
    align-items: center;
    gap: 0;
}

.section-faq-cta__btns > p {
    display: flex;
    align-items: center;
    margin: 0;
}

/* Dark "Ask a Question" button */
.btn-dark {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    height: 50px;
    padding: 0;
    border: none;
    background: transparent;
}

.btn-dark__left,
.btn-dark__left *,
.btn-dark__right,
.btn-dark__right * {
    pointer-events: none;
}

.btn-dark p {
    margin: 0;
}

.btn-dark__left {
    width: 20px;
    height: 50px;
    flex-shrink: 0;
    position: relative;
}

.btn-dark__left img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.btn-dark__center {
    background: var(--black);
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-plus);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--white);
    white-space: nowrap;
    text-transform: capitalize;
}

.btn-dark__right {
    width: 20px;
    height: 50px;
    flex-shrink: 0;
    position: relative;
    transform: rotate(180deg);
}

.btn-dark__right img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* White phone button */
.btn-white {
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 50px;
    text-decoration: none;
}

.btn-white__left {
    width: 20px;
    height: 50px;
    flex-shrink: 0;
    position: relative;
}

.btn-white__left img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.btn-white__center {
    background: var(--white);
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-plus);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--black);
    white-space: nowrap;
    text-transform: capitalize;
}

.btn-white__right {
    width: 20px;
    height: 50px;
    flex-shrink: 0;
    position: relative;
    transform: rotate(180deg);
}

.btn-white__right img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.btn-dark:disabled {
    opacity: 0.75;
    cursor: wait;
}

/* Right: image */
.section-faq-cta__image {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.section-faq-cta__image-main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-faq-cta__image-fade {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100px;
    display: block;
}
.section-faq-cta__content__corner {
    width: 100px;
    height: 100%;
    transform: translateX(100%);
    background-color: var(--accent);
    clip-path: polygon(0 0, 0% 100%, 100% 0);
}

@media (max-width: 991px) {
    .faq-page {
        padding-top: 106px;
    }
    .faq-filters {
        margin-top: 20px;
    }
    .faq-main__wrap {
        width: 100%;
        margin: 0 auto 100px;
        padding: 0 20px 0;
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: stretch;
    }

    .faq-main__left {
        width: 100%;
        position: static;
        top: auto;
        padding: 0;
        gap: 25px;
    }

    .faq-main__right {
        width: 100%;
        padding: 0;
    }

    .faq-kb-tag,
    .section-faq-cta__tag {
        padding: 10px 5px 10px 15px;
    }

    .faq-kb-tag__text,
    .section-faq-cta__tag-text {
        font-size: 16px;
        line-height: normal;
    }

    .faq-title {
        font-size: 48px;
        line-height: normal;
    }

    .faq-desc {
        max-width: 100%;
        font-size: 19px;
        line-height: normal;
    }

    .faq-filters {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0 20px;
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .faq-filters::-webkit-scrollbar {
        display: none;
    }

    .faq-filter {
        min-height: 60px;
        padding: 20px;
    }

    .faq-filter__label {
        font-size: 16px;
        line-height: normal;
    }

    .faq-list {
        width: 100%;
    }

    .faq-item {
        margin-bottom: 20px;
    }

    .faq-item__question {
        min-height: 92px;
        padding: 20px;
        align-items: center;
    }

    .faq-item__question-text {
        font-size: 20px;
        line-height: normal;
    }

    .faq-item__answer-text {
        font-size: 16px;
        line-height: normal;
    }

    .section-faq-cta {
        width: 100%;
        max-width: calc(100% - 40px);
        margin: 0 auto 125px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .section-faq-cta__image {
        order: 1;
        width: 100%;
        min-height: 240px;
        flex: none;
    }

    .section-faq-cta__content {
        order: 2;
        width: 100%;
        padding: 30px 24px 40px;
        gap: 20px;
    }

    .section-faq-cta__content__corner {
        top: -40px;
        right: 0;
        width: 100%;
        height: 40px;
        transform: none;
        clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    }

    .section-faq-cta__title {
        font-size: 33px;
        line-height: normal;
    }

    .section-faq-cta__desc {
        font-size: 19px;
        line-height: normal;
    }

    .section-faq-cta__form {
        gap: 20px;
    }

    .section-faq-cta__fields {
        gap: 10px;
    }

    .section-faq-cta__row {
        flex-direction: column;
        gap: 10px;
    }

    .section-faq-cta__input {
        width: 100%;
        padding: 15px 0;
    }

    .section-faq-cta__input-field,
    .section-faq-cta__textarea {
        font-size: 16px;
        line-height: normal;
    }

    .section-faq-cta__textarea {
        min-height: 60px;
    }

    .section-faq-cta__privacy {
        font-size: 13px;
        line-height: normal;
    }

    .section-faq-cta__btns {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0;
    }

    .btn-white {
        display: none;
    }

    .btn-dark__center,
    .btn-white__center {
        font-size: 16px;
        line-height: normal;
    }
}

@keyframes faq-cta-spin {
    to {
        transform: rotate(360deg);
    }
}
