﻿/* Lead Capture & WhatsApp Floating Widgets for HA Group */

/* Floating WhatsApp Button */
.ha-whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.ha-whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.ha-whatsapp-float i {
    line-height: 58px;
}

/* Tooltip for WhatsApp */
.ha-whatsapp-float .ha-wa-tooltip {
    visibility: hidden;
    position: absolute;
    right: 70px;
    background-color: #212121;
    color: #ffffff;
    text-align: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    pointer-events: none;
}

.ha-whatsapp-float:hover .ha-wa-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Floating Quick Quote / Inquiry Button */
.ha-quote-float { display: none !important; }

.ha-quote-float:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.5);
}

.ha-quote-float i {
    margin-right: 8px;
    font-size: 16px;
}

/* Inquiry Modal Overlay */
.ha-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.ha-modal-overlay.active {
    display: flex;
}

.ha-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: haFadeIn 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    position: relative;
}

@keyframes haFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ha-modal-header {
    background: #212121;
    color: #ffffff;
    padding: 20px 25px;
    position: relative;
    border-bottom: 3px solid #fe9126;
}

.ha-modal-header h3 {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.ha-modal-header p {
    margin: 0;
    font-size: 13px;
    color: #bbb;
}

.ha-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 24px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.ha-modal-close:hover {
    color: #fe9126;
}

.ha-modal-body {
    padding: 25px;
    max-height: 80vh;
    overflow-y: auto;
}

.ha-form-group {
    margin-bottom: 16px;
}

.ha-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.ha-form-group input,
.ha-form-group select,
.ha-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.ha-form-group input:focus,
.ha-form-group select:focus,
.ha-form-group textarea:focus {
    border-color: #fe9126;
    outline: none;
}

.ha-btn-submit {
    width: 100%;
    background: #fe9126;
    color: #ffffff;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.ha-btn-submit:hover {
    background: #e67e22;
}

.ha-form-success {
    display: none;
    text-align: center;
    padding: 30px 15px;
}

.ha-form-success i {
    font-size: 50px;
    color: #27ae60;
    margin-bottom: 15px;
}

.ha-form-success h4 {
    font-size: 20px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 10px;
}

.ha-form-success p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .ha-quote-float { display: none !important; }
    .ha-whatsapp-float {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .ha-whatsapp-float i {
        line-height: 50px;
    }
}
