/**
 * Public Booking Page Styles
 * Calendly-style booking experience
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Display Size Variables - Default (1x) */
    --display-scale: 1;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --touch-target: 44px;
}

/* Display Size: Large (1.15x) */
body.display-large {
    --display-scale: 1.15;
    --text-xs: 14px;
    --text-sm: 16px;
    --text-base: 18px;
    --text-lg: 21px;
    --text-xl: 23px;
    --text-2xl: 28px;
    --text-3xl: 35px;
    --touch-target: 50px;
}

/* Display Size: Extra Large (1.3x) */
body.display-xlarge {
    --display-scale: 1.3;
    --text-xs: 16px;
    --text-sm: 18px;
    --text-base: 21px;
    --text-lg: 24px;
    --text-xl: 26px;
    --text-2xl: 32px;
    --text-3xl: 40px;
    --touch-target: 58px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

/* App Container */
.booking-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Loading State */
.booking-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* Error State */
.booking-error {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
}

.booking-error .error-icon {
    color: var(--error-color);
    margin-bottom: 16px;
}

.booking-error h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.booking-error > p {
    max-width: 480px;
    margin-bottom: 32px;
}

.error-cta-section {
    width: 100%;
    max-width: 480px;
    margin-top: 48px;
}

.error-divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.error-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.error-divider span {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.error-cta-content {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
}

.error-cta-content h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.error-cta-content > p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

.error-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

.error-cta-button svg {
    flex-shrink: 0;
}

.error-cta-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Main Container */
.booking-container {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px;
    width: 100%;
}

/* Hero Section */
.booking-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 32px;
    min-height: 200px;
}

.booking-hero.has-image {
    background: none;
}

.booking-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.booking-hero-content {
    position: relative;
    z-index: 1;
    padding: 32px 24px;
    color: white;
    text-align: center;
}

.booking-hero .business-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: white;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.booking-hero .business-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-hero .business-logo-text {
    color: var(--primary-color);
}

.booking-hero .business-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.booking-hero .business-description {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin-bottom: 20px;
}

.booking-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.booking-hero-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.booking-hero-cta svg {
    width: 20px;
    height: 20px;
}

/* Theme Banner */
.theme-banner {
    background: linear-gradient(90deg, #f97316, #ec4899, #8b5cf6);
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

/* Header Bar (horizontal left-aligned) */
.booking-header-bar {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.header-brand:hover {
    opacity: 0.8;
}

.header-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-logo-text {
    color: white;
}

.header-text {
    flex: 1;
    min-width: 0;
}

.header-business-name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.header-tagline {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Expert Profile in Header */
.header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

/* When profile replaces the brand row (sole header element) */
.header-profile.header-profile-primary {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    gap: 16px;
}

.header-profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
}

.header-profile-primary .header-profile-avatar {
    width: 56px;
    height: 56px;
}

.header-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-profile-info {
    flex: 1;
    min-width: 0;
}

.header-profile-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.header-profile-primary .header-profile-name {
    font-size: var(--text-xl);
    font-weight: 700;
}

.header-profile-bio {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.header-profile-primary .header-profile-bio {
    font-size: var(--text-sm);
    margin-top: 4px;
}

/* Timezone Indicator */
.timezone-indicator {
    font-size: 13px;
    color: var(--text-muted);
    margin: -8px 0 16px 0;
}

/* Display Size Toggle */
.display-size-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 0 0 0;
    margin-top: 12px;
    border-top: 1px solid var(--border-color);
}

.display-size-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.display-size-label svg {
    width: 14px;
    height: 14px;
}

.display-size-buttons {
    display: flex;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 2px;
}

.display-size-btn {
    padding: 6px 12px;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
}

.display-size-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.display-size-btn.active {
    background: var(--bg-white);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Mobile responsive for display toggle */
@media (max-width: 480px) {
    .display-size-toggle {
        justify-content: center;
    }

    .display-size-label {
        display: none;
    }

    .display-size-btn {
        padding: 8px 14px;
        font-size: var(--text-sm);
    }
}

/* Success Header Bar (horizontal layout matching main header) */
.success-header-bar {
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .header-brand {
        gap: 12px;
    }

    .header-logo {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .header-business-name {
        font-size: 18px;
    }

    .header-tagline {
        font-size: 13px;
    }
}

/* Compact Hero */
.booking-hero.compact {
    min-height: auto;
    margin-bottom: 16px;
}

.booking-hero.compact .booking-hero-content {
    padding: 20px;
}

.booking-hero.compact .business-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    font-size: 24px;
}

.booking-hero.compact .business-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Chat Modal */
.chat-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.chat-modal {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 90vh;
    max-height: 800px;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.chat-modal-close {
    /* Hidden - iframe has its own close button in widget-controls header */
    display: none;
}

.chat-modal-close:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}

.chat-modal-close svg {
    width: 20px;
    height: 20px;
    color: #374151;
}

.chat-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 480px) {
    .chat-modal {
        max-width: 100%;
        height: 90vh;
        max-height: none;
        border-radius: var(--radius-lg);
    }
}

/* Compact Scheduling Card */
.scheduling-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.scheduling-card.compact {
    padding: 20px;
}

.scheduling-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

/* Booking Options (side-by-side buttons) */
.booking-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.booking-option-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.booking-option-btn.primary {
    background: var(--primary-color);
    color: white;
}

.booking-option-btn.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.booking-option-btn.secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.booking-option-btn.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.booking-option-btn svg {
    width: 18px;
    height: 18px;
}

.booking-options-divider {
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 480px) {
    .booking-options {
        flex-direction: column;
        gap: 8px;
    }

    .booking-option-btn {
        width: 100%;
        justify-content: center;
    }

    .booking-options-divider {
        display: none;
    }
}

/* Booking Mode Toggle */
.booking-mode-toggle {
    display: flex;
    gap: 12px;
}

.booking-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.booking-mode-btn:hover:not(.selected) {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.04);
}

.booking-mode-btn.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
    cursor: default;
}

.booking-mode-btn .mode-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border-color);
    color: white;
    flex-shrink: 0;
    transition: all 0.2s;
}

