/* CSS Variables - Matching Landing Page */
:root {
    /* Colors - Peachy, Fuscia, Aqua Palette */
    --primary: #0f172a;
    --accent: #ff6b9d;
    --accent-hover: #e55a87;
    --peach: #ffb19a;
    --fuscia: #ff6b9d;
    --aqua: #4ecdc4;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;

    /* Gradients */
    --gradient-primary: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 20%, rgba(174, 238, 220, 0.3) 50%, rgba(238, 174, 202, 0.3) 60%, rgba(233, 219, 148, 0.3) 100%);
    --gradient-secondary: linear-gradient(90deg, rgba(255, 177, 154, 1) 0%, rgb(255, 201, 154) 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-family);
    background: var(--gradient-primary);
    color: var(--gray-800);
    line-height: 1.6;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* App Container - Centers on Large Screens */
.app-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Mobile Container - Fixed Size, Always Centered */
.mobile-container {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-xl);
    height: 85vh;
    max-height: 700px;
    border: 1px solid var(--gray-200);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-8);
    margin-bottom: var(--space-10);
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
    transition: var(--transition);
}

.step-dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

.step-dot.completed {
    background: var(--aqua);
    transform: scale(1.1);
}

/* Profile Section */
.profile-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: 100%;
    padding: 2rem 1.5rem 0;
    overflow-y: auto;
}

/* Welcome Footer */
.welcome-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-100);
    flex-shrink: 0;
    background: var(--gray-50);
}

.session-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2rem;
    line-height: 1.4;
}

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

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}

/* Session Details */
.session-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    text-align: left;
    width: 100%;
    max-width: 320px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
}

.detail-item svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #94a3b8;
}

.demo-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.demo-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Primary Button */
.primary-btn {
    width: 100%;
    background: var(--gradient-secondary);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    min-height: 54px;
}

.primary-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.primary-btn:disabled {
    background: var(--gray-200);
    color: var(--gray-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.secondary-btn {
    width: 100%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-5);
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
    box-shadow: var(--shadow-sm);
}

.secondary-btn:hover {
    border-color: var(--accent);
    background: var(--gray-50);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* All sheets are full sheets for consistency */

/* Full Screen Sheets */
.full-sheet {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 100%;
    max-width: 420px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.full-sheet.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Always rounded corners for full sheets */
.full-sheet {
    border-radius: 24px;
    height: 85vh;
    max-height: 700px;
}

/* Sheet Components */
.sheet-header {
    padding: var(--space-4) var(--space-6) var(--space-2);
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
    position: relative;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 0 auto var(--space-4);
}

.sheet-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    margin-bottom: var(--space-2);
}

.sheet-content {
    flex: 1;
    padding: var(--space-6);
    overflow-y: auto;
}

.sheet-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-100);
    flex-shrink: 0;
    background: var(--gray-50);
}

/* Back Button */
.back-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
    position: absolute;
    left: 1.5rem;
    top: 1rem;
}

.back-btn:hover {
    color: #3b82f6;
}

/* Calendar Styles */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.month-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.current-month {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    color: var(--gray-500);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.today-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
}

.today-btn:hover {
    color: var(--accent-hover);
    background: rgba(255, 107, 157, 0.1);
}

.calendar {
    width: 100%;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: var(--space-4);
}

.weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    padding: var(--space-2) 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-1);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.calendar-day.available {
    background: var(--gray-50);
    color: var(--gray-700);
    border-color: var(--gray-200);
}

.calendar-day.available:hover {
    background: var(--peach);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: var(--peach);
}

.calendar-day.selected {
    background: var(--gradient-secondary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.calendar-day.today {
    border: 2px solid var(--accent);
    background: rgba(255, 107, 157, 0.1);
}

.calendar-day.today.available:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.calendar-day.other-month {
    color: var(--gray-300);
    cursor: default;
    background: transparent;
}

.calendar-day.past,
.calendar-day.unavailable {
    color: var(--gray-300);
    cursor: not-allowed;
    background: var(--gray-100);
    opacity: 0.5;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    overflow-y: auto;
}

.time-slot {
    padding: var(--space-4);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.time-slot:hover {
    border-color: var(--accent);
    background: rgba(255, 107, 157, 0.1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--accent);
}

.time-slot.selected {
    background: var(--gradient-secondary);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.time-slot:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--gray-100);
    color: var(--gray-400);
    border-color: var(--gray-300);
}

.time-slot:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-400);
}

/* Form Styles - SMALLER */
.booking-summary {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.booking-summary h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    align-items: space-between;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.form-input,
.form-textarea {
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

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

/* Confirmation Styles - SMALLER */
.confirmation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

.success-icon {
    margin-bottom: 1.5rem;
    animation: bounce 0.6s ease-out;
}

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

.success-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.success-message {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    max-width: 280px;
    line-height: 1.5;
}

.confirmation-details {
    width: 100%;
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.confirmation-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.detail-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

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

.detail-label {
    font-weight: 500;
    color: #64748b;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* Loading State */
.loading-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    text-align: center;
    max-width: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.loading-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.loading-message {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* Error State */
.error-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    text-align: center;
    max-width: 320px;
}

.error-icon {
    width: 50px;
    height: 50px;
    animation: shake 0.8s ease-in-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
}

.error-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.error-message {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}

/* Hide/Show States */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.loading-state.hidden,
.error-state.hidden,
.main-content.hidden {
    display: none !important;
}

/* No responsive breakpoints - same layout everywhere */ 

/* Media Queries for Desktop vs Mobile Corner Rounding */

/* Mobile - Square corners for sheets and no margins */
@media (max-width: 768px) {
    /* Remove padding from app container */
    .app-container {
        padding: 0;
        align-items: stretch;
    }
    
    /* Full width/height mobile container with no margin */
    .mobile-container {
        border-radius: 0;
        max-width: none;
        height: 100vh;
        max-height: none;
        box-shadow: none;
        border: none;
    }
    
    /* Sheets slide from bottom with top margin only */
    .full-sheet {
        border-radius: 0;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: calc(100vh - 2rem); /* Full height minus top margin */
        max-height: none;
        transform: translateY(100%); /* Start from bottom */
        margin-top: 2rem; /* Only top margin */
        border-radius: 1rem 1rem 0 0; /* Rounded top corners only */
    }
    
    .full-sheet.active {
        transform: translateY(0); /* Slide up to visible position */
    }
    
    .sheet-header {
        border-radius: 0;
    }
    
    .sheet-footer {
        border-radius: 0;
    }
    
    .booking-summary {
        border-radius: 0.5rem; /* Keep some rounding for internal elements */
    }
    
    .confirmation-details {
        border-radius: 0.5rem; /* Keep some rounding for internal elements */
    }
}

/* Desktop - Rounded corners for all sheets */
@media (min-width: 769px) {
    .mobile-container {
        border-radius: var(--radius-3xl); /* 2rem - already set but ensuring it's explicit */
    }
    
    .full-sheet {
        border-radius: 24px; /* Already set but ensuring it's explicit */
    }
    
    .sheet-header {
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }
    
    .sheet-footer {
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }
    
    /* Ensure all sheet-related elements have proper rounded corners */
    .booking-summary {
        border-radius: var(--radius-lg);
    }
    
    .confirmation-details {
        border-radius: var(--radius-lg);
    }
} 