/*
 * LILR Frontend Defensive CSS
 *
 * Loaded as an external <link> with a "bv-*" id so Airlift's optimizer
 * SKIPS it from delayed-loading (per airlift/buffer/optimizer.php line 608-610:
 * external CSS with id starting with "bv-" is excluded from delay processing).
 *
 * The rules here prevent layout breakage during the brief moment before
 * Elementor's own (delayed) CSS finishes loading.
 */

/* ============================================================
   Defensive icon sizing — caps every common icon class
   ============================================================ */
svg.e-font-icon-svg,
.e-font-icon-svg { width: 1em; height: 1em; max-width: 32px; max-height: 32px; display: inline-block; vertical-align: middle; }
.elementor-icon-list-icon svg.e-font-icon-svg,
.elementor-icon-list-icon .e-font-icon-svg { max-width: 20px; max-height: 20px; }
.elementor-button-icon svg.e-font-icon-svg,
.elementor-button-icon .e-font-icon-svg,
.elementor-button svg.e-font-icon-svg,
.elementor-button .e-font-icon-svg { max-width: 20px; max-height: 20px; margin-right: 4px; }
.elementor-menu-toggle svg.e-font-icon-svg,
.elementor-menu-toggle .e-font-icon-svg { max-width: 24px; max-height: 24px; }
.elementor-social-icon svg,
.elementor-social-icon img,
.elementor-social-icon i,
.elementor-social-icon .e-font-icon-svg { max-width: 24px; max-height: 24px; width: 1em; height: 1em; font-size: 16px; }
.elementor-icon { display: inline-flex; align-items: center; justify-content: center; }
.elementor-icon svg,
.elementor-icon img,
.elementor-icon i,
.elementor-icon .e-font-icon-svg { max-width: 48px; max-height: 48px; width: 1em; height: 1em; font-size: 16px; }
.elementor-icon-list-icon { display: inline-flex; align-items: center; justify-content: center; }
.elementor-icon-list-icon svg,
.elementor-icon-list-icon img,
.elementor-icon-list-icon i { max-width: 24px; max-height: 24px; width: 1em; height: 1em; font-size: 14px; }
i.fa, i.fa-solid, i.fa-regular, i.fa-brands, i.fas, i.far, i.fab { font-size: 16px; line-height: 1; }
i.eicon-spin, i.fa-spin { animation-duration: 1s; }
.elementor-widget svg:not(:root):not(.elementor-icon > svg) { max-width: 100%; max-height: 100%; }
header svg, .elementor-location-header svg, .header svg { max-width: 24px; max-height: 24px; }
img.icon, img[src*="/icons/"], img[src$=".svg"] { max-width: 48px; height: auto; }

/* ============================================================
   Mobile header gold bars — hide
   The Elementor Header template (post 3345) wraps everything in a parent
   container (data-id="6740eeb9") that has background_color: #BB9E59
   AND background_overlay_color: #BB9E59 baked into Elementor's saved JSON.
   On desktop, inner widgets fill the container so gold shows only as accent.
   On mobile, several inner widgets are elementor-hidden-mobile, leaving
   empty gold-filled rectangles above and below the logo bar.
   Fix: make the gold bg + overlay transparent on mobile so only the inner
   black logo bar shows. Desktop is untouched.
   ============================================================ */
@media (max-width: 767px) {
    .elementor-element.elementor-element-6740eeb9 {
        background-color: transparent !important;
        background-image: none !important;
    }
    .elementor-element.elementor-element-6740eeb9 > .elementor-background-overlay {
        display: none !important;
    }
}

/* ============================================================
   Form success/error messages — bright, legible, attention-grabbing
   ============================================================ */
.elementor-message {
    padding: 14px 18px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-top: 14px !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: 2px solid transparent !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    animation: lilr-flash-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.elementor-message-success,
.elementor-message.success {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
}
.elementor-message-success::before,
.elementor-message.success::before {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 900;
    flex-shrink: 0;
}
.elementor-message-danger,
.elementor-message-error,
.elementor-message.danger,
.elementor-message.error {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #b91c1c !important;
}
.elementor-message-danger::before,
.elementor-message-error::before {
    content: "\2715";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 900;
    flex-shrink: 0;
}
@keyframes lilr-flash-in {
    from { transform: translateY(-8px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}