.booking-mode-btn .mode-check svg {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}

.booking-mode-btn.selected .mode-check {
    background: var(--primary-color);
}

.booking-mode-btn.selected .mode-check svg {
    opacity: 1;
    transform: scale(1);
}

.booking-mode-btn .mode-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color 0.2s;
}

.booking-mode-btn.selected .mode-icon {
    color: var(--primary-color);
}

.booking-mode-btn .mode-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .booking-mode-toggle {
        flex-direction: column;
        gap: 8px;
    }

    .booking-mode-btn {
        justify-content: flex-start;
    }
}

/* Divider */
.booking-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.booking-divider::before,
.booking-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Business Header (legacy fallback) */
.booking-header {
    text-align: center;
    margin-bottom: 32px;
}

.business-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 700;
    overflow: hidden;
}

.business-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.business-description {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Step Indicator */
.booking-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.step.active {
    color: var(--primary-color);
}

.step.completed {
    color: var(--success-color);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 13px;
    font-weight: 500;
    display: none;
}

@media (min-width: 480px) {
    .step-label {
        display: inline;
    }
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border-color);
}

/* Booking Steps */
.booking-step {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.booking-step h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.booking-step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Back Button */
.back-button {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
}

.back-button:hover {
    color: var(--primary-hover);
}

/* Step Header Row - Back button + Share button */
.step-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.step-header-row .back-button {
    margin-bottom: 0;
}

/* Share Link Button */
.share-link-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.share-link-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.share-link-btn svg {
    flex-shrink: 0;
}

/* Service List - Grid Layout */
.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 640px) {
    .service-list {
        grid-template-columns: 1fr;
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-white);
    position: relative;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.service-card.selected {
    border-color: var(--primary-color);
    border-width: 2px;
    background: rgba(99, 102, 241, 0.02);
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.service-color {
    width: 4px;
    height: 48px;
    border-radius: 2px;
    flex-shrink: 0;
}

.service-info {
    flex: 1;
    min-width: 0;
}

.service-name {
    font-weight: 600;
    font-size: var(--text-base);
    margin-bottom: 4px;
    color: var(--text-primary);
}

.service-meta {
    display: flex;
    gap: 8px;
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.service-meta span:not(:last-child)::after {
    content: '•';
    margin-left: 8px;
    color: var(--text-muted);
}

.service-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 8px;
}

.service-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.service-card:hover .service-arrow {
    opacity: 1;
}

/* Selected Service Display */
.selected-service {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.selected-service .service-color {
    height: 32px;
}

.selected-service .service-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 0;
}

.selected-service .service-meta {
    font-size: 12px;
}

/* Calendar - Side-by-Side Layout */
.calendar-time-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .calendar-time-wrapper {
        grid-template-columns: 1fr;
    }
}

.calendar-container {
    margin-bottom: 24px;
}

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

.calendar-nav-group {
    display: flex;
    gap: 8px;
}

.calendar-month {
    font-weight: 600;
    font-size: 18px;
}

.calendar-nav {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.calendar-nav:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.calendar-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    background: none;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: var(--bg-light);
}

.calendar-day.today {
    border-color: var(--primary-color);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-day.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.has-slots::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.calendar-day.selected::after {
    background: white;
}

.calendar-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

.calendar-legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Time Slots - Side Panel */
.time-slots-container {
    padding: 0;
    border: none;
}

.time-slots-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.time-slots-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    min-height: 200px;
}

.time-slots-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.time-slot {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    font-size: var(--text-sm);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-slot:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.02);
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.no-slots {
    text-align: center;
    color: var(--text-secondary);
    padding: 24px;
}

/* Chat with AI CTA Bar */
.chat-ai-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-top: 24px;
}

