/* =============================================================================
 * ASK Real Estate Lead Form CSS - Compact Version
 * File: askre-lead-popup-compact.css
 * ============================================================================= */

/* CSS Variables */
:root {
    --askre-primary-color: #F37021;
    --askre-floating-color: #F37021;
}

/* Base Animations (Unchanged) */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-80px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes float-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* =============================================================================
 * FLOATING BUTTON STYLES (Unchanged)
 * ============================================================================= */

.askre-floating-button {
    position: fixed;
    z-index: 9999;
    background: var(--askre-primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    line-height: 1.2;
    font-family: Arial, sans-serif;
}

/* Position variants */
.askre-floating-button.bottom-right { bottom: 110px; right: 20px; }
.askre-floating-button.bottom-left { bottom: 20px; left: 20px; }
.askre-floating-button.top-right { top: 20px; right: 20px; }
.askre-floating-button.top-left { top: 20px; left: 20px; }

/* Hover effects */
.askre-floating-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* Icon and text styling */
.askre-floating-button .askre-float-icon { 
    font-size: 16px;
    line-height: 1;
}

.askre-floating-button .askre-float-text { 
    white-space: nowrap;
    line-height: 1.2;
    margin: 0;
}

/* Animation for floating button */
.askre-floating-button.animate {
    animation: float-pulse 3s ease-in-out infinite;
}

/* =============================================================================
 * POPUP STYLES (Adjusted)
 * ============================================================================= */

/* Popup Overlay (Unchanged) */
.askre-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.askre-popup-overlay.show { 
    display: flex; 
}

/* Popup Content (Unchanged) */
.askre-popup-content {
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 750px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: popupSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Close Button (Adjusted) */
.askre-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    border: 2px solid #f1f3f4;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    z-index: 10001;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 300;
    backdrop-filter: blur(10px);
}

.askre-popup-close:hover {
    background: #f8f9fa;
    color: #495057;
    transform: scale(1.1) rotate(90deg);
    border-color: #dee2e6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* =============================================================================
 * FORM HEADER STYLES (Adjusted)
 * ============================================================================= */

.askre-lead-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 25px 25px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px 15px 0 0;
    position: relative;
}

.askre-lead-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--askre-primary-color), #ff8c42);
    border-radius: 0 0 3px 3px;
}

.askre-lead-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--askre-primary-color);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}

.askre-lead-subtitle {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

/* =============================================================================
 * FORM CONTAINER STYLES (Adjusted)
 * ============================================================================= */

.askre-lead-form {
    background: #f9f9f9;
    border-radius: 10px;
    margin: 0 20px 20px;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.askre-form-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    width: -webkit-fill-available !important;
}

.askre-section-header {
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--askre-primary-color);
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.askre-section-icon { 
    margin-right: 8px; 
}

/* =============================================================================
 * FORM FIELD STYLES (Adjusted)
 * ============================================================================= */

.askre-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.askre-form-field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.askre-form-label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.askre-form-label.large {
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: none;
    font-weight: 700;
    color: #2c3e50;
}

.askre-required {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 2px;
}

.askre-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: white;
    font-family: inherit;
    font-weight: 400;
    color: #2c3e50;
}

.askre-form-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.askre-form-input:focus {
    border-color: var(--askre-primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.1);
    transform: translateY(-1px);
    background: #fdfdfd;
}

.askre-form-input:hover:not(:focus) {
    border-color: #ced4da;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.askre-form-textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 100px;
    line-height: 1.5;
}

/* =============================================================================
 * CHECKBOX STYLES (Adjusted)
 * ============================================================================= */

.askre-checkbox-group {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #f1f3f4;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.askre-checkbox-group:focus-within {
    border-color: var(--askre-primary-color);
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.08);
    transform: translateY(-1px);
}

.askre-checkbox-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.askre-checkbox-options.purpose { 
    gap: 12px;
    justify-content: center;
}

.askre-checkbox-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #e9ecef;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.askre-checkbox-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--askre-primary-color), #ff8c42);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.askre-checkbox-item.purpose {
    padding: 12px 18px;
    font-weight: 600;
    border-radius: 8px;
    min-width: 70px;
    justify-content: center;
}

.askre-checkbox-item:hover {
    background: #f8f9fa;
    border-color: var(--askre-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.2);
}

.askre-checkbox-input:checked + .askre-checkbox-label,
.askre-checkbox-input:checked + * + .askre-checkbox-label {
    color: white;
}

.askre-checkbox-item:has(.askre-checkbox-input:checked)::before {
    opacity: 1;
}

.askre-checkbox-item:has(.askre-checkbox-input:checked) {
    border-color: var(--askre-primary-color);
    color: white;
    transform: scale(1.05);
}

.askre-checkbox-input {
    margin-right: 8px;
    accent-color: var(--askre-primary-color);
    transform: scale(1.1);
    position: relative;
    z-index: 2;
}

.askre-checkbox-input.purpose {
    transform: scale(1.2);
}

