/* Floating Consultation Form Styles */

.consultation-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.consultation-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.consultation-popup-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.4s ease-out;
    transform: translateY(20px);
    opacity: 0;
    animation-fill-mode: forwards;
}

.consultation-popup.active .consultation-popup-content {
    transform: translateY(0);
    opacity: 1;
}

.consultation-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.consultation-close:hover {
    color: #333;
}

.consultation-form-header {
    text-align: center;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.consultation-form-header h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
}

.consultation-form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.consultation-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

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

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

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

.consultation-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.consultation-success {
    text-align: center;
    padding: 40px 30px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
}

.consultation-success h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 22px;
}

 .consultation-success p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* reCAPTCHA Styling */
.recaptcha-group {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.recaptcha-group .g-recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
}

@media (max-width: 480px) {
    .recaptcha-group .g-recaptcha {
        transform: scale(0.8);
    }
}

/* Floating Action Button (FAB) */
.consultation-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

.consultation-fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    animation: none;
}

.fab-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .consultation-popup-content {
        width: 95%;
        margin: 10px;
    }
    
    .consultation-form {
        padding: 20px;
    }
    
    .consultation-form-header {
        padding: 20px 20px 15px;
    }
    
    .consultation-form-header h3 {
        font-size: 20px;
    }
    
    .consultation-fab {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
    }
    
    .fab-text {
        display: none;
    }
    
    .consultation-fab:hover .fab-text {
        display: block;
    }
}

@media (max-width: 480px) {
    .consultation-popup-content {
        max-height: 95vh;
    }
    
    .consultation-form {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }
    
    .consultation-submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}