.chat-ai-cta-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-ai-cta-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-ai-cta-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.chat-ai-cta-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.chat-ai-cta-text p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.chat-ai-cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chat-ai-cta-button:hover {
    background: var(--primary-hover);
}

@media (max-width: 640px) {
    .chat-ai-cta {
        flex-direction: column;
        text-align: center;
    }

    .chat-ai-cta-content {
        flex-direction: column;
    }

    .chat-ai-cta-button {
        width: 100%;
    }
}

/* Booking Summary Card - Compact Design */
.booking-summary-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.summary-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.summary-card-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.summary-card-item:last-child {
    margin-bottom: 0;
}

.summary-card-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.summary-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-service-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.summary-datetime {
    font-size: 14px;
    color: var(--primary-color);
}

.summary-duration {
    font-size: 14px;
    color: var(--text-secondary);
    align-items: center;
}

/* Your Information Card */
.info-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.info-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Required asterisk */
.form-group label .required {
    color: var(--error-color);
}

/* Legacy booking-summary support */
.booking-summary {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.summary-label {
    color: var(--text-secondary);
}

.summary-value {
    font-weight: 500;
    text-align: right;
}

/* Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: inherit;
    transition: all 0.2s;
    min-height: var(--touch-target);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-error {
    background: #fef2f2;
    color: var(--error-color);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
}

/* Buttons */
.submit-button,
.primary-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--touch-target);
}

.submit-button:hover,
.primary-button:hover {
    background: var(--primary-hover);
}

