/* Vishnu Nambiar Contact Button — frontend */
.vnc-contact-widget {
    --vnc-primary: #0A432A;
    --vnc-primary-dark: #063F25;
    --vnc-accent: #2E7D5B;
    --vnc-soft: #E8F5EE;
    --vnc-ink: #14352B;
    --vnc-muted: #66766F;
    --vnc-line: rgba(10, 67, 42, .12);
    position: fixed;
    bottom: 24px;
    z-index: 2147482000;
    font-family: inherit;
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.vnc-position-right { right: 24px; }
.vnc-position-left { left: 24px; }
.vnc-contact-widget *,
.vnc-contact-widget *::before,
.vnc-contact-widget *::after { box-sizing: border-box; }

.vnc-contact-launcher,
.vnc-contact-teaser,
.vnc-close-panel,
.vnc-contact-action {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.vnc-contact-launcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 9px 18px 9px 10px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--vnc-primary), var(--vnc-primary-dark));
    box-shadow: 0 12px 29px rgba(6, 63, 37, .24), 0 0 0 0 rgba(10, 67, 42, .42);
    cursor: pointer;
    isolation: isolate;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.vnc-contact-launcher::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    opacity: .24;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.8), transparent 42%);
    pointer-events: none;
}
.vnc-contact-launcher:hover {
    transform: translateY(-2px);
    filter: saturate(1.06);
    box-shadow: 0 16px 36px rgba(6, 63, 37, .28), 0 0 0 7px rgba(46, 125, 91, .16);
}
.vnc-contact-launcher:focus-visible,
.vnc-contact-teaser:focus-visible,
.vnc-close-panel:focus-visible,
.vnc-contact-action:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.vnc-launcher-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--vnc-primary-dark);
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.14);
    transition: opacity .16s ease, transform .2s ease;
}
.vnc-launcher-icon svg { width: 21px; height: 21px; }
.vnc-launcher-icon-close {
    position: absolute;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    opacity: 0;
    transform: rotate(-45deg) scale(.4);
}
.vnc-launcher-copy {
    display: grid;
    gap: 0;
    text-align: left;
}
.vnc-launcher-copy strong {
    color: inherit;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: -.015em;
}
.vnc-launcher-copy small {
    color: rgba(255,255,255,.78);
    font-size: 11px;
    font-weight: 520;
}
.vnc-launcher-mobile-text { display: none; }
.vnc-contact-widget.is-open .vnc-launcher-icon-open { opacity: 0; transform: rotate(45deg) scale(.4); }
.vnc-contact-widget.is-open .vnc-launcher-icon-close { opacity: 1; transform: rotate(0) scale(1); }
.vnc-contact-widget.is-open .vnc-contact-launcher { box-shadow: 0 15px 30px rgba(6,63,37,.25); }

