/* Location Fields Styling */

.location-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.location-section:hover {
    border-color: #2196f3;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.1);
}

.location-field {
    margin-bottom: 15px;
}

.location-field label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.location-search-group {
    position: relative;
    margin-bottom: 10px;
}

.location-search-group .input-group-text {
    background: #2196f3;
    border-color: #2196f3;
    color: white;
    border-radius: 10px 0 0 10px;
}

.location-search-group .form-control {
    border-radius: 0 10px 10px 0;
    border-left: none;
}

.location-search-group .form-control:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

.location-dropdown {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.location-dropdown:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Google Maps Container */
.google-maps-container {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 15px;
}

.google-maps-search {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.google-maps-search:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

.google-maps-btn {
    border-radius: 25px;
    padding: 12px 20px;
    border: 2px solid #2196f3;
    background: #2196f3;
    color: white;
    transition: all 0.3s ease;
}

.google-maps-btn:hover {
    background: #1976d2;
    border-color: #1976d2;
    transform: translateY(-2px);
}

.google-maps-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

#googleMaps {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.use-location-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.use-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Plot Dimensions */
.plot-dimensions {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #ffc107;
}

.plot-dimensions label {
    color: #856404;
    font-weight: 600;
}

.plot-dimensions .form-control {
    border-radius: 10px;
    border: 2px solid #ffc107;
    transition: all 0.3s ease;
}

.plot-dimensions .form-control:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Number of Fronts */
.fronts-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #2196f3;
}

.fronts-section label {
    color: #1565c0;
    font-weight: 600;
}

.fronts-section .form-control {
    border-radius: 10px;
    border: 2px solid #2196f3;
    transition: all 0.3s ease;
}

.fronts-section .form-control:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Street Address */
.street-address-section {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #9c27b0;
}

.street-address-section label {
    color: #7b1fa2;
    font-weight: 600;
}

.street-address-section .form-control {
    border-radius: 10px;
    border: 2px solid #9c27b0;
    transition: all 0.3s ease;
}

.street-address-section .form-control:focus {
    border-color: #7b1fa2;
    box-shadow: 0 0 0 0.2rem rgba(156, 39, 176, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .location-section {
        padding: 15px;
    }
    
    .google-maps-search {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .google-maps-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    #googleMaps {
        height: 150px;
    }
}

/* Animation for location fields */
.location-field {
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.location-loading {
    position: relative;
    pointer-events: none;
}

.location-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success states */
.location-success {
    border-color: #4caf50 !important;
    background-color: rgba(76, 175, 80, 0.1);
}

.location-success::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #4caf50;
    font-weight: bold;
    font-size: 16px;
}

/* Error states */
.location-error {
    border-color: #f44336 !important;
    background-color: rgba(244, 67, 54, 0.1);
}

.location-error::after {
    content: '✗';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #f44336;
    font-weight: bold;
    font-size: 16px;
} 