.submit-button:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.secondary-button {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

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

/* Invite Others Section */
.invite-others-section {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 8px;
}

.invite-others-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.invite-others-header svg {
    width: 18px;
    height: 18px;
}

.invite-others-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Terms Notice */
.terms-notice {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

.terms-notice a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-notice a:hover {
    text-decoration: underline;
}

/* Success State - Enhanced (Compressed) */
.success-container {
    text-align: center;
    padding: 12px 0;
}

.success-header {
    background: var(--bg-white);
    padding: 24px;
    margin: -24px -24px 24px -24px;
    border-bottom: 1px solid var(--border-color);
}

.success-header .business-logo {
    width: 56px;
    height: 56px;
    font-size: 20px;
    margin-bottom: 12px;
}

.success-header .business-name {
    font-size: 18px;
    margin-bottom: 4px;
}

.success-header .business-description {
    font-size: 13px;
}

.success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.success-icon svg {
    width: 24px;
    height: 24px;
    color: var(--success-color);
}

.success-container h2 {
    margin-bottom: 4px;
    font-size: 20px;
}

.success-message {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 14px;
}

.confirmation-details {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.confirmation-details-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirmation-row {
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

.confirmation-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.confirmation-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.confirmation-icon svg {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

.confirmation-text {
    flex: 1;
}

/* Value text (first div) */
.confirmation-text > div:first-child {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Label text */
.confirmation-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.success-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .success-actions {
        grid-template-columns: 1fr;
    }
}

/* What's Next Section */
.whats-next-section {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 16px;
    text-align: left;
}

.whats-next-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.whats-next-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.whats-next-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.whats-next-list li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: 600;
    flex-shrink: 0;
}

/* Book Another Button */
.book-another-button {
    width: 100%;
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.book-another-button:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

/* Share Tooltip */
.share-tooltip {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Footer */
.booking-footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.booking-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.booking-footer a:hover {
    text-decoration: underline;
}

/* Dynamic Theme Color */
.booking-app[data-color] {
    --primary-color: attr(data-color);
}

/* ============================================
   Timezone Picker
   ============================================ */
.timezone-picker-container {
    position: relative;
    margin: -8px 0 16px 0;
}

.timezone-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.timezone-picker-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.timezone-picker-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.timezone-chevron {
    transition: transform 0.2s ease;
}

.timezone-picker-container.open .timezone-chevron {
    transform: rotate(180deg);
}

.timezone-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 320px;
    max-height: 360px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.timezone-picker-container.open .timezone-dropdown {
    display: flex;
}

.timezone-search-container {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.timezone-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.timezone-search:focus {
    border-color: var(--primary-color);
}

.timezone-list {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
}

.timezone-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.timezone-option:hover {
    background: var(--bg-light);
}

.timezone-option.selected {
    background: rgba(99, 102, 241, 0.08);
}

.timezone-option-name {
    font-size: 14px;
    color: var(--text-primary);
}

.timezone-option-offset {
    font-size: 12px;
    color: var(--text-muted);
}

.timezone-option.selected .timezone-option-name {
    color: var(--primary-color);
    font-weight: 500;
}

.timezone-group-header {
    padding: 8px 14px 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.timezone-group-header:first-child {
    border-top: none;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .timezone-dropdown {
        width: calc(100vw - 48px);
        max-width: 320px;
    }
}

/* ============================================
   PAYMENT SECTION
   ============================================ */

.payment-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.payment-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.payment-summary {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.payment-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-line + .payment-line {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}

.payment-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.payment-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-deposit .payment-label {
    color: var(--primary-color);
}

.payment-deposit .payment-amount {
    color: var(--primary-color);
}

/* Stripe Payment Element Container */
#payment-element {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    min-height: 100px;
}

/* Payment Disclosure (MOR) */
.payment-disclosure {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
}

.payment-disclosure p {
    margin: 0;
    line-height: 1.5;
}

.payment-disclosure p:first-child {
    font-weight: 500;
}

.payment-disclosure .disclosure-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Payment Error */
.payment-error {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    color: var(--error-color);
    font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .payment-section {
        margin-top: 20px;
        padding-top: 20px;
    }

    .payment-summary {
        padding: 12px;
    }

    #payment-element {
        padding: 12px;
    }
}

/* ============================================
   SMART SUGGESTIONS (Viva Profile Integration)
   ============================================ */

.smart-suggestions-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
}

.smart-suggestions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.smart-suggestions-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.smart-suggestions-badge svg {
    width: 14px;
    height: 14px;
}

.smart-suggestions-user {
    font-size: 13px;
    color: var(--text-secondary);
}

.smart-suggestions-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

.smart-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

/* Individual Smart Suggestion Card */
.smart-suggestion-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.smart-suggestion-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.smart-suggestion-card.recommended {
    border-color: var(--primary-color);
    border-width: 2px;
}

.smart-suggestion-card.recommended::before {
    content: 'Best Match';
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.smart-suggestion-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.smart-suggestion-datetime {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.smart-suggestion-date {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.smart-suggestion-time {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.smart-suggestion-book-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.smart-suggestion-book-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.smart-suggestion-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.smart-suggestion-reason {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 12px;
}

.smart-suggestion-reason svg {
    width: 12px;
    height: 12px;
    color: var(--success-color);
}

.smart-suggestion-reason.warning svg {
    color: #f59e0b;
}

/* Browse All Times Button */
.browse-all-times-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.browse-all-times-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.browse-all-times-btn svg {
    width: 16px;
    height: 16px;
}

/* Calendar Info Footer */
.smart-calendar-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.smart-calendar-info svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* ============================================
   CALENDAR CONNECTION PROMPT
   ============================================ */

.calendar-connect-prompt {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.connect-prompt-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success-color);
}

.connect-prompt-icon svg {
    width: 24px;
    height: 24px;
}

.connect-prompt-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.connect-prompt-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.connect-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.connect-calendar-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.skip-connect-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 8px;
}

.skip-connect-btn:hover {
    color: var(--text-secondary);
}

/* ============================================
   PROFILE LOGIN PROMPT (Guest Users)
   ============================================ */

.profile-login-prompt {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.login-prompt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.login-prompt-badge svg {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

.login-prompt-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 150px;
}

.login-prompt-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.login-prompt-btn:hover {
    background: var(--primary-hover);
}

/* Mobile responsive for smart suggestions */
@media (max-width: 640px) {
    .smart-suggestions-section {
        padding: 16px;
    }

    .smart-suggestions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .smart-suggestion-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .smart-suggestion-book-btn {
        width: 100%;
    }

    .profile-login-prompt {
        flex-direction: column;
        text-align: center;
    }

    .login-prompt-text {
        text-align: center;
    }
}

/* ============================================
   Try Viva Viral CTA (Success Page)
   ============================================ */
.try-viva-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.vp-powered-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
}

.vp-powered-link:hover {
    color: #6B7280;
}

.vp-powered-icon {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #9810FA 0%, #DA70FF 100%);
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: white;
}

/* ============================================
   Save to Viva Profile Section (Success Page)
   ============================================ */
.save-to-viva-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.save-to-viva-card {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff7ed 100%);
    border: 1px solid #e0e7ff;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.save-to-viva-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #f97316 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.save-to-viva-icon svg {
    width: 20px;
    height: 20px;
}

.save-to-viva-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.save-to-viva-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 300px;
}

.save-to-viva-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.save-to-viva-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.save-to-viva-btn svg {
    width: 18px;
    height: 18px;
}

/* Mobile responsive for Save to Viva */
@media (max-width: 640px) {
    .save-to-viva-card {
        padding: 16px;
    }

    .save-to-viva-content p {
        font-size: 13px;
    }

    .save-to-viva-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   VIVA PROFILE MODAL (Book with Assistant Flow)
   ============================================ */

.vp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}

.vp-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.vp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vp-modal-close:hover {
    background: white;
    transform: scale(1.05);
}

.vp-modal-close svg {
    width: 20px;
    height: 20px;
    color: #374151;
}

/* Step container */
.vp-step {
    display: none;
    flex-direction: column;
    height: 100%;
    min-height: 0; /* Critical: allows flex child to shrink and enable scrolling */
    overflow: hidden;
}

.vp-step.active {
    display: flex;
}

/* Header with gradient */
.vp-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 32px 24px 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.vp-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.vp-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.vp-step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.vp-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.vp-step-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.vp-step-dot.completed {
    background: rgba(255, 255, 255, 0.8);
}

.vp-header-title {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Content area */
.vp-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Critical: allows flex child to shrink and enable scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    overscroll-behavior: contain; /* Prevent scroll chaining */
}

/* Hero icon for intro */
.vp-hero-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-hero-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.vp-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    text-align: center;
}

.vp-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Benefits list */
.vp-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.vp-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.vp-benefit::before {
    content: '';
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Primary button */
.vp-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.vp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.vp-btn-primary:disabled {
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Link button */
.vp-btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 12px;
    margin-top: 8px;
    transition: color 0.2s;
}

.vp-btn-link:hover {
    color: var(--text-secondary);
}

/* Secondary button */
.vp-btn-secondary {
    width: 100%;
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.vp-btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Form styles */
.vp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.vp-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vp-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.vp-form-group input {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg-white);
}

.vp-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* Verification code input row */
.vp-code-row {
    display: flex;
    gap: 12px;
}

.vp-code-row input {
    flex: 1;
}

.vp-code-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.vp-code-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Calendar connection options */
.vp-calendar-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.vp-calendar-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.vp-calendar-option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.vp-calendar-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vp-calendar-icon.google {
    background: #fff4f4;
}

.vp-calendar-icon.outlook {
    background: #f0f7ff;
}

.vp-calendar-icon.calendly {
    background: #f0f7ff;
}

.vp-calendar-icon img,
.vp-calendar-icon svg {
    width: 24px;
    height: 24px;
}

.vp-calendar-info {
    flex: 1;
}

.vp-calendar-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.vp-calendar-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.vp-calendar-arrow {
    color: var(--text-muted);
}

.vp-calendar-arrow svg {
    width: 20px;
    height: 20px;
}

/* Service selection list */
.vp-service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.vp-service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.vp-service-item:hover {
    border-color: var(--primary-color);
}

.vp-service-item.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.02);
}

.vp-service-color {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}

.vp-service-details {
    flex: 1;
}

.vp-service-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.vp-service-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.vp-service-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vp-service-item.selected .vp-service-radio {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.vp-service-item.selected .vp-service-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* User info header in chat */
.vp-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.vp-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.vp-user-info {
    flex: 1;
}

.vp-user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.vp-user-calendar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--success-color);
}

.vp-user-calendar svg {
    width: 14px;
    height: 14px;
}

/* Chat step layout */
.vp-step-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
}

.vp-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
    flex-shrink: 0;
}

.vp-chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vp-chat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vp-chat-icon svg {
    width: 18px;
    height: 18px;
    color: white;
    fill: white;
    stroke: white;
}

.vp-chat-header-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.vp-chat-header-text p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* Chat interface */
.vp-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.vp-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 200px;
    max-height: 400px;
}

