@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== Scoped version of the demo page's global rules (* / body) =====
   Same values as chatbot demo page, but limited to the widget so the
   WordPress theme is not affected and the theme cannot override the widget. */
.chatbot-wrapper,
.chatbot-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.chatbot-wrapper,
.chatbot-wrapper *,
.chatbot-wrapper *::before,
.chatbot-wrapper *::after {
    font-family: 'Inter', sans-serif !important;
}
.chatbot-wrapper {
    line-height: 1.7;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

.chatbot-wrapper {
            /* ===== ARM MLM theme: edit these 4 values to match the brand exactly ===== */
            --brand-dark: #8f0d14;
            --brand-main: #e5252d;
            --brand-accent: #e5252d;
            --brand-soft: #fff5f5;
            --brand-grad: linear-gradient(160deg, #e5252d 0%, #a80f16 100%);
            --brand-grad-hover: linear-gradient(160deg, #ff4b52 0%, #c4161d 100%);

            --dark: #0f172a;
            --dark-light: #1e293b;
            --gray: #64748b;
            --gray-light: #94a3b8;
            --white: #ffffff;
            --shadow-md: 0 4px 6px rgba(0, 0, 0, .1);
            --transition: all .3s cubic-bezier(.4, 0, .2, 1);
        }

        .cm-required {
            color: #e5252d;
            font-weight: 700;
            margin-left: 2px;
        }

        .cm-row {
            display: flex;
            gap: 10px;
        }

        /* .cm-row .cm-field {
        flex: 1;
        min-width: 0;
    } */
        .cm-row .cm-field:first-child {
            flex: 5;
            min-width: 0;
        }

        .cm-row .cm-field:last-child {
            flex: 7;
            min-width: 0;
        }

        select.cm-input {
            cursor: pointer;
            appearance: auto;
        }

        .cm-dropdown {
            position: relative;
            margin-bottom: 12px;
        }

        .cm-select-btn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            text-align: left;
            cursor: pointer;
            margin-bottom: 0;
        }

        .cm-select-btn .placeholder {
            color: var(--gray-light);
        }

        .cm-select-btn .cm-arrow {
            flex-shrink: 0;
            font-size: 11px;
            transition: transform .2s ease;
        }

        .cm-dropdown.open .cm-arrow {
            transform: rotate(180deg);
        }

        /* 6 items x 36px + 8px padding = exactly 6 options visible */
        .cm-select-list {
            display: none;
            position: absolute;
            left: 0;
            right: 0;
            top: calc(100% + 4px);
            z-index: 30;
            max-height: 200px;
            overflow-y: auto;
            margin: 0;
            padding: 4px;
            list-style: none;
            background: #fff;
            border: 1.5px solid #ecd0d2;
            border-radius: 12px;
            box-shadow: 0 10px 24px rgba(143, 13, 20, .15);
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .cm-dropdown.open .cm-select-list {
            display: block;
        }

        .cm-select-list li {
            height: 32px;
            display: flex;
            align-items: center;
            padding: 0 10px;
            font-size: 13px;
            border-radius: 8px;
            cursor: pointer;
            color: var(--dark);
        }

        .cm-select-list li:hover,
        .cm-select-list li.selected {
            background: var(--brand-soft);
            color: var(--brand-dark);
            font-weight: 600;
        }

        .cm-select-list::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        /* error state: hidden input comes right before the dropdown */
        input.invalid+.cm-dropdown .cm-select-btn {
            border-color: #ef4444;
        }

        @media (max-width: 360px) {
            .cm-row {
                flex-direction: column;
                gap: 0;
            }
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* ================= CHATBOT ================= */
        .chatbot-wrapper {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 10000;
        }

        .chatbot-fab {
            width: 62px;
            height: 62px;
            border-radius: 50%;
            background: var(--brand-grad);
            border: 1px solid rgba(255, 255, 255, .35);
            box-shadow: 0 8px 28px rgba(10, 31, 92, .40), 0 2px 8px rgba(0, 0, 0, .12);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #fff;
            transition: var(--transition);
            position: relative;
            z-index: 10001;
        }

        .chatbot-fab:hover {
            transform: scale(1.08);
            box-shadow: 0 12px 36px rgba(10, 31, 92, .5), 0 4px 12px rgba(0, 0, 0, .12);
        }

        .chatbot-fab .notification-dot {
            position: absolute;
            top: 2px;
            right: 2px;
            width: 15px;
            height: 15px;
            background: var(--brand-accent);
            border-radius: 50%;
            border: 2px solid #fff;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 122, 26, .7);
            }

            70% {
                box-shadow: 0 0 0 10px rgba(255, 122, 26, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(255, 122, 26, 0);
            }
        }

        .chatbot-popup {
            position: absolute;
            bottom: 78px;
            right: 0;
            width: 380px;
            max-width: calc(100vw - 30px);
            height: 600px;
            max-height: calc(100vh - 100px);
            background: var(--brand-soft);
            border-radius: 22px;
            border: 1px solid rgba(255, 255, 255, .45);
            box-shadow: 0 8px 32px rgba(15, 23, 42, .12), 0 2px 8px rgba(15, 23, 42, .06);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(15px) scale(.98);
            transition: opacity .35s cubic-bezier(.4, 0, .2, 1), visibility .35s cubic-bezier(.4, 0, .2, 1), transform .35s cubic-bezier(.4, 0, .2, 1);
        }

        .chatbot-popup.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        /* Animated glass background */
        .chatbot-bg {
            position: absolute;
            inset: 0;
            overflow: hidden;
            pointer-events: none;
            z-index: 0;
            background: linear-gradient(120deg, #e6edff 0%, #dbe7ff 25%, #fff0e4 50%, #d9ecff 75%, #e6edff 100%);
            background-size: 300% 300%;
            animation: auroraShift 16s ease-in-out infinite;
        }

        @keyframes auroraShift {
            0% {
                background-position: 0% 50%
            }

            50% {
                background-position: 100% 50%
            }

            100% {
                background-position: 0% 50%
            }
        }

        .chatbot-bg::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            width: calc(100% + 240px);
            background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .38) 50px, rgba(255, 255, 255, 0) 110px, rgba(255, 255, 255, 0) 240px);
            animation: streakDrift 14s linear infinite;
        }

        @keyframes streakDrift {
            from {
                transform: translateX(0)
            }

            to {
                transform: translateX(-240px)
            }
        }

        .chatbot-bg::after {
            content: '';
            position: absolute;
            top: -20%;
            left: -60%;
            width: 40%;
            height: 140%;
            background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
            transform: rotate(12deg);
            animation: glassSweep 8s ease-in-out infinite;
        }

        @keyframes glassSweep {

            0%,
            55% {
                transform: translateX(0) rotate(12deg)
            }

            100% {
                transform: translateX(460%) rotate(12deg)
            }
        }

        .chatbot-popup:not(.active) .chatbot-bg,
        .chatbot-popup:not(.active) .chatbot-bg::before,
        .chatbot-popup:not(.active) .chatbot-bg::after {
            animation-play-state: paused;
        }

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

            .chatbot-bg,
            .chatbot-bg::before,
            .chatbot-bg::after {
                animation: none;
            }
        }

        .chatbot-header,
        .chatbot-messages,
        .chatbot-quick-actions,
        .chatbot-input {
            position: relative;
            z-index: 1;
        }

        /* Header */
        .chatbot-header {
            background: var(--brand-grad);
            color: #fff;
            padding: 14px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(255, 255, 255, .25);
        }

        .chatbot-header-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .chatbot-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: rgba(255, 255, 255, .15);
            border: 1px solid rgba(255, 255, 255, .35);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ai-assistant-header {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .ai-assistant-header strong {
            font-size: 15px;
            font-weight: 700;
            color: #fff;
            line-height: 1.3;
            letter-spacing: .2px;
        }

        .ai-assistant-header span {
            font-size: 11px;
            font-weight: 500;
            color: rgba(255, 255, 255, .85);
        }

        .chatbot-close {
            background: rgba(255, 255, 255, .18);
            border: 1px solid rgba(255, 255, 255, .3);
            border-radius: 50%;
            color: #fff;
            font-size: 20px;
            width: 32px;
            height: 32px;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            line-height: 1;
        }

        .chatbot-close:hover {
            background: rgba(255, 255, 255, .32);
            transform: rotate(90deg);
        }

        /* Messages */
        .chatbot-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            background: transparent;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .chatbot-messages::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        .message {
            display: flex;
            gap: 8px;
            margin-bottom: 14px;
            animation: messageIn .35s cubic-bezier(.4, 0, .2, 1);
        }

        @keyframes messageIn {
            from {
                opacity: 0;
                transform: translateY(10px)
            }

            to {
                opacity: 1;
                transform: translateY(0)
            }
        }

        .message.user {
            flex-direction: row-reverse;
        }

        .message-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            /* background: var(--brand-grad); */
            border: 1px solid rgba(255, 255, 255, .5);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
            margin-top: 6px;
        }

        .message-avatar svg {
            width: 17px;
            height: 20px;
        }

        .message-content {
            max-width: 75%;
            padding: 11px 15px;
            border-radius: 16px;
            font-size: 14.8px;
            line-height: 1.55;
            word-break: break-word;
            margin-top: 9px;
            transition: var(--transition);
            /* font-family: "Satoshi", sans-serif; */
            font-weight: 401;
        }

        .message.user .message-content {
            background: var(--brand-grad);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, .28);
            border-bottom-right-radius: 5px;
            box-shadow: 0 4px 14px rgba(10, 31, 92, .25);
        }

        .message.bot .message-content {
            background: rgba(255, 255, 255, .62);
            border: 1px solid rgba(255, 255, 255, .8);
            border-bottom-left-radius: 5px;
            color: var(--dark);
            -webkit-backdrop-filter: blur(14px) saturate(1.6);
            backdrop-filter: blur(14px) saturate(1.6);
            box-shadow: 0 8px 24px rgba(10, 31, 92, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
        }

        .message.bot .message-content a {
            color: var(--brand-main);
        }

        .message.bot .message-content ul {
            margin: 4px 0 4px 18px;
            padding: 0;
        }

        .message.bot .message-content li {
            margin-bottom: 2px;
        }

        /* Quick buttons */
        .message-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
            max-width: 90%;
        }

        .quick-btn,
        .static-quick-btn {
            background: rgba(255, 255, 255, .55);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            border: 1.5px solid rgba(30, 79, 216, .45);
            color: var(--brand-dark);
            font-size: 12px;
            font-weight: 600;
            border-radius: 22px;
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap;
            box-shadow: 0 4px 14px rgba(10, 31, 92, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
        }

        .quick-btn {
            padding: 7px 10px;
        }

        .quick-btn:hover,
        .static-quick-btn:hover {
            background: var(--brand-grad-hover);
            color: #fff;
            border-color: transparent;
            transform: translateY(-2px);
        }

        .quick-btn:disabled {
            opacity: .5;
            cursor: default;
            transform: none;
            box-shadow: none;
        }

        .chatbot-quick-actions {
            display: flex;
            gap: 8px;
            padding: 10px 12px 5px;
            flex-wrap: wrap;
            background: rgba(255, 255, 255, .45);
            -webkit-backdrop-filter: blur(16px) saturate(1.4);
            backdrop-filter: blur(16px) saturate(1.4);
            border-top: 1px solid rgba(255, 255, 255, .7);
        }

        .static-quick-btn {
            padding: 5px;
            flex: 1;
            text-align: center;
            min-width: 0;
        }

        @media (max-width: 424px) {
            .static-quick-btn {
                font-size: 10px;
            }
        }

        /* Field widgets (phone / email) */
        .field-widget {
            margin-top: 10px;
            max-width: 92%;
            background: rgba(255, 255, 255, .7);
            -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
            border: 1px solid rgba(226, 232, 240, .7);
            border-radius: 14px;
            padding: 12px;
            box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
        }

        .field-widget label {
            display: block;
            font-size: 11px;
            font-weight: 600;
            color: var(--gray);
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: .3px;
        }

        .field-widget-row {
            display: flex;
            gap: 8px;
            align-items: flex-start;
        }

        .field-widget-col {
            display: flex;
            flex-direction: column;
        }

        .field-widget-col.grow {
            flex: 1;
            min-width: 0;
        }

        .country-code-select,
        .field-input,
        .cm-input,
        .chatbot-input-field {
            border: 1.5px solid rgba(226, 232, 240, .8);
            border-radius: 12px;
            font-family: inherit;
            background: rgba(255, 255, 255, .8);
            color: var(--dark);
            outline: none;
            transition: var(--transition);
        }

        .country-code-select {
            padding: 9px 10px;
            font-size: 13px;
            cursor: pointer;
        }

        .field-input {
            width: 100%;
            padding: 9px 12px;
            font-size: 13px;
        }

        .country-code-select:focus,
        .field-input:focus,
        .cm-input:focus,
        .chatbot-input-field:focus {
            border-color: var(--brand-main);
            box-shadow: 0 0 0 3px rgba(30, 79, 216, .14);
            background: #fff;
        }

        .field-input.invalid,
        .cm-input.invalid {
            border-color: #ef4444;
        }

        .field-widget-error {
            color: #ef4444;
            font-size: 11.5px;
            margin-top: 5px;
            min-height: 14px;
            display: none;
        }

        .field-widget-error.visible {
            display: block;
        }

        .field-widget-submit {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--brand-grad);
            border: 1px solid rgba(255, 255, 255, .3);
            color: #fff;
            font-size: 15px;
            cursor: pointer;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            align-self: flex-end;
            box-shadow: 0 4px 12px rgba(10, 31, 92, .25);
        }

        .field-widget-submit:hover {
            transform: scale(1.08);
        }

        .field-widget.disabled .field-input,
        .field-widget.disabled .country-code-select,
        .field-widget.disabled .field-widget-submit {
            opacity: .55;
            pointer-events: none;
        }

        /* Calendly */
        /* .calendly-widget-wrap {
            margin-top: 10px;
        } */
        /* .calendly-card {
            width: 100%;
            margin: 8px 0 14px;
            background: #fff;
            border: 1px solid #f3d6d8;
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(143, 13, 20, .10);
            overflow: hidden;
            animation: messageIn .35s cubic-bezier(.4, 0, .2, 1);
        } */
         .calendly-card {
            width: 87%;
            margin: -4px 29px 7px;
            background: #fff;
            border: 1px solid #f3d6d8;
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(143, 13, 20, .10);
            overflow: hidden;
            animation: messageIn .35s cubic-bezier(.4, 0, .2, 1);
        }

        .calendly-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 14px;
            background: var(--brand-soft);
            border-bottom: 1px solid #f3d6d8;
        }

        .calendly-card-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 700;
            color: var(--brand-dark);
        }

        .chatbot-reset {
            background: rgba(255, 255, 255, .18);
            border: 1px solid rgba(255, 255, 255, .3);
            border-radius: 50%;
            color: #fff;
            font-size: 17px;
            width: 32px;
            height: 32px;
            cursor: pointer;
            margin-right: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .chatbot-reset:hover {
            background: rgba(255, 255, 255, .32);
            transform: rotate(180deg);
        }

        .chatbot-header>div:last-child {
            display: flex;
            align-items: center;
        }

        .calendly-card-close {
            flex-shrink: 0;
            width: 26px;
            height: 26px;
            border: none;
            border-radius: 50%;
            background: rgba(100, 116, 139, .15);
            color: var(--dark);
            font-size: 13px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .calendly-card-close:hover {
            background: rgba(239, 68, 68, .15);
            color: #ef4444;
        }

        .calendly-card-body {
            position: relative;
            width: 100%;
            height: 375px;
            background: #fff;
        }

        .calendly-card-body iframe {
            border: 0;
            width: 100%;
            height: 100%;
        }

        .calendly-loading {
            position: absolute;
            inset: 0;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: #fff;
            font-size: 12.5px;
            color: var(--gray);
        }

        .calendly-spinner {
            width: 30px;
            height: 30px;
            border: 3px solid var(--brand-soft);
            border-top-color: var(--brand-main);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @media (max-width: 480px) {
            .calendly-card-body {
                height: 480px;
            }
        }

        /* Quote form / confirm card */
        .confirm-meeting-card {
            background: rgba(255, 255, 255, .82);
            -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(226, 232, 240, .7);
            border-radius: 16px;
            padding: 16px;
            margin: 8px 0 12px;
            width: 100%;
            box-shadow: 0 6px 24px rgba(15, 23, 42, .08);
        }

        .quote-form-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 14px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(226, 232, 240, .8);
        }

        .quote-form-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--brand-dark);
            line-height: 1.3;
        }

        .quote-form-close {
            flex-shrink: 0;
            width: 26px;
            height: 26px;
            border: none;
            border-radius: 50%;
            background: rgba(100, 116, 139, .15);
            color: var(--dark);
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .quote-form-close:hover {
            background: rgba(239, 68, 68, .15);
            color: #ef4444;
        }

        .cm-label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 5px;
        }

        .cm-input {
            width: 100%;
            padding: 9px 12px;
            font-size: 13px;
            margin-bottom: 12px;
        }

        textarea.cm-input {
            display: block;
            resize: vertical;
            min-height: 90px;
            max-height: 220px;
            line-height: 1.45;
        }

        .cm-error {
            color: #ef4444;
            font-size: 11.5px;
            margin: -8px 0 10px;
            display: none;
        }

        .cm-error.visible {
            display: block;
        }

        .cm-phone-row {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }

        .cm-phone-row .country-code-select {
            flex-shrink: 0;
        }

        .cm-phone-row .cm-input {
            margin-bottom: 0;
        }

        .cm-submit {
            width: 100%;
            background: var(--brand-grad);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, .25);
            border-radius: 12px;
            padding: 11px 16px;
            font-size: 14px;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 14px rgba(10, 31, 92, .25);
        }

        .cm-submit:hover {
            background: var(--brand-grad-hover);
            transform: translateY(-1px);
        }

        .cm-submit:disabled {
            opacity: .55;
            cursor: default;
            transform: none;
        }

        /* Input bar */
        .chatbot-input {
            background: rgba(255, 255, 255, .45);
            -webkit-backdrop-filter: blur(16px) saturate(1.4);
            backdrop-filter: blur(16px) saturate(1.4);
            padding: 12px;
            border-top: 1px solid rgba(255, 255, 255, .7);
        }

        .chatbot-input-form {
            display: flex;
            gap: 10px;
        }

        .chatbot-input-field {
            flex: 1;
            border-radius: 25px;
            padding: 10px 16px;
            font-size: 14px;
        }

        .chatbot-input-field::placeholder {
            color: var(--gray-light);
        }

        .chatbot-send-btn {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: var(--brand-grad);
            border: 1px solid rgba(255, 255, 255, .3);
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 4px 14px rgba(10, 31, 92, .3);
        }

        .chatbot-send-btn:hover {
            transform: scale(1.08);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .chatbot-wrapper {
                bottom: 16px;
                right: 16px;
            }

            .chatbot-popup {
                width: calc(100vw - 32px);
                height: calc(100vh - 110px);
                max-height: 620px;
                bottom: 78px;
                border-radius: 20px;
            }

            .chatbot-fab {
                width: 56px;
                height: 56px;
            }
        }

        @media (max-width: 480px) {
            .chatbot-popup {
                width: calc(100vw - 20px);
                right: 2px;
                height: calc(100vh - 90px);
                border-radius: 18px;
            }

            .chatbot-wrapper {
                bottom: 12px;
                right: 12px;
            }

            .chatbot-messages {
                padding: 12px;
            }

            .message-content {
                max-width: 85%;
            }
        }


        /* ===================== RED & WHITE THEME ===================== */
        .chatbot-popup {
            background: #fff;
            border: 1px solid #f3d6d8;
            box-shadow: 0 20px 50px rgba(120, 10, 16, .22);
        }

        .chatbot-bg {
            background: linear-gradient(160deg, #ffffff 0%, #fff1f1 55%, #ffe3e4 100%);
            background-size: auto;
            animation: none;
        }

        .chatbot-bg::before {
            background: repeating-linear-gradient(115deg, rgba(229, 37, 45, 0) 0, rgba(229, 37, 45, .04) 50px, rgba(229, 37, 45, 0) 110px, rgba(229, 37, 45, 0) 240px);
        }

        .chatbot-bg::after {
            background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .7) 50%, transparent 100%);
        }

        .chatbot-header {
            background: var(--brand-grad);
            border-bottom: 1px solid rgba(255, 255, 255, .25);
        }

        /* 
        .chatbot-avatar {
            background: rgba(255, 255, 255, .18);
            border-color: rgba(255, 255, 255, .5);
        } */
        .chatbot-avatar {
            background: rgba(255, 255, 255, 1);
            border-color: rgba(255, 255, 255, .5);
        }

        .ai-assistant-header span {
            color: #fff;
        }

        .message-avatar {

            border: 1px solid rgba(255, 255, 255, .6);
        }

        .message.user .message-content {
            background: var(--brand-grad);
            color: #fff;
            box-shadow: 0 6px 18px rgba(229, 37, 45, .28);
        }

        .message.bot .message-content {
            background: #fff;
            border: 1px solid #f3d6d8;
            color: var(--dark);
            box-shadow: 0 6px 18px rgba(143, 13, 20, .08);
        }

        .message.bot .message-content a {
            color: #c4161d;
        }

        .quick-btn,
        .static-quick-btn {
            background: #fff;
            border: 1.5px solid rgba(229, 37, 45, .55);
            color: #a80f16;
            box-shadow: 0 3px 10px rgba(229, 37, 45, .10);
        }

        .quick-btn:hover,
        .static-quick-btn:hover {
            background: var(--brand-grad);
            color: #fff;
            border-color: transparent;
        }

        .chatbot-quick-actions,
        .chatbot-input {
            background: rgba(255, 255, 255, .92);
            border-top: 1px solid #f3d6d8;
        }

        .chatbot-input-field,
        .field-input,
        .cm-input,
        .country-code-select {
            background: #fff;
            border: 1.5px solid #ecd0d2;
            color: var(--dark);
        }

        .chatbot-input-field:focus,
        .field-input:focus,
        .cm-input:focus,
        .country-code-select:focus {
            border-color: #e5252d;
            box-shadow: 0 0 0 3px rgba(229, 37, 45, .14);
        }

        .chatbot-send-btn,
        .field-widget-submit,
        .cm-submit {
            background: var(--brand-grad);
            color: #fff;
            border: none;
            box-shadow: 0 4px 14px rgba(229, 37, 45, .32);
        }

        .cm-submit:hover {
            background: var(--brand-grad-hover);
        }

        .field-widget,
        .confirm-meeting-card {
            background: #fff;
            border: 1px solid #f3d6d8;
            box-shadow: 0 8px 24px rgba(143, 13, 20, .10);
        }

        .quote-form-title {
            color: #8f0d14;
        }

        .quote-form-header {
            border-bottom-color: #f3d6d8;
        }

        /* ===================== GREETING TEASER BUBBLE ===================== */
        .chatbot-teaser {
            position: absolute;
            right: 108px;
            /* launcher-க்கு இடது பக்கத்துல */
            bottom: 14px;
            width: max-content;
            max-width: 250px;
            min-width: 170px;
            background: #fff;
            border: 1.5px solid #f3d6d8;
            border-radius: 18px 18px 4px 18px;
            /* tail right-bottom */
            padding: 12px 30px 12px 16px;
            font-size: 14px;
            line-height: 1.4;
            color: var(--dark);
            font-weight: 500;
            box-shadow: 0 12px 30px rgba(143, 13, 20, .18),
                0 2px 6px rgba(0, 0, 0, .06);
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transform: translateX(12px) scale(.92);
            transform-origin: right bottom;
            transition: opacity .4s cubic-bezier(.4, 0, .2, 1),
                visibility .4s cubic-bezier(.4, 0, .2, 1),
                transform .4s cubic-bezier(.4, 0, .2, 1);
            z-index: 10000;
            animation: teaserFloat 3s ease-in-out infinite;
        }

        /* little tail pointing to the robot */
        .chatbot-teaser::after {
            content: '';
            position: absolute;
            right: -7px;
            bottom: 16px;
            width: 0;
            height: 0;
            border-top: 7px solid transparent;
            border-bottom: 7px solid transparent;
            border-left: 8px solid #fff;
            filter: drop-shadow(1.5px 0 0 #f3d6d8);
        }

        .chatbot-teaser.show {
            opacity: 1;
            visibility: visible;
            transform: translateX(0) scale(1);
            animation-play-state: paused;
        }

        .chatbot-teaser:hover {
            transform: translateX(0) scale(1.03);
            box-shadow: 0 16px 36px rgba(143, 13, 20, .24),
                0 3px 8px rgba(0, 0, 0, .08);
        }

        .chatbot-teaser-text {
            margin: 0;
            white-space: normal;
            font-weight: 600;
            line-height: 1.45;
        }

        .chatbot-teaser-close {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #fff;
            border: 1.5px solid #f3d6d8;
            color: #8f0d14;
            font-size: 14px;
            font-weight: 600;
            line-height: 1;
            font-family: inherit;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 3px 8px rgba(143, 13, 20, .15);
            transition: all .25s ease;
        }

        .chatbot-teaser-close:hover {
            background: var(--brand-grad);
            color: #fff;
            border-color: transparent;
            transform: rotate(90deg);
        }

        @keyframes teaserFloat {

            0%,
            100% {
                transform: translateX(0) translateY(0) scale(1);
            }

            50% {
                transform: translateX(0) translateY(-5px) scale(1);
            }
        }

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

            .chatbot-teaser,
            .chatbot-teaser::after {
                animation: none;
            }
        }

        /* Tablet */
        @media (max-width: 768px) {
            .chatbot-teaser {
                right: 92px;
                max-width: 200px;
                font-size: 13px;
                padding: 10px 26px 10px 14px;
            }
        }

        /* Mobile */
        @media (max-width: 480px) {
            .chatbot-teaser {
                right: 78px;
                bottom: 10px;
                width: max-content;
                max-width: 170px;
                min-width: 0;
                font-size: 12.5px;
                padding: 9px 24px 9px 12px;
                border-radius: 14px 14px 4px 14px;
            }

            .chatbot-teaser-close {
                width: 20px;
                height: 20px;
                font-size: 12px;
            }
        }

        /* Launcher: animated robot image, no button background */
        .chatbot-fab.launcher-img {
            width: auto;
            height: auto;
            background: none;
            border: 0;
            border-radius: 0;
            padding: 0;
            box-shadow: none;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .28));
        }

        .chatbot-fab.launcher-img:hover {
            transform: scale(1.06);
            box-shadow: none;
        }

        .launcher-icon {
            width: 92px;
            height: auto;
            display: block;
            pointer-events: none;
        }

        .launcher-close {
            display: none;
            width: 54px;
            height: 54px;
            border-radius: 50%;
            background: var(--brand-grad);
            color: #fff;
            font-size: 22px;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 24px rgba(168, 15, 22, .4);
        }

        .chatbot-fab.is-open .launcher-icon {
            display: none;
        }

        .chatbot-fab.is-open .launcher-close {
            display: flex;
        }

        .chatbot-popup {
            bottom: 0px;
        }

        @media (max-width:768px) {
            .launcher-icon {
                width: 74px;
            }

            .chatbot-popup {
                bottom: 15px;
            }
        }

        /* ===== Professional human-handoff bar ===== */
        .chatbot-quick-actions {
            padding: 0;
            gap: 0;
            background: #fff;
            border-top: 1px solid #f3d6d8;
        }

        .human-handoff {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 14px;
            background: linear-gradient(90deg, #fff 0%, #fff7f7 100%);
        }

        .human-handoff-info {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .human-handoff-icon {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            background: var(--brand-soft);
            color: var(--brand-main);
            border: 1px solid #f3d6d8;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .human-handoff-text {
            display: flex;
            flex-direction: column;
            line-height: 1.25;
            min-width: 0;
        }

        .human-handoff-text strong {
            font-size: 12.5px;
            font-weight: 700;
            color: var(--dark);
        }

        .human-handoff-text span {
            font-size: 11px;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* green "online" dot */
        .human-handoff-text span::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #22c55e;
            box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
        }

        .human-handoff-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            font-family: inherit;
            font-size: 12px;
            font-weight: 600;
            color: #fff;
            background: var(--brand-grad);
            border: none;
            border-radius: 10px;
            cursor: pointer;
            white-space: nowrap;
            box-shadow: 0 3px 10px rgba(229, 37, 45, .28);
            transition: var(--transition);
        }

        .human-handoff-btn:hover {
            background: var(--brand-grad-hover);
            transform: translateY(-1px);
        }

        .human-handoff-btn svg {
            transition: transform .25s ease;
        }

        .human-handoff-btn:hover svg {
            transform: translateX(3px);
        }

        @media (max-width: 380px) {
            .human-handoff-text span {
                display: none;
            }

            .human-handoff-btn {
                padding: 8px 12px;
            }
        }

/* ===== Theme-proof quick buttons: beat the Ohio theme's button:not(...) rules =====
   Values below = the final (winning) values from the rules above. */
#chatbotPopup .message-buttons button.quick-btn,
#chatbotPopup .message-buttons .quick-btn,
#chatbotPopup .static-quick-btn {
    color: #a80f16 !important;
    background: #fff !important;
    border: 1.5px solid rgba(229, 37, 45, .55) !important;
    border-radius: 22px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
    min-height: 0 !important;
    box-shadow: 0 3px 10px rgba(229, 37, 45, .10) !important;
    cursor: pointer;
}
#chatbotPopup .message-buttons button.quick-btn,
#chatbotPopup .message-buttons .quick-btn {
    padding: 7px 10px !important;
    font-size: 12px !important;
    height: auto !important;
    width: auto !important;
}
#chatbotPopup .message-buttons button.quick-btn:hover,
#chatbotPopup .message-buttons .quick-btn:hover,
#chatbotPopup .static-quick-btn:hover {
    color: #fff !important;
    background: linear-gradient(160deg, #e5252d 0%, #a80f16 100%) !important;
    border-color: transparent !important;
}
#chatbotPopup .message-buttons .quick-btn:disabled {
    opacity: .5;
    cursor: default;
    box-shadow: none !important;
}

