/* ============================================
   CSS VARIABLES - Design System
   ============================================ */
:root {
    --primary-cyan: #00C6FF;
    --primary-blue: #0072FF;
    --primary-cyan-light: #00E0FF;
    --text-dark: #1f2937;
    --text-medium: #64748b;
    --bg-white: #ffffff;
    --bg-off-white: #f8fafc;
    --bg-light-grey: #f1f5f9;
    --border-light: #f1f5f9;
    --border-blue: #00C6FF;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* AI Agent message box styling */
.bg-dark-900 {
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.2);
    transition: box-shadow 0.3s ease;
}

.bg-dark-900:hover {
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.3);
}

.text-primary-400 {
    color: #00E0FF; /* Electric Cyan */
}

/* ============================================
   BADGE VARIANTS
   ============================================ */

/* Variant 1: Announcement Pill - Glassmorphism */
.announcement-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 114, 255, 0.06);
    border: 1px solid rgba(0, 114, 255, 0.12);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0072FF;
    transition: all 0.3s ease;
}

.announcement-pill:hover {
    background: rgba(0, 114, 255, 0.1);
    border-color: rgba(0, 114, 255, 0.2);
}

.announcement-pill-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Variant 2: Live Status - Clean with Pulsing Dot */
.live-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1f2937;
    transition: all 0.3s ease;
}

.live-status-badge:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Pulsing Green Dot Animation */
.pulse-dot-container {
    position: relative;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.pulse-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border: 2px solid #10b981;
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}


@keyframes float {
0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(99, 102, 241, 0);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 114, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 114, 255, 0.3);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body padding for fixed navbar */
body {
    padding-top: 80px;
}

/* Navbar scroll states */
/* Gradient text */
.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Hover animations for cards */
.bg-dark-900:hover {
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.2);
    transform: translateY(-5px);
}

/* Gradient underline animation */
.gradient-underline {
    position: relative;
    display: inline-block;
}

.gradient-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(to right, #6366f1, #0ea5e9);
    transition: width 0.3s ease;
}

.gradient-underline:hover::after {
    width: 100%;
}
/* Custom transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Premium Futuristic AI Chat Container Styles */
.ai-chat-container {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-chat-container:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4), 0 0 80px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* Slow pulse animation for background */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Energy flow animation */
@keyframes energy-flow {
    0% {
        opacity: 0;
        transform: translateX(-100%) rotate(0deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100%) rotate(360deg);
    }
}

.animate-energy-flow {
    animation: energy-flow 4s ease-in-out infinite;
}

/* Smooth scan line animation */
@keyframes scan-smooth {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(800%);
        opacity: 0;
    }
}

.animate-scan-smooth {
    animation: scan-smooth 3s linear infinite;
}

/* Twinkle animation for particles */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.animate-twinkle {
    animation: twinkle 2s ease-in-out infinite;
}

.animate-twinkle-delay {
    animation: twinkle 2s ease-in-out infinite 0.7s;
}

.animate-twinkle-delay-2 {
    animation: twinkle 2s ease-in-out infinite 1.4s;
}

/* Premium AI Message Bubble Effects */
.ai-message-bubble {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-message-bubble::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #6E45E2, #88D3CE, #6E45E2, #7D5BDE);
    background-size: 200% 200%;
    border-radius: 1.5rem;
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.4s ease;
    animation: gradient-shift 3s ease infinite;
}

.ai-message-bubble:hover::before {
    opacity: 0.4;
}

.ai-message-bubble:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2), inset 0 0 40px rgba(99, 102, 241, 0.05);
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Premium typing dots animation */
.typing-dots {
    display: inline-block;
    color: #818cf8; /* Indigo-400 */
    opacity: 0;
    animation: dots-pulse-premium 1.2s infinite;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

@keyframes dots-pulse-premium {
    0%, 100% { 
        opacity: 0;
        transform: scale(0.8) translateY(0);
    }
    50% { 
        opacity: 1;
        transform: scale(1.3) translateY(-2px);
    }
}

/* Premium typing text container */
.typing-text-container {
    position: relative;
    padding: 0.5rem 0;
}

.typing-text {
    position: relative;
    text-shadow: 0 0 12px rgba(99, 102, 241, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.01em;
}

/* Subtle pulse effect for AI status */
@keyframes status-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Grid pattern animation */
@keyframes grid-shift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}

/* Chat messages styling */
.chat-messages-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.chat-messages-container::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

.chat-message {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat input focus styles */
#chatInput:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Format markdown-like text in messages */
.chat-message p {
    white-space: pre-line;
}

/* Chat toggle button styling */
.chat-toggle-btn {
    position: relative;
    z-index: 50 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.2), rgba(14, 165, 233, 0.2)) !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    color: #818cf8 !important; /* Indigo-400 */
}

