.tf-hero-search-wrap {
    padding: 80px 20px;
    border-radius: 32px;
}

.tf-hero-search-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tf-hero-search-subtitle {
    font-size: 16px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
}

.tf-hero-search-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
}

.tf-hero-search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.tf-hero-search-field-wrap {
    width: 100%;
    position: relative;
}

.tf-hero-search-field {
    width: 100%;
    background: #fff;
    border-radius: 32px 32px 0 0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.10);
    padding-top: 20px;
}

.tf-hero-search-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    flex-shrink: 0;
}

.tf-hero-search-input-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}

.tf-hero-search-input {
    border: none;
    background: transparent;
    padding: 20px 0;
    flex: 1;
    font-size: 18px;
    line-height: 1.4;
    color: #0b0f2c;
    width: 100%;
    position: relative;
    z-index: 2;
    transition: color 0.2s ease;
}

.tf-hero-search-input:focus {
    outline: none;
}

.tf-hero-search-input::placeholder {
    color: #667085;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tf-hero-search-input.is-placeholder-clearing::placeholder {
    opacity: 0;
    transform: translateY(-10px);
}

.tf-hero-search-input.is-placeholder-animating::placeholder {
    animation: tfHeroPlaceholderSlideUp 0.32s ease;
}

.tf-hero-search-submit {
    border: none;
    background: var(--theme-primary-color, #3b7af6);
    color: #fff;
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.tf-hero-search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 122, 246, 0.45);
}

.tf-hero-search-suggestions {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 0;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.tf-hero-search-suggestions-list {
    display: flex;
    flex-direction: column;
}

.tf-hero-search-suggestion,
.tf-hero-search-suggestion-view-all {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    color: #101828;
    text-decoration: none;
    border: 0;
    border-top: 1px solid #f2f4f7;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.tf-hero-search-suggestion:first-child,
.tf-hero-search-suggestion-view-all:first-child {
    border-top: 0;
}

.tf-hero-search-suggestion:hover,
.tf-hero-search-suggestion.is-active,
.tf-hero-search-suggestion-view-all:hover {
    background: #f8fafc;
    color: var(--theme-primary-color, #3b7af6);
}

.tf-hero-search-suggestion-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.tf-hero-search-suggestion-meta {
    font-size: 13px;
    color: #667085;
}

.tf-hero-search-suggestion-empty,
.tf-hero-search-suggestion-error {
    padding: 16px 20px;
    font-size: 14px;
    color: #667085;
    border-top: 1px solid #f2f4f7;
}

.tf-hero-search-field-wrap.is-loading .tf-hero-search-icon {
    animation: tfHeroSearchPulse 1s ease-in-out infinite;
}

.tf-hero-search-popular {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 0;
    border-radius: 0 0 32px 32px;
    padding: 18px 22px 22px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.10);
    margin-top: -16px;
    text-align: left;
}

.tf-hero-search-popular-title {
    font-size: 16px;
    font-weight: 700;
    color: #475467;
    margin-bottom: 14px;
}

.tf-hero-search-popular-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tf-hero-search-chip {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #eef2f6;
    color: #344054;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.tf-hero-search-chip:hover {
    transform: translateY(-1px);
}

.tf-hero-search-chip img {
    width: 28px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.tf-hero-search-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-condition-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 32px;
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media only screen and (max-width: 767px) {
    .tf-hero-search-wrap {
        padding: 60px 16px;
    }

    .tf-hero-search-title {
        font-size: 32px;
    }

    .tf-hero-search-field {
        border-radius: 28px 28px 0 0;
        padding: 12px;
        flex-wrap: wrap;
    }

    .tf-hero-search-input-wrap {
        width: calc(100% - 40px);
    }

    .tf-hero-search-input {
        min-width: 0;
        padding: 8px 0;
    }

    .tf-hero-search-submit {
        width: 100%;
    }

    .tf-hero-search-suggestions {
        position: static;
        border-radius: 0 0 20px 20px;
        box-shadow: none;
        border-top: 1px solid #e5e7eb;
    }

    .tf-hero-search-popular {
        border-radius: 0 0 28px 28px;
        padding: 16px;
    }

    .tf-hero-search-popular-list {
        gap: 8px;
    }

    .tf-hero-search-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .tf-hero-search-actions {
        flex-direction: column;
        gap: 8px;
    }
}

@keyframes tfHeroSearchPulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

@keyframes tfHeroPlaceholderSlideUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
