/* ============================================================
   Cal.com Popup Modal Styles
   Add this to your style.css or include as separate file
   ============================================================ */

/* Modal Container */
#cal-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#cal-popup-modal.active {
    display: flex;
}

/* Dark Overlay */
.cal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

/* Modal Box */
.cal-modal-box {
    position: relative;
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

/* Close Button */
.cal-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.cal-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Modal Header */
.cal-modal-header {
    padding: 28px 32px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.cal-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #0c1220;
    margin-bottom: 6px;
}

.cal-modal-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Modal Body - Cal.com Embed Container */
.cal-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px;
}

.cal-modal-body iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    border-radius: 12px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    #cal-popup-modal {
        padding: 0;
    }
    .cal-modal-box {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .cal-modal-header {
        padding: 20px 20px 12px;
    }
    .cal-modal-header h3 {
        font-size: 20px;
    }
    .cal-modal-body {
        min-height: 400px;
    }
    .cal-modal-close {
        top: 10px;
        right: 12px;
    }
}