.askre-checkbox-label {
    font-size: 13px;
    color: #2c3e50;
    cursor: pointer;
    font-weight: inherit;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.askre-checkbox-label.purpose { 
    font-size: 14px;
    font-weight: 600;
}

/* =============================================================================
 * SUBMIT BUTTON STYLES (Adjusted)
 * ============================================================================= */

.askre-submit-lead {
    background: linear-gradient(135deg, var(--askre-primary-color) 0%, #ff8c42 50%, #ffa726 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    width: fit-content;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(243, 112, 33, 0.3);
    margin-top: 15px;
}

.askre-submit-lead::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.askre-submit-lead:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(243, 112, 33, 0.4);
    background: linear-gradient(135deg, #ff8c42 0%, var(--askre-primary-color) 50%, #e67e22 100%);
}

.askre-submit-lead:hover:not(:disabled)::before {
    left: 100%;
}

.askre-submit-lead:active {
    transform: translateY(-1px) scale(0.98);
}

.askre-submit-lead:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.2);
}

/* Submit Button States (Adjusted) */
.askre-submit-text { 
    display: inline;
    transition: all 0.3s ease;
}

.askre-loading-spinner { 
    display: none; 
    align-items: center; 
}

.askre-submit-lead.loading .askre-submit-text { 
    display: none; 
}

.askre-submit-lead.loading .askre-loading-spinner { 
    display: flex; 
}

.askre-submit-lead.loading {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 1; }
    100% { opacity: 0.8; }
}

.askre-spinner-icon {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* =============================================================================
 * RESPONSE MESSAGE STYLES (Adjusted)
 * ============================================================================= */

.askre-lead-response {
    margin: 0 25px 25px;
    padding: 18px 20px;
    border-radius: 12px;
    display: none;
    font-weight: 600;
    text-align: center;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.5s ease-out;
    font-size: 14px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.askre-lead-response::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.askre-lead-response.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #c3e6cb;
    box-shadow: 0 8px 25px rgba(21, 87, 36, 0.15);
}

.askre-lead-response.success::before {
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
}

.askre-lead-response.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f5c6cb;
    box-shadow: 0 8px 25px rgba(114, 28, 36, 0.15);
}

.askre-lead-response.error::before {
    background: linear-gradient(90deg, #dc3545, #e74c3c, #c0392b);
}

/* =============================================================================
 * RESPONSIVE DESIGN (Adjusted)
 * ============================================================================= */

@media (max-width: 768px) {
    /* Floating Button Mobile (Unchanged) */
    .askre-floating-button {
        border-radius: 50%;
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        bottom: 15px;
        right: 15px;
    }
    
    .askre-floating-button.bottom-left { 
        bottom: 15px; 
        left: 15px; 
    }
    
    .askre-floating-button.top-right { 
        top: 15px; 
        right: 15px; 
    }
    
    .askre-floating-button.top-left { 
        top: 15px; 
        left: 15px; 
    }
    
    .askre-floating-button .askre-float-text { 
        display: none; 
    }
    
    .askre-floating-button .askre-float-icon { 
        font-size: 18px;
        margin: 0;
    }

    /* Popup Mobile (Adjusted) */
    .askre-popup-content { 
        width: 95%; 
        margin: 8px; 
        max-height: 95vh;
    }
    
    .askre-lead-header { 
        padding: 15px 15px 0; 
    }
    
    .askre-lead-title {
        font-size: 20px;
    }
    
    .askre-lead-form { 
        margin: 0 15px 15px;
    }
    
    .askre-form-section { 
        padding: 12px; 
    }
    
    .askre-form-grid { 
        grid-template-columns: 1fr; 
        gap: 12px; 
    }
    
    .askre-checkbox-item { 
        flex-basis: calc(50% - 8px); 
        font-size: 12px; 
        padding: 5px 8px; 
        margin-bottom: 6px;
    }
    
    .askre-lead-response { 
        margin: 0 15px 15px; 
    }
}

@media (max-width: 480px) {
    .askre-lead-title {
        font-size: 18px;
    }
    
    .askre-form-section { 
        padding: 10px; 
    }
    
    .askre-checkbox-item { 
        flex-basis: 100%; 
        text-align: center; 
    }
}

/* =============================================================================
 * UTILITY CLASSES (Unchanged)
 * ============================================================================= */

.askre-primary-color {
    color: var(--askre-primary-color);
}

.askre-primary-bg {
    background-color: var(--askre-primary-color);
}

.askre-primary-border {
    border-color: var(--askre-primary-color);
}

/* =============================================================================
 * COLOR CUSTOMIZATION CLASSES (Unchanged)
 * ============================================================================= */

/* These classes allow dynamic color changes */
.askre-color-blue {
    --askre-primary-color: #2196F3;
}

.askre-color-green {
    --askre-primary-color: #4CAF50;
}

.askre-color-red {
    --askre-primary-color: #F44336;
}

.askre-color-purple {
    --askre-primary-color: #9C27B0;
}

.askre-color-orange {
    --askre-primary-color: #FF9800;
}

.askre-color-teal {
    --askre-primary-color: #009688;
}