/* ==========================================
   CALENDAR.CSS - Michelle Langan Mediation Law Firm
   
   TABLE OF CONTENTS
   ==========================================
   1. Scheduling Container
   2. Scheduling Intro Section
   3. Calendar Section
   4. Calendar iFrame Styles
   5. Appointment Types Section
   6. Preparation Info Section
   7. Responsive Adjustments
      7.1 Large Tablets (< 1250px)
      7.2 Medium Screens (< 950px)
      7.3 Mobile (< 768px)
      7.4 Small Mobile (< 480px)
   ========================================== */

/* ========================================
   1. SCHEDULING CONTAINER
======================================== */

.scheduling-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   2. SCHEDULING INTRO SECTION
======================================== */

.scheduling-intro {
    background: var(--gradient-blue);
    border-left: 6px solid var(--warm-tan);
    color: var(--text-light);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.scheduling-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

.scheduling-intro h2 {
    color: var(--warm-tan);
    position: relative;
    font-size: 2.25rem;
    z-index: 2;
}

.scheduling-intro p {
    position: relative;
    font-size: 1.25rem;
    z-index: 2;
    margin: 0;
}

/* ========================================
   3. CALENDAR SECTION
======================================== */

.calendar-section {
    background: var(--bg-white);
    padding: var(--space-xl);
    box-shadow: var(--shadow-strong);
    margin-bottom: var(--space-3xl);
    border-top: 4px solid var(--primary-navy);
}

.calendar-container {
    text-align: center;
    padding: var(--space-lg) 0;
}

.calendar-intro-text {
    margin-bottom: var(--space-xl);
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   4. CALENDAR IFRAME STYLES
======================================== */

.calendar-iframe-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    overflow: hidden;
}

.calendar-iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1 !important;
    min-height: 400px;
}

.calendar-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.calendar-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-style: italic;
    z-index: 1;
}

.calendar-iframe-wrapper::before {
    content: "Loading calendar...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-style: italic;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.calendar-iframe-wrapper.loaded::before {
    opacity: 0;
    visibility: hidden;
}

.temp-contact-info {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--border-light);
}

/* ========================================
   5. APPOINTMENT TYPES SECTION
======================================== */

.appointment-types {
    margin-bottom: var(--space-3xl);
}

.appointment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.appointment-type {
    background: var(--bg-white);
    padding: var(--space-xl);
    box-shadow: var(--shadow-medium);
    border-left: 6px solid var(--warm-tan);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.appointment-type::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: var(--warm-tan);
    opacity: 0.08;
    clip-path: polygon(100% 0, 100% 70%, 30% 100%, 0 30%, 0 0);
}

.appointment-type:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.appointment-type h4 {
    margin-bottom: var(--space-sm);
    color: var(--primary-navy);
}

.duration {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    font-weight: 500;
}

/* ========================================
   6. PREPARATION INFO SECTION
======================================== */

.preparation-info {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: var(--space-3xl);
    border-left: 6px solid var(--primary-navy);
    box-shadow: var(--shadow-medium);
    font-size: 1.125rem;
}

.preparation-info ul {
    list-style: none;
    padding: 0;
}

.preparation-info li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-lg);
    position: relative;
}

.preparation-info li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--warm-tan);
    font-weight: bold;
}

/* ========================================
   7. RESPONSIVE ADJUSTMENTS
======================================== */

/* 7.1 LARGE TABLETS (< 1250px) */

@media (max-width: 1250px) {
    .calendar-iframe-container {
        max-width: 900px;
    }
    
    .calendar-iframe-wrapper {
        aspect-ratio: 1 / 1 !important;
        min-height: 500px;
    }
}

/* 7.2 MEDIUM SCREENS (< 950px) */

@media (max-width: 950px) {
    .appointment-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-iframe-container {
        max-width: 100%;
        margin: 0 var(--space-md);
    }
    
    .calendar-iframe-wrapper {
        aspect-ratio: 1 / 1 !important;
        min-height: 400px;
    }
    
    .calendar-section {
        padding: var(--space-md);
    }
    
    .scheduling-intro,
    .preparation-info {
        padding: var(--space-xl);
    }
}

/* 7.3 MOBILE (< 768px) */

@media (max-width: 768px) {
    /* Mobile adjustments handled in section 7.2 */
}

/* 7.4 SMALL MOBILE (< 480px) */

@media (max-width: 480px) {
    .scheduling-intro p {
        padding: 0 var(--space-md);
        text-align: left;
        font-size: 1.2rem;
    }
    
    .calendar-iframe-container {
        max-width: 100%;
        margin: 0;
        border-radius: var(--radius-sm);
    }
    
    .calendar-iframe-wrapper {
        aspect-ratio: auto;
        max-height: 350px;
    }
    
    .calendar-iframe-wrapper iframe {
        border-radius: var(--radius-sm);
    }
    
    .calendar-section {
        padding: var(--space-sm);
    }
    
    .calendar-intro-text {
        font-size: 1rem;
        margin-bottom: var(--space-md);
    }

    .preparation-info {
        padding: var(--space-md);
    }

    .preparation-info li {
        padding-left: 1rem;
    }

    .preparation-info li::before {
        position: relative;
        margin-right: var(--space-sm);
    }
}