/* ===== Hide Zoho SalesIQ's own floating button ("We're offline / Leave a message").
   The chat is opened only from the chatbot's "Talk to an expert" button. ===== */
/* hidden visually only (NOT display:none) so Zoho can still open its chat window */
#zsiq_float,
.zsiq_floatmain .zsiq_float {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}


/* =====================================================================
   THEME-PROOF OVERRIDES  (Ohio theme style.css cannot override these)
   Theme rules such as  input[type="text"], select, textarea {...}  and
   h5 { font-size: calc(...) }  have higher specificity than the plain
   widget classes above, so every value is locked here with the
   #chatbotPopup id + !important.
   ===================================================================== */

/* ---- headings / text: theme h1-h6 & p sizes must not leak in ---- */
#chatbotPopup h1, #chatbotPopup h2, #chatbotPopup h3,
#chatbotPopup h4, #chatbotPopup h5, #chatbotPopup h6 {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: #0f172a !important;
}
/* "Need expert help?" */
#chatbotPopup .human-handoff-text h5 {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #0f172a !important;
}
/* headings that the AI may return inside a bot message (markdown) */
#chatbotPopup .message-content h1,
#chatbotPopup .message-content h2,
#chatbotPopup .message-content h3,
#chatbotPopup .message-content h4,
#chatbotPopup .message-content h5,
#chatbotPopup .message-content h6 {
    font-size: 15px !important;
    margin: 6px 0 4px !important;
}
#chatbotPopup .message-content p {
    margin: 0 0 6px !important;
    font-size: inherit !important;
    line-height: inherit !important;
}
#chatbotPopup .message-content p:last-child { margin-bottom: 0 !important; }
#chatbotPopup .message-content ul,
#chatbotPopup .message-content ol { margin: 4px 0 4px 18px !important; padding: 0 !important; }
#chatbotPopup .message-content li { margin: 0 0 2px !important; font-size: inherit !important; }

