
/* ==========================================
   FREEQUOTEPRO - CONTACT US
   ALIGNED PREMIUM GLASS FRAME
========================================== */

/* Animated reflection angle */
@property --contact-glass-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 225deg;
}

/* ==========================================
   1. IMAGE CONTAINER
========================================== */

.page-contact-us .contact-us-body-image {
    right: -7px;
    position: relative;

    /* Keep original margin and dimensions */
}

/* ==========================================
   2. GLASS FRAME FOUNDATION
========================================== */

.page-contact-us .contact-us-body-image figure {
    --contact-frame-width: 5px;
    --contact-glass-angle: 225deg;

    position: relative;
    isolation: isolate;

    /* Preserve original image dimensions */
    /* No additional margin or padding */

    border-radius: 22px;

    box-shadow:
        0 20px 42px -18px rgba(11, 49, 91, 0.32),
        0 8px 18px -12px rgba(11, 49, 91, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);

    transition:
        box-shadow 450ms ease;
}

/* ==========================================
   3. GLASS FRAME FALLBACK
========================================== */

/* Uses the frame's exact dimensions */
.page-contact-us .contact-us-body-image figure::after {
    content: "";
    position: absolute;

    inset: 0;
    z-index: 5;

    width: auto;
    height: auto;

    border-radius: inherit;
    pointer-events: none;

    /* Prevent original image-anime movement */
    transform: none;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.40),
        inset 0 2px 2px rgba(255, 255, 255, 0.25);
}

/* ==========================================
   4. REFLECTIVE GLASS BORDER
========================================== */

@supports ((mask-composite: exclude) or
           (-webkit-mask-composite: xor)) {

    .page-contact-us .contact-us-body-image figure::after {
        padding: var(--contact-frame-width);

        background: conic-gradient(
            from var(--contact-glass-angle),

            rgba(255, 255, 255, 0.12) 0%,
            rgba(225, 237, 245, 0.95) 12%,
            rgba(255, 255, 255, 0.45) 24%,

            transparent 42%,

            rgba(255, 130, 28, 0.95) 59%,
            rgba(255, 195, 130, 0.75) 65%,

            transparent 80%,

            rgba(255, 255, 255, 0.12) 100%
        );

        -webkit-mask:
            linear-gradient(#000 0 0) content-box,
            linear-gradient(#000 0 0);

        mask:
            linear-gradient(#000 0 0) content-box,
            linear-gradient(#000 0 0);

        -webkit-mask-composite: xor;
        mask-composite: exclude;

        transition:
            --contact-glass-angle 900ms
            cubic-bezier(0.25, 1, 0.5, 1);
    }
}

/* ==========================================
   5. HOVER - REFLECTION MOVEMENT
========================================== */

@media (hover: hover) and (pointer: fine) {

    .page-contact-us .contact-us-body-image:hover
    figure::after {
        --contact-glass-angle: 255deg;
    }

    .page-contact-us .contact-us-body-image:hover
    figure {
        box-shadow:
            0 24px 48px -18px rgba(11, 49, 91, 0.38),
            0 10px 22px -12px rgba(11, 49, 91, 0.24),
            0 0 18px rgba(255, 130, 28, 0.09),
            inset 0 1px 0 rgba(255, 255, 255, 0.65);
    }
}

/* ==========================================
   6. RESPONSIVE
========================================== */

@media (max-width: 991px) {

    .page-contact-us .contact-us-body-image figure {
        --contact-frame-width: 4px;
    }
}

@media (max-width: 575px) {

    .page-contact-us .contact-us-body-image figure {
        --contact-frame-width: 3px;
    }
}

/* ==========================================
   7. REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .page-contact-us .contact-us-body-image figure,
    .page-contact-us .contact-us-body-image figure::after {
        transition: none;
    }
}
