/* ============================================
   BOILER QUOTE BUTTON & MODAL STYLING
   Dedicated styles for the boiler quote feature
   ============================================ */

/* === BOILER QUOTE BUTTON === */
.btn--boiler-quote {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #f97316 100%);
    background-size: 200% 200%;
    border: 2px solid #ea580c;
    position: relative;
    overflow: hidden;
    animation: boilerButtonPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5), 0 4px 14px 0 rgba(249, 115, 22, 0.4);
}

.btn--boiler-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn--boiler-quote:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #ea580c 100%);
    background-size: 200% 200%;
    animation: boilerButtonGlow 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.7), 0 6px 20px 0 rgba(249, 115, 22, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.05);
}

.btn--boiler-quote:hover::before {
    left: 100%;
}

.btn--boiler-quote i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    display: inline-block;
    animation: fireFlicker 1.5s ease-in-out infinite;
}

@keyframes boilerButtonPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.5), 0 4px 14px 0 rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 0 35px rgba(249, 115, 22, 0.8), 0 4px 14px 0 rgba(249, 115, 22, 0.6);
    }
}

@keyframes boilerButtonGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(249, 115, 22, 0.7), 0 6px 20px 0 rgba(249, 115, 22, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(249, 115, 22, 0.9), 0 8px 25px 0 rgba(249, 115, 22, 0.8), inset 0 0 25px rgba(255, 255, 255, 0.3);
    }
}

@keyframes fireFlicker {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(-1deg);
    }
    50% {
        transform: translateY(-4px) rotate(1deg);
    }
    75% {
        transform: translateY(-2px) rotate(-1deg);
    }
}

/* === BOILER QUOTE MODAL === */
.quote-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.quote-modal-overlay.active {
    display: flex;
}

.quote-modal-container {
    background: white;
    border-radius: 1rem;
    width: 80%;
    height: 80%;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    animation: slideDown 300ms ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.quote-modal-header h2 {
    margin: 0;
    color: #111827;
    font-size: 1.5rem;
}

.quote-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 250ms ease;
}

.quote-modal-close:hover {
    color: #111827;
}

.quote-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

#widget-container {
    width: 100%;
    height: 100%;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .quote-modal-container {
        width: 90%;
        height: 90%;
    }
}

@media (max-width: 768px) {
    .quote-modal-container {
        width: 95%;
        height: 95%;
        max-height: 95vh;
    }
    
    .quote-modal-header h2 {
        font-size: 1.25rem;
    }

    .btn--boiler-quote {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }

    .btn--boiler-quote i {
        font-size: 1rem;
    }
}

/* === FLOATING CONTACT BUTTON OVERRIDES === */
.floating-contact__btn--boiler {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #f97316 100%);
    background-size: 200% 200%;
    border: 2px solid #ea580c;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    animation: boilerButtonPulse 2s ease-in-out infinite;
    text-decoration: none;
    margin-bottom: 0.5rem; /* Space between buttons if stacked vertically */
}

.floating-contact__btn--boiler:hover {
    transform: scale(1.1);
    background-position: right center;
    color: white;
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.6);
}

.floating-contact__btn--boiler i {
    font-size: 1.5rem;
    animation: fireFlicker 1.5s ease-in-out infinite;
}

/* Base styles for floating contact container if missing/needed */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9998;
}

.floating-contact__btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.floating-contact__btn:hover {
    transform: translateY(-5px);
    color: white;
}

.floating-contact__btn--whatsapp {
    background-color: #25D366;
}

.floating-contact__btn--phone {
    background-color: #0e7490; /* Primary color */
}

.floating-contact__btn i {
    font-size: 1.75rem;
}

@media (max-width: 768px) {
    .floating-contact {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.75rem;
    }

    .floating-contact__btn, .floating-contact__btn--boiler {
        width: 50px;
        height: 50px;
    }

    .floating-contact__btn i, .floating-contact__btn--boiler i {
        font-size: 1.4rem;
    }
}


/* === BOILER PROMO SECTION === */
.boiler-promo {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    color: white;
    margin-bottom: 2rem;
}

.boiler-promo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: radial-gradient(circle at 70% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.boiler-promo__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.boiler-promo__content {
    flex: 1;
    max-width: 600px;
}

.boiler-promo__badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(249, 115, 22, 0.3);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.boiler-promo__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.boiler-promo__text {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.boiler-promo__image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 4rem;
}

.boiler-promo__image i {
    font-size: 12rem;
    color: #ffffff;
    opacity: 0.05;
    transform: rotate(-15deg);
}

@media (max-width: 992px) {
    .boiler-promo__title {
        font-size: 2rem;
    }

    .boiler-promo__image i {
        font-size: 8rem;
    }
}

@media (max-width: 768px) {
    .boiler-promo__container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .boiler-promo__content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .boiler-promo__image {
        display: none;
    }

    .boiler-promo {
        padding: 3rem 0;
    }

    .boiler-promo__badge {
        margin-bottom: 1rem;
    }

    .boiler-promo__title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .boiler-promo__text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}
