/* SEARCH ORDER MODAL */
.search-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 20px;
    background: rgba(23, 26, 38, 0.8);
    backdrop-filter: blur(4px);
}

.search-modal.active {
    display: flex;
}

.search-modal .modal-box {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 20px;
    max-width: 1060px;
    width: 100%;
    animation: searchModalIn 0.35s ease-out;
}

.search-modal .promo-panel {
    flex: 0 0 318px;
    min-height: 318px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 25px;
    border-radius: 30px;
    overflow: hidden;
    background-image: 
        linear-gradient(180deg, rgba(254, 80, 11, 0) 66%, #fe500b 100%), 
        var(--promo-bg);
    background-size: cover;
    background-position: center top;
}

.search-modal .promo-panel .logo img {
    width: 35px;
    filter: brightness(0) invert(1);
}

.search-modal .form-panel {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
}

.search-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    color: #666f94;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-modal .search-form-content {
    width: 100%;
    max-width: 640px;
}

.search-modal .search-title {
    text-align: center;
    margin-bottom: 30px;
}

.search-modal .search-title .icon {
    color: #fe500b;
    font-size: 24px;
}

.search-modal .search-title .title {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #33353e;
    margin-bottom: 10px;
}

.search-modal .search-title .subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #7a7f99;
    margin: 0;
}

.search-modal .form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-modal .field {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 68px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid rgba(234, 234, 237, 0.7);
    border-radius: 16px;
}

.search-modal .field .icon {
    color: #666f94;
    font-size: 18px;
    opacity: 0.8;
}

.search-modal .field .divider {
    width: 1px;
    height: 34px;
    background: rgba(102, 111, 148, 0.1);
    border-radius: 27px;
}

.search-modal .field .input-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-modal .field .input-wrap .label {
    font-size: 12px;
    font-weight: 500;
    color: #666f94;
    opacity: 0.8;
}

.search-modal .field .input-wrap input {
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #33353e;
    outline: none;
    padding: 0;
}

.search-modal .field .input-wrap input::placeholder {
    color: #99a0b8;
    font-weight: 500;
}