.vp-chat-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

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

.vp-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.vp-chat-message.assistant .vp-message-avatar {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.vp-chat-message.user .vp-message-avatar {
    background: var(--bg-light);
    color: var(--text-primary);
}

.vp-message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.vp-chat-message.assistant .vp-message-bubble {
    background: var(--bg-light);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.vp-chat-message.user .vp-message-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Quick actions */
.vp-chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 20px 12px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.vp-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.vp-quick-action {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.vp-quick-action:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.02);
}

/* Chat input */
.vp-chat-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
    flex-shrink: 0;
}

.vp-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

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

.vp-chat-send {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.vp-chat-send:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.vp-chat-send:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.vp-chat-send svg {
    width: 20px;
    height: 20px;
}

/* Chat user bar (shown when profile exists) */
.vp-chat-user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.vp-chat-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vp-chat-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.vp-chat-user-details {
    display: flex;
    flex-direction: column;
}

.vp-chat-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.vp-chat-user-email {
    font-size: 11px;
    color: var(--text-secondary);
}

.vp-chat-calendar-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--success-color);
    font-weight: 500;
}

/* Typing indicator */
.vp-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.vp-typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: vpTyping 1.4s infinite ease-in-out both;
}

.vp-typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes vpTyping {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Chips (Services & Availability) */
.vp-chat-chips-container {
    padding: 4px 48px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vp-chat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-white);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.15s ease;
    text-align: left;
}

