.hero-search {
    display: grid;
    gap: 0.75rem;
    width: 100%;
}

.hero-search-form {
    display: grid;
    gap: 0.65rem;
}

.hero-search-mode {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.24rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.hero-search-mode__btn {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
}

.hero-search-mode__btn i {
    font-size: 1rem;
    line-height: 1;
}

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

.hero-search-mode__btn.is-active {
    background: #ffffff;
    color: #1b3f77;
    box-shadow: 0 4px 12px rgba(14, 45, 90, 0.22);
}

.hero-search-input {
    background: #ffffff;
    color: #1c2b44;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.hero-search-input i {
    font-size: 1rem;
    color: #3a7bd5;
}

.hero-search-input input {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.95rem;
}

.hero-search-submit {
    border: 0;
    border-radius: 999px;
    min-height: 36px;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, #0089de, #00c6ff);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 112, 193, 0.32);
    filter: saturate(1.05);
}

.hero-search-submit i {
    font-size: 1rem;
    line-height: 1;
}

.top-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.top-section-card {
    text-decoration: none;
    color: #1c2b44;
    background: #f3f7ff;
    border: 1px solid #d9e7ff;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.top-section-card:hover {
    transform: translateY(-2px);
    background: #e9f2ff;
    color: #1c2b44;
    box-shadow: 0 6px 14px rgba(30, 92, 189, 0.12);
}

.icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #dceaff;
    color: #1a63c9;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.icon-wrap i {
    font-size: 1.2rem;
}

.top-section-card h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.top-section-card p {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    opacity: 0.88;
}