.chat-toggle-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.3), rgba(14, 165, 233, 0.3)) !important;
    border-color: rgba(99, 102, 241, 0.6) !important;
}

.chat-toggle-btn:active {
    transform: scale(0.98) !important;
}

.chat-toggle-btn:focus {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}

/* Staggered Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-up.delay-100 {
    animation-delay: 0.1s;
}

.animate-fade-in-up.delay-200 {
    animation-delay: 0.2s;
}

.animate-fade-in-up.delay-300 {
    animation-delay: 0.3s;
}

.animate-fade-in-up.delay-400 {
    animation-delay: 0.4s;
}

.animate-fade-in-up.delay-500 {
    animation-delay: 0.5s;
}

.animate-fade-in-up.delay-600 {
    animation-delay: 0.6s;
}

/* ============================================
   SCROLL REVEAL - Cards fade in on scroll
   ============================================ */
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-card.revealed,
.reveal-card.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger reveal for grid children */
.reveal-card:nth-child(2) { transition-delay: 0.1s; }
.reveal-card:nth-child(3) { transition-delay: 0.2s; }
.reveal-card:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   HERO ENTRANCE ANIMATIONS
   ============================================ */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-fade-in-delay-1 {
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    opacity: 0;
}

/* ============================================
   NAVBAR SCROLL EFFECT
   ============================================ */
#mainNav {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mainNav.nav-transparent,
#mainNav {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

#mainNav.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04) !important;
}

/* ============================================
   AGENT TEASER CARD ANIMATIONS
   ============================================ */

/* Slow pulse for glow effect */
@keyframes pulse-slow-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

.animate-pulse-slow {
    animation: pulse-slow-glow 4s ease-in-out infinite;
}

/* Breathing animation for agent card */
@keyframes agent-breathe {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
    50% {
        transform: translateY(-4px);
        box-shadow: 0 30px 60px -12px rgba(99, 102, 241, 0.15);
    }
}

.agent-card {
    animation: agent-breathe 4s ease-in-out infinite;
    cursor: default; /* Default cursor for the card */
}

.agent-card:hover {
    animation-play-state: paused;
    transform: translateY(-4px) !important;
}

/* Only the button should be clickable */
#startChatBtn {
    cursor: pointer !important;
}

/* Chat expand animation */
@keyframes chat-expand {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#agentChatFull:not(.hidden) {
    animation: chat-expand 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Chat collapse animation */
@keyframes chat-collapse {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

.chat-collapsing {
    animation: chat-collapse 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Teaser card appear animation */
@keyframes teaser-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#agentTeaser:not(.hidden) {
    animation: teaser-appear 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Hero section - remove body padding for full-screen hero */
body {
    padding-top: 0 !important;
}

/* Account for promo banner when visible */
body.has-promo-banner {
    padding-top: 2.75rem !important;
}

/* ============================================
   GEMINI-STYLE CHAT MODAL
   ============================================ */

/* Modal Overlay - Hidden by default */
.chat-modal-overlay {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Modal Overlay - Visible when active */
.chat-modal-overlay.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Modal Content - Scale Up + Fade In */
.chat-modal-content {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-modal-overlay.active .chat-modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Suggestion Cards hover effects */
.suggestion-card {
    transform: translateY(0);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.suggestion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 114, 255, 0.15);
}

/* Chat messages animation */
.chat-message-animate {
    animation: messageSlideIn 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing indicator animation */
.typing-dot {
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-7px);
    }
}

/* Custom scrollbar for modal chat */
#modalChatMessages::-webkit-scrollbar {
    width: 4px;
}

#modalChatMessages::-webkit-scrollbar-track {
    background: transparent;
}

#modalChatMessages::-webkit-scrollbar-thumb {
    background: rgba(0, 114, 255, 0.18);
    border-radius: 2px;
}

