/* ============================================================
   ApexCore AI Assistant — Chatbot Stylesheet
   Self-contained. Scoped under .chatbot-wrapper where needed
   so it can be dropped into any existing site safely.
   ============================================================ */

.chatbot-wrapper {
    /* Local design tokens — do NOT rely on host page :root */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-strong: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-border-subtle: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    --glass-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
    --glass-blur: blur(20px);
    --glass-blur-strong: blur(28px);

    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

.chatbot-wrapper * {
    box-sizing: border-box;
}

/* Message avatars that use <img> */
.chatbot-wrapper .message-avatar img {
    width: 50%;
    height: 100%;
    object-fit: contain;
}

/* -------------------- Floating Action Button -------------------- */
.chatbot-fab {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(160deg, #524d7f 0%, #441a92 45%, #526dbb 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    transition: var(--transition);
    position: relative;
    z-index: 10001;
}

.chatbot-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.45), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.chatbot-fab .notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* -------------------- Popup panel -------------------- */
.chatbot-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 30px);
    height: 520px;
    max-height: calc(100vh - 100px);
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-radius: 22px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.98);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f3f1ff;
}

.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,
            #e6e0ff 0%, #d6e6ff 25%, #efe2ff 50%, #d2f3fb 75%, #e6e0ff 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) 0px,
            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); }
}

/* Content sits above the animated background */
.chatbot-header,
.chatbot-messages,
.chatbot-quick-actions,
.chatbot-input {
    position: relative;
    z-index: 1;
}

/* -------------------- Header -------------------- */
.chatbot-header {
    background: linear-gradient(160deg, #524d7f 0%, #1b0545 45%, #2d417a 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chatbot-header strong {
    display: block;
    font-size: 15px;
}

.chatbot-header span {
    font-size: 11px;
    opacity: 0.85;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    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, 0.32);
    transform: rotate(90deg);
}

/* Inline header label block (from your <style> inside the header) */
.ai-assistant-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-assistant-header strong {
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    color: white;
    line-height: 1.3;
}

.ai-assistant-header span {
    font-size: 11px;
    font-weight: 500;
    color: rgba(2, 33, 153, 0.85);
}

/* -------------------- Messages area -------------------- */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.18) 0%, transparent 40%),
        rgba(248, 250, 252, 0.45);
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.35) transparent;
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 10px;
}

