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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f7;
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 32px rgba(0,0,0,0.03);
    position: relative;
    border-radius: 0;
}

header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}


/* Responsive Layout */
body {
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    border-radius: 0px;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

/* Mobile First - up to 768px */
@media (max-width: 768px) {
    body {
        padding: 0 10px;
    }
    
    .container {
        padding: 15px;
    }
}

/* Tablet - 768px to 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 750px;
        margin: 0 auto;
        padding: 25px;
    }
}

/* Desktop - 1024px and up */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px;
    }
}

/* Responsive Typography */
.logo-section h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile Typography - up to 768px */
@media (max-width: 768px) {
    .logo-section h1 {
        font-size: 1.6rem;
    }
}

/* Tablet Typography - 768px to 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .logo-section h1 {
        font-size: 2.2rem;
    }
}

/* Desktop Typography - 1024px and up */
@media (min-width: 1024px) {
    .logo-section h1 {
        font-size: 2.8rem;
    }
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Progress Indicator */
.progress-container {
    background: white;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 4px;
    width: 25%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-color: #1e3a8a;
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.progress-step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 1.2rem;
}

.progress-step.completed .step-number {
    font-size: 0;
}

.step-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #1e3a8a;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #10b981;
}

main {
    padding: 2rem 2rem 6rem 2rem;
}

.info-section, .schedule-section, .location-section, .confirmation-section {
    max-width: 1000px;
    margin: 0 auto;
}

h2 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    text-align: center;
    font-weight: 700;
}

