/* =========================================================
   CUSTOM ADDITIONS - Good Health Physiotherapy Centre
   1. Hero background parallax scroll
   2. Hero left-side trust badges
   3. Floating WhatsApp + Call buttons
   4. Popup lead form (for ads)
   ========================================================= */

/* Ensure hero is a positioned container for the form card */
.hero.hero-slider-layout{
    position: relative;
}

/* ---------- 1. Hero Parallax ---------- */
.hero.hero-slider-layout .hero-slide .hero-slider-image{
    overflow: hidden;
}
.hero.hero-slider-layout .hero-slide .hero-slider-image img{
    width: 100%;
    height: 130%;
    top: -15%;
    position: relative;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.05s linear;
}

/* ---------- 2. Hero Trust Badges (left side) ---------- */
.hero-trust-badges{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}
.hero-trust-badge-item{
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    padding: 10px 18px;
    border-radius: 50px;
}
.hero-trust-badge-item i{
    color: var(--primary-color, #1b9ab4);
    background: #fff;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.hero-trust-badge-item span{
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}
@media (max-width: 767px){
    .hero-trust-badges{
        gap: 10px;
    }
    .hero-trust-badge-item{
        padding: 8px 14px;
    }
    .hero-trust-badge-item span{
        font-size: 12px;
    }
}

/* ---------- 3. Floating WhatsApp + Call Buttons ---------- */
.floating-contact-buttons{
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}
.floating-btn{
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 0.25s ease;
    position: relative;
}
.floating-btn:hover{
    transform: scale(1.08);
    color: #fff;
}
.floating-btn.whatsapp-btn{
    background: #25D366;
}
.floating-btn.whatsapp-btn::before{
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.55;
    animation: floatPulse 1.8s infinite;
    z-index: -1;
}
.floating-btn.call-btn{
    background: var(--primary-color, #1b9ab4);
}
.floating-btn.call-btn.call-btn-secondary{
    background: #172232;
}
@keyframes floatPulse{
    0%{ transform: scale(1); opacity: 0.55; }
    100%{ transform: scale(1.9); opacity: 0; }
}
@media (max-width: 767px){
    .floating-contact-buttons{
        right: 14px;
        bottom: 16px;
        gap: 10px;
    }
    .floating-btn{
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}

.hero.hero-slider-layout{
    position: relative;
}

/* ---------- 4. Hero Lead Form (sits in its own section right after hero) ---------- */
.hero-lead-form-card{
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    background: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: 18px;
    padding: 46px 42px 38px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
    z-index: 20;
}
.hero-lead-form-header{
    text-align: center;
    margin-bottom: 26px;
}
.hero-lead-form-header h3{
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--heading-color, #172232);
}
.hero-lead-form-header p{
    font-size: 15px;
    color: #666;
    margin: 0;
}
#heroLeadForm .form-control{
    width: 100%;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    margin-bottom: 18px;
    font-family: inherit;
}
#heroLeadForm textarea.form-control{
    resize: vertical;
    min-height: 110px;
}
#heroLeadForm .form-control:focus{
    outline: none;
    border-color: var(--primary-color, #1b9ab4);
}
#heroLeadForm .btn-default{
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    padding: 16px 24px;
    font-size: 16px;
}
#heroLeadForm .btn-default:disabled{
    opacity: 0.7;
    cursor: not-allowed;
}
.hero-form-msg{
    display: none;
    margin-top: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 10px;
}
.hero-form-msg-success{
    background: #e7f8ee;
    color: #1a8a4c;
}
.hero-form-msg-error{
    background: #fdeceb;
    color: #c0392b;
}
@media (max-width: 991px){
    .hero-lead-form-card{
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        max-width: 90%;
        width: 90%;
        margin: 30px auto 0;
        z-index: 20;
    }
}
@media (max-width: 575px){
    .hero-lead-form-card{
        max-width: 92%;
        width: 92%;
        padding: 30px 22px 24px;
        margin: 24px auto 0;
    }
    .hero-lead-form-header h3{
        font-size: 22px;
    }
}

/* ---------- 5. Hero WhatsApp / Call Buttons (replacing old CTA buttons) ---------- */
.hero-content-body .hero-whatsapp-btn,
.hero-content-body .hero-call-btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hero-content-body .hero-whatsapp-btn i,
.hero-content-body .hero-call-btn i{
    font-size: 18px;
}
.hero-content-body .hero-whatsapp-btn{
    background: #25D366;
}
.hero-content-body .hero-whatsapp-btn span{
    color: #fff;
}