/* ---- labels ---- */
#chatbotPopup .cm-label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #0f172a !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* ---- form inputs / textarea / select / dropdown button ---- */
#chatbotPopup .cm-input,
#chatbotPopup .field-input,
#chatbotPopup .country-code-select {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 9px 12px !important;
    margin: 0 0 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: #0f172a !important;
    background: #fff !important;
    background-color: #fff !important;
    border: 1.5px solid #ecd0d2 !important;
    border-radius: 12px !important;
    -webkit-border-radius: 12px !important;
    box-shadow: none !important;
    outline: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
#chatbotPopup .cm-input:focus,
#chatbotPopup .field-input:focus,
#chatbotPopup .country-code-select:focus {
    border-color: #e5252d !important;
    box-shadow: 0 0 0 3px rgba(229, 37, 45, .14) !important;
    background: #fff !important;
}
#chatbotPopup .cm-input.invalid,
#chatbotPopup .field-input.invalid,
#chatbotPopup input.invalid + .cm-dropdown .cm-select-btn {
    border-color: #ef4444 !important;
}

/* placeholder text */
#chatbotPopup .cm-input::placeholder,
#chatbotPopup .field-input::placeholder,
#chatbotPopup .chatbot-input-field::placeholder,
#chatbotPopup textarea::placeholder {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: #94a3b8 !important;
    opacity: 1 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
