.wpch-modal-launch{margin:1rem 0}.wpch-open,.wpch-next{background:#174d7c;color:#fff;border:0;border-radius:5px;padding:.75rem 1.25rem;cursor:pointer;font:inherit}.wpch-open:hover,.wpch-next:hover{background:#0e3557}.wpch-dialog[hidden],.wpch-review[hidden],.wpch-result[hidden],.wpch-challenge[hidden]{display:none!important}.wpch-dialog{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.65);display:flex;align-items:center;justify-content:center;padding:1rem}.wpch-panel{position:relative;background:#fff;color:#222;width:min(100%,580px);max-height:92vh;overflow-y:auto;border-radius:10px;padding:1.5rem;box-shadow:0 15px 50px #0005}.wpch-panel label{display:block;margin:1rem 0;font-weight:600}.wpch-panel input:not([type=hidden]),.wpch-panel textarea{display:block;width:100%;box-sizing:border-box;padding:.65rem;border:1px solid #777;border-radius:4px;margin-top:.35rem;font:inherit}.wpch-panel .wpch-close{position:absolute;top:.5rem;right:.6rem;background:transparent;border:0;font-size:2rem;cursor:pointer}.wpch-actions{display:flex;justify-content:flex-end;gap:1rem}.wpch-back{background:transparent;border:1px solid #777;border-radius:5px;padding:.6rem 1rem;cursor:pointer}.wpch-error{color:#b42318;font-weight:600}.wpch-review{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f5f7;padding:1rem;margin:1rem 0}.wpch-opened{overflow:hidden}
/* The replacement trigger is outside the native form; hide the original form only when modal is enabled. */
html.wpch-modal-ready .wpch-native-replaced{display:none!important}
.wpch-dialog button:focus-visible,.wpch-dialog input:focus-visible,.wpch-dialog textarea:focus-visible,.wpch-open:focus-visible{outline:3px solid #2b73bc;outline-offset:3px}
.wpch-dialog .wpch-close{color:#222}
.wpch-result{padding:1rem;background:#eff9f2;border-left:4px solid #23784b}

.wpch-dialog [hidden]{display:none!important}

.wpch-submission-notice{padding:1rem;margin:1rem 0;background:#eff9f2;color:#154d31;border-left:4px solid #23784b}

html.wpch-modal-ready .wpch-native-respond-replaced{display:none!important}

/* Modal controls must remain legible regardless of theme button styles. */
.wpch-dialog .wpch-back{color:#222!important;background:#fff!important;border:1px solid #666!important;opacity:1}
.wpch-dialog .wpch-back:hover{color:#111!important;background:#f0f0f0!important;border-color:#333!important}
.wpch-dialog .wpch-next,.wpch-dialog .wpch-return{color:#fff!important;background:#174d7c!important;border:0;border-radius:5px;padding:.75rem 1.25rem;cursor:pointer;font:inherit;opacity:1}
.wpch-dialog .wpch-next:hover,.wpch-dialog .wpch-return:hover{background:#0e3557!important;color:#fff!important}
.wpch-dialog .wpch-next:disabled{opacity:.7;cursor:wait}
.wpch-dialog .wpch-result-message{margin:0 0 1rem}

/* Confirmation must not inherit hidden/transparent theme controls. */
.wpch-dialog .wpch-result:not([hidden]){display:block!important;visibility:visible!important;color:#154d31!important;opacity:1!important;min-height:95px}
.wpch-dialog .wpch-result-message{display:block!important;visibility:visible!important;color:#154d31!important;font-size:1rem!important;line-height:1.5!important;opacity:1!important;margin:0 0 1rem!important}
.wpch-dialog .wpch-result .wpch-return{display:inline-block!important;visibility:visible!important;color:#fff!important;opacity:1!important;min-height:42px}

/* Submission confirmation: readable, consistent with the form, and accessible. */
.wpch-dialog .wpch-result-message{font-size:18px!important;line-height:1.5!important;font-weight:500!important;margin:0 0 1.25rem!important}
.wpch-dialog .wpch-result .wpch-return{font-size:16px!important;line-height:1.4!important;padding:.8rem 1.2rem!important}
.wpch-dialog .wpch-result{padding:1.25rem!important}
.wpch-modal-launch .wpch-submission-notice{font-size:16px;line-height:1.5;padding:1rem 1.25rem;margin:1rem 0;background:#eff9f2;color:#154d31;border-left:4px solid #23784b}
.wpch-modal-launch .wpch-submission-notice strong{display:block;font-size:18px;font-weight:700}
.wpch-modal-launch .wpch-submission-notice p{margin:.35rem 0 0}

/* Keep the post-submission receipt visible regardless of theme button/paragraph rules. */
.wpch-modal-launch.wpch-received .wpch-open{display:none!important}
.wpch-modal-launch .wpch-submission-notice{display:block!important;visibility:visible!important;opacity:1!important;font-size:18px!important;line-height:1.55!important;color:#154d31!important}
.wpch-modal-launch .wpch-submission-notice strong{font-size:20px!important;color:#154d31!important}
.wpch-modal-launch .wpch-submission-notice p{font-size:17px!important;line-height:1.5!important;color:#154d31!important}