#modalChatMessages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 114, 255, 0.35);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ============================================
   HERO COMMAND BAR - Premium Glowing Design
   ============================================ */

.hero-command-bar {
    position: relative;
}

/* Glow effect behind the bar */
.hero-command-bar::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(14, 165, 233, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(12px);
}

.hero-command-bar:hover::before {
    opacity: 1;
}

/* Additional inner glow on hover */
.hero-command-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

.hero-command-bar:hover::after {
    opacity: 1;
}

.typewriter-cursor {
    display: inline-block;
    margin-left: 4px;
    color: #00C6FF !important; /* Electric Cyan/Blue */
    font-weight: 600;
    font-size: 1.125rem; /* text-lg */
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* ============================================
   LOGO CAROUSEL - LEFT TO RIGHT ANIMATION
   ============================================ */

.logo-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    height: 80px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(249,250,251,0.3) 50%, rgba(255,255,255,0) 100%);
    border-radius: 16px;
    padding: 20px 0;
    backdrop-filter: blur(10px);
}

.logo-carousel-wrapper::before,
.logo-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 2;
    pointer-events: none;
}

.logo-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

.logo-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

.logo-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5rem;
    width: max-content;
    animation: scrollLogosLeftToRight 30s linear infinite;
    will-change: transform;
}

.logo-carousel-item {
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1;
    filter: none;
    transform: translateY(0) scale(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter;
    backface-visibility: hidden;
    height: 100%;
}

.logo-carousel-item:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.logo-carousel-item svg {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    filter: none;
}

.logo-carousel-item:hover svg {
    filter: none;
}

@keyframes scrollLogosLeftToRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

/* Animation continues on hover - no pause for smoother visual effect */

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-carousel-track {
        gap: 3rem;
        animation-duration: 25s;
    }
    
    .logo-carousel-wrapper {
        height: 70px;
        padding: 15px 0;
    }
    
    .logo-carousel-wrapper::before,
    .logo-carousel-wrapper::after {
        width: 20%;
    }
}

/* ============================================
   CUSTOM QUOTE BUILDER
   ============================================ */
.quote-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    padding: 2.5rem;
    border: 1px solid #f1f5f9;
}

.quote-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.quote-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.quote-activity-toggle {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.quote-activity-pill {
    border-radius: 9999px;
    border: 1px solid var(--border-light);
    background: #fff;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.quote-activity-pill.active {
    border-color: var(--primary-blue);
    background: linear-gradient(180deg, rgba(0,198,255,0.06), rgba(0,114,255,0.03));
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.quote-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.quote-service-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    cursor: pointer;
    user-select: none;
}

.quote-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: #f1f5f9;
}

.quote-service-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.quote-service-card.active {
    border-color: var(--primary-blue);
    border-width: 2px;
    box-shadow: 0 12px 24px rgba(0,114,255,0.2), 0 0 0 4px rgba(0,114,255,0.1);
    background: linear-gradient(180deg, rgba(0,198,255,0.12), rgba(0,114,255,0.08));
    transform: translateY(-2px);
    position: relative;
}

/* Financial Impact Card - Clean Typographic Design */
.quote-output {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    position: sticky;
    top: 6rem;
    align-self: flex-start;
    max-height: calc(100vh - 8rem);
    overflow: hidden;
}

.financial-impact-section {
    text-align: center;
    flex-shrink: 0;
    margin-bottom: 0;
    padding-bottom: 0.25rem;
}

.financial-impact-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    margin: 0.25rem 0;
}

.financial-impact-divider {
    position: relative;
    margin: 0.75rem 0;
    flex-shrink: 0;
}

.financial-impact-hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0;
}

.financial-impact-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 0 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.financial-impact-list {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-height: 60px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    max-height: 200px;
}

.financial-impact-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.financial-impact-items-scroll {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
    max-height: 180px;
}

/* Chat Message Formatting Styles */
.chat-widget-message.bot ul,
.chat-widget-message.bot ol,
#modalChatMessages ul,
#modalChatMessages ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.chat-widget-message.bot li,
#modalChatMessages li {
    margin: 0.5rem 0;
    padding-left: 0.5rem;
    line-height: 1.6;
}

.chat-widget-message.bot strong,
#modalChatMessages strong {
    font-weight: 600;
    color: #111827;
}

