/* ============================================= */
/* WORKSHOP SCHEDULING SYSTEM - DEDICATED STYLES */
/* ============================================= */

/* Scheduled Sessions Display */
.scheduled-sessions-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    padding: 3rem 0;
    border-top: 3px solid #0056b3;
    border-bottom: 3px solid #0056b3;
}

.scheduled-sessions-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.scheduled-sessions-header h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.scheduled-sessions-header .section-subtitle {
    font-size: 1.125rem;
    color: #4a4a4a;
    max-width: 700px;
    margin: 0 auto;
}

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

.session-card {
    background: white;
    border: 3px solid #0056b3;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
}

.session-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 86, 179, 0.25);
}

.session-card:focus-within {
    outline: 4px solid #0056b3;
    outline-offset: 4px;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.3);
}

.session-day {
    display: inline-block;
    background: #0056b3;
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.session-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.session-time {
    font-size: 1.25rem;
    color: #0056b3;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.session-time-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e3f2fd;
}

.session-detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #4a4a4a;
}

.session-detail-icon {
    width: 18px;
    height: 18px;
    color: #0056b3;
    flex-shrink: 0;
}

.session-cta {
    margin-top: 1.5rem;
}

.session-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #0056b3;
}

.session-cta .btn:hover,
.session-cta .btn:focus {
    background: #003d82;
    border-color: #003d82;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.session-cta .btn svg {
    width: 18px;
    height: 18px;
}

.sessions-note {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.sessions-note p {
    margin: 0;
    font-size: 1rem;
    color: #4a4a4a;
}

.sessions-note a {
    color: #0056b3;
    font-weight: 600;
    text-decoration: underline;
}

.sessions-note a:hover,
.sessions-note a:focus {
    color: #003d82;
    text-decoration: none;
}

@media (max-width: 768px) {
    .scheduled-sessions-section {
        padding: 2rem 0;
    }
    
    .scheduled-sessions-header h2 {
        font-size: 1.75rem;
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .session-card {
        padding: 1.5rem;
    }
    
    .session-date {
        font-size: 1.25rem;
    }
    
    .session-time {
        font-size: 1.125rem;
    }
}

/* Schedule Hero */
.schedule-hero {
    background: linear-gradient(135deg, #5a67d8 0%, #4338ca 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.schedule-hero h1 {
    color: white;
    margin-bottom: 1rem;
}

.schedule-hero-lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Scheduling Section */
.scheduling-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* Scheduling Messages */
.scheduling-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.scheduling-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.scheduling-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.scheduling-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #bee5eb;
}

/* Scheduling Card */
.scheduling-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.scheduling-card-header {
    margin-bottom: 2rem;
}

.scheduling-card-header h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #0056b3;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.scheduling-card-subtitle {
    font-size: 1.0625rem;
    color: #4a4a4a;
    margin: 0;
}

.optional-badge {
    display: inline-block;
    background: #e9ecef;
    color: #212529;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #6c757d;
}

/* Scheduling Form */
.scheduling-form {
    margin: 0;
}

.scheduling-form .form-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1rem;
}

.scheduling-form .required {
    color: #c9302c;
    font-weight: 700;
}

.scheduling-form .form-control,
.scheduling-form .form-select {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.scheduling-form .form-control:focus,
.scheduling-form .form-select:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.5);
    outline: 3px solid #0056b3;
    outline-offset: 2px;
}

.scheduling-form .invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.scheduling-form .form-control.is-invalid,
.scheduling-form .form-select.is-invalid {
    border-color: #dc3545;
}

.scheduling-form .form-control.is-invalid ~ .invalid-feedback,
.scheduling-form .form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

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

.no-slots-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #4a4a4a;
    font-size: 1.125rem;
}

.time-slot-item {
    margin-bottom: 1rem;
}

.time-slot-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.time-slot-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot-label:hover {
    border-color: #0056b3;
    background: #f0f7ff;
    transform: translateX(4px);
}

.time-slot-checkbox:checked + .time-slot-label {
    border-color: #0056b3;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.time-slot-checkbox:focus + .time-slot-label {
    outline: 4px solid #0056b3;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.3);
}

.time-slot-info {
    flex: 1;
}

