#wct-goto-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    overflow-y: auto;
}

#wct-goto-modal[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wct-goto-modal-content {
    background: #fff;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 4px;
    margin: 20px auto;
}

.wct-goto-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px 10px;
}

.wct-goto-modal-close:hover {
    color: #000;
}

/* Hide Formidable's default success messages in modal (but allow our custom messages) */
#wct-goto-modal .frm_message:not(.wct-goto-success-message):not(.wct-goto-duplicate-message):not(.wct-goto-error-message),
#wct-goto-modal .frm_success_style:not(.wct-goto-success-message):not(.wct-goto-duplicate-message) {
    display: none !important;
}

/* Custom message styles */
.wct-goto-error-message,
.wct-goto-success-message,
.wct-goto-duplicate-message {
    margin: 15px 0;
    padding: 15px 20px;
    border-radius: 4px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px;
    line-height: 1.5;
}

.wct-goto-error-message {
    background: #fef7f7;
    border-left: 4px solid #dc3232;
    color: #dc3232;
}

.wct-goto-error-message strong {
    margin-right: 8px;
    font-weight: bold;
}

.wct-goto-success-message {
    background: #f0f9ff;
    border-left: 4px solid #46b450;
    color: #46b450;
}

.wct-goto-success-message strong {
    margin-right: 8px;
    font-weight: bold;
}

.wct-goto-duplicate-message {
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    color: #ffb900;
}

.wct-goto-duplicate-message strong {
    margin-right: 8px;
    font-weight: bold;
}

/* Loading message styles - same position as result messages */
.wct-goto-loading-message {
    margin: 15px 0 !important;
    padding: 15px 20px !important;
    border-radius: 4px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    background: #f0f9ff !important;
    border-left: 4px solid #2271b1 !important;
    color: #2271b1 !important;
    text-align: left !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 999999 !important;
}

/* Force visibility - override any other styles (including wct-theme-toolkit) */
#wct-goto-modal .wct-goto-loading-message,
.wct-goto-loading-message,
.wct-goto-modal--loaded .wct-goto-loading-message,
.wct-goto-modal[aria-hidden="false"] .wct-goto-loading-message,
.wct-goto-modal--loaded .wct-goto-modal__inner .wct-goto-loading-message,
.wct-goto-modal--loaded .wct-goto-modal__container .wct-goto-loading-message {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    left: auto !important;
    width: auto !important;
    padding: 15px 20px !important;
    margin: 15px 0 !important;
    pointer-events: auto !important;
    z-index: 999999 !important;
    background: #f0f9ff !important;
    border-left: 4px solid #2271b1 !important;
}

/* Ensure parent containers don't hide it */
#wct-goto-modal .wct-goto-modal__inner .wct-goto-loading-message,
#wct-goto-modal .wct-goto-modal__container .wct-goto-loading-message,
.wct-goto-modal--loaded .wct-goto-modal__inner .wct-goto-loading-message,
.wct-goto-modal--loaded .wct-goto-modal__container .wct-goto-loading-message {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wct-goto-loading-message strong {
    margin-left: 10px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    color: #2271b1 !important;
}

/* Spinner animation */
.wct-goto-spinner,
.wct-goto-loading-message .wct-goto-spinner,
#wct-goto-modal .wct-goto-spinner,
.wct-goto-modal--loaded .wct-goto-spinner {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border: 3px solid rgba(34, 113, 177, 0.3) !important;
    border-top-color: #2271b1 !important;
    border-radius: 50% !important;
    animation: wct-goto-spin 0.8s linear infinite !important;
    vertical-align: middle !important;
    margin-right: 10px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    position: relative !important;
    left: auto !important;
    overflow: visible !important;
    background: transparent !important;
}

@keyframes wct-goto-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Webinar Registration Response Templates */
/* Using unique classes to avoid conflicts */
.wct-goto-response-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 40px 20px;
}

.wct-goto-response-icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.wct-goto-response-icon-circle--orange {
    background: #fff7ed;
    border: 3px solid #f97316;
}

.wct-goto-response-icon-circle--green {
    background: #f0fdf4;
    border: 3px solid #52b175;
}

.wct-goto-response-icon-circle svg {
    width: 60px;
    height: 60px;
}

.wct-goto-response-icon-circle--orange svg {
    color: #f97316;
}

.wct-goto-response-icon-circle--green svg {
    color: #52b175;
}

.wct-goto-response-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1d1f23;
    margin-bottom: 16px;
    line-height: 1.2em;
}

.wct-goto-response-message {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 50px;
    line-height: 1.35em;
}

.wct-goto-response-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.wct-goto-response-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    min-width: 280px;
}

.wct-goto-response-btn--dark {
    background: #374151;
    color: #ffffff;
}

.wct-goto-response-btn--dark:hover {
    background: #262629;
    color: #ffffff;
}

.wct-goto-response-btn--blue {
    background: #2563eb;
    color: #ffffff;
}

.wct-goto-response-btn--blue:hover {
    background: #374151;
    color: #ffffff;
}

.wct-goto-response-footer {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.35em;
}

.wct-goto-response-footer a {
    color: #1d1f23;
    text-decoration: underline;
}

.wct-goto-response-footer a:hover {
    color: #2563eb;
}

.wct-goto-response-footer-contact {
    margin-bottom: 16px;
}

.wct-goto-response-footer-legal {
    font-size: 0.8rem;
    color: #6b7280;
    opacity: 0.8;
    line-height: 1.35em;
}

/* Responsive */
@media (max-width: 480px) {
    .wct-goto-response-icon-circle {
        width: 100px;
        height: 100px;
    }

    .wct-goto-response-icon-circle svg {
        width: 50px;
        height: 50px;
    }

    .wct-goto-response-title {
        font-size: 1.5rem;
    }

    .wct-goto-response-btn {
        min-width: 100%;
        padding: 12px 24px;
    }
}


