:root {
    --main: #7e7e7e;
    --main-dark: #3c3c3c;
    --dark: #2c2c2c;
    --dark-gray: #3a3a3a;
    --light: #ffffff;
    --gray: #666666;
    --border: #e0e0e0;
    --primary-transt: rgba(122, 198, 255, 0.39);
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --input-color: #2c3e50;
    --input-border: #e8ecf1;
    --input-shadow: rgba(0,0,0,0.07);
    --input-focus: #007bff;
    --input-focus-shadow: rgba(0,123,255,0.18);
}

/* Modern Search Form Wrapper */
.search-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-wrapper{
    bottom: 0;
}

.modern-search-form {
    width: 100%;
}

/* Search Card - Clean White Design */
.search-card {
    background: var(--light);
    border-radius: 90px;
    box-shadow: var(--shadow);
    padding: 8px;
    border: 1px solid var(--border);
}

/* Search Grid Layout */
.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2px;
    align-items: stretch;
}

/* Individual Search Fields */
.search-field {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-right: 1px solid #7e7e7e;
    cursor: pointer;
    position: relative;
}

.search-field:last-of-type {
    border-right: none;
}

/* Field Icon */
.field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
    border-radius: 30px;
    flex-shrink: 0;
    margin-right: 14px;
}

.field-icon i {
    font-size: 18px;
    color: var(--light);
}

/* Field Content */
.field-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.field-label {
    font-size: 16px;
    font-weight: 800;
    color: var(--main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.field-input {
    border: none;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    width: 100%;
    outline: none;
}

.field-input::placeholder {
    color: var(--gray);
    font-weight: 400;
}

.field-input:focus {
    outline: none;
}

/* Select Field Specific */
.field-select {
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 20px;
}

/* Search Button Wrapper */
.search-button-wrapper {
    display: flex;
    align-items: center;
    padding: 8px;
}

/* Search Submit Button */
.search-submit-btn {
    background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
    color: var(--light);
    border: none;
    border-radius: 90px;
    padding: 18px 32px;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--primary-transt);
    white-space: nowrap;
    width: 250px;
    margin: auto;
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, var(--main-dark) 0%, var(--main-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-transt);
}

.search-submit-btn:active {
    transform: translateY(0);
}

.search-submit-btn i {
    font-size: 20px;
}

/* Best styles for .input-option (Location & Keywords Input) */
.input-option {
    background: rgba(255,255,255,0.85);
    border: 1.5px solid #ffffff;
    border-radius: 14px;
    font-size: 15px;
    color: var(--input-color, #222);
    font-weight: 500;
    padding: 14px 18px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    backdrop-filter: blur(2px);
    letter-spacing: 0.01em;
}

.input-option::placeholder {
    color: #9ca3af;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.01em;
}

.input-option:focus {
    background: rgba(255,255,255,0.98);
    border-color: #ffffff;
    outline: none;
}

.input-option:disabled {
    background: #f3f4f6;
    color: #bdbdbd;
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .input-option {
        font-size: 1rem;
        border-radius: 10px;
        padding: 10px 12px;
    }
}

/* Animation for better UX */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-card {
    animation: fadeIn 0.5s ease;
}

/* Highlighted Categories Section */
.highlighted-categories-section {
    border-radius: 20px;
    padding: 40px 20px;
    margin: 0 -15px;
    position: relative;
    overflow: hidden;
}

.highlighted-categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(0,170,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 1;
}

.section-header {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
}

.categories-wrapper {
    position: relative;
    z-index: 2;
}

.service-carousel{
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    margin-top: 30px;
}

/* Service Card Styles */
.highlighted-categories{
    margin-left: 30px;
    margin-right: 30px;
}

.service-card-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 250px;
    perspective: 1000px;
    padding: 5px;
}

.service-card {
    width: 100%;
    height: 90%;
    background: var(--light);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
}

.card-image-container {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(133, 133, 133) 0%, rgb(69, 69, 69) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .card-overlay {
    opacity: 1;
}

.business-count {
    text-align: center;
    color: var(--light);
}

.count-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.count-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 16px;
    text-align: center;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.service-description {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
}

/* Scroll Buttons */
.scroll-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
    border: none;
    border-radius: 50%;
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--primary-transt);
    font-size: 1.2rem;
}

