/* Workiz Booking Form — v1.0.0 */

/* ─── Inline Container ──────────────────────────────────── */

.workiz-iframe-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ─── Dots Loader (shared) ──────────────────────────────── */

.workiz-dots-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    height: 400px;
}

.workiz-dots-loader .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f46e5;
    opacity: 0.35;
    animation: workiz-bounce 1s ease-in-out infinite;
}

.workiz-dots-loader .dot:nth-child(2) {
    animation-delay: 0.15s;
}

.workiz-dots-loader .dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes workiz-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    40% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* ─── Modal Overlay ─────────────────────────────────────── */

.workiz-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.workiz-modal-dialog {
    background: #fff;
    border-radius: 6px;
    width: 90%;
    max-width: 1200px;
    height: 700px;
    max-height: 90vh;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.workiz-modal-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
    transition: color 0.2s;
}

.workiz-modal-close:hover {
    color: #333;
}

.workiz-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.workiz-modal-body iframe {
    flex: 1;
    width: 100%;
    border: none;
}

/* ─── Mobile ────────────────────────────────────────────── */

@media (max-width: 767px) {
    .workiz-modal-dialog {
        width: 95vw;
        height: 90vh;
        padding: 8px 10px;
    }

    .workiz-dots-loader {
        height: 200px;
    }
}