.provider-results {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.provider-row {
    background: #f8fbff;
    border: 1px solid #dce9ff;
    border-radius: 20px;
    padding: 1rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.row-title h3 {
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1c2b44;
}

.cards-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.8rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(58, 123, 213, 0.4) transparent;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.1rem 0 0.25rem;
}

.cards-grid::-webkit-scrollbar {
    height: 6px;
}

.cards-grid::-webkit-scrollbar-thumb {
    background: rgba(58, 123, 213, 0.35);
    border-radius: 4px;
}

.cards-grid > .provider-carousel {
    flex: 0 0 88%;
    min-width: 260px;
    max-width: 360px;
    width: 88%;
    scroll-snap-align: start;
}

.provider-card {
    background: #ffffff;
    border-radius: 14px;
    color: #20334f;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 180px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eef4ff;
}

.provider-card__body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.provider-card__media {
    position: relative;
    min-height: 160px;
    background: #e8eef5;
}

.provider-card--carousel .provider-card__media--bg {
    background-color: #e8eef5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 0;
    height: 100%;
    align-self: stretch;
}

.provider-card--carousel .provider-card__media--bg-empty {
    background-image: linear-gradient(145deg, #dde6f0 0%, #cfd9e8 100%);
}

.provider-card__body h4 {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: #3a7bd5;
    font-weight: 700;
}

.card-view-title {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.35;
}

.card-view-price {
    margin: 0;
    font-size: 1.05rem;
    color: #006cc7;
    font-weight: 700;
}

.card-view-detail {
    margin: 0;
    font-size: 0.82rem;
    color: #5d6f87;
    line-height: 1.35;
}

.provider-card__body a {
    margin-top: auto;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    color: #0a76d0;
}

.provider-carousel {
    min-width: 0;
}

.provider-carousel__viewport {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border-radius: 14px;
    height: 220px;
    display: flex;
    flex-direction: column;
}

.provider-carousel__chrome {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 0.2rem;
    padding: 0 0.75rem 0.35rem;
    pointer-events: none;
    box-sizing: border-box;
}

.provider-carousel__chrome-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 0;
    pointer-events: none;
}

.provider-carousel__chrome-nav-spacer {
    min-width: 0;
}

.provider-carousel__chrome-side {
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.provider-carousel__chrome-side--text {
    justify-content: flex-start;
    padding-right: 0.25rem;
}

.provider-carousel__chrome-side--media {
    justify-content: flex-end;
    padding-left: 0.25rem;
}

.provider-carousel__chrome-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
    padding-bottom: 0.15rem;
    pointer-events: auto;
}

.provider-carousel__fab {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #1c2b44;
    box-shadow: 0 2px 10px rgba(15, 35, 65, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.3;
    transition: background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.provider-carousel__fab:hover:not(:disabled) {
    opacity: 0.8;
    background: #f0f4fa;
    box-shadow: 0 3px 12px rgba(15, 35, 65, 0.2);
}

.provider-carousel__fab:disabled {
    opacity: 0.15;
    cursor: not-allowed;
}

.provider-carousel__fab i {
    font-size: 1.05rem;
    line-height: 1;
}

.provider-carousel__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 2px solid rgba(32, 51, 79, 0.35);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.provider-carousel__dot:hover {
    border-color: #3a7bd5;
}

.provider-carousel__dot.is-active {
    background: #3a7bd5;
    border-color: #3a7bd5;
    transform: scale(1.15);
}

.provider-carousel__track {
    display: flex;
    flex: 1;
    min-height: 0;
    align-items: stretch;
    transition: transform 0.35s ease;
    will-change: transform;
}

.provider-carousel__slide {
    flex-shrink: 0;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    min-height: 0;
}

.provider-carousel__slide .provider-card--carousel {
    min-height: 0;
    flex: 1;
    width: 100%;
    height: 100%;
    align-self: stretch;
}

.provider-carousel__brand-logo {
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.25rem;
    box-shadow: 0 2px 10px rgba(15, 35, 65, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.provider-carousel__brand-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.domains-showcase {
    background: #f8fbff;
    border: 1px solid #dce9ff;
    border-radius: 20px;
    padding: 1rem;
}

.domains-showcase-lead {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.82rem;
    color: #4f647f;
    line-height: 1.35;
}

.domains-showcase-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(58, 123, 213, 0.4) transparent;
    margin: 0 -0.15rem;
    padding-bottom: 0.25rem;
}

.domains-showcase-viewport::-webkit-scrollbar {
    height: 6px;
}

.domains-showcase-viewport::-webkit-scrollbar-thumb {
    background: rgba(58, 123, 213, 0.35);
    border-radius: 4px;
}

.domains-showcase-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: stretch;
    padding: 0.15rem 0.15rem 0.35rem;
    width: max-content;
    min-width: 100%;
}

.domains-showcase-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-align: center;
}

.domains-showcase-logo {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.domains-showcase-logo img {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.domains-showcase-fallback {
    font-size: 1.35rem;
    font-weight: 800;
    color: #3a7bd5;
    line-height: 1;
}

.domains-showcase-name {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1c2b44;
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domains-showcase-empty {
    padding: 0.5rem 0;
}

@media (max-width: 560px) {
    .hero-search-mode__btn {
        min-height: 44px;
    }

    .hero-search-mode__btn i {
        font-size: 1.2rem;
    }

    .hero-search-mode__label {
        display: none;
    }

    .hero-search-submit span {
        display: none;
    }

    .hero-search-submit {
        min-width: 38px;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .provider-card {
        grid-template-columns: 1fr;
    }

    .provider-card__media {
        order: -1;
        min-height: 140px;
        max-height: 200px;
    }

    .provider-card--carousel {
        grid-template-columns: 1fr 1fr;
    }

    .provider-card--carousel .provider-card__media {
        order: 0;
        min-height: 160px;
        max-height: none;
    }
}

@media (min-width: 768px) {
    .top-sections {
        grid-template-columns: 1fr 1fr;
    }

    .cards-grid > .provider-carousel {
        flex-basis: calc((100% - 1.6rem) / 3);
        min-width: 300px;
        max-width: none;
        width: auto;
    }

    .provider-card__media {
        min-height: 180px;
    }

    .domains-showcase-item {
        width: 120px;
    }

    .domains-showcase-logo {
        height: 56px;
    }
}

@media (max-width: 767px) and (min-width: 561px) {
    .cards-grid > .provider-carousel {
        flex-basis: calc((100% - 0.8rem) / 2);
        min-width: 280px;
        max-width: none;
        width: auto;
    }
}
