/* Modern Search Form Styles */
.modern-search-form {
    background: transparent;
    border-radius: 16px;
    /* padding: 24px 0; */
    margin-top: 2rem;
}

/* .search-form-container {
    width: 100%;
    max-width: 100%;
} */

.search-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
}

@media (min-width: 768px) {
    .search-input-group {
        flex-direction: row;
        align-items: center;
        gap: 0;
        /* background: white; */
        border-radius: 12px;
        padding: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }

    .search-input-group:focus-within {
        border-color: #3c65f5;
        box-shadow: 0 8px 32px rgba(60, 101, 245, 0.2);
    }
}

.search-field,
.location-hero-field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-field {
    border-right: 1px solid #e0e6f7;
}

@media (max-width: 767px) {
    .search-field {
        border-right: none;
        border-bottom: 1px solid #e0e6f7;
        padding-bottom: 8px;
    }
}

.search-icon,
.location-hero-icon {
    position: absolute;
    left: 16px;
    color: #66789c;
    font-size: 18px;
    z-index: 2;
    transition: color 0.3s ease;
}

.search-input,
.location-hero-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 16px 16px 16px 48px;
    font-size: 16px;
    color: #05264e;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .search-input,
    .location-hero-input {
        border-radius: 0;
        padding: 20px 16px 20px 48px;
    }

    .search-input {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }
}

.search-input:focus,
.location-hero-input:focus {
    background: rgba(60, 101, 245, 0.02);
}

.search-input:focus + .search-icon,
.location-hero-input:focus + .location-hero-icon {
    color: #3c65f5;
}

.search-input::placeholder,
.location-hero-input::placeholder {
    color: #a0abb8;
    font-weight: 400;
}

.location-hero-field {
    position: relative;
}

/* .location-hero-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e0e6f7;
    z-index: 1000;
    display: none;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.location-hero-dropdown.show {
    display: block;
} */

.search-button {
    background: #62ADE1;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    box-shadow: 0 4px 16px rgba(60, 101, 245, 0.3);
}

@media (min-width: 768px) {
    .search-button {
        border-radius: 8px;
        margin-left: 8px;
    }
}

.search-button:hover {
    background: linear-gradient(135deg, #62ADE1 0%, #417ca5 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(60, 101, 245, 0.4);
}

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

.search-button i {
    font-size: 18px;
}

.search-text {
    font-weight: 600;
}

@media (max-width: 767px) {
    .search-text {
        display: none;
    }

    .search-button {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
}

/* Popular Searches */
.popular-searches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(224, 230, 247, 0.5);
}

.popular-label {
    color: #66789c;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
}

.popular-tag {
    background: rgba(60, 101, 245, 0.08);
    color: #3c65f5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.popular-tag:hover {
    background: #3c65f5;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(60, 101, 245, 0.3);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .modern-search-form {
        padding: 20px 0;
        margin: 1rem 0;
        border-radius: 12px;
    }

    .search-input-group {
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .search-field,
    .location-hero-field {
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        border: 1px solid #e0e6f7;
    }

    .search-field:focus-within,
    .location-hero-field:focus-within {
        border-color: #3c65f5;
        box-shadow: 0 4px 16px rgba(60, 101, 245, 0.15);
    }

    .popular-searches {
        justify-content: center;
        text-align: center;
    }

    .popular-label {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Animation for form appearance */
.modern-search-form {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.search-input:focus,
.location-hero-input:focus,
.search-button:focus {
    outline: 2px solid #3c65f5;
    outline-offset: 2px;
}

/* Loading state for search button */
.search-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.search-button.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
