/* House Fluent Scheduler - CSS Styles */

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

:root {
    /* Brand Colors */
    --midnight-blue: #174477;
    --medium-sea-green: #37B44A;
    --slate-gray: #767B86;
    --white: #FAFAFA;
    --black: #1C1C1C;
    
    /* Typography */
    --font-primary: 'Domine', serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

/* Base Typography */
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    color: var(--midnight-blue);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--midnight-blue);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--midnight-blue);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--slate-gray);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: 12px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 52px;
    gap: 8px;
}

.btn-primary {
    background: var(--medium-sea-green);
    color: var(--white);
}

.btn-primary:hover {
    background: #2a9539;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(55, 180, 74, 0.3);
}

.btn-primary:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

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

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

/* Utility Classes */
.hidden { display: none !important; }
.visible { display: block !important; }
.text-center { text-align: center; }

/* Header Navigation */
.scheduler-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
    height: 64px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link,
.phone-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    text-decoration: none;
    color: var(--midnight-blue);
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.phone-link:hover {
    color: var(--medium-sea-green);
}

.phone-link {
    background: var(--medium-sea-green);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
}

.phone-link:hover {
    background: #2a9539;
    color: var(--white);
}

/* Main Scheduler Application */
.scheduler-app {
    min-height: 100vh;
    padding-top: 64px; /* Account for fixed header */
    background: var(--white);
    display: flex;
    flex-direction: column;
}

/* Progress Bar */
.progress-container {
    background: var(--white);
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--medium-sea-green) 0%, #45c755 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 12px;
    color: var(--slate-gray);
}

/* Scheduler Content */
.scheduler-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 100px; /* Space for action bar */
}

/* Scheduler Steps */
.scheduler-step {
    display: none;
    flex-direction: column;
    min-height: calc(100vh - 140px);
}

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

/* Step Header */
.step-header {
    padding: 32px 20px 20px;
    text-align: center;
    flex-shrink: 0;
}

.step-header h1 {
    margin-bottom: 8px;
}

.step-subtitle {
    font-size: 16px;
    color: var(--slate-gray);
    margin: 0;
    line-height: 1.4;
}

/* Forms */
.scheduler-form {
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.input-section {
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--midnight-blue);
    margin-bottom: 8px;
}

.optional {
    font-weight: 400;
    color: var(--slate-gray);
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: var(--white);
    color: var(--black);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--medium-sea-green);
    box-shadow: 0 0 0 3px rgba(55, 180, 74, 0.1);
}

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

.input-help {
    font-size: 14px;
    color: var(--slate-gray);
    margin-top: 6px;
    line-height: 1.4;
}

