/* =========================================================
   MATSYORA - MOBILE FAQ
   MATCHED TO MY ORDERS / ABOUT / CONTACT / DELIVERY AREAS
========================================================= */

@media screen and (max-width: 768px) {

    /* ==========================================
       GLOBAL
    ========================================== */

    * {
        box-sizing: border-box;
    }

    html,
    body {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    body {
        background: #f4f7fb;
        color: #0f172a;
        font-family: Arial, sans-serif;
        overflow-x: hidden;
    }


    /* ==========================================
       TOP HEADER
    ========================================== */

    .top-header {
        width: 100%;
        height: auto;

        padding: 12px 12px 10px;

        background: linear-gradient(
            90deg,
            #fff7ed 0%,
            #fffbeb 50%,
            #ffffff 100%
        );

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 0;

        border-bottom: 1px solid #dbeafe;

        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

        position: sticky;
        top: 0;
        z-index: 100;
    }


    /* ==========================================
       BRAND
    ========================================== */

    .brand {
        display: flex;

        align-items: center;
        justify-content: center;

        gap: 9px;

        width: fit-content;
        max-width: 100%;

        margin: 0 auto 14px;

        padding: 0;

        min-width: 0;
    }


    /* ==========================================
       LOGO
    ========================================== */

    .logo {
        width: 52px;
        height: 52px;

        margin: 0;
        padding: 0;

        flex-shrink: 0;

        display: flex;

        align-items: center;
        justify-content: center;
    }

    .logo img {
        width: 100px;
        height: 100px;

        object-fit: contain;

        display: block;

        margin: 0;
        padding: 0;

        transform: none;
    }


    /* ==========================================
       BRAND TEXT
    ========================================== */

    .brand > div:last-child {
        display: flex;

        flex-direction: column;

        align-items: flex-start;
        justify-content: center;

        min-width: 0;
    }

    .brand h2 {
        margin: 0;

        padding: 0;

        font-size: 38px;

        line-height: 0.95;

        font-weight: 800;

        letter-spacing: -1.4px;

        white-space: nowrap;

        color: #0b376d;
    }

    .brand h2 span {
        color: #ff8c00;
    }

    .brand p {
        margin: 5px 0 0;

        padding: 0;

        font-size: 12px;

        line-height: 1.2;

        font-weight: 500;

        color: #5d6b82;

        letter-spacing: 0.1px;

        white-space: nowrap;
    }


    /* ==========================================
       SEARCH AREA
    ========================================== */

    .search-area {
        display: none;
    }


    /* ==========================================
       NAVIGATION
    ========================================== */

    .nav-buttons {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 10px;

        width: 100%;

        margin: 0;
    }

    .nav-buttons .outline-btn {
        display: flex;

        align-items: center;
        justify-content: center;

        width: 100%;

        min-width: 0;

        padding: 14px 8px;

        background: #ffffff;

        border: 1px solid #3b82f6;
        border-radius: 16px;

        color: #2563eb;

        font-size: 15px;
        font-weight: 700;

        text-decoration: none;

        white-space: nowrap;
    }

    .nav-buttons .outline-btn.green {
        border-color: #22c55e;

        color: #16a34a;
    }

    .nav-buttons .outline-btn.red {
        border-color: #ef4444;

        color: #dc2626;
    }


    /* ==========================================
       FAQ HERO
    ========================================== */

    .faq-hero {
        position: relative;

        width: 100%;
        min-height: 0;

        padding: 46px 18px 66px;

        overflow: hidden;

        text-align: center;

        color: #ffffff;

        background:
            radial-gradient(
                circle at 15% 20%,
                rgba(75, 190, 220, 0.19),
                transparent 32%
            ),
            linear-gradient(
                135deg,
                #032c59 0%,
                #075c91 55%,
                #0797b7 100%
            );
    }

    .faq-hero::before,
    .faq-hero::after {
        content: "";

        position: absolute;

        border-radius: 50%;

        background: rgba(255, 255, 255, 0.06);

        pointer-events: none;
    }

    .faq-hero::before {
        width: 180px;
        height: 180px;

        top: -75px;
        right: -55px;
    }

    .faq-hero::after {
        width: 140px;
        height: 140px;

        bottom: -75px;
        left: -40px;
    }

    .faq-hero-content {
        position: relative;

        z-index: 2;

        width: 100%;
        max-width: 100%;

        margin: 0 auto;
    }

    .faq-hero-label {
        display: inline-block;

        margin: 0 0 15px;

        padding: 7px 15px;

        border: 1px solid rgba(255, 255, 255, 0.27);
        border-radius: 50px;

        background: rgba(255, 255, 255, 0.12);

        color: #ffffff;

        font-size: 11px;
        font-weight: 800;

        line-height: 1;

        letter-spacing: 1.3px;

        text-transform: uppercase;
    }

    .faq-hero h1 {
        margin: 0 0 14px;

        color: #ffffff;

        font-size: 33px;
        font-weight: 800;

        line-height: 1.12;

        letter-spacing: -0.7px;
    }

    .faq-hero p {
        width: 100%;
        max-width: 350px;

        margin: 0 auto;

        color: rgba(255, 255, 255, 0.88);

        font-size: 14.5px;

        line-height: 1.6;
    }


    /* ==========================================
       FAQ SEARCH WRAPPER
    ========================================== */

    .faq-search-wrapper {
        position: relative;

        z-index: 10;

        width: calc(100% - 28px);

        margin: -28px auto 32px;
    }

    .faq-search-box {
        display: flex;

        align-items: center;

        gap: 9px;

        width: 100%;

        min-height: 0;

        padding: 8px 12px;

        background: #ffffff;

        border: 1px solid #dceaf1;
        border-radius: 14px;

        box-shadow: 0 8px 22px rgba(6, 57, 112, 0.10);
    }

    .faq-search-box .search-icon {
        flex-shrink: 0;

        margin: 0;

        font-size: 18px;
    }

    .faq-search-box input {
        flex: 1;

        width: 100%;
        min-width: 0;

        padding: 11px 2px;

        border: none;

        outline: none;

        background: transparent;

        color: #17324d;

        font-size: 14px;
    }

    .faq-search-box input::placeholder {
        color: #8ca0b2;
    }


    /* ==========================================
       FAQ SECTION
    ========================================== */

    .faq-section {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;

        padding: 0 14px 40px;
    }


    /* ==========================================
       SECTION HEADING
    ========================================== */

    .section-heading {
        margin: 0 0 24px;

        text-align: center;
    }

    .section-heading h2 {
        margin: 0 0 7px;

        color: #063970;

        font-size: 25px;
        font-weight: 800;

        line-height: 1.25;
    }

    .section-heading p {
        margin: 0;

        color: #60758a;

        font-size: 13.5px;

        line-height: 1.55;
    }


    /* ==========================================
       FAQ CATEGORY
    ========================================== */

    .faq-category {
        width: 100%;

        margin-bottom: 30px;
    }

    .category-title {
        display: flex;

        align-items: center;

        gap: 9px;

        margin: 0 0 12px;

        color: #063970;

        font-size: 18px;
        font-weight: 800;

        line-height: 1.3;
    }

    .category-icon {
        width: 36px;
        height: 36px;

        flex-shrink: 0;

        display: flex;

        align-items: center;
        justify-content: center;

        border-radius: 10px;

        background: #eef8fc;

        font-size: 17px;
    }


    /* ==========================================
       FAQ ITEM
    ========================================== */

    .faq-item {
        width: 100%;

        margin-bottom: 9px;

        overflow: hidden;

        background: #ffffff;

        border: 1px solid #dceaf1;
        border-radius: 12px;

        box-shadow: 0 2px 8px rgba(6, 57, 112, 0.03);

        transition: none;
    }

    .faq-item:hover {
        border-color: #dceaf1;

        box-shadow: 0 2px 8px rgba(6, 57, 112, 0.03);
    }

    .faq-item.active {
        border-color: #9fd0e2;
    }


    /* ==========================================
       FAQ QUESTION
    ========================================== */

    .faq-question {
        width: 100%;

        min-height: 0;

        padding: 15px 14px;

        border: none;

        background: transparent;

        color: #17324d;

        font-size: 13.5px;
        font-weight: 700;

        line-height: 1.45;

        text-align: left;

        cursor: pointer;

        display: flex;

        align-items: center;
        justify-content: space-between;

        gap: 10px;
    }

    .faq-question:hover {
        color: #17324d;
    }

    .faq-item.active .faq-question {
        color: #063970;
    }

    .faq-question > span:first-child {
        flex: 1;

        min-width: 0;
    }


    /* ==========================================
       FAQ TOGGLE
    ========================================== */

    .faq-toggle {
        flex: 0 0 28px;

        width: 28px;
        height: 28px;

        border-radius: 50%;

        background: #eef8fc;

        display: flex;

        align-items: center;
        justify-content: center;

        color: #063970;

        font-size: 20px;
        font-weight: 400;

        line-height: 1;

        transition: 0.25s ease;
    }

    .faq-item.active .faq-toggle {
        background: #063970;

        color: #ffffff;

        transform: rotate(45deg);
    }


    /* ==========================================
       FAQ ANSWER
    ========================================== */

    .faq-answer {
        max-height: 0;

        overflow: hidden;

        transition: max-height 0.35s ease;
    }

    .faq-answer-content {
        padding: 0 14px 15px;

        color: #60758a;

        font-size: 13px;

        line-height: 1.65;
    }


    /* ==========================================
       NO RESULTS
    ========================================== */

    #noResults {
        width: 100%;

        padding: 26px 16px;

        background: #ffffff;

        border: 1px solid #dceaf1;
        border-radius: 13px;

        text-align: center;

        color: #60758a;
    }

    #noResults h3 {
        margin: 0 0 7px;

        color: #063970;

        font-size: 17px;
    }

    #noResults p {
        margin: 0;

        font-size: 13px;

        line-height: 1.55;
    }


    /* ==========================================
       SUPPORT SECTION
    ========================================== */

    .support-section {
        width: calc(100% - 28px);

        margin: 0 auto 34px;

        padding: 27px 17px;

        background:
            linear-gradient(
                135deg,
                #063970,
                #0a6ea8
            );

        border-radius: 17px;

        color: #ffffff;

        text-align: center;

        box-shadow: 0 8px 22px rgba(6, 57, 112, 0.11);

        position: relative;

        overflow: hidden;
    }

    .support-section::before {
        width: 130px;
        height: 130px;

        right: -45px;
        top: -55px;
    }

    .support-content {
        position: relative;

        z-index: 2;
    }

    .support-section h2 {
        margin: 0 0 9px;

        color: #ffffff;

        font-size: 24px;
        font-weight: 800;

        line-height: 1.25;
    }

    .support-section p {
        max-width: 340px;

        margin: 0 auto 18px;

        color: rgba(255, 255, 255, 0.84);

        font-size: 13.5px;

        line-height: 1.6;
    }


    /* ==========================================
       SUPPORT BUTTONS
    ========================================== */

    .support-buttons {
        display: grid;

        grid-template-columns: 1fr;

        gap: 9px;

        width: 100%;
    }

    .support-button {
        width: 100%;

        padding: 11px 14px;

        border-radius: 9px;

        text-decoration: none;

        font-size: 13.5px;
        font-weight: 700;

        text-align: center;

        transition: none;
    }

    .support-button.primary {
        color: #063970;

        background: #ffffff;
    }

    .support-button.secondary {
        color: #ffffff;

        border: 1px solid rgba(255, 255, 255, 0.45);

        background: rgba(255, 255, 255, 0.08);
    }

    .support-button:hover,
    .support-button:active {
        transform: none;
    }


    /* ==========================================
       FOOTER
    ========================================== */

    .footer {
        width: 100%;

        padding: 18px 14px;

        background: #022747;

        color: rgba(255, 255, 255, 0.75);

        text-align: center;

        font-size: 11.5px;

        line-height: 1.5;
    }

    .footer p {
        margin: 0;
    }

    .footer strong {
        color: #ffffff;
    }


    /* ==========================================
       SMALL PHONES
    ========================================== */

    @media (max-width: 390px) {

        .top-header {
            padding-left: 10px;
            padding-right: 10px;
        }

        .brand {
            gap: 7px;

            margin-bottom: 12px;
        }

        .logo {
            width: 48px;
            height: 48px;
        }

        .logo img {
            width: 92px;
            height: 92px;
        }

        .brand h2 {
            font-size: 34px;
        }

        .brand p {
            font-size: 11px;
        }

        .nav-buttons {
            gap: 8px;
        }

        .nav-buttons .outline-btn {
            padding: 12px 6px;

            font-size: 14px;
        }

        .faq-hero {
            padding: 40px 14px 60px;
        }

        .faq-hero h1 {
            font-size: 30px;
        }

        .faq-hero p {
            font-size: 14px;
        }

        .faq-search-wrapper {
            width: calc(100% - 20px);
        }

        .faq-section {
            padding-left: 10px;
            padding-right: 10px;
        }

        .section-heading h2 {
            font-size: 23px;
        }

        .category-title {
            font-size: 17px;
        }

        .faq-question {
            padding: 14px 12px;

            font-size: 13px;
        }

        .faq-answer-content {
            padding-left: 12px;
            padding-right: 12px;

            font-size: 12.5px;
        }

        .support-section {
            width: calc(100% - 20px);

            padding: 24px 14px;
        }

        .support-section h2 {
            font-size: 22px;
        }
    }
}