/**
 * Call2Lead.ai Landing Page Styles
 * Mobile-first, blue-themed design with clean typography
 * Inspired by modern SaaS aesthetics (veed.io, air.ai)
 */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    font-weight: 400;
    overflow-x: hidden;
}

/* Homepage-specific scroll containment - mobile optimized */
@media (min-width: 768px) {
    body.homepage {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    body.homepage html {
        height: 100%;
        overflow: hidden;
    }

    /* Page wrapper to contain header and scrollable content - desktop only */
    .page-wrapper {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

    /* Main content wrapper with scroll - desktop only */
    .main-content-wrapper {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* Mobile viewport handling */
@media (max-width: 767px) {
    body.homepage {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .page-wrapper {
        min-height: 100vh;
    }

    .main-content-wrapper {
        overflow: visible;
    }
}

/* Email Verification Section Styles */
.verification-section {
    margin: 32px 0;
}

.verification-box {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.verification-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.verification-box h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.verification-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.email-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.email-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.button-icon {
    font-size: 1.2rem;
}

.support-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.support-link:hover {
    color: white;
    text-decoration: underline;
}

@media (min-width: 640px) {
    .verification-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

/* Mobile-first typography */
h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* Desktop typography scaling */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
    h5 { font-size: 1.25rem; }
}

p {
    margin-bottom: 1rem;
}

/* Container and Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Color Variables */
:root {
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --primary-blue-light: #dbeafe;
    --secondary-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --text-primary: #1a1a1a;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --background-light: #f8fafc;
    --success-color: #10b981;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Header Styles */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

/* Header on homepage - sticky on mobile, relative on desktop */
.homepage .header {
    position: relative;
    flex-shrink: 0;
}

/* Header on signup and other pages - always sticky */
.signup-page .header {
    position: sticky;
    top: 0;
    z-index: 100;
}

@media (max-width: 768px) {
    /* Prevent horizontal scrolling on mobile */
    html, body {
        overflow-x: hidden;
    }
    
    .homepage .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background-color: var(--white) !important;
        border-bottom: 1px solid var(--border-color) !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Add top padding to body content to compensate for fixed header */
    .homepage .main-content-wrapper {
        padding-top: 80px;
    }
    
    .homepage .hero {
        padding-top: 20px;
    }
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.brand-icon {
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.25rem;
    vertical-align: top;
}

.brand-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.brand-highlight {
    color: var(--primary-blue);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-icon {
    font-size: 1rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-line {
    width: 2rem;
    height: 0.25rem;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

/* Mobile Actions Container */
.mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Mobile Signup Button */
.mobile-signup-btn {
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: none; /* Hidden by default, shown on mobile */
}

.mobile-signup-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

/* Adaptive Desktop Navigation */
.adaptive-desktop-nav {
    display: none;
}

.compact-nav {
    display: none;
    align-items: center;
    gap: 1rem;
}

.full-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.desktop-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 1.5rem;
    height: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.desktop-menu-toggle .hamburger-line {
    width: 1.5rem;
    height: 0.2rem;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Desktop Navigation - Show icons and adjust font size */
@media (min-width: 769px) {
    .adaptive-desktop-nav {
        display: block;
    }
    
    .header__nav {
        display: none; /* Hide mobile nav on desktop by default */
    }
    
    .mobile-actions {
        display: none; /* Hide mobile actions on desktop */
    }
    
    .nav-icon {
        display: none; /* Hide icons in desktop full nav for cleaner look */
    }
    
    .nav-link {
        gap: 0.5rem;
        font-size: 0.875rem;
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }
    
    .nav-link:hover {
        color: var(--primary-blue);
    }
    
    .nav-text {
        font-size: 0.875rem;
    }
    
    /* Desktop value link styling */
    .desktop-value-link {
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
        color: var(--text-secondary);
        transition: color 0.2s ease;
    }
    
    .desktop-value-link:hover {
        color: var(--primary-blue);
    }
    
    /* Desktop signup styling - blue background with white text */
    .desktop-signup-compact,
    .desktop-signup-full {
        background: var(--primary-blue) !important;
        color: var(--white) !important;
        border: 1px solid var(--primary-blue) !important;
        padding: 0.5rem 1rem !important;
        border-radius: 0.5rem !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .desktop-signup-compact:hover,
    .desktop-signup-full:hover {
        background: var(--primary-blue-hover) !important;
        border-color: var(--primary-blue-hover) !important;
        color: var(--white) !important;
        opacity: 0.9 !important;
        visibility: visible !important;
        transform: translateY(-1px) !important;
        box-shadow: var(--shadow-md) !important;
    }
    
    /* Keep Try Demo button normal size with grey background */
    .cta-button--header {
        font-size: 1rem;
        background: var(--background-light);
        color: var(--primary-blue);
        border: 1px solid var(--border-color);
        border-radius: 0.5rem;
        padding: 0.5rem 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        display: inline-block;
    }
    
    .cta-button--header:hover {
        background: var(--primary-blue-light);
        border-color: var(--primary-blue);
    }
    
    /* Dropdown menu for desktop hamburger */
    .header__nav.desktop-dropdown {
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 0.5rem;
        box-shadow: var(--shadow-lg);
        padding: 1rem;
        min-width: 200px;
        z-index: 1000;
    }
    
    .header__nav.desktop-dropdown .nav-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        border-radius: 0.25rem;
        margin-bottom: 0.25rem;
    }
    
    .header__nav.desktop-dropdown .nav-link:hover {
        background: var(--background-light);
    }
    
    .header__nav.desktop-dropdown .nav-icon {
        display: inline-flex;
    }
    
    /* Try Demo button in desktop dropdown */
    .header__nav.desktop-dropdown .cta-button--header {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
        padding: 0.75rem 1rem;
        background: var(--primary-blue);
        color: var(--white);
        border: 1px solid var(--primary-blue);
        border-radius: 0.5rem;
        font-weight: 600;
        text-decoration: none;
        box-sizing: border-box;
    }
    
    .header__nav.desktop-dropdown .cta-button--header:hover {
        background: var(--primary-blue-hover);
        border-color: var(--primary-blue-hover);
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-signup-btn {
        display: inline-block;
    }
    
    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        border: 1px solid var(--border-color);
        border-top: none;
        border-radius: 0 0 0.5rem 0.5rem;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        z-index: 1000;
    }
    
    .header__nav.active {
        display: flex;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        gap: 0.75rem;
        background: none;
        border: none;
        color: var(--text-secondary);
        font-weight: 500;
        transition: color 0.2s ease;
        cursor: pointer;
    }
    
    /* Hide desktop value link on mobile */
    .desktop-value-link {
        display: none;
    }
    
    .nav-link:last-of-type {
        border-bottom: none;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile signup button styling - just blue text */
    .nav-link--signup {
        color: var(--primary-blue);
        font-weight: 600;
        border-bottom: 1px solid var(--border-color);
        background: transparent !important;
    }
    
    .nav-link--signup:hover {
        color: var(--primary-blue-hover) !important;
        background: transparent !important;
    }
    
    .cta-button--header {
        margin: 0.75rem 1rem 1rem 1rem !important;
        width: calc(100% - 2rem) !important;
        justify-content: center;
        gap: 0.5rem;
        background: var(--primary-blue);
        color: var(--white);
        border: 1px solid var(--primary-blue);
        border-radius: 0.5rem;
        padding: 0.75rem 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }
    
    .cta-button--header:hover {
        background: var(--primary-blue-hover);
        border-color: var(--primary-blue-hover);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .brand-icon {
        font-size: 1.3rem;
    }
}

/* Button Styles */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.5;
}

.cta-button--primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.cta-button--primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.cta-button--secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.cta-button--secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.cta-button--header {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    padding: 2rem 0 3rem 0;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--white) 100%);
}

@media (min-width: 768px) {
    .hero {
        padding: 2rem 0 6rem 0;
    }
}

.hero__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero__headline {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 2.5rem 0 2.5rem 0;
    padding: 1rem 0;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .hero__headline {
        font-size: 3.25rem;
        margin: 3rem 0 3rem 0;
        padding: 1.5rem 0;
    }
}

.hero__headline--main {
    display: block;
}

.hero__headline--accent {
    color: var(--primary-blue);
    display: block;
    margin-top: 0.5rem;
}


.hero__subtitle {
    font-size: 1.1rem;
    color: #374151;
    font-weight: 600;
    text-align: center;
    margin: 1.5rem auto 2rem auto;
    letter-spacing: 0.01em;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--primary-blue);
    border-right: 4px solid var(--primary-blue);
    border-radius: 8px;
    max-width: 600px;
}

@media (min-width: 768px) {
    .hero__subtitle {
        font-size: 1.4rem;
        margin: 2rem auto 2.5rem auto;
        padding: 1rem 2rem;
    }
}

.hero__subtitle .flash-text {
    transition: color 0.4s ease-in-out;
}

@keyframes flashBlue {
    0% { color: #374151; }
    50% { color: var(--primary-blue); }
    100% { color: #374151; }
}

/* Highlighter effect */
.highlight-text {
    position: relative;
    display: inline;
    transition: color 0.3s ease-out;
}

.highlight-text.highlighted {
    color: #000000 !important;
    background: linear-gradient(90deg, transparent 0%, #ffff00 0%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    animation: textHighlight 1.5s ease-out forwards;
}

@keyframes highlighterDraw {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    100% {
        transform: scaleX(1);
        opacity: 0.6;
    }
}

@keyframes textHighlight {
    0% {
        background-size: 0% 100%;
    }
    100% {
        background-size: 100% 100%;
    }
}

/* Calculator Section Attention Effects */
.attention-effect {
    position: relative;
}

.attention-effect.visible {
    animation: backgroundFlash 0.8s ease-out;
}

.button-with-arrow {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.attention-arrow {
    opacity: 0;
    transform: translateY(-10px);
    animation: bounceArrow 2s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.attention-arrow svg {
    width: 24px;
    height: 24px;
    animation: bounce 1.5s ease-in-out infinite;
}

.arrow-text {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.attention-pulse {
    animation: pulseGlow 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.attention-pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes backgroundFlash {
    0% { background-color: transparent; }
    15% { background-color: rgba(59, 130, 246, 0.1); }
    30% { background-color: rgba(59, 130, 246, 0.05); }
    100% { background-color: transparent; }
}

@keyframes bounceArrow {
    0%, 100% { 
        opacity: 1;
        transform: translateY(-5px);
    }
    50% { 
        opacity: 0.7;
        transform: translateY(-15px);
    }
}

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

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Second Highlighter Effect */
.highlight-text-2 {
    position: relative;
    display: inline;
    transition: color 0.3s ease-out;
}

.highlight-text-2.highlighted {
    color: #000000 !important;
    background: linear-gradient(90deg, transparent 0%, #ffff00 0%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    animation: textHighlight 1.5s ease-out forwards;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .attention-arrow {
        font-size: 0.8rem;
    }
    
    .attention-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .button-with-arrow {
        gap: 0.75rem;
    }
}

.hero__subtitle p {
    margin: 0;
}

/* Sequential hero text animations */
.hero-fade-1,
.hero-fade-2,
.hero-fade-3,
.hero-fade-4,
.hero-fade-5 {
    opacity: 0;
    transform: translateY(20px);
}

.hero-fade-1 {
    animation: heroFadeIn 0.8s ease-out 0s forwards;
}

.hero-fade-2 {
    animation: heroFadeIn 0.8s ease-out 1s forwards;
}

.hero-fade-3 {
    animation: heroFadeIn 0.8s ease-out 2s forwards;
}

.hero-fade-4 {
    animation: heroFadeIn 0.8s ease-out 3s forwards;
}

.hero-fade-5 {
    animation: heroFadeIn 0.8s ease-out 4s forwards;
}

/* Removed duplicate rules - using higher specificity rules above */

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

.hero__subheadline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__subheadline p {
    margin-bottom: 1.5rem;
}

.hero__subheadline .hero-fade-4 p,
.hero__subheadline .hero-fade-5 p {
    margin-bottom: 2rem;
}

.hero__subheadline strong {
    color: var(--text-primary);
}

.hero__cta {
    margin-bottom: 3rem;
}

.hero__cta-subtext {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Hero Visual */
.hero__visual {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.hero__phone-mockup {
    max-width: 320px;
    width: 100%;
}

.phone-frame {
    background-color: #1a1a1a;
    border-radius: 2.5rem;
    padding: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-header {
    background-color: #1a1a1a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem 2rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.phone-signal {
    display: flex;
    gap: 0.25rem;
}

.signal-dot {
    width: 4px;
    height: 4px;
    background-color: white;
    border-radius: 50%;
}

.phone-screen {
    background-color: var(--background-light);
    border-radius: 0 0 2rem 2rem;
    padding: 1.5rem 1rem;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.message-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.message-preview::-webkit-scrollbar {
    display: none;
}

.message {
    max-width: 85%;
    padding: 0.875rem 1.125rem;
    border-radius: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message--incoming {
    background-color: var(--border-color);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
}

.message--outgoing {
    background-color: var(--primary-blue);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}

/* Message animation keyframes */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes typingDots {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat modal typing dots */
.typing-dots {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    padding: 0.5rem 0;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typingDots 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

/* Enhanced message animations - specifically for hero section */
#hero-messages .message {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

#hero-messages .message-animate-in {
    animation: messageSlideIn 0.5s ease-out forwards;
}

#hero-messages .typing-indicator {
    background-color: var(--border-color) !important;
    padding: 0.75rem 1rem !important;
    opacity: 1 !important;
    transform: none !important;
}

.typing-dots {
    display: inline-flex;
    gap: 0.2rem;
    align-items: center;
    height: 1rem;
}

.typing-dots span {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--text-muted);
    animation: typingDots 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0s; }

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works Section */
.how-it-works {
    padding: 0.75rem 0 1rem 0;
    background-color: var(--white);
}

/* Story Section - "Why This Matters" - Elegant Presentation Style */
.story-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--background-light) 100%);
    position: relative;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="80" cy="80" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="40" cy="60" r="1" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Header Section */
.story-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.story-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto;
}

.story-accent {
    color: var(--primary-blue);
    display: block;
    margin-top: 0.5rem;
}

/* Presentation Content */
.story-presentation {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Line-by-line animations */
[data-reveal-line] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    margin-bottom: 1.5rem;
}

[data-reveal-line].visible {
    opacity: 1;
    transform: translateY(0);
}

.story-title {
    margin-bottom: 4rem;
}

.story-title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.story-problem,
.story-realization {
    margin-bottom: 3rem;
}

.story-problem [data-reveal-line],
.story-realization [data-reveal-line] {
    margin-bottom: 0.75rem;
}

.story-cta {
    margin-top: 4rem;
}

.story-line {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    text-align: center;
}

.story-highlight {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-blue);
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

/* Problem Section */
.story-problem {
    background: linear-gradient(135deg, #fef7f7, #fdf2f2);
    border: 2px solid #fecaca;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.1);
}

.problem-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.problem-point {
    font-size: 1.125rem;
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
    font-style: italic;
}

/* Realization Section */
.story-realization {
    background: linear-gradient(135deg, #fefbf3, #fef8f0);
    border: 2px solid #fed7aa;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.1);
}

.realization-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c2410c;
    margin-bottom: 1.5rem;
    text-align: center;
}

.realization-point {
    font-size: 1.125rem;
    color: #ea580c;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
    font-style: italic;
}

/* Truth Section */
.story-truth {
    text-align: center;
    padding: 2rem;
}

.truth-statement {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.truth-detail {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Solution Section */
.story-solution {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #bfdbfe;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
    text-align: center;
}

.solution-intro {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.solution-main {
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* CTA Section */
.story-cta {
    text-align: center;
    margin-top: 4rem;
}

.story-section__header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.story-section__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto;
}

.story-section__title--accent {
    color: var(--primary-blue);
    display: block;
    margin-top: 0.5rem;
}

.story-section__content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.story-narrative {
    margin-bottom: 3rem;
}

.story-block {
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.story-block--climax {
    text-align: center;
    padding: 2rem 1rem;
    margin: 3rem 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.story-block--pain {
    background: linear-gradient(135deg, #fef7f7, #fdf2f2);
    border: 2px solid #fecaca;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    margin: 5rem 0;
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.story-block--pain:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(239, 68, 68, 0.12);
}

.story-block--pain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

.story-block--realization {
    background: linear-gradient(135deg, #fefbf3, #fef8f0);
    border: 2px solid #fed7aa;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    margin: 5rem 0;
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.story-block--realization:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(249, 115, 22, 0.12);
}

.story-block--realization::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #f97316, #ea580c);
}

.story-block--truth {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    margin: 5rem 0;
    box-shadow: 0 20px 40px rgba(71, 85, 105, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.story-block--truth:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(71, 85, 105, 0.1);
}

.story-block--truth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #64748b, #475569);
}

.story-block--solution {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #bfdbfe;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    margin: 5rem 0;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.story-block--solution:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.12);
}

.story-block--solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-blue-hover));
}

.story-text {
    font-size: 1.375rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.story-text--build-up {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
    font-weight: 400;
}

.story-text--highlight {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
}

.story-text--pain {
    color: #991b1b;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.story-text--emphasis {
    color: #c2410c;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.story-text--lead {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.story-text em {
    font-style: italic;
    font-weight: 600;
    color: inherit;
}

.story-text--solution {
    color: var(--text-primary);
    font-size: 1.125rem;
}

.story-section__cta {
    text-align: center;
    margin-top: 3rem;
}

.cta-button--story {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    font-size: 1.125rem;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-button--story::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button--story:hover::before {
    left: 100%;
}

.cta-button--story:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
}

/* Mobile Responsive Design for Story Section */
@media (max-width: 768px) {
    .story-section {
        padding: 3rem 0;
    }
    
    .story-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .story-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .story-presentation {
        padding: 0 1rem;
    }
    
    .story-group,
    .story-moment,
    .story-problem,
    .story-realization,
    .story-truth,
    .story-solution,
    .story-cta {
        margin-bottom: 2rem;
    }
    
    .story-line {
        font-size: 1.125rem;
        line-height: 1.5;
    }
    
    .story-highlight {
        font-size: 1.375rem;
        padding: 1.5rem 1rem;
    }
    
    .story-problem,
    .story-realization,
    .story-solution {
        padding: 1.5rem;
    }
    
    .problem-title,
    .realization-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .problem-point,
    .realization-point {
        font-size: 1rem;
    }
    
    .truth-statement {
        font-size: 1.25rem;
    }
    
    .truth-detail {
        font-size: 1rem;
    }
    
    .solution-intro {
        font-size: 1.125rem;
    }
    
    .solution-main {
        font-size: 1rem;
    }
    
    .cta-button--story {
        font-size: 0.95rem;
        padding: 0.8rem 1.25rem;
        width: 100%;
        max-width: 300px;
    }
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: var(--background-light);
    border-radius: 1rem;
    border-left: 4px solid var(--primary-blue);
}

.step__number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step__content {
    flex: 1;
}

.step__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step__description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-card__description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background-color: var(--white);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.pricing-card {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.pricing-card--featured {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.pricing-card__header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.pricing-card__subtitle {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.price-period {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feature-icon {
    color: var(--success-color);
    font-weight: 600;
}

.pricing-card__cta {
    text-align: center;
    margin-top: 1rem;
}

.pricing-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-detail {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background-light);
    border-radius: 0.75rem;
}

.pricing-detail__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-detail__description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pricing-example {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--primary-blue-light);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-blue);
}

.pricing-example__title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.pricing-example__text {
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.testimonial-card__quote {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-card__quote::before {
    content: '"';
    font-size: 2rem;
    color: var(--primary-blue);
    position: absolute;
    left: -0.5rem;
    top: -0.5rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.faq-item.active {
    border: 2px solid var(--primary-blue);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: var(--background-light);
    padding: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
    outline: none;
}

.faq-question:focus {
    outline: none !important;
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-blue);
    transition: transform 0.2s ease;
}

.faq-answer {
    padding: 0 0 1.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-question,
.faq-item.active .faq-question:focus {
    border: none !important;
    outline: none !important;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 3rem 0 2rem 0;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__brand .brand-link {
    color: var(--white);
    font-size: 1.5rem;
}

.footer__tagline {
    color: #9ca3af;
    margin-top: 0.5rem;
}

.footer__copyright {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: var(--white);
}

.footer__separator {
    color: #4b5563;
}

.footer__cta {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 200;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-cta.flash {
    animation: flash-attention 2s ease-in-out 3;
}

@keyframes flash-attention {
    0%, 50%, 100% { 
        box-shadow: var(--shadow-lg);
        transform: translateY(0) scale(1);
    }
    25%, 75% { 
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4), var(--shadow-lg);
        transform: translateY(0) scale(1.02);
    }
}

.cta-button--sticky {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-blue);
    line-height: 1.3;
    background: white !important;
    color: var(--primary-blue) !important;
}

/* Demo Chat Message Bubbles */
#chat-messages .message {
    display: flex;
    margin-bottom: 1rem;
    animation: messageSlideIn 0.3s ease-out;
}

#chat-messages .message.ai {
    justify-content: flex-start;
}

#chat-messages .message.user {
    justify-content: flex-end;
}

#chat-messages .message-content {
    max-width: 80%;
    padding: 0.875rem 1.125rem;
    border-radius: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

#chat-messages .message.ai .message-content {
    background: #f1f3f4;
    color: #202124;
    border-bottom-left-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

#chat-messages .message.user .message-content {
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 0.25rem;
}

#chat-messages .system-message {
    background: #fef3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeaa7 !important;
    text-align: center;
    font-style: italic;
    border-radius: 0.5rem !important;
}

/* Inline chat buttons */
.message-content .chat-button {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    margin: 0.5rem 0.25rem 0.25rem 0;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.message-content .chat-button:hover {
    background: var(--primary-blue-dark);
}

/* Demo Chat Typing Indicator */
.typing-indicator {
    opacity: 0.7;
}

/* Modal Styles - Match AI Testing Modal Design */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none !important;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex !important;
    pointer-events: auto;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal__container {
    position: relative;
    width: 90%;
    height: 90vh;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: auto;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    overflow: hidden;
}

/* Demo Modal - Match AI Testing Modal Exactly */
#demo-modal .modal__header {
    padding: 0.375rem 1rem !important;
    min-height: 32px !important;
    flex-shrink: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    background-color: white !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#demo-modal .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#demo-modal .contact-info {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

#demo-modal .contact-name {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    background: none !important;
    padding: 0 !important;
    color: #1f2937 !important;
}

#demo-modal .contact-status {
    font-size: 0.6rem !important;
    color: #10b981 !important;
}

#demo-modal .modal__close {
    width: 1.25rem !important;
    height: 1.25rem !important;
    font-size: 1rem !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#demo-modal .modal__close:hover {
    color: #374151 !important;
}

/* Mobile Demo Modal - Full viewport optimization */
@media (max-width: 768px) {
    #demo-modal .modal__container {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important; /* Dynamic viewport height for mobile browsers */
        max-height: 100vh !important;
        max-height: 100dvh !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 99999 !important;
    }
    
    #demo-modal .modal__header {
        flex-shrink: 0 !important;
        padding: 0.75rem 1rem !important;
        min-height: 50px !important;
        background: white !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    /* NUCLEAR OVERRIDE: Remove ALL padding and constraints from demo modal */
    #demo-modal .modal__container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    #demo-modal .modal__chat {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 1rem 0 !important; /* Only top and bottom padding */
        margin: 0 !important;
        min-height: 0 !important;
        background: #f9fafb !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }
    
    #demo-modal #chat-messages {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #demo-modal .modal__input {
        flex-shrink: 0 !important;
        padding: 1rem !important;
        background: white !important;
        border-top: 1px solid #e5e7eb !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Ensure input container takes proper space */
    #demo-modal .input-container {
        display: flex !important;
        gap: 0.75rem !important;
        align-items: center !important;
    }
    
    #demo-modal .chat-input {
        flex: 1 !important;
        padding: 0.875rem 1rem !important;
        border: 1px solid #d1d5db !important;
        border-radius: 1.5rem !important;
        font-size: 1rem !important;
        background: white !important;
    }
    
    #demo-modal .send-button {
        width: 2.5rem !important;
        height: 2.5rem !important;
        border-radius: 50% !important;
        background: var(--primary-blue) !important;
        color: white !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
}

/* Desktop Demo Modal - Full width spanning */
@media (min-width: 769px) {
    #demo-modal .modal__container {
        max-width: 800px !important; /* Reasonable max width for desktop */
        width: 95vw !important; /* Use most of viewport width */
        height: 90vh !important;
        max-height: 90vh !important;
        padding: 0 !important; /* NO padding at all */
        margin: 0 !important;
    }
    
    /* Chat container: full width to allow messages to reach edge */
    #demo-modal #chat-messages {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: visible !important;
        align-items: flex-start !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* AI messages (incoming) - aligned to left with left padding */
    #demo-modal .chat-message--incoming {
        padding-left: 1rem !important;
        margin-left: 0 !important;
    }
    
    #demo-modal .chat-message--incoming .message-bubble {
        margin: 0 auto 12px 0 !important;
        max-width: calc(100% - 2rem) !important;
    }
    
    /* User messages (outgoing) - flush to right edge */
    #demo-modal .chat-message.chat-message--outgoing {
        align-self: flex-end !important;
        justify-content: flex-end !important;
        max-width: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        padding-right: 0 !important; /* NO right padding - messages touch edge */
    }
    
    #demo-modal .chat-message.chat-message--outgoing .message-bubble {
        margin-left: auto !important;
        margin-right: 0 !important; /* Align flush to right edge */
        margin-bottom: 12px !important;
        max-width: 100% !important; /* Override global 80% rule */
        width: auto !important;
    }
}

/* Mobile full width modal */
@media (max-width: 768px) {
    .modal__container {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    #demo-modal .modal__header {
        padding: 0.5rem 1rem !important;
        min-height: 40px !important;
    }
    
    #demo-modal .contact-info {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
    }
    
    #demo-modal .contact-name {
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
    }
}

/* Default modal header styles will be overridden by specific modal styling */

.modal__chat {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    margin: 0;
}

.modal__input {
    flex-shrink: 0;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background-color: white;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-icon {
    font-size: 1.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue-light);
    border-radius: 50%;
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.header-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.header-status {
    font-size: 0.75rem;
    color: var(--success-color);
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.clear-btn:hover {
    background-color: var(--primary-blue-light);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: var(--border-color);
}

/* Video Modal Specific Styles */
.video-modal-content {
    width: auto;
    max-width: min(90vw, 700px);
    max-height: 85vh;
    overflow: hidden;
    padding: 0;
    border-radius: 12px;
    background: #fff;
    margin: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid #e5e7eb;
    position: relative;
    display: flex;
    flex-direction: column;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 12px 12px 0 0;
}

/* Video Controls */
.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.playback-speed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.playback-speed label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.playback-speed select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    background: white;
    font-size: 0.875rem;
}

.fullscreen-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.fullscreen-btn:hover {
    background: var(--primary-blue-dark);
}

.video-footer {
    padding: 1rem;
    text-align: center;
    background: white;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
}

.video-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.cta-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.cta-link:hover {
    text-decoration: underline;
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.video-container {
    position: relative;
    padding: 0;
    background: #000;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f9fafb;
}

.playback-speed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.playback-speed label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.playback-speed select {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: #fff;
    color: #374151;
}

.fullscreen-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.fullscreen-btn:hover {
    background: #2563eb;
}

.video-footer {
    padding: 1.5rem;
    text-align: center;
    background: #f9fafb;
}

.video-footer p {
    margin: 0;
    color: #6b7280;
}

.cta-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.cta-link:hover {
    text-decoration: underline;
}

/* Video Button Styles */
.video-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.video-cta-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.video-cta-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.video-cta-button.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.video-cta-button.secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Video CTA Spacing */
.hero__video-cta {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 0.25rem;
}

/* Hide mobile close button on desktop */
.video-modal-close-mobile {
    display: none;
}

/* Video Button Mobile Responsive */
@media (max-width: 768px) {
    .video-cta-button {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
        margin-top: 0.5rem;
        display: flex;
        justify-content: center;
        min-height: 48px;
    }
    
    .hero__video-cta .video-cta-button {
        margin-top: 1rem;
        width: 100%;
    }
}

/* Call2Lead Virtual Agent Modal Mobile Responsive */
@media (max-width: 768px) {
    /* Force scrolling for mobile modal */
    .modal-chat {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        scrollbar-width: none !important; /* Hide scrollbar on Firefox */
        background-color: #f8fafc !important;
    }
    
    /* Hide scrollbar on mobile for cleaner look */
    .modal-chat::-webkit-scrollbar {
        display: none !important;
    }
}

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

/* Desktop Modal Styles */
@media (min-width: 769px) {
    .modal__container {
        max-width: 600px;
        height: 80vh;
        margin: 5vh auto;
        border-radius: 1rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
    
    #chat-messages .message-content {
        max-width: 90%;
    }
    
    .modal__header {
        padding: 1rem 1.5rem;
        min-height: 60px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .contact-name {
        font-size: 1.125rem;
        font-weight: 600;
    }
    
    .contact-status {
        font-size: 0.875rem;
    }
    
    .modal-close {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    
    .modal-chat {
        padding: 1.5rem;
        overflow-y: auto;
        background-color: #f8fafc !important;
    }
    
    .modal-input {
        padding: 1rem 1.5rem;
    }
    
    .chat-input {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .send-button {
        width: 3rem;
        height: 3rem;
    }
    
    .message-bubble {
        font-size: 1rem;
        padding: 1rem 1.25rem;
        max-width: 400px;
    }
    
    .message-time {
        font-size: 0.875rem;
    }
    .modal__header {
        padding: 0.375rem 1rem;
        min-height: 32px;
        flex-shrink: 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .contact-info {
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    .contact-name {
        font-size: 0.8rem;
        font-weight: 500;
        background: none;
        padding: 0;
    }
    
    .contact-status {
        font-size: 0.6rem;
    }
    
    .modal-close {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 1rem;
        background: none;
        border: none;
        padding: 0;
    }
    
    .modal-chat {
        padding: 0.75rem 1rem;
        flex: 1;
        min-height: 0;
    }
    
    .modal__footer {
        display: none;
    }
    
    .modal-input {
        padding: 0.75rem 1rem;
        flex-shrink: 0;
    }
    
    .chat-input {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .send-button {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .message-bubble {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
        max-width: 280px;
    }
    
    .message-time {
        font-size: 0.7rem;
    }
}

/* Video Modal Mobile Responsive */
@media (max-width: 768px) {
    .video-modal {
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }
    
    .video-modal-content {
        width: 95%;
        max-height: 75vh;
        margin: 0;
        position: relative;
    }
    
    .video-modal-close {
        display: none; /* Hide default close button */
    }
    
    .video-modal-close-mobile {
        display: flex; /* Show mobile close button */
    }
    
    .video-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1rem;
    }
    
    .playback-speed {
        justify-content: center;
    }
    
    .fullscreen-btn {
        justify-content: center;
    }
    
    .video-footer {
        padding: 1rem;
        margin-bottom: 0;
    }
    
    .video-footer p {
        margin-bottom: 0;
    }
    
    /* Mobile close button at bottom center */
    .video-modal-close-mobile {
        position: absolute;
        bottom: -2.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 1.25rem;
        font-weight: 300;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        backdrop-filter: blur(10px);
        z-index: 1001;
        transition: all 0.2s ease;
    }
    
    .video-modal-close-mobile:hover {
        background: rgba(0, 0, 0, 0.8);
    }
}
}

.modal-chat {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: #f8fafc !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Message styling to match AI Testing modal */
#chat-messages .message {
    margin-bottom: 0.17rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    animation: messageSlideIn 0.3s ease-out;
}

/* Typing indicator animation */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #94a3b8;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

#chat-messages .message.ai {
    align-items: flex-start;
}

#chat-messages .message.user {
    align-items: flex-end;
    text-align: right;
    padding-right: 0;
    margin-right: 0;
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
    position: relative;
    right: 0;
}

#chat-messages .message-content {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1.125rem;
    font-size: 0.875rem;
    line-height: 1.4;
    word-wrap: break-word;
}

#chat-messages .message.ai .message-content {
    background: #f1f3f4;
    color: #202124;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

#chat-messages .message.user .message-content {
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
    margin-right: 0;
    display: block;
    float: right;
    clear: both;
    width: fit-content;
}

.modal-chat::-webkit-scrollbar {
    width: 8px;
}

.modal-chat::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-chat::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.modal-chat::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.chat-message--incoming {
    align-items: flex-start;
}

.chat-message--outgoing {
    align-items: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1.125rem;
    font-size: 0.875rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message--incoming .message-bubble {
    background-color: var(--white);
    color: var(--text-primary);
    border-bottom-left-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.chat-message--outgoing .message-bubble {
    background-color: var(--primary-blue);
    color: var(--white);
    border-bottom-right-radius: 0.25rem;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

.modal-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--white);
}

.input-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    border-color: var(--primary-blue);
}

.send-button {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.send-button:hover {
    background-color: var(--primary-blue-hover);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal__footer {
    padding: 1rem;
    text-align: center;
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
}

.demo-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Legal Pages Styling */
.legal-page {
    padding: 2rem 0;
    background-color: var(--background-light);
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legal-content h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.legal-last-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.legal-section strong {
    color: var(--text-primary);
}

/* Mobile responsive legal pages */
@media (max-width: 767px) {
    .legal-page {
        padding: 1rem 0;
    }
    
    .legal-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .legal-section ul {
        margin-left: 1rem;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    
    .container {
        padding: 0 2rem;
    }
    
    .hero {
        padding: 2rem 0 6rem 0;
    }
    
    .hero__headline {
        font-size: 4.5rem;
    }
    
    .sticky-cta {
        display: none !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .modal__container {
        margin: 2rem auto;
        height: calc(100vh - 4rem);
        border-radius: 1rem;
        overflow: hidden;
        max-width: 600px;
    }
    
    /* Mobile-specific modal styles */
    .modal__container {
        width: 100%;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .modal__header {
        padding: 0.5rem 1rem;
        min-height: 48px;
    }
    
    .modal__chat {
        padding: 8px 0;
        flex: 1;
        min-height: 0;
    }
    
    .modal__input {
        padding: 16px;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
    }
    
    .input-container {
        display: flex;
        gap: 12px;
        align-items: flex-end;
    }
    
    .chat-input {
        flex: 1;
        padding: 12px 16px;
        border: 1px solid #d1d5db;
        border-radius: 24px;
        font-size: 16px;
        outline: none;
        transition: border-color 0.2s;
    }
    
    .chat-input:focus {
        border-color: #3b82f6;
    }
    
    .send-button {
        width: 40px;
        height: 40px;
        background: #3b82f6;
        color: white;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.2s;
        flex-shrink: 0;
    }
    
    .send-button:hover {
        background: #2563eb;
    }
    
    .modal__header {
        padding: 0.375rem 1rem;
        min-height: 32px;
        flex-shrink: 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .contact-info {
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    .contact-name {
        font-size: 0.8rem;
        font-weight: 500;
        background: none;
        padding: 0;
    }
    
    .contact-status {
        font-size: 0.6rem;
    }
    
    .modal-close {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 1rem;
        background: none;
        border: none;
        padding: 0;
    }
    
    .modal-chat {
        padding: 0.75rem 1rem;
        flex: 1;
        min-height: 0;
    }
    
    .modal__footer {
        display: none;
    }
    
    .modal-input {
        padding: 0.75rem 1rem;
        flex-shrink: 0;
    }
    
    .chat-input {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .send-button {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .message-bubble {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
        max-width: 280px;
    }
    
    .message-time {
        font-size: 0.7rem;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .step {
        margin-bottom: 2rem;
    }
}

/* Chat Button Styles */
.chat-button {
    display: inline-block;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    background: var(--primary-blue) !important;
    color: white !important;
    border: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    position: relative;
    z-index: 10;
    line-height: 1.2;
    min-height: 36px;
    box-sizing: border-box;
    opacity: 1 !important;
    visibility: visible !important;
}

.chat-button:hover {
    background: var(--primary-blue-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.signup-button {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%) !important;
    color: white !important;
    font-weight: 600;
}

.video-button {
    background: var(--secondary-blue) !important;
    color: white !important;
}

.video-button:hover {
    background: #1e40af !important;
}

.email-button {
    background: #6b7280 !important;
    color: white !important;
}

.email-button:hover {
    background: #4b5563 !important;
}

/* Ensure buttons display properly within message bubbles */
.message-bubble .chat-button {
    display: block;
    margin: 0.75rem 0 0.5rem 0;
    width: 100%;
    max-width: none;
}

.chat-message--incoming .message-bubble .chat-button {
    margin-left: 0;
}

/* Mobile-specific sticky CTA display logic */
@media (max-width: 767px) {
    .sticky-cta {
        display: block;
    }
    
    .feature-card {
        text-align: center;
    }
    
    .feature-card__icon {
        text-align: center;
    }
    
    .step {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    .step__number {
        margin-bottom: 1rem;
    }
    
    .step__content {
        text-align: center;
    }
    
    .footer__content {
        text-align: center;
        align-items: center;
    }
    
    .footer__brand {
        text-align: center;
        width: 100%;
    }
    
    .footer__brand .brand-link {
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    .footer__links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer__copyright {
        text-align: center;
        line-height: 1.5;
    }
    
    .footer__cta {
        text-align: center;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus states for keyboard navigation */
.cta-button:focus,
.nav-link:focus,
.chat-input:focus,
.send-button:focus,
.modal-close:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delayed solution text animation */
.hero__solution-text {
    transition-delay: 0.8s;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.animate-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

.animate-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Phone ringing animation */
.phone-ring {
    animation: phoneRing 0.5s ease-in-out infinite;
    color: var(--primary-blue-hover) !important;
    transition: color 0.2s ease;
}

.phone-ring svg {
    fill: currentColor;
}

/* Signup Page Styles */
.signup-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--white) 100%);
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .signup-page {
        padding: 2rem 0;
    }
}

/* Responsive visibility helpers */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
}

/* Plan Selection Styles */
.plan-selection {
    margin-bottom: 30px;
}

/* Mobile Plan Tabs */
.plan-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: 60px; /* Increased to 60px to provide proper space for badges */
}

@media (min-width: 768px) {
    .plan-tabs {
        display: none !important;
    }
}

.plan-tab {
    flex: 1;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 12px 16px 12px; /* Reverted to original padding */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-tab:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.plan-tab.plan-tab-active {
    border-color: #3b82f6;
    background: #f0f9ff;
    border-width: 3px;
}

.plan-tab-content {
    text-align: center;
    position: relative;
    width: 100%;
}

.plan-tab-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.2;
}

.plan-tab-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    line-height: 1.2;
    margin-bottom: 2px;
}

.plan-tab-regular {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
}

.plan-tab-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plan-content {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .plan-content {
        display: none !important;
    }
}

/* Ensure at least one plan is visible on mobile */
.plan-content .plan-details:first-child {
    display: none;
}

.plan-content .plan-details:last-child {
    display: block;
}

.plan-details {
    display: none;
}

.plan-details.active {
    display: block;
}

.plan-header-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    gap: 4px;
}

.plan-header-mobile .plan-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.plan-header-mobile .plan-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3b82f6;
    margin: 0;
}

.plan-header-mobile .plan-regular {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

.plan-selection-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
}

.plan-options {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

/* Desktop-only plan cards */
.plan-options.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .plan-options.desktop-only {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
}

.plan-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.plan-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.plan-card.selected {
    border-color: #3b82f6;
    border-width: 3px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.plan-card-content {
    display: block;
    padding: 24px;
    cursor: pointer;
    height: 100%;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.plan-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
}

.plan-period {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

.plan-regular {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 4px;
    display: block;
}

.plan-features {
    margin-top: 20px;
}

.plan-feature-header {
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 0;
}

.plan-feature {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-left: 0;
}

.plan-feature.missing-feature {
    color: #ef4444;
    font-size: 0.85rem;
    opacity: 0.9;
}

.plan-feature.missing-feature:before {
    content: '✗';
    color: #ef4444;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.8rem;
}

.feature-text {
    flex: 1;
}

.feature-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #d1d5db;
    color: #6b7280;
    border-radius: 50%;
    font-size: 11px;
    margin-left: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    opacity: 0.8;
    flex-shrink: 0;
}

.feature-help:hover {
    background: #2563eb;
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

.plan-feature:before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.8rem;
}

.pricing-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Desktop: Move badge to top right corner */
@media (min-width: 768px) {
    .pricing-plan-badge {
        top: 12px;
        left: auto;
        right: 12px;
        transform: none;
    }
}

@media (min-width: 768px) {
    .plan-card {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .plan-card-content {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }
    
    .plan-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 24px !important;
    }
    
    .plan-name {
        font-size: 1.2rem !important;
    }
    
    .plan-price {
        font-size: 1.3rem !important;
    }
    
    .plan-features {
        flex: 1 !important;
        margin-top: 0 !important;
    }
    
    .plan-feature {
        margin-bottom: 12px !important;
        align-items: center !important;
    }
    
    .feature-help {
        margin-left: 8px !important;
        margin-top: 0 !important;
    }
}

.signup-container {
    max-width: 500px;
    margin: 0 1rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 1rem;
}

@media (min-width: 480px) {
    .signup-container {
        margin: 0 auto;
        padding: 2rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .signup-container {
        max-width: 720px;
        padding: 3rem 2.5rem;
    }
}

.signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

@media (min-width: 480px) {
    .signup-headline {
        font-size: 2rem;
    }
}

.signup-subheadline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.pricing-summary {
    background: var(--background-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.billing-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.billing-note small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-row--total {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    font-weight: 600;
}

.price-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.price-value {
    color: var(--text-primary);
    font-weight: 500;
}

.price-value--total {
    color: var(--primary-blue);
    font-size: 1.125rem;
    font-weight: 700;
}

.signup-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group--half {
    flex: 1;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input--error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input--success {
    border-color: #10b981;
    background-color: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input--warning {
    border-color: #f59e0b;
    background-color: #fffbeb;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Real-time Validation System */
.validation-message {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 20px;
}

.validation-message--error {
    color: #dc2626;
}

.validation-message--success {
    color: #10b981;
}

.validation-message--warning {
    color: #f59e0b;
}

.validation-message--info {
    color: #3b82f6;
}

.validation-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Form group validation states */
.form-group--validating .form-input {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group--valid .form-input {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-group--invalid .form-input {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.validation-spinner {
    position: absolute;
    right: 12px;
    top: 40px;
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-error {
    display: block;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

/* Stripe Card Element Styling */
.stripe-card-element {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--white);
    transition: all 0.2s ease;
    min-height: 3.5rem; /* Match form input height */
    position: relative;
}

.stripe-card-element:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.stripe-card-element.StripeElement--invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.stripe-card-element.StripeElement--complete {
    border-color: var(--success-color);
}

/* Ensure Stripe Card Element iframe is visible */
#card-element {
    width: 100%;
    height: 20px;
    line-height: 20px;
}

/* Force Stripe iframe to be visible */
#card-element .__PrivateStripeElement {
    width: 100% !important;
    height: 20px !important;
    background: transparent !important;
}

#card-element iframe {
    width: 100% !important;
    height: 20px !important;
    border: none !important;
    background: transparent !important;
    color-scheme: light !important;
}

.cta-button--large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.form-disclaimer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Add-on Section Styles */
.addon-section {
    margin: 1.5rem 0;
    padding: 1.25rem 1.25rem 1rem 1.25rem; /* Reduced bottom padding from 1.25rem to 1rem */
    background: var(--background-light);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.addon-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.addon-option {
    margin-bottom: 1rem;
}

.addon-option:last-child {
    margin-bottom: 0;
}

.addon-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--white);
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .addon-checkbox {
        align-items: center;
    }
}

.addon-checkbox:hover {
    border-color: var(--primary-blue);
    background: var(--primary-blue-light);
}

.addon-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    background: var(--white);
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.addon-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.addon-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.addon-content {
    flex: 1;
}

.addon-setup-fee {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-weight: 500;
}

.addon-help-btn {
    background: none;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.addon-help-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.addon-recommended {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Auto Top-off Confirmation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay[style*="display: flex"] {
    display: flex;
    pointer-events: auto;
}

.modal-container {
    background: white;
    border-radius: 0.75rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.decision-modal {
    max-width: 600px;
}

/* Decision Modal Header */
.decision-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
    border-radius: 0.75rem 0.75rem 0 0;
}

.decision-modal .modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.decision-modal .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.decision-modal .modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.decision-modal .modal-body {
    padding: 1.5rem;
}

.decision-modal .calculator-subtitle {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.decision-modal .calculator-form {
    margin-bottom: 1.5rem;
}

.calculator-question {
    margin-bottom: 1.5rem;
}

.question-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.radio-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.radio-text {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.help-text {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
}

.recommendation-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.recommendation-header h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.recommendation-description {
    margin-bottom: 1.5rem;
}

.recommendation-description h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
}

.recommendation-description ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.recommendation-description li {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.recommendation-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.recommendation-actions .cta-button {
    flex: 1;
    min-width: 120px;
}

/* How It Works Help Button */
.how-it-works-help-btn {
    background: none;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: all 0.2s;
    display: inline-block;
}

.how-it-works-help-btn:hover {
    background: var(--primary-blue);
    color: white;
}

/* Recommendation Result Styling */
.recommendation-highlight {
    background: linear-gradient(120deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.recommendation-benefits {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.recommendation-benefits li {
    padding: 0.5rem 0;
    color: var(--text-color);
}

/* First Month Pricing Highlight */
.first-month-highlight {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.first-month-price {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.first-month-label {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.first-month-note {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.price-breakdown {
    background: var(--background-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.price-warning {
    color: #dc2626 !important;
    font-weight: 600 !important;
}

.local-setup-fee {
    background: #fef2f2 !important;
    padding: 0.5rem !important;
    border-radius: 0.25rem !important;
    border-left: 3px solid #dc2626 !important;
}

.billing-note {
    font-size: 0.875rem;
    line-height: 1.4;
}

.billing-note-main {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.billing-note-local {
    color: #dc2626;
    background: #fef2f2;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border-left: 3px solid #dc2626;
    font-weight: 500;
}

/* Mobile responsiveness for pricing highlight */
@media (max-width: 768px) {
    .first-month-price {
        font-size: 2rem;
    }
    
    .first-month-highlight {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.modal-body {
    padding: 1.5rem;
}

.modal-text {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.modal-text:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-footer .cta-button {
    flex: 1;
    max-width: 200px;
}

.addon-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Coming Soon Pill */
.addon-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.coming-soon-pill {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}

/* Disabled addon state */
.addon-option.addon-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.addon-option.addon-disabled .addon-checkbox {
    pointer-events: none;
}

.addon-option.addon-disabled .checkmark {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.addon-option.addon-disabled .addon-description {
    color: #9ca3af;
}

.info-toggle {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.info-toggle:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.1);
}

.info-icon {
    line-height: 1;
}

.addon-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.addon-info {
    background: var(--primary-blue-light);
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.4;
    border-left: 3px solid var(--primary-blue);
}

.addon-price {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.875rem;
}

.topoff-options {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.topoff-amount .form-label {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .radio-group {
        flex-direction: row;
        gap: 1rem;
    }
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    transition: background-color 0.2s, border-color 0.2s;
}

.radio-option:hover {
    background: var(--primary-blue-light);
}

.radio-option.selected {
    background: var(--primary-blue-light);
    border-color: var(--primary-blue);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: var(--white);
    position: relative;
    transition: all 0.2s;
}

.radio-option input[type="radio"]:checked + .radio-mark {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
}

.radio-option input[type="radio"]:checked + .radio-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-content {
    max-width: 400px;
    margin: 0 auto;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.nav-link--signup {
    color: var(--primary-blue);
    font-weight: 600;
    background: transparent !important;
}

.nav-link--signup:hover {
    color: var(--primary-blue-hover) !important;
    background: transparent !important;
}

/* Onboarding Page Styles */
.onboarding-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--white) 100%);
    padding: 2rem 0;
}

.onboarding-container {
    max-width: 600px;
    margin: 0 auto;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 3rem;
}

.onboarding-headline {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.onboarding-subheadline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.setup-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.setup-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.setup-card h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.setup-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.next-steps,
.contact-info {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.next-steps h3,
.contact-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.steps-list {
    list-style: none;
    padding: 0;
}

.steps-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.steps-list li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: 600;
    position: absolute;
    left: 0;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.onboarding-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Onboarding Navigation Buttons */
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.5;
    min-width: 120px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .signup-container {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
    }
    
    .signup-headline {
        font-size: 1.75rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 0.5rem;
    }
    
    .form-group--half {
        margin-bottom: 0.5rem;
    }
    
    .addon-section {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .addon-option {
        margin-bottom: 0.75rem;
    }
    
    /* Improved auto top-off mobile layout */
    .addon-content {
        margin-bottom: 0.5rem;
    }
    
    .addon-name {
        font-size: 0.9rem;
        margin-bottom: 0.125rem;
        line-height: 1.2;
        display: block;
    }
    
    .addon-description {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        margin-top: 0.25rem;
    }
    
    .addon-recommended {
        font-size: 0.65rem;
        padding: 4px 8px;
        margin-left: 0;
        margin-bottom: 0;
        border-radius: 6px;
        display: inline-block;
        vertical-align: top;
        margin-top: 0.25rem;
    }
    
    .addon-content .addon-recommended {
        display: block;
        margin-top: 0.5rem;
        margin-left: 0;
        text-align: center;
    }
    
    .topoff-options {
        margin-top: 0.5rem;
        padding: 0.5rem;
        background: #f8fafc;
        border-radius: 0.375rem;
        border: 1px solid #e2e8f0;
    }
    
    .topoff-amount .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .radio-option {
        padding: 0.375rem 0.5rem;
        font-size: 0.85rem;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 0.25rem;
        margin-bottom: 0.125rem;
    }
    
    .radio-option:hover {
        background: #f0f9ff;
        border-color: #3b82f6;
    }
    
    .radio-option.selected {
        background: #f0f9ff;
        border-color: #3b82f6;
    }
    
    .radio-mark {
        width: 14px;
        height: 14px;
        border-width: 1.5px;
    }
    
    .radio-option input[type="radio"]:checked + .radio-mark::after {
        width: 5px;
        height: 5px;
    }
    
    /* Mobile addon checkbox improvements */
    .addon-checkbox {
        padding: 0.75rem;
        border-radius: 0.375rem;
        align-items: flex-start;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
        border-width: 1.5px;
        margin-top: 0.125rem;
        flex-shrink: 0;
    }
    
    .addon-checkbox input[type="checkbox"]:checked + .checkmark::after {
        font-size: 0.75rem;
    }
}

/* Confirmation Page Styles */
.confirmation-page {
    background: var(--light-bg);
    min-height: 100vh;
    padding: 2rem 0;
}

.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.confirmation-header {
    text-align: center;
    background: var(--white);
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirmation-headline {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.confirmation-subheadline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Email Verification Card - Modern Design */
.verification-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    margin: 2.5rem 0;
    text-align: center;
    color: var(--white);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.verification-card.verified-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.25);
}

.verification-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.verification-card h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.verification-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.verification-description {
    margin-bottom: 2.5rem !important;
}

.large-button {
    padding: 1rem 2.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    min-width: 250px;
}

.email-app-button {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-blue) !important;
    border: 2px solid transparent !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.email-app-button:hover {
    background: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.email-app-button .button-icon {
    font-size: 1.5rem;
}

.resend-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.resend-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.resend-section .secondary-button,
.resend-verification-button {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    display: inline-block;
    text-align: center;
    min-width: 200px;
}

.resend-section .secondary-button:hover,
.resend-verification-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Email display on password creation page */
.email-display {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.email-display strong {
    color: rgba(255, 255, 255, 1);
    margin-right: 0.5rem;
}

/* Confirmation card styling */
.confirmation-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.confirmation-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirmation-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.confirmation-message {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.status-message {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.95);
}

.cooldown-timer {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    display: none;
}

.verification-card .support-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.verification-card .support-link:hover {
    color: var(--white);
}

.confirmation-details {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.details-card {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    background: var(--light-bg);
}

.details-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.order-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-line:last-child {
    border-bottom: none;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 0 0;
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.bonus-line {
    background: linear-gradient(135deg, #f0f9ff, #dbeafe);
    border-left: 4px solid var(--success-color);
    padding: 0.75rem 1rem;
    margin: 0.5rem -1rem;
    border-radius: 0.5rem;
}

.bonus-line span {
    color: var(--success-color);
}

.intro-pricing-note {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
}

.special-pricing {
    color: #d97706 !important;
    font-weight: 600;
}

.special-pricing span {
    color: #d97706 !important;
}

.next-steps-section {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.next-steps-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-step {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    flex-wrap: nowrap !important;
}

.step-content {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: calc(100% - 4rem) !important;
}

.step-icon {
    font-size: 1.5rem !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: 3rem !important;
    height: 3rem !important;
    min-width: 3rem !important;
    max-width: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--primary-blue) !important;
    border-radius: 50% !important;
    color: var(--white) !important;
    margin: 0 !important;
    position: relative !important;
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    padding: 0;
    line-height: 1.2;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    padding: 0;
    line-height: 1.5;
}

.step-timing {
    font-size: 0.875rem;
    color: var(--primary-blue);
    font-weight: 500;
    margin: 0;
    padding: 0;
}

.important-info {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.important-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
}

.info-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.info-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

.verification-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.verification-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.verification-section p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.verification-status {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.verification-status.loading {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.verification-status.success {
    background: var(--success-color);
    color: var(--white);
}

.verification-status.error {
    background: var(--error-color);
    color: var(--white);
}

.contact-section {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-section > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.contact-option {
    background: var(--light-bg);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    flex: 1;
    min-width: 200px;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-white {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
}

.cta-white:hover {
    background: var(--light-bg);
    color: var(--primary-blue);
}

.secondary-button {
    background: var(--light-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.secondary-button:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Email Verification Banner - Dashboard */
.verification-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-left: 4px solid #1e40af;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.verification-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.verification-banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.verification-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.verification-banner-text strong {
    font-size: 1rem;
    font-weight: 600;
}

.verification-banner-text span {
    font-size: 0.875rem;
    opacity: 0.95;
}

.verification-banner-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.verification-banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.verification-banner-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.verification-banner-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .verification-banner-content {
        flex-wrap: wrap;
    }
    
    .verification-banner-text {
        flex-basis: 100%;
    }
    
    .verification-banner-btn {
        flex: 1;
    }
}

/* Mobile responsive styles for confirmation page */
@media (max-width: 768px) {
    .confirmation-container {
        padding: 0 0.5rem;
    }
    
    .confirmation-header {
        padding: 2rem 1.5rem;
    }
    
    .confirmation-headline {
        font-size: 2rem;
    }
    
    .verification-card {
        padding: 2.5rem 1.5rem;
        margin: 2rem 0;
    }
    
    .verification-card h2 {
        font-size: 1.75rem;
    }
    
    .verification-card p {
        font-size: 1rem;
    }
    
    .verification-icon-large {
        font-size: 3.5rem;
    }
    
    .large-button {
        min-width: 200px;
        padding: 0.875rem 2rem !important;
        font-size: 1rem !important;
    }
    
    .resend-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .confirmation-details,
    .next-steps-section,
    .important-info,
    .verification-section,
    .contact-section {
        padding: 1.5rem;
    }
    
    .timeline-step {
        flex-direction: column;
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        flex-direction: column;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .header,
    .sticky-cta,
    .modal {
        display: none;
    }
    
    .hero,
    .section {
        break-inside: avoid;
    }
}

/* Call Forwarding Instruction Styles */
.carrier-instructions {
    margin-top: 2rem;
}

.instruction-section {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.instruction-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.code-snippet {
    background: #1e293b;
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.code-snippet div {
    margin-bottom: 0.5rem;
}

.code-snippet div:last-child {
    margin-bottom: 0;
}

.forward-code,
.disable-code {
    background: #059669;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.instructions {
    color: var(--text-secondary);
    line-height: 1.6;
}

.instructions br {
    margin-bottom: 0.5rem;
}

.test-section {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.test-section h4 {
    color: #0369a1;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.test-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.test-section p:last-child {
    margin-bottom: 0;
}

/* Mid-page Call to Action Section */
.mid-cta-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 1rem;
    padding: 2rem 2.5rem;
    margin: 0rem 1.5rem 6rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.mid-cta-headline {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.mid-cta-benefits {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.6;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Better horizontal space usage on wider screens */
@media (min-width: 768px) {
    .mid-cta-benefits {
        max-width: 600px;
    }
}

@media (min-width: 1024px) {
    .mid-cta-benefits {
        max-width: 700px;
    }
}

.mid-cta-price {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.mid-cta-price strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.mid-cta-button {
    margin-bottom: 1rem;
}

.mid-cta-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Final Call to Action Section */
.final-cta-section {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.final-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.final-cta-description {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-urgency {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.final-cta-button {
    margin-top: 2rem;
}

.cta-large {
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: var(--background-light);
}

/* Mobile responsive adjustments for CTA sections */
@media (max-width: 768px) {
    .mid-cta-section {
        padding: 1.5rem 1.5rem;
        margin: 0rem 1rem 4rem 1rem;
    }
    
    .mid-cta-headline {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .mid-cta-price {
        font-size: 1.25rem;
    }
    
    .final-cta-content h2 {
        font-size: 2rem;
    }
    
    .final-cta-description {
        font-size: 1.1rem;
    }
    
    .cta-large {
        font-size: 1.1rem;
        padding: 0.875rem 2rem;
        width: 90%;
        max-width: 300px;
    }
}

/* Loading overlay styles */
#loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    z-index: 9999 !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
}

#loading-overlay.active {
    display: flex !important;
}

.loading-spinner {
    text-align: center;
    color: #2563eb;
}

.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Global spinner animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Loading spinner for page transitions */
.loading-spinner-circle {
    animation: spin 1s linear infinite !important;
}

.loading-message {
    font-size: 18px;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

/* Calculator CTA Sections */
.hero__calculator-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.pre-pricing-calculator-section {
    margin-top: 3rem;
}

.pre-pricing-calculator-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.bottom-calculator-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    padding: 3rem 0;
    margin-top: 3rem;
}

.calculator-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.calculator-teaser {
    margin-bottom: 1.5rem;
}

.calculator-teaser__text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.calculator-teaser__subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.cta-button--secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.cta-button--secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button--outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.cta-button--outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Calculator Modal */
.calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
}

.calculator-modal .modal__container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    /* Hide scrollbar for WebKit browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.calculator-modal .modal__container::-webkit-scrollbar {
    display: none; /* WebKit browsers */
}

.calculator-modal .modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.calculator-modal .modal__header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.calculator-modal .modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-modal .modal__close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.calculator-modal .modal__body {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .calculator-layout.desktop-compact ~ .modal__body,
    .desktop-compact .modal__body {
        padding: 1.5rem 1.5rem 1rem;
    }
}

.calculator-content {
    padding: 0;
}

.calculator-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .calculator-modal .calculator-content .calculator-intro {
        display: none;
    }
    
    .calculator-layout.desktop-compact {
        gap: 1rem;
    }
    
    .desktop-compact .calculator-bottom-layout {
        gap: 1.5rem;
    }
}

.calculator-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .calculator-layout {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .calculator-layout.desktop-compact {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.calculator-inputs-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .calculator-inputs-column {
        gap: 1.25rem;
    }
}

.calculator-results-column {
    display: flex;
    flex-direction: column;
}

.calculator-inputs {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .calculator-inputs {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .desktop-compact .calculator-inputs {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
        padding: 1.5rem;
        border-radius: 8px;
        border: 1px solid rgba(37, 99, 235, 0.1);
    }
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-wrapper input {
    padding-left: 2rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.calculator-results {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.calculator-results h3 {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.result-scenarios {
    display: grid;
    gap: 1rem;
}

.scenario {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.scenario-rate {
    font-weight: 500;
    color: var(--text-secondary);
}

.scenario-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.calculator-insight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

@media (min-width: 768px) {
    .calculator-insight {
        padding: 1.25rem;
    }
    
    .desktop-compact .calculator-insight {
        padding: 1rem;
    }
    
    .desktop-compact .insight-text {
        font-size: 1rem;
    }
    
    .desktop-compact .insight-subtext {
        font-size: 0.85rem;
    }
}

.calculator-bottom-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .calculator-bottom-layout {
        grid-template-columns: 1.5fr 1fr;
        gap: 2rem;
    }
}

.calculator-cta-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .desktop-compact .calculator-results {
        margin-bottom: 0;
    }
    
    .desktop-compact .calculator-results h3 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    .desktop-compact .scenario {
        padding: 0.75rem;
    }
    
    .desktop-compact .scenario-rate {
        font-size: 0.9rem;
    }
    
    .desktop-compact .scenario-value {
        font-size: 1.1rem;
    }
}

.insight-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.insight-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 0;
}

.calculator-cta {
    text-align: center;
}

.calculator-cta .cta-subtext {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Enhanced Calculator Modal CTA Button */
.calculator-modal .cta-button {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    overflow: hidden;
    text-align: center;
    min-width: 200px;
}

.calculator-modal .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.calculator-modal .cta-button:hover::before {
    left: 100%;
}

.calculator-modal .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1e40af 0%, var(--primary-blue) 100%);
}

@media (min-width: 768px) {
    .calculator-modal .cta-button {
        font-size: 1.25rem;
        padding: 1.25rem 2.5rem;
        min-width: 250px;
    }
}

/* Mobile Responsiveness for Calculator */
@media (max-width: 768px) {
    .calculator-modal {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }
    
    .scenario {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .scenario-value {
        font-size: 1.25rem;
    }
    
    .calculator-teaser__text {
        font-size: 1rem;
    }
    
    .hero__calculator-cta {
        margin-top: 1.5rem;
        padding: 1.5rem;
    }
}

/* ===== LEAD MAGNET MODAL ===== */
.lead-magnet-modal {
    z-index: 10000;
    pointer-events: none;
}

.lead-magnet-modal[style*="display: flex"] {
    pointer-events: auto;
}

.lead-magnet-modal .modal-container {
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden; /* Hide scroll on container to preserve rounded corners */
    display: flex;
    flex-direction: column;
    margin: auto;
}

/* Ensure modal starts at top on mobile */
@media (max-width: 768px) {
    .lead-magnet-modal {
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .lead-magnet-modal .modal-container {
        margin-top: 0;
        width: 95%;
        max-height: calc(100vh - 40px);
    }
}

/* Create scrollable area inside modal content */
.lead-magnet-modal .modal-content {
    overflow-y: auto;
    max-height: calc(90vh - 60px); /* Account for header space */
    padding-right: 8px; /* Space for custom scrollbar */
}

/* Custom scrollbar for lead magnet modal */
.lead-magnet-modal .modal-content::-webkit-scrollbar {
    width: 6px;
}

.lead-magnet-modal .modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.lead-magnet-modal .modal-content::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 10px;
}

.lead-magnet-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
}

/* Lead magnet close button styling */
.lead-magnet-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive adjustments for lead magnet close button */
@media (max-width: 768px) {
    .lead-magnet-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 18px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 480px) {
    .lead-magnet-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

.lead-magnet-close:hover {
    background: rgba(255, 255, 255, 1);
    color: #374151;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lead-magnet-close:active {
    transform: scale(0.95);
}

.lead-magnet-content {
    text-align: center;
    padding: 0 8px;
}

.lead-magnet-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.lead-magnet-headline {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.lead-magnet-subheadline {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.lead-magnet-benefits {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin: 12px 0;
    font-size: 14px;
}

.benefit-icon {
    color: #059669;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
    line-height: 1.4;
    margin-top: 1px;
}

.benefit-text {
    color: #374151;
    line-height: 1.4;
}

.lead-magnet-form {
    margin: 24px 0;
}

.lead-magnet-form .form-group {
    margin-bottom: 16px;
}

.lead-magnet-form .form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.lead-magnet-form .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.lead-magnet-submit {
    width: 100%;
    position: relative;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    margin: 0 0 16px 0;
}

.lead-magnet-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lead-magnet-disclaimer {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.lead-magnet-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.success-headline {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
    margin: 0 0 12px 0;
}

.success-message {
    font-size: 16px;
    color: #374151;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.success-next-step {
    font-size: 16px;
    color: #374151;
    margin: 0 0 24px 0;
    line-height: 1.5;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .lead-magnet-modal .modal-container {
        width: 95%;
        margin: 20px auto;
    }
    
    .lead-magnet-headline {
        font-size: 24px;
    }
    
    .lead-magnet-subheadline {
        font-size: 15px;
    }
    
    .benefit-item {
        font-size: 13px;
    }
}

/* ===== END LEAD MAGNET MODAL ===== */

/* ===== LEAD MAGNET CTA SECTION ===== */
.lead-magnet-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.lead-magnet-cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.lead-magnet-cta-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
}

.lead-magnet-cta-headline {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.lead-magnet-cta-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.lead-magnet-cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.lead-magnet-cta-benefits li {
    display: flex;
    align-items: center;
    margin: 16px 0;
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

.lead-magnet-cta-benefits li::before {
    content: none; /* Remove default list styling */
}

.lead-magnet-cta-button {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 18px 36px;
    margin: 0 0 20px 0;
    min-width: 200px;
}

.lead-magnet-cta-disclaimer {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .lead-magnet-cta-section {
        padding: 60px 0;
    }
    
    .lead-magnet-cta-content {
        margin: 0 20px;
        padding: 40px 24px;
    }
    
    .lead-magnet-cta-headline {
        font-size: 1.875rem;
    }
    
    .lead-magnet-cta-subtitle {
        font-size: 1rem;
    }
    
    .lead-magnet-cta-icon {
        font-size: 48px;
        margin-bottom: 20px;
    }
    
    .lead-magnet-cta-benefits {
        margin-bottom: 32px;
    }
    
    .lead-magnet-cta-benefits li {
        font-size: 0.9rem;
        margin: 12px 0;
    }
}

/* ===== END LEAD MAGNET CTA SECTION ===== */


/* Coupon Input Styles */
.coupon-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.coupon-apply-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.coupon-apply-btn:hover {
    background: #2563eb;
}

.coupon-apply-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.coupon-status {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

.coupon-status.success {
    color: #059669;
}

.coupon-status.error {
    color: #dc2626;
}

.coupon-discount {
    margin-top: 8px;
    padding: 12px;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-weight: 600;
}

.coupon-discount-details {
    font-size: 14px;
    margin-top: 4px;
    font-weight: 400;
    color: #374151;
}

/* ===== LOW CREDIT ALERT BAR - REMOVED TO PREVENT CONFLICTS ===== */
/* All alert styles moved to dashboard.php inline CSS for single source of truth */

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .alert-content {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .alert-icon {
        font-size: 1.25rem;
    }
    
    .alert-message {
        font-size: 0.85rem;
        min-width: 180px;
    }
    
    .alert-actions {
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .topoff-select {
        background: white !important;
        color: #dc2626 !important;
        border: 2px solid white !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        padding: 8px 12px !important;
        min-width: 140px !important;
        flex: 0 0 auto !important;
    }
    
    .topoff-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
    .low-credit-alert-bar {
        padding: 0.75rem 0.5rem;
        text-align: center;
    }
    
    .alert-content {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .alert-icon {
        align-self: center;
        margin-bottom: 0.25rem;
    }
    
    .alert-message {
        text-align: center;
        min-width: unset;
        width: 100%;
    }
    
    .alert-actions {
        flex-direction: row;
        width: 100%;
        margin-top: 0;
        justify-content: center;
    }
    
    .topoff-select {
        background: white !important;
        color: #dc2626 !important;
        border: 2px solid white !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        padding: 10px 12px !important;
        min-width: 140px !important;
    }
    
    .topoff-btn {
        font-size: 14px;
        padding: 10px 16px;
        min-width: 100px;
    }
}

/* ===== END LOW CREDIT ALERT BAR =====*/

/* ===== TOP OFF CREDITS MODAL ===== */
/* Fix the case sensitivity issue - modal ID is topOffModal not topoffModal */
#topOffModal {
    touch-action: manipulation; /* Prevent mobile zoom on touch */
}

#topOffModal .modal-content {
    max-height: 90vh;
    overflow: hidden; /* Prevent entire modal from scrolling */
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

#topOffModal .modal-header {
    flex-shrink: 0; /* Header doesn't shrink */
    border-bottom: 1px solid #e5e7eb;
}

#topOffModal .modal-body {
    flex: 1;
    overflow-y: auto; /* Only the body scrolls */
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Mobile specific fixes for topoff modal */
@media (max-width: 768px) {
    #topOffModal {
        align-items: flex-start;
        padding: 20px;
        overflow-y: hidden; /* Prevent body scroll when modal is open */
    }
    
    #topOffModal .modal-content {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
        margin: 0;
        position: relative;
    }
    
    #topOffModal .modal-body {
        overflow-y: auto;
        max-height: calc(100vh - 120px); /* Account for header */
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain; /* Prevent scroll chaining */
    }
    
    /* Prevent background scroll on mobile when modal is open */
    body.modal-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        overflow: hidden;
    }
}

/* Extra small mobile - make it fullscreen-like but still scrollable */
@media (max-width: 480px) {
    #topOffModal {
        padding: 10px;
    }
    
    #topOffModal .modal-content {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 0.5rem;
    }
    
    #topOffModal .modal-body {
        padding: 0.75rem;
        max-height: calc(100vh - 100px);
    }
}

/* Custom scrollbar for topoff modal */
#topOffModal .modal-body::-webkit-scrollbar {
    width: 6px;
}

#topOffModal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

#topOffModal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.5);
    border-radius: 10px;
}

#topOffModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.7);
}

/* Quick payment section styles */
.quick-pay-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 0.75rem;
    position: relative;
}

.quick-pay-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.quick-pay-header h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.saved-method-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
}

.card-brand {
    font-weight: 600;
    color: var(--primary-blue);
}

.card-last4 {
    font-family: monospace;
    color: var(--text-secondary);
}

.card-expires {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.quick-pay-actions {
    text-align: center;
}

.quick-pay-btn {
    width: 100%;
    margin-bottom: 0.75rem;
    background: var(--primary-blue);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-pay-btn:hover:not(:disabled) {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
}

.quick-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.quick-pay-note {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Mobile responsive quick pay */
@media (max-width: 768px) {
    .quick-pay-section {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .saved-method-info {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem;
    }
    
    .quick-pay-header h4 {
        font-size: 1rem;
    }
}

/* Compact balance display in modal header */
.current-balance-compact {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: var(--primary-blue-light);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    white-space: nowrap;
}

/* ===== END TOP OFF CREDITS MODAL =====*/

/* ===== LOCAL VS. TOLL-FREE COMPARISON SECTION ===== */

/* Number comparison section */
.number-comparison {
    margin: 4rem 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.number-comparison .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.number-comparison .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.number-comparison .section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    margin: 0 auto;
    max-width: fit-content;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.trust-icon {
    font-size: 1.25rem;
}

.trust-text {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Comparison grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.comparison-column {
    background: white;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

.comparison-column:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.comparison-column.toll-free.recommended {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.comparison-column.local {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
}

.comparison-column.either-way {
    border-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff 0%, #f1f5f9 100%);
}

.column-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.column-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.recommended-badge {
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-features {
    list-style: none;
    padding: 0;
}

.comparison-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.comparison-features li:last-child {
    margin-bottom: 0;
}

/* Decision Calculator */
.decision-calculator {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    border: 2px solid #e2e8f0;
    margin-top: 2rem;
}

.calculator-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 0.5rem;
}

.calculator-subtitle {
    font-size: 1rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-form {
    max-width: 600px;
    margin: 0 auto;
}

.calculator-question {
    margin-bottom: 2rem;
}

.question-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    transition: all 0.2s ease;
    flex: 1;
}

.radio-option:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.radio-option input[type="radio"] {
    margin: 0;
    width: 1rem;
    height: 1rem;
}

.radio-option input[type="radio"]:checked {
    accent-color: #2563eb;
}

.radio-option:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.radio-text {
    font-weight: 500;
    color: #1e293b;
}

.help-text {
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
    margin-top: 0.25rem;
}

.calculator-submit {
    display: block;
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 2rem auto 0;
    opacity: 0.5;
}

.calculator-submit:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.calculator-submit:not(:disabled):hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Calculator Results */
.calculator-result {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 1rem;
}

.result-description {
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.result-note {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
    margin-bottom: 0;
}

/* Pricing footnote styling */
.pricing-footnote {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .number-comparison {
        margin: 2rem 0;
        padding: 2rem 1rem;
    }
    
    .number-comparison .section-title {
        font-size: 1.5rem;
    }
    
    .number-comparison .section-subtitle {
        font-size: 1rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .comparison-column {
        padding: 1.5rem 1rem;
    }
    
    .decision-calculator {
        padding: 1.5rem;
    }
    
    .calculator-title {
        font-size: 1.25rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .radio-option {
        justify-content: center;
        text-align: center;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .trust-badge {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .number-comparison .section-title {
        font-size: 1.25rem;
    }
    
    .comparison-column {
        padding: 1rem;
    }
    
    .decision-calculator {
        padding: 1rem;
    }
    
    .calculator-submit {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ===== END LOCAL VS. TOLL-FREE COMPARISON ===== */
.inline-signup-btn { display: inline-block !important; background: #3b82f6 !important; color: white !important; padding: 8px 16px !important; border-radius: 20px !important; text-decoration: none !important; font-weight: 600 !important; font-size: 14px !important; margin: 4px 8px !important; transition: all 0.2s ease !important; border: none !important; cursor: pointer !important; } .inline-signup-btn:hover { background: #2563eb !important; transform: translateY(-1px) !important; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important; } .inline-signup-btn:active { transform: translateY(0) !important; }

/* ===== DEMO MODAL MESSAGE ALIGNMENT - PRODUCTION FIX ===== */
/* APPLIES TO ALL SCREEN SIZES - No media query restrictions */

/* Remove container right padding */
#demo-modal .modal__chat,
#demo-modal #chat-messages {
    padding-right: 0 !important;
    overflow-y: scroll !important;
    scrollbar-width: thin !important;
}

/* Thin scrollbar styling */
#demo-modal .modal__chat::-webkit-scrollbar,
#demo-modal #chat-messages::-webkit-scrollbar {
    width: 8px !important;
}

#demo-modal .modal__chat::-webkit-scrollbar-thumb,
#demo-modal #chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 10px !important;
}

/* User message container: full width to enable right alignment */
#demo-modal #chat-messages .message.user {
    max-width: 100% !important;
    width: 100% !important;
    margin-right: 0 !important;
    padding-right: 1rem !important;
    display: flex !important;
    justify-content: flex-end !important;
}

/* User message bubble: 80% max-width to match AI messages, right-aligned */
#demo-modal #chat-messages .message.user .message-content {
    max-width: 80% !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    padding: 0.875rem 1.125rem !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
}

/* AI messages: keep left padding */
#demo-modal #chat-messages .message.ai {
    padding-left: 1rem !important;
    justify-content: flex-start !important;
}

/* Payment Methods Indicator */
.payment-methods-indicator {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.payment-methods-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 500;
}

.payment-methods-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-icon {
    height: 28px;
    width: auto;
    max-width: 48px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease;
}

.payment-icon:hover {
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .payment-methods-indicator {
        padding: 12px;
        margin: 15px 0;
    }
    
    .payment-methods-label {
        font-size: 0.8125rem;
    }
    
    .payment-icon {
        height: 24px;
        max-width: 42px;
    }
}

/* ============================================
   ENHANCED MOBILE SIGNUP/PAYMENT OPTIMIZATIONS
   ============================================ */

/* Mobile signup form enhancements */
@media (max-width: 768px) {
    /* Stripe Payment Element mobile container */
    #payment-element {
        padding: 0;
        margin: 0 -4px;
    }
    
    /* Form inputs - prevent iOS zoom */
    .signup-form .form-control,
    .signup-form input[type="text"],
    .signup-form input[type="email"],
    .signup-form input[type="password"],
    .signup-form input[type="tel"],
    .signup-form select {
        font-size: 16px !important;
        padding: 14px 16px;
        min-height: 52px;
        border-radius: 8px;
    }
    
    /* Submit button - large touch target */
    .signup-form .btn-primary,
    .signup-form button[type="submit"] {
        min-height: 56px;
        padding: 16px 24px;
        font-size: 18px;
        font-weight: 600;
        width: 100%;
        touch-action: manipulation;
    }
    
    /* Plan tabs mobile optimization */
    .plan-tabs {
        gap: 8px;
    }
    
    .plan-tab {
        padding: 12px 8px;
        min-height: 80px;
    }
    
    .plan-tab-name {
        font-size: 14px;
    }
    
    .plan-tab-price {
        font-size: 12px;
    }
    
    .plan-tab-regular {
        font-size: 10px;
    }
    
    /* Plan features mobile */
    .plan-feature {
        padding: 10px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .feature-text {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .feature-help {
        min-width: 24px;
        min-height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Password creation section */
    .password-section {
        padding: 16px;
    }
    
    .password-section input[type="password"] {
        font-size: 16px;
        padding: 14px 16px;
        min-height: 52px;
    }
    
    /* Addon options mobile */
    .addon-option {
        padding: 14px;
        min-height: 52px;
    }
    
    .addon-checkbox {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }
    
    /* Terms checkbox mobile */
    .terms-checkbox,
    .consent-checkbox {
        min-height: 52px;
        padding: 12px;
    }
    
    .terms-checkbox input[type="checkbox"],
    .consent-checkbox input[type="checkbox"] {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }
    
    /* Error messages mobile */
    .form-error,
    .error-message {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    /* Signup header mobile */
    .signup-header {
        padding: 20px 16px;
        text-align: center;
    }
    
    .signup-headline {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .signup-subheadline {
        font-size: 14px;
    }
}

/* Extra small screens (iPhone SE, etc) */
@media (max-width: 375px) {
    .signup-container {
        padding: 16px 12px;
        margin: 0 8px;
    }
    
    .signup-headline {
        font-size: 20px;
    }
    
    .plan-tab {
        padding: 10px 6px;
        min-height: 72px;
    }
    
    .plan-tab-name {
        font-size: 13px;
    }
    
    .plan-tab-badge {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    .signup-form .btn-primary {
        font-size: 16px;
        padding: 14px 20px;
    }
    
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 12px 14px;
    }
}

/* ===== COMPREHENSIVE MOBILE OPTIMIZATION ===== */
/* Master mobile styles to fix viewport, centering, and padding issues */

/* Modal scroll locking - simple overflow approach to preserve scroll position */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
}

body.modal-open .main-content-wrapper {
    overflow: hidden !important;
}

/* Mobile viewport fix - ensure proper sizing */
@media (max-width: 768px) {
    /* Root viewport fixes */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    body {
        width: 100%;
        min-width: 320px;
        overflow-x: hidden;
    }
    
    /* Container centering and padding fix */
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    /* Hero section mobile fixes */
    .hero {
        padding: 1.5rem 0 2.5rem 0;
        text-align: center;
    }
    
    .hero__content {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
    }
    
    .hero__headline {
        font-size: 1.75rem;
        margin: 1.5rem 0;
        padding: 0.5rem 0;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero__headline--main,
    .hero__headline--accent {
        display: block;
        text-align: center;
    }
    
    .hero__subtitle {
        font-size: 1rem;
        margin: 1rem auto 1.5rem auto;
        padding: 0.75rem 1rem;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .hero__subheadline {
        font-size: 1rem;
        text-align: center;
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .hero__subheadline p {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* CTA buttons mobile */
    .hero__cta {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero__cta .cta-button {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }
    
    .hero__cta-subtext {
        text-align: center;
        font-size: 0.875rem;
        margin-top: 0.75rem;
        padding: 0 1rem;
    }
    
    /* Phone mockup mobile */
    .hero__visual {
        margin: 2rem auto;
        max-width: 280px;
    }
    
    .hero__phone-mockup {
        margin: 0 auto;
    }
    
    /* Calculator CTA mobile */
    .hero__calculator-cta {
        text-align: center;
        padding: 1rem 0;
    }
    
    .calculator-teaser {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .calculator-teaser__text {
        font-size: 1rem;
    }
    
    .calculator-teaser__subtitle {
        font-size: 0.875rem;
    }
    
    /* Video CTA mobile */
    .hero__video-cta {
        text-align: center;
        margin: 1.5rem 0;
    }
    
    .video-cta-button {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        justify-content: center;
    }
    
    /* Section headings mobile */
    section h2,
    .section-title {
        text-align: center;
        padding: 0 1rem;
    }
    
    /* Features section mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .feature-card {
        text-align: center;
        padding: 1.5rem;
    }
    
    /* Pricing section mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* FAQ section mobile */
    .faq-item {
        padding: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding-right: 2rem;
    }
    
    .faq-answer {
        font-size: 0.9375rem;
    }
    
    /* Footer mobile */
    .footer__content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer__links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Pre-pricing calculator section mobile */
    .pre-pricing-calculator-section {
        padding: 2rem 0;
    }
    
    .pre-pricing-calculator-cta {
        text-align: center;
        padding: 1.5rem;
    }
    
    /* Lead magnet CTA section mobile */
    .lead-magnet-cta-section {
        padding: 3rem 0;
    }
    
    .lead-magnet-cta-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .lead-magnet-cta-headline {
        font-size: 1.5rem;
    }
    
    .lead-magnet-cta-benefits {
        text-align: left;
        padding-left: 0;
    }
    
    .lead-magnet-cta-benefits li {
        margin-bottom: 0.5rem;
    }
    
    /* Story section mobile */
    .story-section {
        padding: 2.5rem 0;
    }
    
    .story-content {
        padding: 0;
    }
    
    /* How it works section mobile */
    .how-it-works {
        padding: 2.5rem 0;
    }
    
    .steps-container {
        gap: 1.5rem;
    }
    
    .step-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    /* Mid CTA section mobile */
    .mid-cta-section {
        padding: 2rem 0;
    }
    
    .mid-cta-content {
        text-align: center;
        padding: 1.5rem;
    }
}

/* Extra small mobile (375px and below) */
@media (max-width: 375px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .hero__headline {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
    
    .hero__subtitle {
        font-size: 0.9375rem;
        padding: 0.625rem 0.875rem;
    }
    
    .hero__subheadline {
        font-size: 0.9375rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .hero__cta .cta-button {
        max-width: 100%;
    }
    
    .hero__visual {
        max-width: 240px;
    }
    
    section h2 {
        font-size: 1.375rem;
    }
    
    .feature-card,
    .pricing-card,
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .lead-magnet-cta-content {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .lead-magnet-cta-headline {
        font-size: 1.25rem;
    }
}

/* Landscape mobile fix */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding: 1rem 0 2rem 0;
    }
    
    .hero__headline {
        font-size: 1.5rem;
        margin: 0.75rem 0;
    }
    
    .hero__visual {
        display: none;
    }
}

/* ===== END COMPREHENSIVE MOBILE OPTIMIZATION =====
