/* Planning Center Forms Modal - Simplified Version */

/* Button Styling */
.pcfm-trigger-button {
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.pcfm-trigger-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modal Container */
.pcfm-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: none !important;
}

.pcfm-modal.active {
    display: block !important;
}

/* Modal Overlay */
.pcfm-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

/* Modal Dialog Wrapper */
.pcfm-modal-dialog {
    position: relative !important;
    width: 90% !important;
    max-width: 600px !important;
    margin: 30px auto !important;
    height: 700px !important;
}

/* Modal Content */
.pcfm-modal-content {
    position: relative !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    height: 700px !important;
}

/* Modal Close Button */
.pcfm-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 32px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    z-index: 1001 !important;
    transition: all 0.2s ease !important;
}

.pcfm-modal-close:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* Modal Body */
.pcfm-modal-body {
    position: relative !important;
    background: #ffffff !important;
    height: 700px !important;
    overflow: hidden !important;
}

.pcfm-modal-body iframe {
    display: block !important;
    background: #ffffff !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 700px !important;
}

/* Prevent body scroll when modal is open */
body.pcfm-modal-open {
    overflow: hidden !important;
}

/* Mobile - Full screen */
@media (max-width: 767px) {
    .pcfm-modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        height: 100vh !important;
    }
    
    .pcfm-modal-content {
        border-radius: 0 !important;
        height: 100vh !important;
    }
    
    .pcfm-modal-body {
        height: calc(100vh - 50px) !important;
        padding-top: 50px !important;
    }
    
    .pcfm-modal-body iframe {
        height: 100% !important;
    }
}