.search-modal .field .submit-btn {
    width: 110px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fe500b;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-modal .field .submit-btn:hover {
    background: #e54509;
}

/* Full width submit button (ayrı) */
.search-modal .submit-btn {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fe500b;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-modal .submit-btn:hover {
    background: #e54509;
}

.search-modal .submit-btn[data-theme="purple"] {
    background: #7c3aed;
}

.search-modal .submit-btn[data-theme="purple"]:hover {
    background: #6d28d9;
}

/* Purple Theme */
.search-modal .promo-panel[data-theme="purple"] {
    background-image: 
        linear-gradient(180deg, rgba(124, 58, 237, 0) 66%, #7c3aed 100%), 
        var(--promo-bg);
}

.search-modal .search-title[data-theme="purple"] .icon {
    color: #7c3aed;
}

.search-modal .close-btn:hover {
    background: rgba(254, 80, 11, 0.1);
    color: #fe500b;
}

.search-modal[data-theme="purple"] .close-btn:hover {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

@keyframes searchModalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Tablet */
@media (max-width: 991px) {
    .search-modal .modal-box {
        flex-direction: column;
    }

    .search-modal .promo-panel {
        flex: none;
        min-height: 200px;
    }

    .search-modal .form-panel {
        padding: 40px 30px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .search-modal {
        padding: 10px;
    }

    .search-modal .promo-panel {
        min-height: 150px;
        border-radius: 20px;
    }

    .search-modal .form-panel {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .search-modal .search-title .title {
        font-size: 20px;
    }

    .search-modal .search-title .subtitle {
        font-size: 15px;
    }

    .search-modal .field {
        flex-wrap: wrap;
        height: auto;
        gap: 12px;
    }

    .search-modal .field .icon,
    .search-modal .field .divider {
        display: none;
    }

    .search-modal .field .input-wrap {
        flex: 1 1 100%;
    }

    .search-modal .field .submit-btn {
        width: 100%;
    }
}

/* PRICING SECTION - Nested Scoped CSS */

#pricing {
    padding: 60px 0;
    color: #666F94;
    font-weight: 600;
    font-size: 16px;

    & .pricing-title {
        text-align: center;
        margin-bottom: 30px;

        & .title {
            display: block;
            font-size: 30px;
            color: #4C5473;

            & em {
                font-style: normal;
                color: #7844E4;
            }
        }
    }

    & .billing-toggle {
        display: inline-flex;
        gap: 5px;
        padding: 12px;
        background: #fff;
        border: 1px solid #EAEAED;
        border-radius: 14px;
        margin-bottom: 30px;

        & button {
            padding: 10px 30px;
            border: none;
            border-radius: 12px;
            background: transparent;
            cursor: pointer;
            transition: 0.2s;
            font-size: 17px;
            font-weight: 500;
            color: #666F94;

            &.active {
                background: #1A1D2A;
                color: #fff;
            }
        }

        & a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 12px;
            text-decoration: none;
            transition: 0.2s;
            font-size: 17px;
            font-weight: 500;
            color: #666F94;

            & i { font-size: 18px; }

            &.active {
                background: #7844E4;
                color: #fff;
            }
        }
    }

    & .pricing-cards {
        display: flex;
        justify-content: center;
        gap: 24px;
        flex-wrap: nowrap;
    }

    & .pricing-card {
        position: relative;
        flex: 1;
        max-width: 430px;
        min-height: 711px;
        background: #F6F7FB;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 24px;
        box-shadow: 0 10px 50px -4px rgba(0,0,0,0.01), 0 2px 11px -2px rgba(0,0,0,0.03), 0 0.6px 3px -1px rgba(0,0,0,0.04);
        overflow: hidden;
        padding: 44px;
        display: flex;
        flex-direction: column;
        gap: 20px;

        &::before {
            content: '';
            position: absolute;
            inset: 4px;
            background: #fff;
            border-radius: 20px;
            z-index: 0;
        }

        & > * {
            position: relative;
            z-index: 1;
        }
    }

    & .card-header {
        display: flex;
        align-items: center;
        gap: 16px;

        & img {
            width: 21px;
            height: 24px;
        }

        & h3 {
            font-size: 20px;
            font-weight: 500;
            color: #33353E;

            & strong { font-weight: 600; }
        }
    }

    & .card-pricing {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    & .price {
        font-size: 40px;
        font-weight: 600;
        background: linear-gradient(135deg, #9462FB, #7624BF);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;

        & small {
            font-size: 30px;
        }
    }

    & .badge {
        display: inline-flex;
        align-items: center;
        padding: 8px;
        background: #FCD34D;
        border-radius: 10px;
        font-weight: 600;
        font-size: 12px;
        color: #78350F;
        line-height: 16px;
    }

    & .old-price {
        width: 100%;
        font-weight: 500;
        font-size: 18px;
        color: #6F769B;
    }

    & .card-desc {
        font-weight: 500;
        line-height: 22px;
    }

    & .card-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 52px;
        border: none;
        border-radius: 12px;
        background: var(--card-gradient, linear-gradient(135deg, #9462FB, #7624BF));
        transition: transform 0.25s, opacity 0.25s;
        font: inherit;
        color: #fff;
        text-shadow: 0 1px 10px rgba(0,0,0,0.12);
        cursor: pointer;

        &:hover {
            transform: translateY(-3px);
            opacity: 0.9;
        }

        &:disabled {
            background: #666F94;
            cursor: not-allowed;
            opacity: 0.7;

            &:hover {
                transform: none;
            }
        }
    }

    & .card-features {
        & h4 {
            color: #000;
            margin-bottom: 16px;
        }

        & ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        & li {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 15px;
            color: #4A4A4A;
            text-transform: capitalize;

            & i {
                color: var(--card-color, #7844E4);
            }

            & u {
                text-decoration: underline;
            }
        }
    }

    & .view-all {
        text-align: center;
        font-size: 15px;
        color: var(--card-color, #7844E4);
        text-decoration: none;
        cursor: pointer;
        margin-top: auto;

        &:hover {
            text-decoration: underline;
        }
    }
}

/* Responsive */
@media (max-width: 1200px) {
    #pricing .pricing-cards {
        flex-wrap: wrap;
    }

    #pricing .pricing-card {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    #pricing {
        padding: 40px 0;

        & .pricing-title h1 {
            font-size: 24px;
        }

        & .pricing-cards {
            flex-wrap: nowrap;
            justify-content: flex-start;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            padding: 10px 15px 20px;
            margin: 0 -15px;
            gap: 16px;
            scrollbar-width: none;

            &::-webkit-scrollbar { display: none; }
        }

        & .pricing-card {
            flex: 0 0 125vw;
            max-width: 400px;
            min-height: auto;
            padding: 24px;
            scroll-snap-align: center;
        }
    }
}