/* Select Buttons */
.select-button {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: var(--white);
    color: var(--black);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.select-button:focus {
    outline: none;
    border-color: var(--medium-sea-green);
    box-shadow: 0 0 0 3px rgba(55, 180, 74, 0.1);
}

.select-button:hover {
    border-color: #d1d5db;
}

.select-text.placeholder {
    color: #9ca3af;
}

.select-arrow {
    color: var(--slate-gray);
    transition: transform 0.2s ease;
}

.select-button:focus .select-arrow {
    transform: rotate(180deg);
}

/* Address Status */
.address-status {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.address-status.valid {
    background: rgba(55, 180, 74, 0.1);
    color: var(--medium-sea-green);
    border: 1px solid rgba(55, 180, 74, 0.3);
    display: block;
}

.address-status.invalid {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

/* Question Cards */
.question-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.question-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.question-subtitle {
    font-size: 14px;
    color: var(--slate-gray);
    margin-bottom: 16px;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.radio-option:hover {
    background: rgba(55, 180, 74, 0.05);
}

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

.radio-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.radio-option input[type="radio"]:checked + .radio-indicator {
    border-color: var(--medium-sea-green);
    background: var(--medium-sea-green);
}

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

.radio-content {
    flex: 1;
}

.radio-title {
    display: block;
    font-weight: 600;
    color: var(--midnight-blue);
    font-size: 16px;
    line-height: 1.3;
}

.radio-subtitle {
    display: block;
    font-size: 14px;
    color: var(--slate-gray);
    margin-top: 4px;
}

/* Checkbox Groups */
.checkbox-group {
    margin-bottom: 24px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--midnight-blue);
}

.checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.checkbox-card:hover {
    border-color: var(--medium-sea-green);
    background: rgba(55, 180, 74, 0.05);
}

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

.checkbox-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-content .checkbox-indicator {
    border-color: var(--medium-sea-green);
    background: var(--medium-sea-green);
}

.check-icon {
    color: var(--white);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-content .checkbox-indicator .check-icon {
    opacity: 1;
}

.checkbox-text-content {
    flex: 1;
}

.checkbox-title {
    display: block;
    font-weight: 600;
    color: var(--midnight-blue);
    font-size: 16px;
    line-height: 1.3;
}

.checkbox-subtitle {
    display: block;
    font-size: 14px;
    color: var(--slate-gray);
    margin-top: 4px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    padding: 40px 20px;
}

.loading-content {
    max-width: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--medium-sea-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

.loading-content h3 {
    color: var(--midnight-blue);
    margin-bottom: 8px;
}

.loading-content p {
    color: var(--slate-gray);
    font-size: 14px;
}

/* Action Bar */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid #e5e7eb;
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 20px));
    display: flex;
    gap: 12px;
    z-index: 20;
    max-width: 600px;
    margin: 0 auto;
}

.action-bar .btn {
    flex: 1;
    min-width: 120px;
}

/* Bottom Sheets */
.bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.bottom-sheet.active {
    display: block;
}

.sheet-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.sheet-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    position: relative;
}

.sheet-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
}

.sheet-header h3 {
    font-size: 18px;
    color: var(--midnight-blue);
    margin: 0;
}

.sheet-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: var(--slate-gray);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.sheet-close:hover {
    background: #f3f4f6;
}

.sheet-search-container {
    padding: 0 20px 16px;
}

.sheet-search {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: var(--white);
}

.sheet-search:focus {
    outline: none;
    border-color: var(--medium-sea-green);
    box-shadow: 0 0 0 3px rgba(55, 180, 74, 0.1);
}

.sheet-options,
.sheet-results {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
}

.sheet-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

.sheet-action-btn {
    width: 100%;
    height: 48px;
    background: transparent;
    border: 2px solid var(--medium-sea-green);
    color: var(--medium-sea-green);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sheet-action-btn:hover {
    background: var(--medium-sea-green);
    color: var(--white);
}

.btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* Address Results */
.address-result-item {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.address-result-item:last-child {
    border-bottom: none;
}

.address-result-item:hover {
    background-color: #f8fafc;
}

.address-text {
    font-size: 16px;
    color: var(--midnight-blue);
    line-height: 1.4;
    word-break: break-word;
}

/* Result State Messages */
.no-results,
.loading-results,
.error-results {
    padding: 32px 16px;
    text-align: center;
    color: var(--slate-gray);
    font-size: 14px;
    line-height: 1.4;
}

.loading-results {
    color: var(--medium-sea-green);
}

.error-results {
    color: #ef4444;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .scheduler-app {
        padding: 64px 40px 0;
    }
    
    .scheduler-content {
        max-width: 800px;
        padding: 0 40px 120px;
    }
    
    .progress-container {
        padding: 20px 40px;
    }
    
    .step-header {
        padding: 40px 40px 24px;
    }
    
    .scheduler-form {
        padding: 0 40px;
    }
    
    .action-bar {
        max-width: 800px;
        padding: 20px 40px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
    
    .input-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: start;
    }
    
    .input-section.full-width {
        grid-template-columns: 1fr;
    }
    
    .form-input,
    .select-button {
        height: 48px;
    }
    
    .btn {
        height: 48px;
        font-size: 15px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .scheduler-content {
        max-width: 1000px;
    }
    
    .action-bar {
        max-width: 1000px;
    }
}

/* ========================================
   Calendar & Scheduling Styles
   ======================================== */

/* Calendar Navigation */
.calendar-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-sm);
}

