/* Google Places Address Autocomplete Styles */

.address-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item:active {
    background-color: #e8e8e8;
}

.suggestion-main {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.suggestion-secondary {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.suggestions-loading {
    padding: 10px 12px;
    color: #666;
    text-align: center;
    font-size: 13px;
}

.suggestions-empty {
    padding: 10px 12px;
    color: #999;
    text-align: center;
    font-size: 13px;
}

.suggestions-error {
    padding: 10px 12px;
    color: #d32f2f;
    text-align: center;
    font-size: 13px;
}

/* Address verification status */
.address-verification {
    display: block;
    margin-top: 5px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}

.address-verification.verified {
    color: #4caf50;
}

.address-verification.unverified {
    color: #d32f2f;
}

.address-verification.validating {
    color: #ff9800;
}

/* Make parent label position relative for dropdown positioning */
form.contactform label,
form.contactform div[class*="label"] {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .address-suggestions-dropdown {
        max-height: 250px;
    }

    .suggestion-item {
        padding: 8px 10px;
    }

    .suggestion-main {
        font-size: 13px;
    }

    .suggestion-secondary {
        font-size: 11px;
    }
}
