/**
 * Service Locator public styles
 */

.service-locator-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.service-locator-map {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.service-locator-form {
    margin-bottom: 20px;
}

.service-locator-input-group {
    position: relative;
    margin-bottom: 15px;
}

.service-locator-input-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: none;
    box-sizing: border-box;
}

.service-locator-input-group input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.service-locator-hidden-fields {
    display: none;
}

.service-locator-submit {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.service-locator-submit:hover {
    background-color: #006ba1;
}

.service-locator-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.service-locator-submit.loading {
    position: relative;
    color: transparent;
}

.service-locator-submit.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: service-locator-spin 0.8s linear infinite;
}

.service-locator-error {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

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

/* Responsive styles */
@media (max-width: 768px) {
    .service-locator-map {
        height: 300px;
    }
    
    .service-locator-submit {
        width: 100%;
    }
}