.calendar-nav-bar .nav-btn {
    background: none;
    border: none;
    padding: var(--spacing-xs);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--midnight-blue);
}

.calendar-nav-bar .nav-btn:hover {
    background-color: rgba(23, 68, 119, 0.1);
}

.calendar-month {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--midnight-blue);
    margin: 0;
}

/* Calendar Grid */
.calendar-grid,
.mobile-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: var(--spacing-md);
}

.calendar-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-gray);
    padding: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-secondary);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 40px;
    font-family: var(--font-secondary);
}

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

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.available {
    background-color: var(--medium-sea-green);
    color: var(--white);
}

.calendar-day.available:hover {
    background-color: #2a9539;
    transform: scale(1.1);
}

.calendar-day.unavailable {
    background-color: #f5f5f5;
    color: var(--slate-gray);
    cursor: not-allowed;
}

.calendar-day.selected {
    background-color: var(--midnight-blue);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(23, 68, 119, 0.3);
}

.calendar-day.today {
    border: 2px solid var(--midnight-blue);
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--slate-gray);
    font-family: var(--font-secondary);
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.legend-dot.available {
    background-color: var(--medium-sea-green);
}

.legend-dot.unavailable {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.legend-dot.selected {
    background-color: var(--midnight-blue);
}

/* Mobile Scheduling Container */
.mobile-scheduling {
    max-width: 500px;
    margin: 0 auto;
}

.mobile-calendar-section {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: var(--spacing-md);
}

/* Time Slots Section */
.time-slots-section {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.time-slots-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-sm);
}

.back-to-calendar-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: none;
    border: none;
    font-size: 0.9rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    color: var(--slate-gray);
    font-family: var(--font-secondary);
}

.back-to-calendar-btn:hover {
    background-color: #f0f0f0;
    transform: translateX(-2px);
}

.time-slots-title {
    margin: 0;
    color: var(--midnight-blue);
    font-size: 1.125rem;
}

.selected-date-display {
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--slate-gray);
    font-weight: 500;
    font-family: var(--font-secondary);
}

/* Time Slots Grid */
.mobile-time-grid,
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.time-slot-btn,
.time-slot {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
    font-weight: 500;
    font-size: 0.875rem;
    font-family: var(--font-secondary);
}

.time-slot-btn:hover,
.time-slot:hover {
    border-color: var(--medium-sea-green);
    background-color: rgba(55, 180, 74, 0.05);
}

.time-slot-btn.selected,
.time-slot.selected {
    border-color: var(--medium-sea-green);
    background-color: var(--medium-sea-green);
    color: var(--white);
}

.time-slot-btn.unavailable,
.time-slot.unavailable {
    background-color: #f5f5f5;
    color: var(--slate-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.time-info-card {
    padding: var(--spacing-md);
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--medium-sea-green);
}

.time-info-content h4 {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--midnight-blue);
    font-size: 1rem;
}

.time-info-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--slate-gray);
}

/* Selection Summary */
.schedule-summary {
    margin-top: var(--spacing-lg);
}

.summary-card {
    background: linear-gradient(135deg, var(--midnight-blue), #1e5a8b);
    color: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(23, 68, 119, 0.2);
}

.summary-header h3 {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--white);
    font-size: 1.125rem;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    opacity: 0.9;
    font-family: var(--font-secondary);
}

.summary-value {
    font-weight: 600;
    text-align: right;
    font-family: var(--font-secondary);
}

.no-slots {
    text-align: center;
    color: var(--slate-gray);
    padding: var(--spacing-lg);
    font-style: italic;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .mobile-scheduling {
        max-width: 100%;
    }
    
    .mobile-calendar-section,
    .time-slots-section {
        padding: var(--spacing-md);
    }
    
    .calendar-grid,
    .mobile-calendar-grid {
        gap: 2px;
    }
    
    .calendar-day {
        min-height: 36px;
        font-size: 0.75rem;
    }
    
    .calendar-legend {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .mobile-time-grid,
    .time-slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: var(--spacing-xs);
    }
    
    .time-slots-header {
        flex-wrap: wrap;
    }
}