.vp-chat-chip:hover {
    border-color: var(--primary-color);
    background: #f5f3ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

.vp-chat-chip:active {
    transform: translateY(0);
}

/* Service chips */
.vp-service-chip {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 16px;
    border-radius: 12px;
}

.vp-chip-name {
    font-weight: 600;
    font-size: 14px;
}

.vp-chip-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.vp-service-chip:hover .vp-chip-name {
    color: var(--primary-color);
}

/* Availability chips */
.vp-chip-date-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

.vp-chip-time-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vp-time-chip {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 16px;
    min-width: fit-content;
}

.vp-time-chip:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Mobile responsive for VP Modal */
@media (max-width: 480px) {
    .vp-modal {
        max-width: 100%;
        max-height: 100vh;
        max-height: 100dvh; /* Dynamic viewport height for mobile browsers */
        border-radius: 0;
    }

    .vp-modal-close {
        top: 12px;
        right: 12px;
        top: max(12px, env(safe-area-inset-top));
    }

    .vp-header {
        padding: 24px 20px 20px;
        padding-top: max(24px, env(safe-area-inset-top));
    }

    .vp-content {
        padding: 20px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .vp-content h2 {
        font-size: 22px;
    }

    .vp-hero-icon {
        width: 64px;
        height: 64px;
    }

    .vp-hero-icon svg {
        width: 32px;
        height: 32px;
    }

    .vp-step-chat {
        max-height: 100vh;
        max-height: 100dvh;
    }

    .vp-chat-header {
        padding: 12px 16px;
    }

    .vp-chat-messages {
        max-height: none;
        flex: 1;
        padding: 12px 16px;
    }

    .vp-chat-quick-actions {
        padding: 8px 16px 10px;
    }

    .vp-chat-input-bar {
        padding: 10px 12px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .vp-quick-actions {
        justify-content: center;
    }

    .vp-chat-chips-container {
        padding: 4px 12px 12px;
    }

    .vp-time-chip {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Embed mode: Clean iframe embed without footer or chat widget - v20260210a */
body.embed-mode #viva-footer-container {
    display: none !important;
}

body.embed-mode .viva-chat-widget {
    display: none !important;
}