.chat-widget-message.bot a,
#modalChatMessages a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s;
}

.chat-widget-message.bot a:hover,
#modalChatMessages a:hover {
    color: #1d4ed8;
}

.chat-widget-message.bot p,
#modalChatMessages p {
    margin: 0.5rem 0;
}

.chat-widget-message.bot p:first-child,
#modalChatMessages p:first-child {
    margin-top: 0;
}

.chat-widget-message.bot p:last-child,
#modalChatMessages p:last-child {
    margin-bottom: 0;
}

/* Custom scrollbar for financial list */
.financial-impact-items-scroll::-webkit-scrollbar {
    width: 4px;
}

.financial-impact-items-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.financial-impact-items-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.financial-impact-items-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.financial-impact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.financial-impact-item:last-of-type {
    border-bottom: none;
}

.financial-impact-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.financial-impact-item-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.financial-impact-item-text {
    font-size: 0.8125rem;
    color: #111827;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.financial-impact-item-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.financial-impact-item-price-old {
    font-size: 0.8125rem !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-decoration: line-through !important;
    text-decoration-color: #6b7280 !important;
    text-decoration-thickness: 1.5px !important;
    line-height: 1.2;
    opacity: 0.7;
}

.financial-impact-item-price-new {
    display: flex !important;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.financial-impact-item-price-label {
    font-size: 0.6875rem !important;
    color: #f59e0b !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1;
    display: inline-block !important;
    -webkit-text-fill-color: #f59e0b !important;
}

.financial-impact-item-price-amount {
    font-size: 0.8125rem !important;
    color: #f59e0b !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    display: inline-block !important;
    -webkit-text-fill-color: #f59e0b !important;
}

.financial-impact-summary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.financial-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.financial-savings-tabs {
    display: flex !important;
    gap: 0.5rem;
    margin: 0.375rem 0;
    padding: 0.25rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
}

.financial-savings-tab {
    flex: 1;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
}

.financial-savings-tab:hover {
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
}

.financial-savings-tab.active {
    color: #111827;
    background: #ffffff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.financial-savings-row {
    margin-top: 0.375rem;
    padding-top: 0.5rem;
    padding-bottom: 0.375rem;
    border-top: 2px solid #e5e7eb;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(16, 185, 129, 0.05));
    border-radius: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.financial-savings-row span:last-child {
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #059669 !important;
}

#savingsAmount {
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #059669 !important;
    -webkit-text-fill-color: #059669 !important;
}

.quote-output-row {
    padding: 0.75rem 0.5rem;
    border-top: 1px dashed var(--border-light);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.quote-output-row:first-of-type {
    border-top: none;
}

.quote-badge {
    white-space: nowrap;
}

/* Stacked Savings Visualization Styles */
.savings-bar-container {
    position: relative;
    width: 100%;
    height: 24px;
    background-color: #f3f4f6;
    border-radius: 9999px;
    overflow: visible; /* Allow badge to overflow */
    margin-bottom: 32px; /* Space for badge */
}

.savings-bar-stacked {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 9999px;
    overflow: hidden; /* Hide bar overflow */
}

.savings-segment {
    height: 100%;
    transition: width 0.5s ease;
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
}

.savings-segment-investment {
    background: linear-gradient(to right, #2563eb, #60a5fa); /* from-blue-600 to-blue-400 */
    min-width: 5%;
    width: 0%;
    border-radius: 9999px 0 0 9999px;
    box-shadow: inset 0 1px 2px rgba(37, 99, 235, 0.2);
}

.savings-segment-savings {
    background-color: #d1fae5; /* bg-emerald-100 */
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(16, 185, 129, 0.15) 10px,
        rgba(16, 185, 129, 0.15) 20px
    );
    background-size: 28.28px 28.28px; /* sqrt(2) * 20px for smooth animation */
    border-radius: 0 9999px 9999px 0;
    animation: stripeSlide 4s linear infinite;
    width: 100%;
    flex-grow: 1;
}

@keyframes stripeSlide {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 28.28px 28.28px;
    }
}

/* Labels Row */
.savings-labels-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Typography: Tabular Numbers for Price Text */
#investmentLabel,
#savingsLabel,
#quoteSavings,
#quoteMonthly,
#quoteSetup {
    font-variant-numeric: tabular-nums;
}

