.cf7-location-detector-wrapper {
    position: relative;
    margin-bottom: 1em;
}

.location-input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.location-input-group input {
    flex: 1;
    padding: 8px 45px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
    
}

.location-input-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}
.location-btn-group {
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}
.location-detector-btn {
    margin: 0;
    background: #3abd52;
    color: white;
    border: none;
    padding: 0px 13px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s ease;
    z-index: 2;
    border-radius: 1000px;
    height: 42px;
    line-height: 42px;
    font-weight: 700;
}

.location-map-btn {
    margin: 0;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0px 13px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s ease;
    z-index: 2;
    border-radius: 1000px;
    height: 42px;
    line-height: 42px;
    font-weight: 700;
}

.location-detector-btn:hover:not(:disabled) {
    background: #005a87;
}

.location-detector-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.location-map-btn:hover {
    background: #e55a2b;
}

.loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.location-error {
    color: #dc3232;
    font-size: 12px;
    margin-top: 4px;
    padding: 4px 8px;
    background: #ffeaea;
    border: 1px solid #ffb3b3;
    border-radius: 3px;
}



.wpcf7-not-valid .location-input-group input {
    border-color: #dc3232;
}

.wpcf7-not-valid .location-error {
    display: block;
}

@media (max-width: 600px) {
    .location-input-group input {
        padding-right: 40px;
    }
    
    .location-detector-btn {
        right: 6px;
        padding: 4px 6px;
        font-size: 14px;
    }
}

.cf7-location-detector-usage {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
}

.cf7-location-detector-usage h2 {
    margin-top: 0;
    color: #0073aa;
}

.cf7-location-detector-usage code {
    background: #fff;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
    margin: 8px 0;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}