/* Package Card Styling */
.package-card {
    display: block;
    padding: var(--spacing-lg);
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: var(--spacing-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    min-height: 80px;
}

.package-card input[type="radio"] {
    /* Hide radio button - entire card is clickable */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.package-content {
    width: 100%;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.package-name {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--midnight-blue);
}

.package-price {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--midnight-blue);
    font-size: 1.4rem;
}

.package-recommendation {
    color: var(--medium-sea-green);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-xs) 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-description {
    color: var(--slate-gray);
    font-size: 1rem;
    margin: var(--spacing-xs) 0;
    line-height: 1.4;
}

.package-features {
    margin: var(--spacing-sm) 0 0 var(--spacing-md);
    color: var(--slate-gray);
    font-size: 0.9rem;
}

.package-features li {
    margin-bottom: var(--spacing-xs);
}

/* Package Card States */

/* Hover state */
.package-card:hover {
    border-color: var(--medium-sea-green);
    box-shadow: 0 4px 12px rgba(55, 180, 74, 0.15);
    transform: translateY(-2px);
}

/* Selected state */
.package-card.selected {
    border: 5px solid var(--medium-sea-green);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    box-shadow: 0 6px 20px rgba(55, 180, 74, 0.4);
    transform: translateY(-1px);
}

/* Checkmark for selected package */
.package-card.selected::before {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: var(--medium-sea-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(55, 180, 74, 0.3);
}

/* Bold package name when selected */
.package-card.selected .package-name {
    font-weight: 800;
    color: var(--midnight-blue);
}

/* Recommended Package Styling */
.package-card.recommended {
    border-color: var(--midnight-blue);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 4px 20px rgba(23, 68, 119, 0.25);
}

.package-card.recommended:hover {
    border-color: var(--midnight-blue);
    box-shadow: 0 6px 24px rgba(23, 68, 119, 0.35);
    transform: translateY(-3px);
}

.package-card.recommended.selected {
    border: 5px solid var(--medium-sea-green);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    box-shadow: 0 8px 24px rgba(55, 180, 74, 0.4);
    transform: translateY(-1px);
}

/* Recommended Badge */
.package-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, #0f2a4a 100%);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 0 8px 0 8px;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(23, 68, 119, 0.4);
    z-index: 1;
}

/* Add-on Service Styling */
.addon-option {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.addon-option:hover:not(.free-addon) {
    border-color: var(--medium-sea-green);
    box-shadow: 0 2px 8px rgba(55, 180, 74, 0.1);
}

/* Custom Large Checkboxes for Better Touch Targets */

.addon-option input[type="checkbox"] {
    /* Hide native checkbox */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom checkbox sizing - mobile-first */
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;

    /* Base styling */
    border: 3px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;

    /* Remove default margins */
    margin: 0;
}

/* Desktop smaller size */
@media (min-width: 768px) {
    .addon-option input[type="checkbox"] {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* Checkbox States */

/* Hover state for enabled checkboxes */
.addon-option:not(.free-addon) input[type="checkbox"]:hover {
    border-color: var(--medium-sea-green);
    box-shadow: 0 0 0 3px rgba(55, 180, 74, 0.1);
}

/* Focus state for accessibility */
.addon-option input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--medium-sea-green);
    box-shadow: 0 0 0 3px rgba(55, 180, 74, 0.2);
}

/* Checked state */
.addon-option input[type="checkbox"]:checked {
    background: var(--medium-sea-green);
    border-color: var(--medium-sea-green);
}

/* Checkmark for checked state */
.addon-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 10px;
    border: 3px solid white;
    border-top: none;
    border-right: none;
    transform: translate(-50%, -60%) rotate(-45deg);
}

/* Desktop checkmark size */
@media (min-width: 768px) {
    .addon-option input[type="checkbox"]:checked::after {
        width: 10px;
        height: 7px;
        border-width: 2px;
    }
}

/* Disabled state for free add-ons */
.addon-option.free-addon input[type="checkbox"] {
    background: var(--medium-sea-green);
    border-color: var(--medium-sea-green);
    cursor: default;
    opacity: 0.9;
}

/* Different checkmark style for disabled/free items */
.addon-option.free-addon input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 10px;
    border: 3px solid white;
    border-top: none;
    border-right: none;
    transform: translate(-50%, -60%) rotate(-45deg);
}