.savings-label-left {
    flex: 1;
    text-align: left;
}

.savings-label-right {
    flex: 1;
    text-align: right;
}

/* Zero State Placeholder */
.savings-zero-state {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.savings-zero-state.hidden {
    opacity: 0;
    display: none;
}

.savings-bar-placeholder {
    width: 100%;
    height: 16px;
    background-color: #e5e7eb; /* bg-gray-200 */
    border-radius: 9999px;
}

/* Efficiency Badge - Pivot Badge on Dividing Line */
.efficiency-badge-pivot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(255, 255, 255, 0.8);
    animation: fadeInScale 0.5s ease-out;
    z-index: 10;
    white-space: nowrap;
    transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.efficiency-badge-text {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hide comparison section in zero state */
#costComparisonSection.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .quote-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-badge {
        white-space: normal;
        text-align: left;
    }
}

/* ============================================
   FLOATING CHAT WIDGET — Premium
   ============================================ */

/* Mako shark icon — mount animation + hover */
@keyframes makoScaleIn {
    0%   { transform: scale(0.65) rotate(-8deg); opacity: 0; }
    70%  { transform: scale(1.06) rotate(1deg);  opacity: 1; }
    100% { transform: scale(1)    rotate(0deg);  opacity: 1; }
}

.mako-icon {
    animation: makoScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: transform 0.2s ease;
}

.mako-icon:hover {
    transform: scale(1.08);
}

/* Floating button mount — pops up from bottom */
@keyframes floatBtnIn {
    from { transform: translateY(20px) scale(0.9); opacity: 0; }
    to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

#floatingChatButton {
    animation: floatBtnIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.chat-widget-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 390px;
    max-width: calc(100vw - 2rem);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.7);
    border-radius: 28px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 114, 255, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.chat-widget-container:not(.hidden) {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(229, 231, 235, 0.55);
    flex-shrink: 0;
}

.chat-widget-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.375rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

.chat-widget-messages::-webkit-scrollbar {
    width: 3px;
}

.chat-widget-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-widget-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 114, 255, 0.12);
    border-radius: 2px;
}

.chat-widget-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 114, 255, 0.25);
}

.chat-widget-welcome {
    padding: 0.25rem 0;
}

.chat-widget-suggestion {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5625rem 1.125rem;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #374151;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.chat-widget-suggestion:hover {
    background: rgba(0, 114, 255, 0.04);
    border-color: rgba(0, 114, 255, 0.35);
    color: #0072FF;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 114, 255, 0.08);
}

.chat-widget-input-area {
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid rgba(229, 231, 235, 0.55);
    flex-shrink: 0;
}

.chat-widget-input {
    flex: 1;
    width: 100%;
    padding: 0.6875rem 3rem 0.6875rem 1.25rem;
    background: #f8fafc;
    border: 1.5px solid rgba(229, 231, 235, 0.85);
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    resize: none;
    overflow-y: auto;
    min-height: 2.75rem;
    max-height: 8rem;
    line-height: 1.5;
    font-family: inherit;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.chat-widget-input:focus {
    border-color: #0072FF;
    box-shadow: 0 0 0 3px rgba(0, 114, 255, 0.08);
    background: #ffffff;
}

.chat-widget-input-area .relative {
    align-items: center;
}

.chat-widget-input::placeholder {
    color: #9ca3af;
}

.chat-widget-send-btn {
    position: absolute;
    right: 0.3125rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.125rem;
    height: 2.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    border: none;
    border-radius: 9999px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 114, 255, 0.22);
}

.chat-widget-send-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 114, 255, 0.38);
}

.chat-widget-send-btn:active {
    transform: translateY(-50%) scale(0.93);
}

/* Modal chat input textarea styling */
#modalChatInput {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    min-height: 3rem;
    max-height: 10rem;
    line-height: 1.5;
    padding-right: 4rem !important;
}

.chat-widget-message {
    padding: 0.75rem 1.125rem;
    border-radius: 1.375rem;
    font-size: 0.8125rem;
    line-height: 1.65;
    max-width: 80%;
    animation: widgetFadeIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes widgetFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-widget-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 114, 255, 0.22);
}

