/* =========================================================
   TRAVELLOLO FAQ PAGE
   File: assets/css/faqs.css
========================================================= */

.tl-faq-page {
    background: #f7f9fc;
    color: #10264c;
}

.tl-faq-page *,
.tl-faq-page *::before,
.tl-faq-page *::after {
    box-sizing: border-box;
}

.tl-faq-page img {
    max-width: 100%;
    display: block;
}

.tl-faq-page svg {
    display: block;
}

.tl-faq-page a {
    text-decoration: none;
}

.tl-faq-page button,
.tl-faq-page input,
.tl-faq-page select,
.tl-faq-page textarea {
    font: inherit;
}

.tl-faq-page .tl-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}


/* =========================================================
   HERO
========================================================= */

.tl-faq-hero {
    padding: 34px 0 20px;
}

.tl-faq-hero-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 39, 78, 0.14);
}

.tl-faq-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tl-faq-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 29, 73, 0.88) 0%,
            rgba(5, 29, 73, 0.74) 36%,
            rgba(5, 29, 73, 0.26) 72%,
            rgba(5, 29, 73, 0.08) 100%
        );
}

.tl-faq-hero-content {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    padding: 84px 62px 70px;
    color: #fff;
}

.tl-faq-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.tl-faq-hero-content h1 {
    margin: 20px 0 18px;
    color: #fff;
    font-size: clamp(22px, 3vw, 42px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.tl-faq-hero-content p {
    max-width: 510px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.75;
}

.tl-faq-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    margin-top: 28px;
    padding: 0 20px;
    border-radius: 8px;
    background: #f4511e;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.tl-faq-hero-btn svg {
    width: 18px;
    height: 18px;
}

.tl-faq-hero-btn:hover {
    background: #dd3f0d;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(244, 81, 30, 0.28);
}


/* =========================================================
   QUICK CATEGORY CARDS
========================================================= */

.tl-faq-categories {
    position: relative;
    z-index: 5;
    padding: 0 0 24px;
}

.tl-faq-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: -46px;
    padding: 0 18px;
}

.tl-faq-category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 16px 18px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(13, 42, 82, 0.09);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.tl-faq-category-card:hover {
    transform: translateY(-3px);
    border-color: #cfd9e7;
    box-shadow: 0 16px 38px rgba(13, 42, 82, 0.13);
}

.tl-faq-category-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef4ff;
    color: #0b3477;
}

.tl-faq-category-card:nth-child(2) .tl-faq-category-icon {
    background: #fff1ec;
    color: #f4511e;
}

.tl-faq-category-card:nth-child(3) .tl-faq-category-icon {
    background: #eefaf4;
    color: #208a5d;
}

.tl-faq-category-card:nth-child(4) .tl-faq-category-icon {
    background: #fff7e7;
    color: #d99616;
}

.tl-faq-category-icon svg {
    width: 24px;
    height: 24px;
}

.tl-faq-category-card strong {
    display: block;
    color: #10264c;
    font-size: 14px;
    line-height: 1.25;
}

.tl-faq-category-card small {
    display: block;
    margin-top: 3px;
    color: #7d899a;
    font-size: 11px;
}


/* =========================================================
   MAIN FAQ LAYOUT
========================================================= */

.tl-faq-main {
    padding: 48px 0 80px;
    scroll-margin-top: 100px;
}

.tl-faq-layout {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}


/* =========================================================
   SIDEBAR
========================================================= */

.tl-faq-sidebar {
    position: relative;
}

.tl-faq-sidebar-box {
    position: sticky;
    top: 105px;
    padding: 26px;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(15, 42, 80, 0.07);
}

.tl-faq-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #f4511e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tl-faq-sidebar-box h2 {
    margin: 0;
    color: #10264c;
    font-size: 26px;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.tl-faq-sidebar-box p {
    margin: 12px 0 22px;
    color: #758196;
    font-size: 13px;
    line-height: 1.65;
}

.tl-faq-side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tl-faq-side-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px 0 15px;
    border-radius: 8px;
    color: #5c6b7f;
    font-size: 13px;
    font-weight: 700;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.tl-faq-side-nav a::before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px;
    height: 18px;
    border-radius: 99px;
    background: transparent;
}