.time-slot-date {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.time-slot-time {
    font-size: 1rem;
    color: #4a4a4a;
}

.time-slot-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 1rem;
    border-left: 2px solid #dee2e6;
    min-width: 100px;
}

.vote-count {
    font-size: 2rem;
    font-weight: 700;
    color: #0056b3;
    line-height: 1;
}

.vote-label {
    font-size: 0.875rem;
    color: #4a4a4a;
    text-align: center;
}

/* Saved Indicator */
.saved-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.saved-indicator svg {
    width: 20px;
    height: 20px;
    color: #28a745;
    flex-shrink: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Form Actions */
.scheduling-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    margin-top: 2rem;
}

.scheduling-form-actions .btn {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.scheduling-form-actions .btn-primary {
    background: #0056b3;
    color: white;
}

.scheduling-form-actions .btn-primary:hover,
.scheduling-form-actions .btn-primary:focus {
    background: #003d82;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.scheduling-form-actions .btn-outline-secondary {
    background: white;
    color: #4a4a4a;
    border: 2px solid #dee2e6;
}

.scheduling-form-actions .btn-outline-secondary:hover,
.scheduling-form-actions .btn-outline-secondary:focus {
    background: #f8f9fa;
    border-color: #4a4a4a;
}

.scheduling-form-actions .btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.form-help-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #212529;
    margin-top: 1rem;
    padding: 1rem;
    background: #e9ecef;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.help-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Thank You Card */
.scheduling-thank-you {
    text-align: center;
    padding: 4rem 2.5rem;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.thank-you-icon svg {
    width: 48px;
    height: 48px;
    color: white;
}

.scheduling-thank-you h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.thank-you-message {
    font-size: 1.125rem;
    color: #4a4a4a;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

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

.thank-you-actions .btn {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.thank-you-actions .btn-primary {
    background: #0056b3;
    color: white;
    border: none;
}

.thank-you-actions .btn-primary:hover,
.thank-you-actions .btn-primary:focus {
    background: #003d82;
    color: white;
    transform: translateY(-2px);
}

.thank-you-actions .btn-outline-secondary {
    background: white;
    color: #4a4a4a;
    border: 2px solid #dee2e6;
}

.thank-you-actions .btn-outline-secondary:hover,
.thank-you-actions .btn-outline-secondary:focus {
    background: #f8f9fa;
}

/* Responsive Scheduling Styles */
/* ============================================= */
/* ACCESSIBILITY: REDUCED MOTION PREFERENCES */
/* ============================================= */

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

/* ============================================= */
/* HIGH CONTRAST MODE SUPPORT */
/* ============================================= */

@media (prefers-contrast: high) {
    .session-card,
    .scheduling-card,
    .time-slot-label {
        border-width: 3px;
    }
    
    .btn,
    .scheduling-form-actions .btn {
        border-width: 3px;
    }
    
    .scheduling-form .form-control:focus,
    .scheduling-form .form-select:focus,
    .time-slot-checkbox:focus + .time-slot-label {
        outline-width: 4px;
    }
}

/* ============================================= */
/* FOCUS VISIBLE (Keyboard-only Focus Indicators) */
/* ============================================= */

/* Only show enhanced focus for keyboard navigation */
.btn:focus:not(:focus-visible) {
    outline: none;
}

.btn:focus-visible {
    outline: 4px solid #0056b3;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.3);
}

.time-slot-label:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================= */
/* RESPONSIVE DESIGN */
/* ============================================= */

@media (max-width: 768px) {
    .schedule-hero {
        padding: 3rem 0 2rem;
    }
    
    .scheduling-card {
        padding: 1.5rem;
    }
    
    .scheduling-card-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .time-slot-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .time-slot-votes {
        flex-direction: row;
        border-left: none;
        border-top: 2px solid #dee2e6;
        padding-left: 0;
        padding-top: 1rem;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .vote-count {
        font-size: 1.5rem;
    }
    
    .scheduling-form-actions {
        flex-direction: column-reverse;
    }
    
    .scheduling-form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .thank-you-actions {
        flex-direction: column;
    }
    
    .thank-you-actions .btn {
        width: 100%;
    }
}
