/* ========================================================
   FLOATING ICONS UI & MODALS STYLING
   Jagramji Plywoods Private Limited
======================================================== */
.floating-icons {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column-reverse;
    gap: 14px;
    z-index: 1040;
    pointer-events: auto;
}

/* Floating Action Circle Button */
.floating-icons a {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border: 2.5px solid #ffffff !important;
    outline: none;
    cursor: pointer;
}

/* Hide broken / missing <img> tags so only sharp vector icons are visible */
.floating-icons a img {
    display: none !important;
}

/* ── 1. WhatsApp Button & Icon ── */
.floating-icons a[data-bs-target="#whatsappModal"],
.floating-icons a[title*="WhatsApp"] {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45) !important;
}

.floating-icons a[data-bs-target="#whatsappModal"]::before,
.floating-icons a[title*="WhatsApp"]::before {
    content: "\f232";
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    font-size: 30px;
    color: #ffffff;
    line-height: 1;
    display: inline-block;
}

.floating-icons a[data-bs-target="#whatsappModal"]:hover,
.floating-icons a[title*="WhatsApp"]:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.65) !important;
    background: linear-gradient(135deg, #1ebd5a 0%, #0d6e62 100%) !important;
}

/* Pulsing Ring for WhatsApp */
.floating-icons a[data-bs-target="#whatsappModal"]::after,
.floating-icons a[title*="WhatsApp"]::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0.6;
    animation: waPulse 2.2s infinite ease-out;
    pointer-events: none;
}

@keyframes waPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    60% {
        transform: scale(1.25);
        opacity: 0;
    }
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

/* ── 2. Call Button & Icon ── */
.floating-icons a[href^="tel"],
.floating-icons a[title*="Call"] {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    box-shadow: 0 6px 22px rgba(2, 132, 199, 0.45) !important;
}

.floating-icons a[href^="tel"]::before,
.floating-icons a[title*="Call"]::before {
    content: "\f095";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 24px;
    color: #ffffff;
    line-height: 1;
    display: inline-block;
}

.floating-icons a[href^="tel"]:hover,
.floating-icons a[title*="Call"]:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.65) !important;
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
}

/* ── 3. Email Button & Icon ── */
.floating-icons a[data-bs-target="#emailModal"],
.floating-icons a[title*="Email"] {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    box-shadow: 0 6px 22px rgba(217, 119, 6, 0.45) !important;
}

.floating-icons a[data-bs-target="#emailModal"]::before,
.floating-icons a[title*="Email"]::before {
    content: "\f0e0";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 24px;
    color: #ffffff;
    line-height: 1;
    display: inline-block;
}

.floating-icons a[data-bs-target="#emailModal"]:hover,
.floating-icons a[title*="Email"]:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 10px 28px rgba(217, 119, 6, 0.65) !important;
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%) !important;
}

/* ── Bootstrap Modal UI Enhancements ── */
#emailModal .modal-content,
#whatsappModal .modal-content {
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

#emailModal .modal-header,
#whatsappModal .modal-header {
    background: linear-gradient(135deg, #0c1a36 0%, #070e1c 100%);
    color: #ffffff;
    padding: 20px 24px;
    border-bottom: 2px solid #f59e0b;
}

#emailModal .modal-title,
#whatsappModal .modal-title {
    font-family: var(--font-heading, 'Inter', sans-serif);
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

#emailModal .btn-close,
#whatsappModal .btn-close {
    filter: invert(1);
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#emailModal .btn-close:hover,
#whatsappModal .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

#emailModal .modal-body,
#whatsappModal .modal-body {
    padding: 24px;
    background: #ffffff;
}

#emailModal .form-label,
#whatsappModal .form-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#emailModal .form-control,
#whatsappModal .form-control {
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
}

#emailModal .form-control:focus,
#whatsappModal .form-control:focus {
    border-color: #f59e0b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
    outline: none;
}

#emailModal button[type="submit"] {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border: none;
    padding: 12px 24px;
    font-weight: 700;
    border-radius: 8px;
    width: 100%;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

#emailModal button[type="submit"]:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

#whatsappModal button[type="submit"] {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    padding: 12px 24px;
    font-weight: 700;
    border-radius: 8px;
    width: 100%;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

#whatsappModal button[type="submit"]:hover {
    background: linear-gradient(135deg, #1ebd5a 0%, #0d6e62 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ── Mobile Responsiveness ── */
@media (max-width: 768px) {
    .floating-icons {
        bottom: 18px;
        left: 14px;
        gap: 10px;
    }
    .floating-icons a {
        width: 48px !important;
        height: 48px !important;
    }
    .floating-icons a[data-bs-target="#whatsappModal"]::before,
    .floating-icons a[title*="WhatsApp"]::before {
        font-size: 25px;
    }
    .floating-icons a[href^="tel"]::before,
    .floating-icons a[title*="Call"]::before {
        font-size: 20px;
    }
    .floating-icons a[data-bs-target="#emailModal"]::before,
    .floating-icons a[title*="Email"]::before {
        font-size: 20px;
    }
}