.chat-widget-message.bot {
    align-self: flex-start;
    background: #f8fafc;
    color: #111827;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.chat-widget-typing {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.125rem;
    background: #f8fafc;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 1.375rem;
    border-bottom-left-radius: 4px;
    width: fit-content;
    align-self: flex-start;
    animation: widgetFadeIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.chat-widget-typing-dot {
    width: 0.375rem;
    height: 0.375rem;
    background: rgba(0, 114, 255, 0.55);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

.chat-widget-typing-dot:nth-child(1) { animation-delay: 0s; }
.chat-widget-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-widget-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@media (max-width: 480px) {
    .chat-widget-container {
        width: calc(100vw - 1rem);
        right: -0.5rem;
        bottom: 70px;
    }
}

/* ============================================
   SCROLL REVEAL ON SCROLL - IntersectionObserver
   ============================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.32s; }

/* ============================================
   HIDE NATIVE SCROLLBARS - Premium Thin Style
   ============================================ */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Global thin scrollbar override */
html::-webkit-scrollbar {
    width: 5px;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
}
html::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.22);
}
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.12) transparent;
}

/* ============================================
   POLYGLASSISM - Shared Glass Card Styles
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border-radius: 28px;
    transition: all 0.3s ease-out;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 198, 255, 0.2);
}

/* ============================================
   TYPOGRAPHY POLISH - Apple-style
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

p {
    text-wrap: balance;
}

/* ============================================
   PREMIUM DAY/TIME PILLS - Book Demo
   ============================================ */
.day-pill {
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, 0.6);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.3s ease-out;
    text-align: center;
    min-width: 80px;
    user-select: none;
}

.day-pill:hover {
    border-color: rgba(0, 198, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 198, 255, 0.1);
}

.day-pill.selected {
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 114, 255, 0.3);
    transform: translateY(-2px);
}

.day-pill.selected .day-pill-day,
.day-pill.selected .day-pill-date {
    color: white;
}

.day-pill-day {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    transition: color 0.3s;
}

.day-pill-date {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2px;
    transition: color 0.3s;
}

.time-pill {
    padding: 0.875rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(229, 231, 235, 0.6);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.3s ease-out;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    user-select: none;
}

.time-pill:hover {
    border-color: rgba(0, 198, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 198, 255, 0.1);
}

.time-pill.selected {
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 114, 255, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   PREMIUM FORM INPUTS - Floating Label Style
   ============================================ */
.premium-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(249, 250, 251, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 16px;
    font-size: 1rem;
    color: #1f2937;
    outline: none;
    transition: all 0.3s ease-out;
}

.premium-input::placeholder {
    color: #9ca3af;
}

.premium-input:focus {
    border-color: rgba(0, 198, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.12);
    background: rgba(255, 255, 255, 0.8);
}

.premium-input:hover:not(:focus) {
    border-color: rgba(0, 198, 255, 0.25);
}

/* ============================================
   LOADING BUTTON STATE
   ============================================ */
.btn-loading {
    opacity: 0.7;
    cursor: wait !important;
    pointer-events: none;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading .btn-spinner {
    display: flex !important;
}

.btn-spinner {
    display: none !important;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
}

/* ============================================
   PRICING TOGGLE - Pre-made vs Custom
   ============================================ */
.pricing-toggle-container {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.pricing-toggle-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-out;
    position: relative;
    z-index: 1;
}

.pricing-toggle-btn.active {
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 114, 255, 0.3);
}

.pricing-toggle-btn:not(.active):hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.03);
}

/* Pricing tier card */
.pricing-tier-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border-radius: 28px;
    padding: 2.5rem;
    transition: all 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.pricing-tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 198, 255, 0.25);
}

.pricing-tier-card.featured {
    border-color: rgba(0, 198, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 114, 255, 0.08);
    position: relative;
}

.pricing-tier-card.featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}}

/* ============================================
   PRICING — Mobile Improvements
   ============================================ */
@media (max-width: 768px) {
    .pricing-tier-card {
        padding: 2rem 1.75rem;
        border-radius: 24px;
        margin-bottom: 0;
    }

    .pricing-tier-card .text-5xl {
        font-size: 3.25rem;
    }

    #premadePlansView .grid {
        gap: 1.25rem;
    }

    .pricing-tier-card.featured {
        order: -1;
    }

    /* Activity pills — taller on mobile */
    .quote-activity-pill {
        padding: 0.75rem 1rem;
        border-radius: 16px;
        min-height: 60px;
    }

    /* Pricing toggle */
    .pricing-toggle-container {
        padding: 4px;
    }

    .pricing-toggle-btn {
        padding: 0.5rem 1.125rem;
        font-size: 0.8125rem;
    }

    /* Custom builder card spacing */
    #customBuilderView .rounded-\[28px\] {
        padding: 1.5rem;
    }

    #customServices {
        gap: 0.625rem;
    }

    .custom-service-toggle {
        padding: 0.875rem;
    }
}