.tl-faq-side-nav a:hover {
    color: #0b3477;
    background: #f4f7fb;
    transform: translateX(2px);
}

.tl-faq-side-nav a.active {
    color: #0b3477;
    background: #eef4ff;
}

.tl-faq-side-nav a.active::before {
    background: #f4511e;
}


/* =========================================================
   FAQ CONTENT
========================================================= */

.tl-faq-content {
    min-width: 0;
}

.tl-faq-group {
    scroll-margin-top: 110px;
}

.tl-faq-group + .tl-faq-group {
    margin-top: 54px;
}

.tl-faq-group-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.tl-faq-group-head > span {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #10264c;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.tl-faq-group-head small {
    display: block;
    margin-bottom: 2px;
    color: #f4511e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tl-faq-group-head h2 {
    margin: 0;
    color: #10264c;
    font-size: 29px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}


/* =========================================================
   ACCORDION
========================================================= */

.tl-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tl-faq-item {
    overflow: hidden;
    border: 1px solid #e1e7ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 39, 78, 0.035);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.tl-faq-item:hover {
    border-color: #d4dde9;
}

.tl-faq-item.active {
    border-color: #cdd9e8;
    box-shadow: 0 10px 26px rgba(12, 42, 84, 0.07);
}

.tl-faq-question {
    width: 100%;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 0;
    outline: 0;
    background: #fff;
    color: #10264c;
    text-align: left;
    cursor: pointer;
}

.tl-faq-question > span:first-child {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;
}

.tl-faq-question:hover {
    background: #fbfcfe;
}

.tl-faq-plus {
    position: relative;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f6fa;
}

.tl-faq-plus::before,
.tl-faq-plus::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 2px;
    border-radius: 2px;
    background: #0b3477;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.tl-faq-plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.tl-faq-item.active .tl-faq-plus {
    background: #fff0ea;
}

.tl-faq-item.active .tl-faq-plus::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.tl-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 0.28s ease,
        opacity 0.22s ease;
}

.tl-faq-answer > div {
    overflow: hidden;
}

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

.tl-faq-answer p {
    margin: 0;
    padding: 0 18px 20px;
    color: #69778a;
    font-size: 13px;
    line-height: 1.72;
}


/* =========================================================
   HELP CTA
========================================================= */

.tl-faq-help {
    padding: 0 0 82px;
}

.tl-faq-help-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 38px 42px;
    border-radius: 18px;
    background:
        linear-gradient(
            120deg,
            #0b3477 0%,
            #10264c 55%,
            #071b36 100%
        );
    box-shadow: 0 18px 46px rgba(7, 30, 65, 0.18);
}

.tl-faq-help-card::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -90px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.tl-faq-help-card::after {
    content: "";
    position: absolute;
    right: 95px;
    bottom: -125px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.tl-faq-help-card > div,
.tl-faq-help-btn {
    position: relative;
    z-index: 2;
}

.tl-faq-help-card > div {
    width: min(700px, 100%);
}

.tl-faq-help-card > div > span {
    display: block;
    margin-bottom: 7px;
    color: #ffb59d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tl-faq-help-card h2 {
    margin: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.tl-faq-help-card p {
    max-width: 650px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.7;
}

.tl-faq-help-btn {
    flex: 0 0 auto;
    min-width: 150px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 8px;
    background: #f4511e;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.tl-faq-help-btn svg {
    width: 18px;
    height: 18px;
}

.tl-faq-help-btn:hover {
    background: #de3e0c;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(244, 81, 30, 0.25);
}


/* =========================================================
   ACCESSIBILITY / FOCUS
========================================================= */

.tl-faq-page a:focus-visible,
.tl-faq-page button:focus-visible {
    outline: 3px solid rgba(244, 81, 30, 0.35);
    outline-offset: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .tl-faq-page .tl-container {
        width: min(100% - 32px, 1180px);
    }

    .tl-faq-hero-card {
        min-height: 470px;
    }

    .tl-faq-hero-content {
        width: min(530px, 100%);
        padding: 70px 44px 60px;
    }

    .tl-faq-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -34px;
        padding: 0 12px;
    }

    .tl-faq-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 28px;
    }

    .tl-faq-sidebar-box {
        padding: 22px;
    }

    .tl-faq-sidebar-box h2 {
        font-size: 23px;
    }
}


