/* ===== Home page hero: AI search ===== */
.home-ai-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px;
    margin: 30px auto 0;
    padding: 0 16px;
}

.home-ai-search__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: linear-gradient(105deg, rgba(241, 104, 173, 0.9) 0%, rgba(174, 85, 232, 0.9) 48%, rgba(106, 94, 240, 0.9) 100%);
    box-shadow: 0 0 14px rgba(185, 122, 236, 0.3);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.home-ai-search__box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 4px 4px 4px 18px;
    /* White fill with a gradient ring */
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(105deg, #f168ad 0%, #ae55e8 48%, #6a5ef0 100%) border-box;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.25s ease;
}

    .home-ai-search__box:focus-within {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(185, 122, 236, 0.3);
    }

.home-ai-search__icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    fill: #ae55e8;
}

.home-ai-search .home-ai-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none;
    box-shadow: none !important;
    background: transparent;
    color: #202123;
    font-size: 16px !important;
}

    .home-ai-search .home-ai-search__input::placeholder {
        color: #9aa0a6;
    }

.home-ai-search__submit {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(105deg, #f168ad 0%, #ae55e8 48%, #6a5ef0 100%);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .home-ai-search__submit:hover,
    .home-ai-search__submit:focus {
        transform: scale(1.06);
        box-shadow: 0 0 16px rgba(243, 131, 188, 0.45);
        outline: none;
    }

@media only screen and (max-width: 767px) {
    .home-ai-search {
        margin-top: 20px;
    }

    .home-ai-search__box {
        padding-left: 14px;
    }

    .home-ai-search__icon {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }

    .home-ai-search .home-ai-search__input {
        height: 42px !important;
        font-size: 14px !important;
    }

    .home-ai-search__submit {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