#chatbotPopup .chatbot-input-field::placeholder { font-size: 14px !important; }
#chatbotPopup .cm-input::-webkit-input-placeholder,
#chatbotPopup .field-input::-webkit-input-placeholder { font-size: 13px !important; color: #94a3b8 !important; opacity: 1 !important; }
#chatbotPopup .chatbot-input-field::-webkit-input-placeholder { font-size: 14px !important; color: #94a3b8 !important; opacity: 1 !important; }

/* textarea (Project Requirements) */
#chatbotPopup textarea.cm-input {
    display: block !important;
    min-height: 90px !important;
    max-height: 220px !important;
    line-height: 1.45 !important;
    resize: vertical !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
#chatbotPopup textarea.cm-input::placeholder { line-height: 1.45 !important; }

/* custom plan dropdown button */
#chatbotPopup .cm-select-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    text-align: left !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
}
#chatbotPopup .cm-select-btn .placeholder {
    color: #94a3b8 !important;
    font-size: 13px !important;
}
#chatbotPopup .cm-select-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 4px !important;
    border-radius: 12px !important;
}
#chatbotPopup .cm-select-list li {
    list-style: none !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    border-radius: 8px !important;
}

/* phone row: country select + number input side by side */
#chatbotPopup .cm-phone-row { display: flex !important; gap: 8px !important; margin-bottom: 12px !important; }
#chatbotPopup .cm-phone-row .country-code-select { width: auto !important; flex-shrink: 0 !important; margin: 0 !important; padding: 9px 10px !important; }
#chatbotPopup .cm-phone-row .cm-input { margin: 0 !important; }