@media (min-width: 768px) {
    .addon-option.free-addon input[type="checkbox"]::after {
        width: 10px;
        height: 7px;
        border-width: 2px;
    }
}

.addon-content {
    flex: 1;
}

.addon-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xs);
}

.addon-name {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--midnight-blue);
}

.addon-price {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--medium-sea-green);
    font-size: 1.1rem;
}

.addon-description {
    color: var(--slate-gray);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Free Add-on Styling */
.addon-option.free-addon {
    background: #f8fffe;
    border-color: var(--medium-sea-green);
    border-style: dashed;
    opacity: 0.8;
    cursor: default;
}

.addon-option.free-addon .addon-name {
    color: var(--slate-gray);
}

.addon-option.free-addon .addon-price {
    color: var(--medium-sea-green);
    font-weight: 600;
}

.addon-option.free-addon input[type="checkbox"] {
    cursor: default;
}

.free-note {
    color: var(--medium-sea-green);
    font-size: 0.8rem;
    font-weight: 600;
    margin: var(--spacing-xs) 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== THANK YOU PAGE STYLES ===== */

/* Thank You Page Layout */
.thank-you-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.thank-you-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-sm);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.thank-you-container {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(23, 68, 119, 0.15);
    padding: var(--spacing-xxl) var(--spacing-lg);
    text-align: center;
}

/* Success Header */
.success-header {
    margin-bottom: var(--spacing-xl);
}

.success-icon {
    display: inline-block;
    margin-bottom: var(--spacing-md);
    animation: checkmark-bounce 0.6s ease-in-out;
}

@keyframes checkmark-bounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

.thank-you-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--midnight-blue);
    margin-bottom: var(--spacing-xs);
}

.thank-you-subtitle {
    font-size: 1.2rem;
    color: var(--slate-gray);
    font-weight: 400;
}

/* Booking Summary */
.booking-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

.booking-summary h2 {
    font-size: 1.4rem;
    color: var(--midnight-blue);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.confirmation-number {
    background: var(--midnight-blue);
    color: white;
    padding: var(--spacing-md);
    border-radius: 6px;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.confirmation-number .label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xs);
}

.confirmation-number .value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    letter-spacing: 1px;
}

.booking-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #e9ecef;
}

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

.detail-row .label {
    font-weight: 600;
    color: var(--slate-gray);
    flex-shrink: 0;
}

.detail-row .value {
    font-weight: 500;
    color: var(--black);
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.total-row {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--midnight-blue);
    border-bottom: none;
}

.total-row .label,
.total-row .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--midnight-blue);
}

/* Next Steps */
.next-steps {
    background: #fff8e1;
    border-left: 4px solid var(--medium-sea-green);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

.next-steps h3 {
    color: var(--midnight-blue);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

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

.next-steps li {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--slate-gray);
}

.next-steps li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--medium-sea-green);
    font-weight: bold;
    font-size: 1.1em;
}

/* Action Buttons */
.thank-you-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
}

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

.btn-primary:hover {
    background: #123559;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 68, 119, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--slate-gray);
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: var(--slate-gray);
    color: var(--midnight-blue);
}

/* Footer */
.thank-you-footer {
    background: var(--midnight-blue);
    color: white;
    padding: var(--spacing-lg) var(--spacing-sm);
    text-align: center;
}

.footer-content p {
    margin-bottom: var(--spacing-xs);
    opacity: 0.9;
}

.footer-content p:last-child {
    margin-bottom: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .thank-you-container {
        padding: var(--spacing-lg) var(--spacing-md);
        margin: var(--spacing-sm);
    }

    .confirmation-number .value {
        font-size: 1.5rem;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .detail-row .value {
        text-align: left;
        max-width: 100%;
    }

    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}