.vnc-contact-panel {
    position: absolute;
    right: 0;
    bottom: 75px;
    width: min(386px, calc(100vw - 32px));
    padding: 21px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 23px;
    color: var(--vnc-ink);
    background: rgba(255,255,255,.99);
    box-shadow: 0 21px 60px rgba(0, 0, 0, .22), 0 2px 7px rgba(0,0,0,.07);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(15px) scale(.97);
    transform-origin: bottom right;
    transition: opacity .22s ease, transform .24s cubic-bezier(.2,.9,.2,1), visibility 0s linear .24s;
}
.vnc-position-left .vnc-contact-panel { right: auto; left: 0; transform-origin: bottom left; }
.vnc-contact-widget.is-open .vnc-contact-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}
.vnc-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 17px;
}
.vnc-panel-header h2 {
    max-width: 290px;
    margin: 2px 0 4px;
    color: var(--vnc-ink);
    font-size: 22px;
    font-weight: 790;
    line-height: 1.1;
    letter-spacing: -.035em;
}
.vnc-eyebrow {
    margin: 0 0 5px;
    color: var(--vnc-primary);
    font-size: 10px;
    font-weight: 830;
    letter-spacing: .13em;
}
.vnc-panel-subheading {
    margin: 0;
    color: var(--vnc-muted);
    font-size: 13px;
    line-height: 1.4;
}
.vnc-close-panel {
    display: grid;
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #555;
    background: #f3f3f3;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.vnc-close-panel span { font-size: 23px; line-height: .8; font-weight: 300; }
.vnc-close-panel:hover { color: #fff; background: var(--vnc-ink); transform: rotate(90deg); }

.vnc-contact-actions { display: grid; gap: 10px; }
.vnc-contact-action {
    display: flex;
    align-items: center;
    min-height: 70px;
    gap: 12px;
    padding: 10px 12px 10px 10px;
    border: 1px solid var(--vnc-line);
    border-radius: 15px;
    color: inherit;
    background: #fff;
    text-decoration: none !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.01);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.vnc-contact-action:hover {
    border-color: color-mix(in srgb, var(--vnc-primary) 42%, #fff);
    background: color-mix(in srgb, var(--vnc-primary) 4%, #fff);
    box-shadow: 0 7px 16px rgba(0,0,0,.07);
    transform: translateY(-1px);
}
.vnc-action-icon {
    display: grid;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: var(--vnc-primary);
}
.vnc-action-icon svg { width: 21px; height: 21px; }
.vnc-action-whatsapp .vnc-action-icon { background: #25A55F; }
.vnc-action-link .vnc-action-icon { color: var(--vnc-primary); background: color-mix(in srgb, var(--vnc-primary) 12%, #fff); }
.vnc-action-content { display: grid; flex: 1; min-width: 0; gap: 3px; }
.vnc-action-content strong { color: var(--vnc-ink); font-size: 14px; font-weight: 760; line-height: 1.18; }
.vnc-action-content small { overflow: hidden; color: var(--vnc-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.vnc-action-arrow { color: #a0a0a0; font-size: 27px; font-weight: 300; line-height: 1; transition: color .18s ease, transform .18s ease; }
.vnc-contact-action:hover .vnc-action-arrow { color: var(--vnc-primary); transform: translateX(2px); }
.vnc-panel-footer-note { margin: 16px 1px 0; color: #718078; font-size: 10.5px; line-height: 1.4; text-align: center; }

.vnc-contact-teaser {
    position: absolute;
    right: 0;
    bottom: 75px;
    display: flex;
    align-items: flex-start;
    width: max-content;
    max-width: min(290px, calc(100vw - 32px));
    gap: 11px;
    padding: 13px 32px 13px 15px;
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 16px;
    color: var(--vnc-ink);
    background: #fff;
    box-shadow: 0 16px 38px rgba(6,63,37,.18);
    cursor: pointer;
    opacity: 0;
    transform: translateY(9px) scale(.96);
    transition: opacity .25s ease, transform .25s cubic-bezier(.2,.9,.2,1);
}
.vnc-position-left .vnc-contact-teaser { right: auto; left: 0; }
.vnc-contact-teaser.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.vnc-contact-teaser[hidden] { display: none !important; }
.vnc-teaser-copy { display: grid; text-align: left; }
.vnc-teaser-copy strong { color: var(--vnc-ink); font-size: 13px; font-weight: 760; }
.vnc-teaser-copy small { margin-top: 2px; color: var(--vnc-muted); font-size: 11px; line-height: 1.2; }
.vnc-teaser-close { position: absolute; top: 5px; right: 8px; color: #969696; font-size: 17px; line-height: 1; }
.vnc-contact-teaser:hover { border-color: color-mix(in srgb, var(--vnc-primary) 28%, #fff); }
.vnc-contact-widget.is-open .vnc-contact-teaser { opacity: 0 !important; transform: translateY(8px) scale(.96) !important; pointer-events: none; }

@media (max-width: 640px) {
    .vnc-contact-widget {
        bottom: calc(15px + env(safe-area-inset-bottom));
    }
    .vnc-position-right { right: 15px; }
    .vnc-position-left { left: 15px; }
    .vnc-contact-launcher {
        min-height: 57px;
        gap: 8px;
        padding: 7px 13px 7px 8px;
    }
    .vnc-launcher-icon { flex-basis: 41px; width: 41px; height: 41px; }
    .vnc-launcher-copy strong { font-size: 12px; }
    .vnc-launcher-copy small { display: none; }
    .vnc-launcher-desktop-text { display: none; }
    .vnc-launcher-mobile-text { display: block; }
    .vnc-contact-panel {
        position: fixed;
        right: 12px !important;
        bottom: calc(82px + env(safe-area-inset-bottom));
        left: 12px !important;
        width: auto;
        max-width: none;
        padding: 20px;
        border-radius: 22px;
        transform-origin: bottom center !important;
        box-shadow: 0 22px 64px rgba(0,0,0,.27), 0 2px 7px rgba(0,0,0,.09);
    }
    .vnc-panel-header h2 { font-size: 21px; }
    .vnc-contact-action { min-height: 68px; }
    .vnc-contact-teaser { right: 0 !important; left: auto !important; bottom: 69px; max-width: min(292px, calc(100vw - 30px)); }
    .vnc-position-left .vnc-contact-teaser { right: auto !important; left: 0 !important; }
}

@media (max-width: 360px) {
    .vnc-contact-launcher { min-height: 53px; padding-right: 11px; }
    .vnc-launcher-icon { flex-basis: 38px; width: 38px; height: 38px; }
    .vnc-contact-panel { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .vnc-contact-widget *,
    .vnc-contact-widget *::before,
    .vnc-contact-widget *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Profile photo inside the floating launcher */
.vnc-launcher-icon-has-photo {
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.92);
    background: #e8f5ee;
}
.vnc-launcher-profile-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.08);
}
