.hero {
    position: relative;
    background: var(--gradient-primary);
    padding: 5rem 1rem;
    text-align: center;
}

.hero-offer {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 180px;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.9;
}

.hero-offer--left {
    left: 5%;
}

.hero-offer--right {
    right: 5%;
}

.hero-side-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.85);
    padding: 1rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(31, 41, 55, 0.15);
    white-space: nowrap;
}

.hero-side-text__prefix {
    color: #000;
    margin-right: 0.35rem;
}

.hero-side-text__price {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-block;
}

.hero-side-text--left {
    left: 2rem;
}

.hero-side-text--right {
    right: 2rem;
}

.hero-side-text--right .hero-side-text__price {
    background: #22c55e;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@media (max-width: 992px) {
    .hero-side-text {
        display: none;
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 2.5rem;
}

#heroSubtitle {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #4b5563;
}

.search-bar {
    display: flex;
    max-width: fit-content;
    justify-self: center;
    align-items: center;
    border: 1px solid var(--light-gray);
    border-radius: 5rem;
    padding: 10px;
}

#citySearchInput {
    border-left: solid 1px var(--light-gray);
}

/* action-btn */
.action-btn {
    display: inline-flex;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 18px;
    padding-right: 20px;
    border-radius: 35px;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.action-btn img {
    filter: brightness(0) invert(1);
    width: 20px;
    height: 20px;
}

.action-btn:hover {
    background: var(--primary-color-light);
}

.action-btn:active {
    background: var(--primary-color-dark);
}

/* Custom Select Wrapper */
.custom-select-wrapper {
    position: relative;
    min-width: 260px;
    max-width: 300px;
}

.custom-select-wrapper input[type="text"] {
    width: 100%;
    padding: 1.4rem 1.5rem;
    font-size: 1.5rem;
    border-radius: 35px 0 0 35px;
}

#locationSearchInput {
    border-left: 1px solid var(--light-gray);
    border-radius: 0px 35px 35px 0px;
}

/* Base Dropdown */
.custom-options {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background-color: var(--text-light);
    border: 1px solid var(--primary-color-light);
    border-top: none;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
    padding: 4px 0;
    font-size: 15px;
}

/* Category-only dropdown (no groups) */
.custom-options li {
    padding: 10px 16px;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #eee;
}

.custom-options li:hover {
    background-color: var(--primary-color-light);
    color: var(--text-light);
    font-weight: 600;
    border-radius: 0.4rem;
}

/* Group (Județ) Header */
.custom-options li.group-label {
    font-weight: 600;
    background-color: var(--bg-color);
    color: var(--dark);
    padding: 8px 16px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

/* Sub-option (Oraș) */
.custom-options li.sub-option {
    padding: 8px 24px;
    color: var(--text-color);
    transition: background-color 0.2s ease;
    cursor: pointer;
    border-bottom: none;
}

.custom-options li.sub-option:hover,
.custom-options li.group-label:hover {
    background-color: var(--primary-color-light);
    color: var(--text-light);
    font-weight: 600;
    border-radius: 0.4rem;
}

/* Smooth Scrollbar */
.custom-options::-webkit-scrollbar {
    width: 6px;
}

.custom-options::-webkit-scrollbar-track {
    background: transparent;
}

.custom-options::-webkit-scrollbar-thumb {
    background-color: var(--primary-color-light);
    border-radius: 3px;
}

/* Categories */
.categories {
    padding: 5rem 1rem;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 3.6rem;
    margin-bottom: 4rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 1.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 1.6rem;
    color: var(--text-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: #fff7ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: #f59e0b;
}

.suggest-category-card {
    border: 1px dashed var(--primary-color) !important;
}

.suggest-category-card:hover {
    border: 1px solid var(--primary-color) !important;
}

.discover-link {
    text-align: center;
    margin-top: 4rem;
}

.discover-link a {
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--secondary-color);
    transition: all 0.2s ease;
}

.discover-link a:hover {
    color: var(--secondary-color-dark);
}

.discover-link a:active {
    color: var(--secondary-color-darker);
}

/* cum funcționează */
.how-it-works {
    background: var(--gradient-primary);
    padding: 4rem 0;
}

.hiw-title {
    color: #111827;
    font-size: 3.6rem;
    margin-bottom: 2.5rem;
}

.how-it-works p {
    color: #4b5563;
    font-size: 1.6rem;
    margin-top: 0.5rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #111827;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 1.5rem;
    margin: 1rem;
}

.step-number {
    background-color: #f59e0b;
    color: #111827;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    transition: transform 1s ease;
    transform-style: preserve-3d;
}

.step-number:hover {
    transform: rotateY(360deg);
}

/* Responsive */
@media (max-width: 1480px) {
    .hero-offer {
        display: none;
    }
}

@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        gap: 1rem;
        border: none;
        padding: 0;
        max-width: none;
        align-items: unset;
        justify-self: unset;
    }

    .custom-select-wrapper {
        min-width: -webkit-fill-available;
    }

    #serviceSearchInput,
    #citySearchInput {
        border: 1px solid var(--light-gray);
        border-radius: 2.5rem;
    }

    #locationSearchInput {
        border: 1px solid var(--light-gray);
        border-radius: 25px;
        padding: 1.5rem;
    }

    #serviceSearchInput,
    #citySearchInput,
    .action-btn {
        padding: 1.5rem;
        margin-left: 0;
    }
}
