/**
 * Location Search Form Styles
 * Clean search input design for main page
 */

.wpcm-location-search-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.wpcm-location-search-form {
    width: 100%;
}

.wpcm-search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

input[type="text"].wpcm-location-search-input {
    width: 100%;
    padding: 24px 12px 24px 45px;
    font-size: 1.2rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: inherit;
    color: #374151;
}

input[type="text"].wpcm-location-search-input:focus {
    border-color: #007bff;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
    background: #fff;
}

input[type="text"].wpcm-location-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.wpcm-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.3rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.wpcm-search-input-wrapper.focused .wpcm-search-icon {
    color: #007bff;
}

/* Hover effects */
.wpcm-search-input-wrapper:hover input[type="text"].wpcm-location-search-input {
    border-color: #007bff;
    box-shadow: 0 3px 15px rgba(0, 123, 255, 0.1);
}

.wpcm-search-input-wrapper:hover .wpcm-search-icon {
    color: #007bff;
}

/* Loading state (optional) */
.wpcm-search-input-wrapper.loading .wpcm-search-icon {
    animation: wpcm-search-pulse 1.5s ease-in-out infinite;
}

@keyframes wpcm-search-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpcm-location-search-container {
        padding: 15px;
        max-width: 95%;
    }

    .wpcm-search-input-wrapper {
        max-width: 100%;
    }

    input[type="text"].wpcm-location-search-input {
        padding: 18px 20px 18px 50px;
        font-size: 1.1rem;
    }

    .wpcm-search-icon {
        left: 16px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    input[type="text"].wpcm-location-search-input {
        padding: 16px 18px 16px 50px;
        font-size: 1rem;
    }

    .wpcm-search-icon {
        left: 16px;
        font-size: 1.1rem;
    }
}

/* Integration with Avada theme */
.fusion-builder-row .wpcm-location-search-container,
.fusion-fullwidth .wpcm-location-search-container {
    max-width: 100%;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    input[type="text"].wpcm-location-search-input {
        background: #fff;
        border-color: #495057;
        color: #374151;
    }

    input[type="text"].wpcm-location-search-input::placeholder {
        color: #9ca3af;
    }

    input[type="text"].wpcm-location-search-input:focus {
        border-color: #007bff;
        background: #fff;
    }

    .wpcm-search-icon {
        color: #9ca3af;
    }

    .wpcm-search-input-wrapper.focused .wpcm-search-icon,
    .wpcm-search-input-wrapper:hover .wpcm-search-icon {
        color: #007bff;
    }
}