/**
 * Cal.com Appointment Display Styles
 *
 * Styles for displaying Cal.com booking appointments via iframe embed.
 *
 * @package Smartsheet_User_Lookup
 * @since 12.5.0
 */

/* ==========================================================================
   Container Styles
   ========================================================================== */

.calcom-appointment-container {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    padding: 0;
}

/* ==========================================================================
   Title Styles
   ========================================================================== */

.calcom-appointment-title {
    text-align: center;
    margin: 0 0 20px;
    padding: 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

/* ==========================================================================
   Iframe Wrapper
   ========================================================================== */

.calcom-appointment-iframe-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Iframe Styles
   ========================================================================== */

.calcom-appointment-iframe {
    display: block;
    width: 100%;
    border: none;
    background: #ffffff;
}

/* ==========================================================================
   No Appointment Message
   ========================================================================== */

.calcom-no-appointment {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablets */
@media (max-width: 1024px) {
    .calcom-appointment-title {
        font-size: 22px;
    }

    .calcom-appointment-iframe-wrapper {
        border-radius: 6px;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    .calcom-appointment-container {
        margin: 15px auto;
    }

    .calcom-appointment-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .calcom-appointment-iframe-wrapper {
        border-radius: 4px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .calcom-no-appointment {
        padding: 30px 15px;
        font-size: 14px;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .calcom-appointment-container {
        margin: 10px auto;
    }

    .calcom-appointment-title {
        font-size: 18px;
    }
}

/* ==========================================================================
   Dark Theme Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .calcom-appointment-title {
        color: #ffffff;
    }

    .calcom-appointment-iframe-wrapper {
        background: #1a1a1a;
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    }

    .calcom-appointment-iframe {
        background: #1a1a1a;
    }

    .calcom-no-appointment {
        background: #2a2a2a;
        color: #cccccc;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .calcom-appointment-iframe-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Focus states for keyboard navigation */
.calcom-appointment-iframe:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

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