/* HomesGoFast Search Leads System - Professional Styling */
.homesgofast-lead-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    color: white;
    position: relative;
    overflow: hidden;
}

.homesgofast-lead-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    z-index: 1;
}

.homesgofast-lead-form > * {
    position: relative;
    z-index: 2;
}

.lead-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.lead-form-header .header-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #667eea;
}

.lead-form-header h3 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.lead-form-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

.search-lead-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.search-lead-form .form-group {
    margin-bottom: 0;
}

.search-lead-form .form-group.full-width {
    grid-column: 1 / -1;
}

.search-lead-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.search-lead-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.search-lead-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-lead-form .input-with-icon {
    position: relative;
}

.search-lead-form .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-weight: 600;
}

.search-lead-form .input-with-icon .form-control {
    padding-left: 40px;
}

/* Select2 Styling */
.select2-container--default .select2-selection--single {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    height: 46px;
    padding: 8px 16px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    padding-left: 0;
    color: #2c3e50;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

/* Consent Checkbox */
.consent-checkbox .checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #5d6d7e;
    line-height: 1.4;
}

.consent-checkbox .checkbox-container input {
    display: none;
}

.consent-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.consent-checkbox .checkbox-container input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.consent-checkbox .checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Submit Button */
.form-submit {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 10px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Form Messages */
#form-messages {
    margin-top: 20px;
}

.message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Floating Button */
.homesgofast-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    cursor: pointer;
}

.floating-btn-inner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-btn-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 10px 30px rgba(102, 126, 234, 0.8); }
    100% { box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); }
}

/* Modal */
.homesgofast-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    background: white;
    margin: 50px auto;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .homesgofast-lead-form {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .search-lead-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-container {
        margin: 20px;
        max-width: none;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .homesgofast-floating-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn-inner {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .floating-btn-inner .btn-text {
        display: none;
    }
}

/* Loading State */
.btn-loading .fa-spinner {
    margin-right: 8px;
}

/* Admin Styles */
.lead-status-new { color: #e74c3c; font-weight: bold; }
.lead-status-contacted { color: #f39c12; font-weight: bold; }
.lead-status-qualified { color: #3498db; font-weight: bold; }
.lead-status-converted { color: #27ae60; font-weight: bold; }
.lead-status-closed { color: #95a5a6; font-weight: bold; }