// CF7 field google autocomplete

.cf7gpa-container {
    position: relative;
    width: 100%;
}

.cf7gpa-main-input {
    position: relative;
}
    
.cf7gpa-main-input .wpcf7-form-control-wrap {
	display: block;
}
    
.cf7gpa-main-input .wpcf7-not-valid-tip {
	margin-top: 5px;
}

.cf7gpa-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 999999;
    display: none;
}
    
.cf7gpa-suggestions.active {
	display: block;
	animation: cf7gpa-fade-in 0.2s ease-out;
}

.cf7gpa-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid lighten(#e0e0e0, 10%);
}
    
.cf7gpa-suggestion:last-child {
	border-bottom: none;
}
    
.cf7gpa-suggestion:hover,
.cf7gpa-suggestion.selected {
	background-color: #f5f5f5;
}
    
.cf7gpa-suggestion:focus {
	outline: 2px solid #4a90d9;
	outline-offset: -2px;
}
    
.cf7gpa-suggestion.cf7gpa-no-results,
.cf7gpa-suggestion.cf7gpa-error {
	color: #666;
	font-style: italic;
	cursor: default;
}
    
.cf7gpa-suggestion.cf7gpa-error {
	color: #c53030;
}
    
.cf7gpa-suggestion.cf7gpa-loading {
        justify-content: center;
}
        
.cf7gpa-suggestion.cf7gpa-loading::before {
	content: '';
	width: 16px;
	height: 16px;
	border: 2px solid #ccc;
	border-top-color: #666;
	border-radius: 50%;
	animation: cf7gpa-spin 0.8s linear infinite;
}

.cf7gpa-suggestion-icon {
    flex-shrink: 0;
    font-size: 1rem;
    opacity: 0.7;
}

.cf7gpa-suggestion-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}
    
.cf7gpa-suggestion-text strong {
	font-weight: 600;
	color: #000;
}

.cf7gpa-info-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    display: block;
    padding: 0 20px;
    background-color: #efefef;
    border-radius: 0 0 4px 4px;
}
    
.cf7gpa-info-wrapper.active {
	max-height: 500px;
	padding: 20px;
}
    
.cf7gpa-info-wrapper input {
        background-color: transparent;
        margin: 0;
        width: 100%;
        font-size: 13px;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid #ddd;
        color: #555;
}
        
.cf7gpa-info-wrapper input:focus {
	outline: none;
	border-bottom-color: #999;
}
        
.cf7gpa-info-wrapper input[readonly] {
	cursor: default;
}
        
.cf7gpa-info-wrapper input::placeholder {
	color: #888;
	opacity: 1;
}
    
.cf7gpa-info-wrapper .wrap-input100 {
	margin: 0 0 15px;
}
    
.cf7gpa-info-wrapper .row {
	margin: 0 -10px;
}
    
.cf7gpa-info-wrapper .col-12,
.cf7gpa-info-wrapper .col-md-6 {
	padding: 0 10px;
}


.cf7gpa-container input[data-cf7gpa-field="main"],
.cf7gpa-container input.wpcf7-gmautocomplete {
	width: 100%;
	color: #555;
}

.pac-container {
    z-index: 999999 !important;
}

@keyframes cf7gpa-fade-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 767px) {
    .cf7gpa-info-wrapper {
        .col-md-6 {
            width: 100%;
        }
    }
    
    .cf7gpa-suggestions {
        max-height: 250px;
    }
    
    .cf7gpa-suggestion {
        padding: 10px 12px;
    }
    
    .cf7gpa-suggestion-text {
        font-size: 13px;
    }
}