.scroll-btn:hover {
    background: linear-gradient(135deg, var(--main-dark) 0%, var(--main) 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 24px var(--primary-transt);
}

.scroll-btn:active {
    transform: scale(0.95);
}

/* =============================================
   VIEW BY SECTION - PREMIUM ENHANCED DESIGN
   ============================================= */

.view-by-card {
    background: linear-gradient(135deg, var(--light) 0%, #fafafa 100%) !important;
    border: 2px solid #e0e0e0 !important;
    position: relative;
    overflow: hidden;
}

.view-by-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(122, 198, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
}

.view-by-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(122, 198, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.3;
}

.view-by-header {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(122, 198, 255, 0.2);
}

.view-by-header .card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.view-by-header .card-title i {
    font-size: 22px;
    color: var(--main);
    animation: pulse-icon-adz 2s ease-in-out infinite;
}

.view-by-subtitle {
    font-size: 12px;
    color: var(--gray);
    margin: 6px 0 0 34px;
    font-weight: 500;
}

@keyframes pulse-icon-adz {
    0%, 100% {
        transform: scale(1);
        color: var(--main);
    }
    50% {
        transform: scale(1.1);
        color: var(--main-dark);
    }
}

.view-options-wrapper {
    position: relative;
    z-index: 2;
}

.view-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    background: var(--light);
    border: 2.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--gray);
    position: relative;
    overflow: hidden;
    font-size: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-height: 75px;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(122, 198, 255, 0.1) 0%, rgba(122, 198, 255, 0.05) 100%);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.view-btn:hover::before {
    left: 100%;
}

.view-btn-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
}

.view-btn i {
    font-size: 26px;
    color: var(--gray);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.view-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--dark-gray);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-align: center;
}