/* Enhanced Instructions */
.instructions-container {
    text-align: center;
    margin-bottom: 2.5rem;
    background: rgba(109, 91, 135, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(109, 91, 135, 0.1);
}

.instructions-main {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.instructions-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.instruction-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 500;
}

.step-number {
    background: #6D5B87;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.instructions-example {
    background: rgba(245, 173, 140, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: #44364B;
    font-size: 0.95rem;
    border-left: 4px solid #F5AD8C;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

/* Legacy selection summary for compatibility */
.selection-summary {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.selection-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #93bbfc 0%, #667eea 100%);
}

.selection-summary h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    position: relative;
    z-index: 10;
}

.summary-content {
    color: #2d3748;
    font-weight: 500;
    line-height: 1.8;
}

.summary-day {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(147, 187, 252, 0.1);
    transition: all 0.2s ease;
}

.summary-day:last-child {
    border-bottom: none;
}

.summary-day:hover {
    background: rgba(147, 187, 252, 0.05);
    padding-left: 0.5rem;
    border-radius: 8px;
}

.summary-day strong {
    color: #1e3a8a;
    font-weight: 600;
}

.availability-header {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.availability-header::before {
    content: '🕐';
    font-size: 1.3rem;
    opacity: 0.8;
}

.availability-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(147, 187, 252, 0.2);
    letter-spacing: -0.01em;
}

/* Selection Summary Overrides */
.selected-times-main-header {
    color: #1e3a8a;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(30, 58, 138, 0.1);
}

.selected-times-header {
    font-weight: 700;
    color: #1e3a8a;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    top: -0.5rem;
}

.availability-header {
    font-weight: 700 !important;
    color: #1e3a8a !important;
    margin-bottom: 2rem !important;
    font-size: 1.8rem !important;
    letter-spacing: -0.02em !important;
    gap: 0.75rem !important;
}

.availability-header::before {
    font-size: 2rem !important;
    opacity: 0.9 !important;
}

/* Calendar Styles */
.calendar-section {
    padding: 2rem 0;
}

.calendar-year-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.year-nav-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e8edf3;
    border-radius: 12px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.year-nav-btn:hover {
    border-color: #6D5B87;
    background: rgba(109, 91, 135, 0.05);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}

.legend-color.holiday {
    background: #ef4444;
}

.legend-color.religious-holiday {
    background: #8b5cf6;
}

.legend-color.unavailable {
    background: #f59e0b;
}

.legend-color.available {
    background: #e8edf3;
    border: 1px solid #cbd5e1;
}

.calendar-container {
    max-width: 900px;
    margin: 0 auto 2rem auto;
}

/* Mobile calendar adjustments */
@media (max-width: 768px) {
    .calendar-container {
        max-width: 100%;
        margin: 0 auto 1rem auto;
        padding: 0 0.5rem;
    }
}

.calendar-month {
    background: white;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    width: 100%;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #6D5B87;
    color: white;
}

.month-nav-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.month-nav-btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.month-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.month-title {
    text-align: center;
}

.month-title h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.month-counter {
    font-size: 0.9rem;
    opacity: 0.8;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
    gap: 0;
    border-collapse: collapse;
}

.day-header {
    background: #f8fafc;
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #64748b;
    border-right: 1px solid #e8edf3;
    border-bottom: 1px solid #e8edf3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border-right: 1px solid #e8edf3;
    border-bottom: 1px solid #e8edf3;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.25rem;
    background: white;
}

.calendar-day:hover:not(.empty):not(.federal-holiday) {
    background: rgba(109, 91, 135, 0.05);
    border-color: #6D5B87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(109, 91, 135, 0.15);
}

.calendar-day.empty {
    background: #f8fafc;
    cursor: default;
}

.day-number {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.holiday-name {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.calendar-day.federal-holiday {
    background: #ef4444;
    color: white;
    cursor: not-allowed;
}

.calendar-day.federal-holiday:hover {
    background: #dc2626;
    transform: none;
    box-shadow: none;
}

.calendar-day.christian-holiday,
.calendar-day.jewish-holiday {
    background: #8b5cf6;
    color: white;
}

.calendar-day.christian-holiday:hover,
.calendar-day.jewish-holiday:hover {
    background: #7c3aed;
}

.calendar-day.user-unavailable {
    background: #f59e0b;
    color: white;
    font-weight: 700;
}

.calendar-day.user-unavailable:hover {
    background: #d97706;
}

.calendar-day.user-unavailable.christian-holiday,
.calendar-day.user-unavailable.jewish-holiday {
    background: repeating-linear-gradient(
        45deg,
        #f59e0b 0px,
        #f59e0b 8px,
        #8b5cf6 8px,
        #8b5cf6 16px
    );
}

.calendar-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.calendar-actions .btn-secondary {
    flex: 1;
}

.calendar-actions .continue-btn {
    flex: 2;
}

/* Enhanced Time Block Controls */
.time-block-controls-container {
    margin-bottom: 2.5rem;
}

.controls-title {
    text-align: center;
    color: #44364B;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.time-block-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.time-block-btn {
    padding: 1.25rem;
    border: 2px solid #e8edf3;
    border-radius: 16px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    flex: 1;
    min-width: 0;
    height: 90px;
    min-height: 90px;
    max-height: 90px;
}

.time-block-btn::after {
    content: attr(data-description);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #44364B;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10;
}


.btn-main {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-time {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.7;
}


.time-block-btn.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.time-block-btn.active .btn-time {
    opacity: 0.9;
}

/* Day Selector (Mobile-First) */
.day-selector {
    margin-bottom: 2rem;
}

.day-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.day-tabs::-webkit-scrollbar {
    display: none;
}

.day-tab {
    min-width: 60px;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-align: center;
}

.day-tab:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

.day-tab.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Time Slots Container */
.time-slots-container {
    margin-bottom: 2rem;
}

.time-block {
    margin-bottom: 2rem;
}

.time-block h3 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    padding-left: 1rem;
}

.weekly-grid-container {
    background: #f0f4f8;
    border-radius: 24px;
    border: none;
    padding: 2rem;
    overflow-x: auto;
    box-shadow: 
        0 1px 3px rgba(102, 126, 234, 0.08),
        0 8px 32px rgba(102, 126, 234, 0.04);
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.weekly-grid {
    display: grid;
    grid-template-columns: 120px repeat(7, 1fr);
    gap: 2px;
    min-width: 800px;
    background: rgba(198, 128, 140, 0.15);
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.day-header {
    background: #c8d4e6;
    color: #2d3748;
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    text-transform: none;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    border: none;
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.2);
}

.time-label {
    background: #d4dce8;
    color: #2d3748;
    padding: 1rem 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Mono', monospace;
    letter-spacing: -0.01em;
    border: none;
    box-shadow: 0 1px 2px rgba(102, 126, 234, 0.15);
}

.time-label.corner {
    background: #c8d4e6;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #2d3748;
}

.time-slot {
    min-height: 56px;
    background: #e6ebf1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: none;
    font-size: 0.8rem;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.01em;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    color: #4a5568;
    box-shadow: 0 1px 2px rgba(102, 126, 234, 0.04);
}

.time-slot:hover {
    background: #d8dfe8;
    z-index: 1;
    transform: none;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.12);
    color: #2d3748;
}

.time-slot.selected {
    background: #E45932;
    color: white;
    font-weight: 600;
    transform: none;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(228, 89, 50, 0.4);
}

.time-slot.selecting {
    background: #b8c8dd;
    color: #2d3748;
    font-weight: 500;
    transform: none;
    box-shadow: 0 1px 3px rgba(184, 200, 221, 0.2);
}

.time-slot.deselecting {
    background: #f0f0f0;
    color: #718096;
    font-weight: 400;
    transform: none;
    box-shadow: 0 1px 3px rgba(113, 128, 150, 0.15);
    position: relative;
}

.time-slot.drag-preview {
    background: rgba(59, 130, 246, 0.2);
    border-color: #93c5fd;
}

.time-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.time-range-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* Quick Actions - Family Friendly */
.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 14px;
    background: #e8edf3;
    color: #4a5568;
    cursor: pointer;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.01em;
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 
        0 1px 3px rgba(102, 126, 234, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.quick-action-btn:hover:not(:disabled) {
    background: #d4dcec;
    transform: none;
    color: #667eea;
}

.quick-action-btn:active:not(:disabled) {
    background: #c2cde0;
    transform: scale(0.98);
}

.quick-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quick-action-btn .icon {
    font-size: 1rem;
    opacity: 0.8;
}


/* Sticky Continue Button */
.sticky-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.05);
    z-index: 1000;
}

.continue-btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.continue-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

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

.continue-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.continue-btn:hover:not(:disabled) .continue-icon {
    transform: translateX(4px);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

/* Location Section Enhancements */
.location-section {
    text-align: center;
}

.location-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
}

.location-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    border-radius: 20px;
    padding: 1.75rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.1);
}


.location-card[data-popular="true"] {
    border-color: #f59e0b;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 18px 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s;
}

.location-card:hover::before {
    left: 100%;
}

.location-card:hover {
    border-color: #6366f1;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
    background: linear-gradient(135deg, #fefefe 0%, #f1f5f9 100%);
}

.location-card.selected {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3);
    transform: translateY(-4px);
}

.location-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.location-card h3 {
    color: #1e3a8a;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.location-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
    flex-grow: 1;
}

.deposit-info {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.location-card:hover .deposit-info {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.deposit-label {
    color: #F5AD8C;
    font-weight: 600;
    font-size: 1.1rem;
}

.price {
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
}

/* Enhanced Confirmation Section */
.confirmation-section {
    text-align: center;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.confirmation-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid #93c5fd;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

.confirmation-hero h2 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-text {
    color: #4a5568;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Next Steps Section */
.next-steps-section {
    margin: 2.5rem 0;
}

.next-steps-header {
    margin-bottom: 2rem;
}

.next-steps-header h3 {
    color: #44364B;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

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

.step-card {
    background: white;
    border: 2px solid #e8edf3;
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(109, 91, 135, 0.1);
    border-color: #C6808C;
}

.step-card.special {
    background: linear-gradient(135deg, #fef7e0 0%, #fef3c7 100%);
    border-color: #f59e0b;
}

.step-card.special:hover {
    border-color: #d97706;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.step-content h4 {
    color: #1e3a8a;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #4a5568;
    line-height: 1.5;
    font-size: 1rem;
}

.step-card.special .step-content h4 {
    color: #b45309;
}

.step-card.special .step-content p {
    color: #92400e;
}

/* Final Actions */
.final-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e8edf3;
}

.final-actions .btn-primary {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.contact-info {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.contact-info strong {
    color: #1e3a8a;
    font-weight: 600;
}


/* Registration Summary Styles */
.registration-summary {
    margin: 2.5rem 0;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(109, 91, 135, 0.08);
    border: 2px solid #e8edf3;
    text-align: left;
}

.summary-section {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item.full-width {
    grid-column: 1 / -1;
}

.summary-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 500;
}

.schedule-summary .summary-day {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.no-schedule {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.unavailable-dates-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.unavailable-date-item {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 8px;
    border: 2px solid #ef4444;
    color: #991b1b;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.1);
}

.location-choice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    border: 2px solid #3b82f6;
}

.location-name {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 1.1rem;
}

.location-deposit {
    font-weight: 700;
    color: #1e3a8a;
    font-size: 1.2rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* Email Status Styles */
.email-status {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #f8fafc;
    animation: slideIn 0.3s ease-out;
}

.email-status.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
}

.email-status.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.status-message {
    flex: 1;
    font-weight: 500;
}

.email-status.success .status-message {
    color: #166534;
}

.email-status.error .status-message {
    color: #dc2626;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

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

/* Button Styles */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Info Form Styles */
.info-form-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 500px;
    overflow-y: auto;
}

.student-info-form {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid #f1f5f9;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #374151;
    font-family: inherit;
    height: 3.5rem;
    line-height: 1.5;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    cursor: pointer;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-input:valid, .form-select:valid {
    border-color: #10b981;
}

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

.input-icon {
    position: absolute;
    left: 1rem;
    bottom: 0.85rem;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 1;
}

.form-group:has(.form-select) .input-icon {
    bottom: 0.85rem;
}

.form-group:has(.form-textarea) .input-icon {
    top: 3.5rem;
    bottom: auto;
}

.form-actions {
    margin-top: 3rem;
    text-align: center;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Required field indicator */
.form-label::after {
    content: '';
}

.form-group:has([required]) .form-label::after {
    content: ' *';
    color: #ef4444;
    font-weight: bold;
}

/* Form validation styles */
.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Phone number formatting */
.form-input[type="tel"] {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Form Error Styles */
.form-error-container {
    margin-bottom: 2rem;
}

.form-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
}

.error-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.error-content h4 {
    color: #dc2626;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.error-content ul {
    color: #b91c1c;
    margin: 0;
    padding-left: 1.2rem;
}

.error-content li {
    margin-bottom: 0.25rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    header {
        padding: 1.5rem 1rem;
    }
    
    .logo-section h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1rem 0 6rem 0;
    }
    
    .student-info-form {
        padding: 1.5rem;
    }
    
    .form-input, .form-select, .form-textarea {
        padding: 0.875rem 0.875rem 0.875rem 3rem;
        font-size: 0.95rem;
        height: 3.25rem;
    }
    
    .input-icon {
        font-size: 1rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .summary-section {
        padding: 1.5rem;
    }
    
    .location-choice {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .weekly-grid-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .weekly-grid {
        grid-template-columns: 90px repeat(7, 1fr);
        min-width: 650px;
        gap: 1px;
    }
    
    .day-header {
        padding: 1.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .time-label {
        padding: 0.875rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .time-slot {
        min-height: 48px;
        font-size: 0.75rem;
    }
    
    .time-block-controls {
        flex-direction: column;
        gap: 0.125rem;
        max-width: 280px;
    }
    
    .time-block-btn {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .location-options {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .location-card {
        min-height: 240px;
        padding: 1.5rem;
    }
    
    .location-card[data-popular="true"] {
        transform: scale(1);
    }
    
    .deposit-info {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .deposit-label {
        font-size: 1rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .sticky-actions {
        padding: 1rem;
    }
    
    
    .success-message {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* Extra Small Mobile Optimizations for Calendar */
@media (max-width: 480px) {
    .calendar-year-selector {
        padding: 0 0.5rem;
    }
    
    .year-nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .calendar-legend {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .legend-color {
        width: 16px;
        height: 16px;
    }
    
    .calendar-container {
        margin: 0 0.125rem 1rem 0.125rem;
    }
    
    .calendar-navigation {
        padding: 0.5rem 0.75rem;
    }
    
    .month-nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .month-title h3 {
        font-size: 1.1rem;
    }
    
    .day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .calendar-day {
        min-height: 65px;
        padding: 0.375rem;
    }
    
    .day-number {
        font-size: 1.1rem;
    }
    
    .holiday-name {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .calendar-actions {
        padding: 0 0.5rem;
    }

    .time-pills {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .time-pill {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .day-tab {
        min-width: 50px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .time-block-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .time-block-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .location-options {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .location-card {
        padding: 1.25rem;
        min-height: 200px;
    }
    
    .location-card h3 {
        font-size: 1.3rem;
    }
    
    .location-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Day Navigation Tabs for Day Grid */
.day-tabs-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.day-tabs-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    flex: 1;
}

.day-tabs::-webkit-scrollbar {
    display: none;
}

/* Scroll Arrows */
.scroll-arrow {
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
    z-index: 10;
}

.scroll-arrow:hover {
    background: #4f46e5;
    transform: scale(1.1);
}

.scroll-arrow:active {
    transform: scale(0.95);
}

.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Fade gradients to indicate scrollable content */
.day-tabs-container::before,
.day-tabs-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.day-tabs-container::before {
    left: 44px;
    background: linear-gradient(to right, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
    opacity: 0;
}

.day-tabs-container::after {
    right: 44px;
    background: linear-gradient(to left, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
    opacity: 1;
}

.day-tabs-container.can-scroll-left::before {
    opacity: 1;
}

.day-tabs-container.can-scroll-right::after {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .day-tabs-container::before {
        left: 38px;
    }
    
    .day-tabs-container::after {
        right: 38px;
    }
}

/* Day Grid Styling */
.day-grid-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.day-grid-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.day-grid-header h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.day-grid-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.day-grid {
    display: grid;
    gap: 1px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow-y: scroll;
    max-height: 55vh;
    height: 55vh;
    -webkit-overflow-scrolling: touch;
}

.day-time-label {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-right: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    min-height: 50px;
}

.day-time-slot {
    background: white;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    font-weight: 500;
    position: relative;
    border: 2px solid transparent;
}

.day-time-slot:hover {
    background: #f0f9ff;
    border-color: #3b82f6;
    transform: scale(1.02);
}

.day-time-slot.selected {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-color: #1e3a8a;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.day-time-slot.selected:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: scale(1.02);
}

.day-time-slot.selecting {
    background: #dbeafe;
    border-color: #3b82f6;
    animation: pulse 0.5s ease-in-out infinite alternate;
}

.day-time-slot.deselecting {
    background: #fee2e2;
    border-color: #ef4444;
    animation: pulse 0.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

/* Mobile Optimizations for Calendar */
@media (max-width: 768px) {
    .calendar-section {
        padding: 1rem 0;
    }
    
    .calendar-year-selector {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .calendar-year-selector h3 {
        font-size: 1.2rem;
        margin: 0;
        order: -1;
    }
    
    .year-nav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        max-width: 150px;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        padding: 1rem;
        align-items: flex-start;
    }
    
    .legend-item {
        font-size: 0.85rem;
        width: 100%;
    }
    
    .calendar-container {
        margin: 0;
        padding: 0;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .calendar-month {
        border-radius: 0;
        border: none;
        margin: 0;
        width: 100%;
    }
    
    .calendar-navigation {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .month-nav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .month-title h3 {
        font-size: 1.2rem;
    }
    
    .month-counter {
        font-size: 0.8rem;
    }
    
    .day-header {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .calendar-day {
        min-height: 32px;
        padding: 0.1rem;
        font-size: 0.7rem;
        border-width: 0.5px;
        aspect-ratio: 1;
    }
    
    .day-header {
        padding: 0.25rem 0.1rem;
        font-size: 0.6rem;
        border-width: 0.5px;
    }
    
    .day-number {
        font-size: 0.65rem;
        font-weight: 600;
        margin-bottom: 0.0625rem;
        padding: 0.0625rem;
        border-radius: 50%;
        width: 1.25rem;
        height: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .holiday-name {
        font-size: 0.55rem;
        line-height: 1.1;
        word-break: break-word;
        max-width: 100%;
    }
    
    .calendar-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .calendar-actions .btn-secondary,
    .calendar-actions .continue-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Mobile Optimizations for Day Grid */
@media (max-width: 768px) {
    .day-grid-container {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 8px;
    }
    
    .day-grid-header h3 {
        font-size: 1.25rem;
    }
    
    .day-grid-subtitle {
        font-size: 0.8rem;
    }
    
    .day-grid {
        max-height: 45vh !important;
        overflow-y: scroll !important;
        gap: 2px;
        -webkit-overflow-scrolling: touch;
        height: 45vh !important;
        min-height: 45vh;
    }
    
    .day-time-label {
        padding: 1rem 0.75rem;
        font-size: 0.8rem;
        min-height: 60px;
    }
    
    .day-time-slot {
        padding: 1rem 0.75rem;
        min-height: 60px;
        font-size: 0.9rem;
        touch-action: manipulation;
    }
    
    .day-time-slot:active {
        transform: scale(0.98);
    }
}

/* Responsive Day Grid */
.day-grid-container {
    margin: 0.5rem 0;
    padding: 0.75rem;
}

.day-grid {
    max-height: 40vh;
    height: 40vh;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.day-time-label {
    font-size: 0.75rem;
    padding: 0.75rem 0.5rem;
    min-height: 55px;
}

.day-time-slot {
    font-size: 0.85rem;
    padding: 0.75rem 0.5rem;
    min-height: 55px;
}

/* Mobile Day Grid - up to 768px */
@media (max-width: 768px) {
    .day-grid {
        max-height: 35vh;
        height: 35vh;
    }
    
    .day-time-label {
        font-size: 0.7rem;
        padding: 0.6rem 0.4rem;
        min-height: 50px;
    }
    
    .day-time-slot {
        font-size: 0.8rem;
        padding: 0.6rem 0.4rem;
        min-height: 50px;
    }
}

/* Tablet Day Grid - 768px to 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .day-grid {
        max-height: 45vh;
        height: 45vh;
    }
    
    .day-time-label {
        font-size: 0.85rem;
        padding: 0.8rem 0.6rem;
        min-height: 60px;
    }
    
    .day-time-slot {
        font-size: 0.9rem;
        padding: 0.8rem 0.6rem;
        min-height: 60px;
    }
}

/* Desktop Day Grid - 1024px and up */
@media (min-width: 1024px) {
    .day-grid {
        max-height: 50vh;
        height: 50vh;
    }
    
    .day-time-label {
        font-size: 0.9rem;
        padding: 1rem 0.75rem;
        min-height: 65px;
    }
    
    .day-time-slot {
        font-size: 1rem;
        padding: 1rem 0.75rem;
        min-height: 65px;
    }
}

/* Time Pills Container */
.day-pills-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.day-pills-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.day-pills-header h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.day-pills-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* Time Pills for flowing layout */
.time-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
}

.time-pill {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    width: 160px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-pill:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

.time-pill.selected {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-color: #1e3a8a;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.time-pill.selected:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
}

/* Schedule Table Styles */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.schedule-table thead {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.schedule-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.schedule-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.schedule-table tbody tr:last-child {
    border-bottom: none;
}

.schedule-table tbody tr:hover {
    background: #f8fafc;
}

.schedule-table td {
    padding: 0.875rem 1rem;
    vertical-align: top;
}

.day-column {
    font-weight: 600;
    color: #1e3a8a;
    white-space: nowrap;
    width: 25%;
}

.times-column {
    color: #4b5563;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .schedule-table th,
    .schedule-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .day-column {
        width: 30%;
    }
}

@media (max-width: 480px) {
    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem 0.375rem;
        font-size: 0.8rem;
    }
    
    .times-column {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* Responsive Time Pills Optimizations */
@media (max-width: 768px) {
    .day-pills-container {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 8px;
    }
    
    .day-pills-header h3 {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .day-pills-container {
        padding: 1.2rem;
        margin: 0.8rem;
        border-radius: 10px;
    }
    
    .day-pills-header h3 {
        font-size: 1.35rem;
    }
}

@media (min-width: 1024px) {
    .day-pills-container {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 12px;
    }
    
    .day-pills-header h3 {
        font-size: 1.5rem;
    }
}
    
    .day-pills-subtitle {
        font-size: 0.8rem;
    }
    
    .time-pills {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .time-pill {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        width: 150px;
        min-width: 150px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .time-pills {
        gap: 0.4rem;
    }
    
    .time-pill {
        padding: 0.65rem 0.9rem;
        font-size: 0.8rem;
        width: 140px;
        min-width: 140px;
    }
}