.tqpop-dialog { box-sizing: border-box; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px; border: 1px solid #dce3ef; border-radius: 18px; background: #fff; color: #101828; box-shadow: 0 24px 80px #10182840; font: 16px/1.5 system-ui, sans-serif; margin: auto; }
.tqpop-dialog::backdrop { background: #10182899; }
.tqpop-dialog:not([open]) { display: none !important; }
.tqpop-dialog .wpcf7 form { margin: 0; }
.tqpop-dialog .wpcf7 p { margin: 0 0 12px; }
.tqpop-dialog .wpcf7 input:not([type="submit"]), .tqpop-dialog .wpcf7 textarea { display: block; margin-top: 5px; }
.tqpop-dialog .wpcf7 input[type="hidden"] { display: none; }
.tqpop-dialog .wpcf7-not-valid-tip { font-size: 13px; color: #b42318; }
.tqpop-dialog .wpcf7-response-output { font-size: 14px; margin: 12px 0 0; padding: 10px; }
.tqpop-dialog .tqpop-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #344054; font-size: 28px; cursor: pointer; }
.tqpop-dialog .tqpop-eyebrow { color: #1d4ed8; font-size: 12px; font-weight: 750; letter-spacing: .1em; margin: 0 40px 8px 0; }
.tqpop-dialog h2 { font-size: 26px; line-height: 1.2; margin: 0 20px 12px 0; color: #101828; }
.tqpop-dialog .tqpop-intro, .tqpop-dialog .tqpop-privacy { color: #475467; font-size: 14px; margin: 0 0 16px; }
.tqpop-dialog label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 5px; }
.tqpop-dialog input, .tqpop-dialog textarea { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #98a2b3; border-radius: 8px; font: inherit; color: #101828; background: #fff; }
.tqpop-dialog textarea { resize: vertical; }
.tqpop-dialog .tqpop-privacy { margin: 12px 0; font-size: 12px; }
.tqpop-dialog a { color: #1d4ed8; text-decoration: underline; }
.tqpop-dialog .tqpop-submit { width: 100%; min-height: 46px; border: 0; border-radius: 8px; background: #245cf4; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.tqpop-dialog .tqpop-submit:disabled { opacity: .65; cursor: default; }
.tqpop-dialog :focus-visible { outline: 3px solid #245cf4; outline-offset: 3px; }
.tqpop-dialog .tqpop-status { color: #344054; font-size: 14px; margin: 10px 0; }
.tqpop-dialog .tqpop-status:empty { display: none; }
.tqpop-dialog .tqpop-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) { .tqpop-dialog { padding: 22px 18px; } }
.tqpop-dialog .tqpop-logo { display: block; width: 240px; max-width: calc(100% - 40px); height: auto; object-fit: contain; margin: 0 0 18px; }
.tqpop-dialog [hidden] { display: none !important; }
.tqpop-dialog .tqpop-success { text-align: center; padding: 24px 0 30px; animation: tqpop-success-in 280ms ease-out both; }
.tqpop-dialog .tqpop-success h2 { margin: 16px 0 8px; }
.tqpop-dialog .tqpop-success p { color: #475467; margin: 0; font-size: 16px; }
.tqpop-success-icon { width: 72px; height: 72px; display: block; margin: 0 auto; }
.tqpop-success-icon circle { fill: #ecfdf3; stroke: #079455; stroke-width: 2; }
.tqpop-success-icon path { fill: none; stroke: #067647; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; animation: tqpop-check 350ms ease-out both; }
.tqpop-dialog.tqpop-leaving { animation: tqpop-exit 220ms ease-in both; }
.tqpop-dialog.tqpop-leaving::backdrop { animation: tqpop-backdrop-exit 220ms ease-in both; }
@keyframes tqpop-success-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tqpop-check { from { stroke-dashoffset: 48; } to { stroke-dashoffset: 0; } }
@keyframes tqpop-exit { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes tqpop-backdrop-exit { to { background: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .tqpop-dialog .tqpop-success, .tqpop-success-icon path, .tqpop-dialog.tqpop-leaving, .tqpop-dialog.tqpop-leaving::backdrop { animation: none; }
}

/* Keep CF7's automatic paragraphs and line breaks from adding theme-sized gaps. */
.tqpop-dialog { padding: 20px 24px; }
.tqpop-dialog .tqpop-logo { width: 180px; margin-bottom: 10px; }
.tqpop-dialog h2 { font-size: 24px; margin-bottom: 8px; }
.tqpop-dialog .tqpop-intro { margin-bottom: 12px; line-height: 1.4; }
.tqpop-dialog .wpcf7 form p { margin: 0 0 8px; padding: 0; }
.tqpop-dialog .wpcf7 form br { display: none; }
.tqpop-dialog .wpcf7 form label { margin: 0 0 10px; padding: 0; line-height: 1.4; }
.tqpop-dialog .wpcf7-form-control-wrap { display: block; margin: 0; }
.tqpop-dialog .wpcf7 input:not([type="submit"]), .tqpop-dialog .wpcf7 textarea { margin: 4px 0 0; padding: 8px 10px; line-height: 1.4; }
.tqpop-dialog .wpcf7 textarea { height: 72px; min-height: 72px; }
.tqpop-dialog .wpcf7 .tqpop-privacy { margin: 0 0 8px; line-height: 1.4; }
.tqpop-dialog .wpcf7 .tqpop-submit { margin: 0; min-height: 44px; padding: 8px 12px; }
.tqpop-dialog .wpcf7 form:not(.submitting) .wpcf7-spinner { display: none; }
@media (max-height: 700px) {
  .tqpop-dialog { padding: 16px 20px; }
  .tqpop-dialog .tqpop-logo { width: 150px; margin-bottom: 8px; }
  .tqpop-dialog .wpcf7 form label { margin-bottom: 8px; }
}
