/* FIX CALCULATOR TAB BUTTONS - PREVENT H3::AFTER FROM BLOCKING CLICKS */
.about-one__form h3 {
    position: relative !important;
}

.about-one__form h3::after {
    pointer-events: none !important;
    z-index: 0 !important;
}

.calculator-tabs {
    position: relative !important;
    z-index: 100 !important;
}

.tab-btn {
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

/* REDUCE TOPBAR HEIGHT */
.topbar__social a {
    line-height: 32px !important;
}

.topbar__social {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.topbar__left > a,
.topbar__right > a {
    font-size: 13px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.topbar__right > a > i {
    font-size: 13px !important;
}


/* BLACK OVERLAY ON SLIDER IMAGE LAYER - NOT ON TEXT */
.main-slider .swiper-slide .image-layer::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.8) 45%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.3) 65%, rgba(0, 0, 0, 0.1) 75%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Image layer positioning */
.main-slider .swiper-slide .image-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
}

/* Remove overlay from swiper-slide */
.main-slider .swiper-slide::before {
    display: none !important;
}

/* Ensure content is above image layer */
.main-slider .swiper-slide .container {
    position: relative !important;
    z-index: 2 !important;
}


/* BLACK OVERLAY ON BANNER SECTIONS */

/* Trusted Company Section - Black Overlay */
.trusted-company {
    position: relative !important;
}

.trusted-company__bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    opacity: 1 !important;
    background-size: cover !important;
}

.trusted-company__bg::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.trusted-company .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Funfact Section - Black Overlay */
.funfact-one {
    position: relative !important;
}

.funfact-one__bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    opacity: 1 !important;
    background-size: cover !important;
}

.funfact-one__bg::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.funfact-one .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Call to Action Section - Black Overlay */
.call-to-action {
    position: relative !important;
}

.call-to-action::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    opacity: 1 !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.call-to-action .container {
    position: relative !important;
    z-index: 2 !important;
}


/* MARQUEE BANNER BETWEEN TOPBAR AND HEADER */
.marquee-banner {
    background: #008fd5;
    padding: 0.1px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    display: inline-block;
    padding: 0 30px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.marquee-content span i {
    margin-right: 8px;
    font-size: 16px;
}

/* Colorful Icons */
.marquee-content span:nth-child(1) i { color: #FFD700; } /* Gold - Insurance */
.marquee-content span:nth-child(2) i { color: #FF6B6B; } /* Red - Health */
.marquee-content span:nth-child(3) i { color: #4ECDC4; } /* Teal - Income Tax */
.marquee-content span:nth-child(4) i { color: #95E1D3; } /* Mint - GST */
.marquee-content span:nth-child(5) i { color: #F38181; } /* Coral - Motor */
.marquee-content span:nth-child(6) i { color: #AA96DA; } /* Purple - Business */
.marquee-content span:nth-child(7) i { color: #FCBAD3; } /* Pink - Family */
.marquee-content span:nth-child(8) i { color: #FFFFD2; } /* Light Yellow - Property */
.marquee-content span:nth-child(9) i { color: #A8D8EA; } /* Sky Blue - Travel */
.marquee-content span:nth-child(10) i { color: #90EE90; } /* Light Green - Farmer */
.marquee-content span:nth-child(11) i { color: #FFB6C1; } /* Light Pink - Company */
.marquee-content span:nth-child(12) i { color: #DDA15E; } /* Brown - Accounting */
.marquee-content span:nth-child(13) i { color: #06FFA5; } /* Bright Green - Project */
.marquee-content span:nth-child(14) i { color: #FFA07A; } /* Light Salmon - TDS */
.marquee-content span:nth-child(15) i { color: #87CEEB; } /* Sky Blue - PF/ESIC */
.marquee-content span:nth-child(16) i { color: #F0E68C; } /* Khaki - Professional Tax */

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.marquee-banner:hover .marquee-content {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .marquee-content span,
    .marquee-content::after {
        font-size: 12px;
        padding: 0 30px;
    }
}


/* FLOATING CONTACT BUTTONS */
.floating-contact-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: shake 2s infinite;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: none;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.call-btn {
    background: linear-gradient(135deg, #0c2139 0%, #1a3a5c 100%);
    animation: shake 1s infinite, ring-pulse 2s infinite;
}

.call-btn:hover {
    background: linear-gradient(135deg, #1a3a5c 0%, #0c2139 100%);
}

.call-btn i {
    animation: ring-rotate 1s ease-in-out infinite;
}

.quote-btn {
    background: linear-gradient(135deg, #f4a340 0%, #d4891f 100%);
}

.quote-btn:hover {
    background: linear-gradient(135deg, #d4891f 0%, #b87316 100%);
}

/* Phone number display */
.phone-number {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #0c2139;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.call-btn:hover .phone-number {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Vibrate animation - minimal intensity */
@keyframes shake {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-0.5px, 0.5px);
    }
    50% {
        transform: translate(0.5px, -0.5px);
    }
    75% {
        transform: translate(-0.5px, -0.5px);
    }
}

/* Ringing phone icon animation */
@keyframes ring-rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-15deg);
    }
    20%, 40% {
        transform: rotate(15deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

/* Pulse effect for call button */
@keyframes ring-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(12, 33, 57, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(12, 33, 57, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(12, 33, 57, 0);
    }
}

/* QUOTE MODAL */
.quote-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.quote-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.quote-modal-content h3 {
    margin: 0 0 10px 0;
    color: #0c2139;
    font-size: 24px;
}

.quote-modal-content p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

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

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

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

.quote-form input:focus,
.quote-form select:focus {
    outline: none;
    border-color: #f4a340;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f4a340 0%, #d4891f 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #d4891f 0%, #b87316 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 163, 64, 0.4);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .floating-contact-buttons {
        right: 15px;
        bottom: 80px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .phone-number {
        font-size: 12px;
        padding: 8px 12px;
        right: 60px;
    }
    
    .call-btn:hover .phone-number {
        right: 65px;
    }
    
    .quote-modal-content {
        padding: 25px;
        width: 95%;
    }
    
    .quote-modal-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .floating-contact-buttons {
        right: 10px;
        bottom: 70px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .phone-number {
        font-size: 11px;
        padding: 6px 10px;
        right: 55px;
    }
    
    .call-btn:hover .phone-number {
        right: 60px;
    }
    
    .quote-modal-content {
        padding: 20px;
    }
    
    .quote-modal-content h3 {
        font-size: 18px;
    }
}


/* CONSISTENT SERVICE CARD HEIGHTS */
.service-one__card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-one__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-one__content p {
    flex-grow: 1;
    min-height: 80px;
}

.service-one__content h3 {
    min-height: 60px;
    display: flex;
    align-items: center;
}