/* ============================================
   BOOKING FLOW — Conversational UI Components
   ============================================ */

/* ---- Quick reply pill buttons ---- */
.booking-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 0 0.5rem;
}

.booking-quick-reply-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4375rem 1rem;
    background: #ffffff;
    border: 1.5px solid rgba(0, 114, 255, 0.25);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0072FF;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.booking-quick-reply-btn:hover {
    background: rgba(0, 114, 255, 0.06);
    border-color: #0072FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.12);
}

.booking-quick-reply-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Ghost variant (cancel/dismiss) */
.booking-quick-reply-btn--ghost {
    background: transparent;
    border-color: rgba(107, 114, 128, 0.25);
    color: #6b7280;
}

.booking-quick-reply-btn--ghost:hover {
    background: rgba(107, 114, 128, 0.06);
    border-color: rgba(107, 114, 128, 0.4);
    box-shadow: none;
}

/* ---- Booking confirmation card ---- */
.booking-confirm-card {
    background: #ffffff;
    border: 1.5px solid rgba(0, 114, 255, 0.18);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow:
        0 8px 24px rgba(0, 114, 255, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    max-width: 86%;
    align-self: flex-start;
    animation: widgetFadeIn 0.3s ease-out;
}

/* Slightly wider in the full modal */
.booking-confirm-card--modal {
    max-width: 100%;
}

.booking-confirm-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0072FF;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.booking-confirm-header svg {
    flex-shrink: 0;
    stroke: #0072FF;
}

.booking-confirm-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.booking-detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.3125rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    font-size: 0.75rem;
}

.booking-detail-row:last-child {
    border-bottom: none;
}

.booking-detail-label {
    color: #9ca3af;
    font-weight: 500;
    flex-shrink: 0;
}

.booking-detail-value {
    color: #111827;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

/* ---- Confirm CTA button ---- */
.booking-confirm-btn {
    display: block;
    width: 100%;
    padding: 0.6875rem 1.5rem;
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    border: none;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 114, 255, 0.3);
    margin-bottom: 0.625rem;
}

.booking-confirm-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.38);
}

.booking-confirm-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 114, 255, 0.2);
}

.booking-confirm-btn:disabled {
    opacity: 0.6;
    cursor: default;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: none;
}

/* ---- Cancel link ---- */
.booking-cancel-link {
    display: block;
    width: 100%;
    padding: 0.375rem;
    background: none;
    border: none;
    font-size: 0.6875rem;
    color: #9ca3af;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.booking-cancel-link:hover {
    color: #6b7280;
}

/* ---- Soft nudge message ---- */
.booking-nudge {
    padding: 0.875rem 1rem;
    background: rgba(0, 114, 255, 0.03);
    border: 1px dashed rgba(0, 114, 255, 0.2);
    border-radius: 1rem;
    font-size: 0.75rem;
    animation: widgetFadeIn 0.3s ease-out;
    max-width: 90%;
    align-self: flex-start;
}

.booking-nudge-text {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* ---- Chat message rich text (for booking flow bot messages) ---- */
.chat-widget-message.bot strong,
.chat-widget-message.bot b {
    font-weight: 600;
    color: #111827;
}

/* ============================================
   CHAT MULTI-SELECT PICKER (e.g. Services)
   ============================================ */
.chat-multiselect-widget {
    background: #ffffff;
    border: 1.5px solid rgba(0, 114, 255, 0.14);
    border-radius: 20px;
    padding: 1rem;
    box-shadow:
        0 8px 32px rgba(0, 114, 255, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    max-width: 88%;
    align-self: flex-start;
    animation: widgetFadeIn 0.3s ease-out;
    font-family: inherit;
}

.chat-multiselect-widget--modal {
    max-width: 100%;
}

.chat-multiselect-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.chat-multiselect-option {
    padding: 0.4375rem 0.875rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(0, 114, 255, 0.2);
    background: white;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    user-select: none;
}

.chat-multiselect-option:hover:not(.selected) {
    border-color: rgba(0, 114, 255, 0.4);
    color: #0072FF;
    background: rgba(0, 114, 255, 0.04);
}

.chat-multiselect-option.selected {
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    border-color: transparent;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 114, 255, 0.28);
}

.chat-multiselect-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-multiselect-skip {
    padding: 0.4375rem 0.875rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(107, 114, 128, 0.25);
    background: transparent;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.12s ease;
    font-family: inherit;
    white-space: nowrap;
}

.chat-multiselect-skip:hover {
    border-color: rgba(107, 114, 128, 0.4);
    color: #374151;
}

.chat-multiselect-done {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: none;
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 114, 255, 0.3);
    font-family: inherit;
}