.message {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    animation: messageIn 0.35s cubic-bezier(0.4, 0, 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: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(158, 155, 236, 0.7) 0%, rgba(124, 58, 237, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.message.user .message-avatar {
    background: rgba(100, 116, 139, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.message-content {
	max-width: 75%;
	padding: 11px 15px;
	border-radius: 16px;
	font-family: "Satoshi", sans-serif;
	font-size: 14.7px;
	font-weight: 450;
	line-height: 1.55;
	word-break: break-word;
	margin-top: 9px;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: var(--transition);
}

.message.user .message-content {
    background: linear-gradient(160deg, #524d7f 0%, #4512a6 45%, #2d417a 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom-right-radius: 5px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.message.bot .message-content {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-bottom-left-radius: 5px;
    color: var(--dark);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

/* Frosted glass override for bot bubbles (from second <style>) */
.message.bot .message-content {
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .80);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    backdrop-filter: blur(14px) saturate(1.6);
    box-shadow: 0 8px 24px rgba(69, 18, 166, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.message.bot .message-content ul {
    margin: 4px 0 4px 18px;
    padding: 0;
}

.message.bot .message-content li {
    margin-bottom: 2px;
}

/* -------------------- Quick action buttons under bot messages -------------------- */
.message-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    max-width: 90%;
}

.message-buttons.user-side {
    flex-direction: row-reverse;
    margin-left: auto;
}

.quick-btn {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(37, 99, 235, 0.45);
    color: #1e035b;
    font-size: 12.0px;
    font-weight: 600;
    padding: 7px 7px;
    border-radius: 22px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.quick-btn:hover {
    background: linear-gradient(160deg, #524d7f 0%, #4512a6 45%, #2d417a 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.quick-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.quick-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Frosted override */
.quick-btn,
.static-quick-btn {
    background: rgba(255, 255, 255, .55);
    border-color: rgba(255, 255, 255, .85);
    box-shadow: 0 4px 14px rgba(69, 18, 166, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
}

/* -------------------- Inline field widgets (phone / email) -------------------- */
.field-widget {
    margin-top: 10px;
    max-width: 92%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.field-widget-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.field-widget-row.stacked {
    flex-direction: column;
}

.field-widget label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.field-widget-col {
    display: flex;
    flex-direction: column;
}

.field-widget-col.grow {
    flex: 1;
    min-width: 0;
}

.chatbot-wrapper .country-code-select {
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 9px 10px;
    font-size: 13px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--dark);
    outline: none;
    transition: var(--transition);
    cursor: pointer;
}

.chatbot-wrapper .country-code-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field-input {
    width: 100%;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    color: var(--dark);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.field-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: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(124, 58, 237, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    align-self: flex-end;
    margin-bottom: 1px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.field-widget-submit:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.field-widget-submit:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

.field-widget.disabled .field-input,
.chatbot-wrapper .field-widget.disabled .country-code-select,
.field-widget.disabled .field-widget-submit {
    opacity: 0.55;
    pointer-events: none;
}

/* -------------------- Calendly-style date/time picker -------------------- */
.calendly-widget-wrap {
    margin-top: 10px;
    width: 100%;
    max-width: 340px;
}

.cal-picker {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.97);
}

.cal-picker-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.cal-picker-body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cal-calendar {
    flex: 1;
    min-width: 0;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.cal-nav {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    cursor: pointer;
    font-size: 16px;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.cal-nav:hover {
    background: rgba(37, 99, 235, 0.15);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
    text-align: center;
}

.cal-weekdays span {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray);
    padding: 4px 0;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--dark);
    transition: var(--transition);
    font-family: inherit;
    padding: 0;
}

.cal-day:hover:not(.disabled):not(.selected) {
    background: rgba(37, 99, 235, 0.12);
}

.cal-day.other-month {
    color: #cbd5e1;
}

.cal-day.disabled {
    color: #cbd5e1;
    cursor: default;
}

.cal-day.selected {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.cal-day.today:not(.selected) {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.cal-times {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 104px;
    width: 104px;
    height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 2px 4px 2px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.45) transparent;
}

.cal-times::-webkit-scrollbar {
    width: 5px;
}

.cal-times::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
    border-radius: 10px;
}

.cal-time-btn {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    color: var(--dark);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: center;
    white-space: nowrap;
}

.cal-time-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.cal-time-btn.selected {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.cal-time-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.cal-powered {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    font-size: 11px;
    color: var(--gray);
}

.cal-powered svg {
    width: 14px;
    height: 14px;
}

/* -------------------- Confirm meeting details card -------------------- */
.confirm-meeting-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 16px;
    padding: 16px;
    margin-top: 8px;
    max-width: 300px;
    width: 100%;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.confirm-meeting-card textarea.cm-input {
    display: block;
    resize: vertical;
    min-height: 90px;
    max-height: 220px;
    line-height: 1.45;
    font-family: inherit;
}

.confirm-meeting-card .cm-selected {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(240, 249, 255, 0.85);
    border: 1px solid rgba(186, 230, 253, 0.8);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.confirm-meeting-card .cm-selected-icon {
    font-size: 16px;
    line-height: 1.2;
    flex-shrink: 0;
}

.confirm-meeting-card .cm-selected-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.35;
}

.confirm-meeting-card .cm-selected-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray);
    margin-top: 2px;
}

.confirm-meeting-card .cm-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.confirm-meeting-card .cm-input {
    width: 100%;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    color: var(--dark);
    margin-bottom: 12px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.confirm-meeting-card .cm-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.confirm-meeting-card .cm-input.invalid {
    border-color: #ef4444;
}

.confirm-meeting-card .cm-error {
    color: #ef4444;
    font-size: 11.5px;
    margin: -8px 0 10px;
    display: none;
}

.confirm-meeting-card .cm-error.visible {
    display: block;
}

.confirm-meeting-card .cm-submit {
    width: 100%;
    background: linear-gradient(160deg, #524d7f 0%, #4512a6 45%, #2d417a 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.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(37, 99, 235, 0.25);
}

.confirm-meeting-card .cm-phone-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.confirm-meeting-card .cm-phone-row .country-code-select {
    flex-shrink: 0;
}

.confirm-meeting-card .cm-phone-row .cm-input {
    margin-bottom: 0;
}

.confirm-meeting-card .cm-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.confirm-meeting-card .cm-submit:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none;
}

/* -------------------- Meeting booked success card -------------------- */
.meeting-booked-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 16px;
    padding: 16px;
    margin-top: 8px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.1);
}

.meeting-booked-card .mb-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.meeting-booked-card .mb-check {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.meeting-booked-card .mb-title {
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
}

.meeting-booked-card .mb-body {
    font-size: 12.5px;
    color: var(--dark-light);
    line-height: 1.55;
}

.meeting-booked-card .mb-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
    font-size: 12.5px;
}

.meeting-booked-card .mb-footer {
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--gray);
}

/* -------------------- Static quick actions above input -------------------- */
.chatbot-quick-actions {
    display: flex;
    gap: 8px;
    padding: 10px 12px 5px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.static-quick-btn {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(37, 99, 235, 0.45);
    color: #1e035b;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex: 1;
    text-align: center;
    min-width: 0;
}
 @media (max-width: 424px) {
            .static-quick-btn {
                background: rgba(255, 255, 255, 0.7);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                border: 1.5px solid rgba(37, 99, 235, 0.45);
                color: #1e035b;
                font-size: 10px;
                font-weight: 600;
                padding: 5px 5px;
                border-radius: 20px;
                cursor: pointer;
                transition: var(--transition);
                white-space: nowrap;
                flex: 1;
                text-align: center;
                min-width: 0;
            }
        }


.static-quick-btn:hover {
    background: linear-gradient(160deg, #524d7f 0%, #4512a6 45%, #2d417a 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

.static-quick-btn:active {
    transform: translateY(0);
}

/* Frosted footer / header bars */
.chatbot-quick-actions,
.chatbot-input {
    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);
}

/* -------------------- Chat input bar -------------------- */
.chatbot-input {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.chatbot-input-form {
    display: flex;
    gap: 10px;
}

.chatbot-input-field {
    flex: 1;
    border: 1.5px solid rgba(226, 232, 240, 0.75);
    border-radius: 25px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--dark);
}

.chatbot-input-field::placeholder {
    color: var(--gray-light);
}

.chatbot-input-field:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.chatbot-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(160deg, #524d7f 0%, #4512a6 45%, #2d417a 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    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(37, 99, 235, 0.3);
}

.chatbot-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.chatbot-send-btn:active {
    transform: scale(0.98);
}

/* -------------------- Pause animation while closed + a11y -------------------- */
.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;
    }
}

/* -------------------- 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: 75px;
        border-radius: 20px;
    }

    .chatbot-fab {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
}

@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%;
    }

    .calendly-inline-embed {
        height: 420px;
    }
}