/* Hero FAQ Section - Exact copy from search-location.css */
.hero-faq {
    position: relative;
    background: #e9e2d3;
    padding-top: 80px;
    /* overflow: hidden; */
}

.hero-faq__decoration {
    position: absolute;
    top: 50%;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    max-width: 272px;
    height: auto;
}

.hero-faq__decoration--left {
    left: 0;
    transform: translate(0, -40%);
}

.hero-faq__decoration--right {
    right: 0;
    transform: translate(0%, -40%);
}

.hero-faq__container-wrapper {
    margin: 0 auto;
    max-height: 333px;
    width: 100%;
    position: relative;
}

.hero-faq__container {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 120px;
}

.hero-faq__header {
    text-align: center;
    padding-inline: 20px;
}

.hero-faq__title {
    font-family: var(--font-family-archer, 'Archer', serif);
    font-size: 62px;
    font-weight: 700;
    color: #196b81;
    margin: 0;
    padding-bottom: 20px;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.hero-faq__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 80%;
    height: 15px;
    background-image: url('../images/BRUSHES.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateX(-50%);
}

.hero-faq__subtitle {
    font-family: var(--font-family-archer, 'Archer', serif);
    font-size: 22px;
    line-height: 1.4;
    margin: 0;
    padding-top: 40px;
    color: #0f0f0f;
}

.hero-faq__search {
    background: #ffffff;
    border-radius: 1000px;
    box-shadow: 0px 4px 20px 0px #0000000f;
    padding: 37px;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%);
}

.hero-faq__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 1000px;
    background: #ffffff;
    min-width: 0;
}

.hero-faq__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.hero-faq__input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--font-family-archer, 'Archer', serif);
    font-size: 18px;
    line-height: 1.2;
    min-width: 0;
}

.hero-faq__input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.hero-faq__button {
    max-width: 160px;
    max-height: 56px;
    height: 100%;
    width: 100%;
    padding: 14px 30px;
    border-radius: 1000px;
    border: 0;
    background: #e47633;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    font-family: var(--font-family-archer, 'Archer', serif);
    transition: background 0.3s ease;
}

.hero-faq__button:hover {
    background: #c66329;
}

/* FAQ Results Wrapper - Content area below the search */
.hero-faq__results-wrapper {
    background: #fff;
    padding: 100px 0 80px;
}

@media (max-width: 1250px) {
    .hero-faq__search {
        width: 80%;
    }
}

@media (max-width: 900px) {
    .hero-faq{
        padding-top: 30px;
    }
    .hero-faq__container-wrapper{
        padding-inline: 10px;
    }
    .hero-faq__title {
        font-size: 48px;
    }

    .hero-faq__subtitle {
        font-size: 18px;
    }

    .hero-faq__search {
        transform: translate(-50%, 30%);
        width: 100%;
        flex-direction: column;
        border-radius: 30px;
        padding: 16px;
    }

    .hero-faq__field {
        width: 100%;
    }

    .hero-faq__button {
        width: 100%;
        max-width: 100%;
    }

    .hero-faq__decoration {
        max-width: 120px;
        opacity: 0.9;
    }
}

@media (max-width: 768px) {
    .hero-faq__title {
        font-size: 36px;
    }

    .hero-faq__subtitle {
        font-size: 16px;
        padding-top: 30px;
    }
}

@media (max-width: 500px) {
    .hero-faq__container {
        padding-bottom: 150px;
    }

    .hero-faq__search {
        transform: translate(-50%, 15%);
    }

    .hero-faq__title {
        font-size: 24px;
        padding-bottom: 5px;
    }
        .hero-faq__subtitle {
            padding-top: 24px;
        }

    .hero-faq__decoration {
        display: none;
    }
}

/* Web Component Display */
faq-search-component {
    display: flex;
}

/* Autocomplete Dropdown */
.faq-search__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.faq-search__item {
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.15s ease;
}

.faq-search__item:last-child {
    border-bottom: none;
}

.faq-search__item:hover,
.faq-search__item.is-selected {
    background-color: #f5f5f5;
}

.faq-search__item-category {
    display: block;
    font-family: var(--font-family-archer, 'Archer', serif);
    font-size: 12px;
    font-weight: 600;
    color: #E47633;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.faq-search__item-title {
    display: block;
    font-family: var(--font-family-archer, 'Archer', serif);
    font-size: 16px;
    font-weight: 700;
    color: #196B81;
    line-height: 1.3;
    margin-bottom: 4px;
}

.faq-search__item-excerpt {
    display: block;
    font-family: var(--font-family-archer, 'Archer', serif);
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.faq-search__no-results {
    padding: 20px;
    text-align: center;
    font-family: var(--font-family-archer, 'Archer', serif);
    font-size: 14px;
    color: #666;
}

/* Highlight animation for searched FAQ */
.faq-search__highlight {
    animation: faq-highlight 2s ease-out;
}

@keyframes faq-highlight {
    0% {
        box-shadow: 0 0 0 4px rgba(228, 118, 51, 0.5);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(228, 118, 51, 0);
    }
}

/* Responsive dropdown */
@media (max-width: 900px) {
    .faq-search__dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 60vh;
    }
}