.chat-multiselect-done:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.chat-multiselect-done:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.38);
}

/* ============================================
   CHAT INLINE CALENDAR WIDGET
   ============================================ */
.chat-calendar-widget {
    background: #ffffff;
    border: 1.5px solid rgba(0, 114, 255, 0.14);
    border-radius: 20px;
    padding: 1rem;
    box-shadow:
        0 8px 32px rgba(0, 114, 255, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    max-width: 88%;
    align-self: flex-start;
    animation: widgetFadeIn 0.3s ease-out;
    user-select: none;
    font-family: inherit;
}

.chat-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.chat-cal-month-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

.chat-cal-nav {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.15s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.chat-cal-nav:hover:not(:disabled) {
    border-color: rgba(0, 114, 255, 0.35);
    color: #0072FF;
    background: rgba(0, 114, 255, 0.04);
}

.chat-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.25rem;
}

.chat-cal-dayname {
    text-align: center;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    padding-bottom: 0.375rem;
}

.chat-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    line-height: 1;
}

.chat-cal-day:hover:not(.disabled):not(.empty):not(.selected) {
    background: rgba(0, 114, 255, 0.08);
    color: #0072FF;
}

.chat-cal-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    pointer-events: none;
}

.chat-cal-day.empty {
    cursor: default;
    pointer-events: none;
}

.chat-cal-day.today:not(.selected) {
    font-weight: 700;
    color: #0072FF;
    background: rgba(0, 114, 255, 0.06);
}

.chat-cal-day.selected {
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    color: white !important;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 114, 255, 0.35);
}

.chat-cal-divider {
    height: 1px;
    background: rgba(229, 231, 235, 0.6);
    margin: 0.625rem 0;
}

.chat-cal-section-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.chat-cal-times {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3125rem;
    margin-bottom: 0.75rem;
}

.chat-cal-time {
    padding: 0.4375rem 0.25rem;
    text-align: center;
    border-radius: 9999px;
    border: 1.5px solid rgba(229, 231, 235, 0.8);
    background: white;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.12s ease;
    white-space: nowrap;
    font-family: inherit;
}

.chat-cal-time:hover:not(.selected) {
    border-color: rgba(0, 114, 255, 0.35);
    color: #0072FF;
    background: rgba(0, 114, 255, 0.04);
}

.chat-cal-time.selected {
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    border-color: transparent;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 114, 255, 0.28);
}

.chat-cal-confirm-btn {
    display: block;
    width: 100%;
    padding: 0.5625rem 1rem;
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    border: none;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 114, 255, 0.3);
    font-family: inherit;
    letter-spacing: -0.01em;
}

.chat-cal-confirm-btn:disabled {
    opacity: 0.32;
    cursor: default;
    pointer-events: none;
}

.chat-cal-confirm-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.38);
}

/* Modal variant — slightly wider */
.chat-calendar-widget--modal {
    max-width: 100%;
}

/* ============================================
   GLOBAL UI POLISH
   ============================================ */

/* Pill button hover refinement */
a[class*="rounded-full"]:hover,
button[class*="rounded-full"]:hover {
    outline: none;
}

/* Reveal card animation is handled by .revealed and .reveal-active classes */

/* Section spacing consistency on mobile */
@media (max-width: 768px) {
    section.py-32 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    section.lg\:py-40 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Typography hierarchy polish */
.font-display {
    letter-spacing: -0.02em;
}

/* Button active states */
a[href]:active,
button:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
}