/* =========================================================
   MOBILE LANDSCAPE / SMALL TABLET
========================================================= */

@media (max-width: 820px) {

    .tl-faq-hero {
        padding-top: 20px;
    }

    .tl-faq-hero-card {
        min-height: 450px;
        border-radius: 18px;
    }

    .tl-faq-hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(5, 29, 73, 0.9) 0%,
                rgba(5, 29, 73, 0.73) 60%,
                rgba(5, 29, 73, 0.38) 100%
            );
    }

    .tl-faq-hero-content {
        padding: 62px 34px 54px;
    }

    .tl-faq-hero-content h1 {
        font-size: 48px;
    }

    .tl-faq-layout {
        grid-template-columns: 1fr;
    }

    .tl-faq-sidebar-box {
        position: static;
    }

    .tl-faq-side-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tl-faq-main {
        padding-top: 38px;
    }

    .tl-faq-help-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 34px;
    }

    .tl-faq-help-btn {
        min-width: 0;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .tl-faq-page .tl-container {
        width: min(100% - 24px, 1180px);
    }

    .tl-faq-hero {
        padding: 14px 0 16px;
    }

    .tl-faq-hero-card {
        min-height: 440px;
        border-radius: 15px;
    }

    .tl-faq-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(5, 29, 73, 0.58) 0%,
                rgba(5, 29, 73, 0.86) 100%
            );
    }

    .tl-faq-hero-content {
        width: 100%;
        padding: 62px 24px 36px;
        display: flex;
        min-height: 440px;
        flex-direction: column;
        justify-content: flex-end;
    }

    .tl-faq-kicker {
        width: fit-content;
    }

    .tl-faq-hero-content h1 {
        margin-top: 16px;
        font-size: 39px;
        line-height: 1;
    }

    .tl-faq-hero-content p {
        font-size: 13px;
        line-height: 1.65;
    }

    .tl-faq-hero-btn {
        min-height: 44px;
        margin-top: 20px;
        padding: 0 16px;
        font-size: 12px;
    }

    .tl-faq-category-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 0;
        padding: 0;
    }

    .tl-faq-category-card {
        min-height: 76px;
        padding: 13px 14px;
        border-radius: 11px;
    }

    .tl-faq-category-icon {
        width: 42px;
        height: 42px;
    }

    .tl-faq-main {
        padding: 30px 0 58px;
    }

    .tl-faq-sidebar-box {
        padding: 20px;
        border-radius: 13px;
    }

    .tl-faq-sidebar-box h2 {
        font-size: 22px;
    }

    .tl-faq-side-nav {
        grid-template-columns: 1fr;
    }

    .tl-faq-side-nav a {
        min-height: 39px;
        font-size: 12px;
    }

    .tl-faq-group + .tl-faq-group {
        margin-top: 42px;
    }

    .tl-faq-group-head {
        gap: 12px;
        margin-bottom: 14px;
    }

    .tl-faq-group-head > span {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 11px;
    }

    .tl-faq-group-head h2 {
        font-size: 24px;
    }

    .tl-faq-question {
        min-height: 60px;
        padding: 14px;
    }

    .tl-faq-question > span:first-child {
        font-size: 13px;
    }

    .tl-faq-plus {
        width: 26px;
        height: 26px;
    }

    .tl-faq-answer p {
        padding: 0 14px 16px;
        font-size: 12px;
        line-height: 1.65;
    }

    .tl-faq-help {
        padding-bottom: 58px;
    }

    .tl-faq-help-card {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .tl-faq-help-card h2 {
        font-size: 27px;
    }

    .tl-faq-help-card p {
        font-size: 12px;
    }

    .tl-faq-help-btn {
        width: 100%;
        min-height: 44px;
        font-size: 12px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .tl-faq-page .tl-container {
        width: min(100% - 18px, 1180px);
    }

    .tl-faq-hero-content {
        padding-inline: 18px;
    }

    .tl-faq-hero-content h1 {
        font-size: 34px;
    }

    .tl-faq-category-card strong {
        font-size: 13px;
    }

    .tl-faq-sidebar-box {
        padding: 17px;
    }

    .tl-faq-group-head h2 {
        font-size: 22px;
    }

    .tl-faq-question {
        padding-inline: 12px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

    .tl-faq-page *,
    .tl-faq-page *::before,
    .tl-faq-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* =========================================================
   HELLO ELEMENTOR BUTTON OVERRIDE
   FAQ ACCORDION FIX
========================================================= */

.tl-faq-page .tl-faq-question {
    appearance: none !important;
    -webkit-appearance: none !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    min-height: 64px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;

    margin: 0 !important;
    padding: 16px 18px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    color: #10264c !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;

    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;

    box-shadow: none !important;
    text-shadow: none !important;

    cursor: pointer !important;
}

.tl-faq-page .tl-faq-question:hover,
.tl-faq-page .tl-faq-question:focus,
.tl-faq-page .tl-faq-question:active {
    border: 0 !important;
    background: #fbfcfe !important;
    color: #10264c !important;
    box-shadow: none !important;
    text-decoration: none !important;
}


/* TEXT */

.tl-faq-page .tl-faq-question > span:first-child {
    flex: 1 1 auto !important;
    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #10264c !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;

    text-align: left !important;
}


/* PLUS ICON */

.tl-faq-page .tl-faq-plus {
    position: relative !important;

    flex: 0 0 28px !important;

    width: 28px !important;
    height: 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: #f3f6fa !important;

    box-shadow: none !important;
}

.tl-faq-page .tl-faq-plus::before,
.tl-faq-page .tl-faq-plus::after {
    content: "" !important;

    position: absolute !important;
    top: 50% !important;
    left: 50% !important;

    width: 11px !important;
    height: 2px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 2px !important;

    background: #0b3477 !important;

    transform: translate(-50%, -50%) !important;
}

.tl-faq-page .tl-faq-plus::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg) !important;
}

.tl-faq-page .tl-faq-item.active .tl-faq-plus {
    background: #fff0ea !important;
}

.tl-faq-page .tl-faq-item.active .tl-faq-plus::after {
    transform:
        translate(-50%, -50%)
        rotate(0deg) !important;
}


/* =========================================================
   FAQ ITEM
========================================================= */

.tl-faq-page .tl-faq-item {
    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border: 1px solid #e1e7ee !important;
    border-radius: 12px !important;

    background: #ffffff !important;

    box-shadow:
        0 5px 18px rgba(15, 39, 78, 0.035) !important;
}

.tl-faq-page .tl-faq-item.active {
    border-color: #ccd8e7 !important;

    box-shadow:
        0 10px 26px rgba(12, 42, 84, 0.07) !important;
}


/* =========================================================
   ANSWER
========================================================= */

.tl-faq-page .tl-faq-answer {
    width: 100% !important;
}

.tl-faq-page .tl-faq-answer > div {
    width: 100% !important;
}

.tl-faq-page .tl-faq-answer p {
    margin: 0 !important;

    padding:
        0 18px 20px !important;

    color: #69778a !important;

    font-size: 13px !important;
    line-height: 1.7 !important;
}


/* =========================================================
   REMOVE HELLO ELEMENTOR GLOBAL BUTTON STYLES
========================================================= */

.tl-faq-page button,
.tl-faq-page button:hover,
.tl-faq-page button:focus,
.tl-faq-page button:active {
    text-decoration: none !important;
}

.tl-faq-page button:not(.tl-faq-hero-btn):not(.tl-faq-help-btn) {
    box-shadow: none !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .tl-faq-page .tl-faq-question {
        min-height: 58px !important;

        padding:
            14px 14px !important;

        gap: 12px !important;
    }

    .tl-faq-page .tl-faq-question > span:first-child {
        font-size: 13px !important;
    }

    .tl-faq-page .tl-faq-plus {
        flex-basis: 26px !important;

        width: 26px !important;
        height: 26px !important;
    }

    .tl-faq-page .tl-faq-answer p {
        padding:
            0 14px 16px !important;

        font-size: 12px !important;
    }
}