/* error text */
#chatbotPopup .cm-error {
    color: #ef4444 !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    margin: -8px 0 10px !important;
    padding: 0 !important;
    float: none !important;
    min-height: 0 !important;
    font-weight: 400 !important;
}

/* ---- main chat message box (bottom) ---- */
#chatbotPopup .chatbot-input-field {
    flex: 1 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    border-radius: 25px !important;
    -webkit-border-radius: 25px !important;
}

/* ---- buttons: keep radius / size from being changed by theme button rules ---- */
#chatbotPopup .cm-submit {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 11px 16px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    border-radius: 12px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
#chatbotPopup .human-handoff-btn {
    padding: 8px 14px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    border-radius: 10px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
#chatbotPopup .chatbot-send-btn {
    width: 42px !important;
    height: 42px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    font-size: 18px !important;
}
#chatbotPopup .chatbot-close,
#chatbotPopup .chatbot-reset {
    width: 32px !important;
    height: 32px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
}
#chatbotPopup .quote-form-close,
#chatbotPopup .calendly-card-close {
    width: 26px !important;
    height: 26px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

/* ---- NO SCROLLBARS anywhere in the widget (scrolling still works) ---- */
#chatbotPopup,
#chatbotPopup * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
#chatbotPopup *::-webkit-scrollbar,
#chatbotPopup::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}