/* Hover State */
.view-btn:hover {
    border-color: var(--main);
    background: linear-gradient(135deg, rgba(122, 198, 255, 0.02) 0%, rgba(122, 198, 255, 0.01) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(122, 198, 255, 0.18);
}

.view-btn:hover i {
    color: var(--main);
    transform: scale(1.15) rotateY(10deg);
}

.view-btn:hover .view-label {
    color: var(--main);
    transform: translateY(-2px);
}

/* Active State - Premium Design */
.view-btn-active {
    background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
    border-color: var(--main-dark);
    box-shadow:
        0 8px 32px rgba(122, 198, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.view-btn-active::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: blink-adz 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}

.view-btn-active i {
    color: var(--light);
    transform: scale(1.2) rotateZ(5deg);
    filter: brightness(1.1);
}

.view-btn-active .view-label {
    color: var(--light);
    font-weight: 800;
}

@keyframes blink-adz {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design - Premium */
@media (max-width: 1024px) {
    .view-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .view-btn {
        min-height: 70px;
    }

    .view-btn i {
        font-size: 24px;
    }

    .view-label {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 768px) {
    .view-by-header {
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .view-by-header .card-title {
        font-size: 16px;
        gap: 10px;
    }

    .view-by-header .card-title i {
        font-size: 20px;
    }

    .view-by-subtitle {
        font-size: 11px;
        margin-left: 30px;
    }

    .view-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .view-btn {
        min-height: 65px;
    }

    .view-btn i {
        font-size: 22px;
    }

    .view-label {
        font-size: 9px;
        letter-spacing: 0.4px;
    }
}

@media (max-width: 576px) {
    .view-by-card {
        margin-bottom: 16px;
    }

    .view-by-header {
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .view-by-header .card-title {
        font-size: 15px;
    }

    .view-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .view-btn {
        min-height: 60px;
    }

    .view-btn i {
        font-size: 20px;
    }

    .view-label {
        font-size: 8px;
        letter-spacing: 0.3px;
    }
}

/* Responsive for Highlighted Categories */
@media (max-width: 1024px) {
    .highlighted-categories-section {
        padding: 30px 15px;
        margin: 0 -10px;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card-wrapper {
        width: 180px;
        height: 200px;
    }

    .card-image-container {
        height: 120px;
    }

    .count-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .highlighted-categories-section {
        padding: 20px 10px;
        margin: 0 -5px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .service-card-wrapper {
        width: 160px;
        height: 180px;
    }

    .card-image-container {
        height: 110px;
    }

    .card-content {
        padding: 12px;
    }
    .left-arrow{
        left: -50px;
    }

    .service-title {
        font-size: 1rem;
    }

    .service-card{
        height: 100%;
    }

    .service-description {
        font-size: 0.8rem;
    }

    .count-number {
        font-size: 1.5rem;
    }

    .scroll-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .highlighted-categories{
        margin-left: 40px;
        margin-right: 40px;
    }
}

@media (max-width: 575px) {
    .service-card-wrapper {
        width: 140px;
        height: 160px;
    }

    .card-image-container {
        height: 100px;
    }

    .card-content {
        padding: 10px;
    }

    .service-title {
        font-size: 0.95rem;
    }

    .service-card{
        height: 100%;
    }

    .service-description {
        font-size: 0.75rem;
    }

    .count-number {
        font-size: 1.3rem;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Responsive Design - Tablet (768px to 1023px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .search-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 1px;
    }

    .search-field {
        border-right: none;
        border-right: 1px solid #ac0000;
        padding: 14px 18px;
    }

    .keywords-field {
        border-bottom: none;
    }

    .search-button-wrapper {
        justify-content: center;
        padding: 16px;
    }

    .search-submit-btn {
        width: 100%;
        justify-content: center;
        font-size: 18px;
        padding: 16px 24px;
        gap: 20px;
    }

    .field-icon {
        width: 42px;
        height: 42px;
        margin-right: 12px;
    }

    .field-icon i {
        font-size: 16px;
    }

    .field-label {
        font-size: 14px;
    }

    .field-input {
        font-size: 12px;
    }
    .input-option{
        font-size: 12px !important;
    }
}

/* Responsive Design - Small Mobile (425px to 767px) */
@media (max-width: 768px) and (min-width: 426px) {
    .hero-wrapper{
        padding-top: 190px ;
    }
    .search-form-wrapper{
        max-width: 450px;
    }
    .search-card {
        padding: 6px;
        border-radius: 16px;
    }

    .search-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 14px 16px;
    }

    .search-field:last-of-type {
        border-bottom: none;
    }

    .search-button-wrapper {
        padding: 16px;
        justify-content: center;
    }

    .search-submit-btn {
        width: 100%;
        justify-content: center;
        font-size: 16px;
        padding: 16px 20px;
    }

    .field-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        margin-right: 12px;
    }

    .field-icon i {
        font-size: 16px;
    }

    .field-label {
        font-size: 12px;
    }

    .field-input {
        font-size: 14px;
    }
    .service-card{
        height: 100%;
    }
}

/* Responsive Design - Extra Small Mobile (320px to 424px) */
@media (max-width: 425px) {
    .hero-wrapper{
        padding-top: 190px ;
    }
    .search-card {
        padding: 4px;
        border-radius: 12px;
    }

    .search-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px 14px;
    }

    .search-field:last-of-type {
        border-bottom: none;
    }

    .search-button-wrapper {
        padding: 14px;
        justify-content: center;
    }

    .search-submit-btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 14px 18px;
        gap: 8px;
    }

    .search-submit-btn i {
        font-size: 16px;
    }

    .field-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        margin-right: 10px;
    }

    .field-icon i {
        font-size: 14px;
    }

    .field-label {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .field-input {
        font-size: 13px;
    }

    .input-option {
        font-size: 13px;
        border-radius: 10px;
        padding: 10px 12px;
    }
    .service-card{
        height: 100%;
    }
}
