/* Schedule Page Styles - Premium Booking Experience */

/* ============================================================
   Schedule Page Layout
   ============================================================ */
.schedule-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.schedule-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex: 1;
}

@media (min-width: 1024px) {
    .schedule-container {
        padding: 0 2rem;
    }
}

/* Two-column layout for desktop */
.schedule-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .schedule-layout {
        grid-template-columns: minmax(420px, 1fr) minmax(650px, 720px);
        gap: 3rem;
        margin-top: 4rem;
        align-items: start;
    }
}

/* Left Content Section */
.schedule-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.schedule-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: fit-content;
}

.light .schedule-badge {
    background: rgba(249, 115, 22, 0.08);
}

.schedule-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--v-orange);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.schedule-badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--v-orange);
}

.schedule-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: white;
}

.light .schedule-title {
    color: #111827;
}

@media (min-width: 768px) {
    .schedule-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .schedule-title {
        font-size: 3.5rem;
    }
}

.schedule-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--v-muted);
    max-width: 36rem;
}

.light .schedule-description {
    color: #4b5563;
}

/* Benefits List */
.schedule-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.schedule-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #e4e4e7;
}

.light .schedule-benefit {
    color: #374151;
}

.schedule-benefit-icon {
    width: 20px;
    height: 20px;
    color: var(--v-orange);
    flex-shrink: 0;
}

/* Benefit icon container with subtle background */
.schedule-benefit-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(249, 115, 22, 0.1);
    flex-shrink: 0;
}

.light .schedule-benefit-icon-container {
    background: rgba(249, 115, 22, 0.08);
}

/* Trust Badge */
.schedule-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 0;
}

.schedule-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.light .schedule-trust-badge {
    background: rgba(249, 115, 22, 0.05);
}

.schedule-stats-text {
    font-size: 0.875rem;
    color: var(--v-muted);
}

.light .schedule-stats-text {
    color: #6b7280;
}

.schedule-stats-text strong {
    color: white;
    font-weight: 600;
}

.light .schedule-stats-text strong {
    color: #111827;
}

/* CTA Button */
.schedule-cta {
    margin-top: 0.5rem;
}

/* Calendar Header */
.schedule-calendar-header {
    margin-bottom: 1rem;
}

.schedule-calendar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.light .schedule-calendar-title {
    color: #111827;
}

.schedule-calendar-subtitle {
    font-size: 0.95rem;
    color: var(--v-muted);
}

.light .schedule-calendar-subtitle {
    color: #6b7280;
}

/* Calendar wrapper */
.schedule-calendar-wrapper {
    width: 560px;
    height: 720px;
    border-radius: 28px;
    overflow: hidden;
}

/* Cal.com inline embed container */
#my-cal-inline-demo {
    width: 100%;
    height: 100%;
    border-radius: 28px;
}

/* Ensure Cal.com content fills the container */
#my-cal-inline-demo > div {
    width: 100% !important;
    height: 100% !important;
    border-radius: 28px;
}

/* Ensure Cal.com iframe is styled properly */
#my-cal-inline-demo iframe {
    border-radius: 28px;
    width: 100% !important;
    height: 100% !important;
}

/* Powered by Cal.com badge */
.cal-powered-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 600;
    color: #666;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.light .cal-powered-badge {
    background: rgba(0, 0, 0, 0.08);
    color: #444;
}

/* Loading Skeleton */
.schedule-skeleton {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--v-dark) 0%, var(--v-black) 100%);
    border: 1px solid var(--v-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.light .schedule-skeleton {
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #d1d5db;
}

.schedule-skeleton-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.schedule-skeleton-title {
    width: 120px;
    height: 24px;
    background: var(--v-border);
    border-radius: 0.5rem;
    animation: shimmer 1.5s ease-in-out infinite;
}

.schedule-skeleton-dots {
    display: flex;
    gap: 0.5rem;
}

.schedule-skeleton-dot {
    width: 8px;
    height: 8px;
    background: var(--v-border);
    border-radius: 50%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.schedule-skeleton-calendar {
    flex: 1;
    background: var(--v-border);
    border-radius: 20px;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* Error State */
.schedule-error {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
    text-align: center;
}

.schedule-error.active {
    display: flex;
}

.schedule-error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.schedule-error-icon {
    width: 48px;
    height: 48px;
    color: var(--v-orange);
}

.schedule-error-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.light .schedule-error-title {
    color: #111827;
}

.schedule-error-text {
    font-size: 0.875rem;
    color: var(--v-muted);
    max-width: 28rem;
}

.light .schedule-error-text {
    color: #6b7280;
}

/* Back Link */
.schedule-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--v-orange);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.schedule-back:hover {
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    .schedule-layout {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .schedule-container {
        padding: 0 1rem;
    }
    
    .schedule-title {
        font-size: 2rem;
    }
    
    .schedule-description {
        font-size: 1rem;
    }
    
    .schedule-calendar-wrapper {
        max-width: 100%;
        height: 760px;
    }
}

/* Animation for fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Button ripple effect */
.schedule-btn {
    position: relative;
    overflow: hidden;
}

.schedule-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.schedule-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Focus states for accessibility */
.schedule-btn:focus-visible,
.schedule-back:focus-visible {
    outline: 2px solid var(--v-orange);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .schedule-fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .schedule-badge-dot {
        animation: none;
    }
    
    .schedule-skeleton-title,
    .schedule-skeleton-dot,
    .schedule-skeleton-calendar {
        animation: none;
    }
}