.qgir { max-width: 760px; margin: 0 auto; color: #454b52; font: inherit; line-height: 1.8; }
.qgir *, .qgir *::before, .qgir *::after { box-sizing: border-box; }
.qgir [hidden] { display: none !important; }
.qgir .qgir-intro { margin-bottom: 32px; padding: 44px 50px; border-radius: 20px; background: #a0d6e9; }
.qgir .qgir-intro p { margin: 0 0 12px; }
.qgir .qgir-intro p:last-child { margin-bottom: 0; }
.qgir .qgir-form { position: relative; margin: 0; padding: 44px 50px; border-radius: 20px; background: #f7f7f7; }
.qgir .qgir-group, .qgir .qgir-field { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; background: none; box-shadow: none; }
.qgir .qgir-group::before, .qgir .qgir-group::after { display: none; content: none; }
.qgir .qgir-group legend, .qgir .qgir-field > label { float: none; display: block; width: auto; margin: 0 0 10px; padding: 0; border: 0; color: #3d4349; font: inherit; font-weight: 600; }
.qgir .qgir-choices { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.qgir .qgir-choices label, .qgir .qgir-policy label { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 0; border: 0; font: inherit; cursor: pointer; }
.qgir input[type="checkbox"] { appearance: auto; width: 16px; height: 16px; min-width: 16px; flex: 0 0 auto; margin: 0; accent-color: #009edb; cursor: pointer; }
.qgir .qgir-field input[type="email"] { display: block; width: 100%; max-width: 100%; height: 50px; margin: 0; padding: 12px 16px; border: 1px solid #d8d8d8; border-radius: 0; background: #fff; color: #30353a; font: inherit; line-height: normal; box-shadow: none; }
.qgir .qgir-field input[type="email"]::placeholder { color: #92979d; opacity: 1; }
.qgir input:focus-visible, .qgir a:focus-visible, .qgir button:focus-visible { outline: 2px solid #009edb; outline-offset: 3px; }
.qgir .qgir-hint { margin: 8px 0 0; color: #757b81; font-size: .875em; }
.qgir .qgir-form > .qgir-hint { margin: 0 0 26px; }
.qgir .qgir-policy, .qgir .qgir-manage { margin: 0; color: #757b81; font-size: .875em; }
.qgir .qgir-policy label { color: #454b52; }
.qgir a { color: #009edb; text-decoration: none; }
.qgir a:hover { text-decoration: underline; }
.qgir .qgir-actions { margin: 24px 0 16px; }
.qgir .qgir-button { display: inline-block; width: auto; min-height: 48px; margin: 0; padding: 12px 30px; border: 1px solid #007cab; border-radius: 3px; background: #007cab !important; font: inherit; font-weight: 600; line-height: 1.5; text-align: center; text-transform: none; cursor: pointer; box-shadow: none; }
/* Keep link-buttons readable when WordPress themes override anchor states. */
.qgir .qgir-button,
.qgir a.qgir-button:link,
.qgir a.qgir-button:visited,
.qgir .qgir-button:hover,
.qgir .qgir-button:focus,
.qgir .qgir-button:active { color: #fff !important; -webkit-text-fill-color: #fff !important; text-decoration: none !important; }
.qgir .qgir-button:hover,
.qgir .qgir-button:active { border-color: #00658b; background: #00658b !important; }
.qgir .qgir-button:disabled { border-color: #607583; background: #607583 !important; opacity: 1; cursor: wait; }
.qgir .qgir-result, .qgir .qgir-notice { margin: 20px 0 0; padding: 16px 20px; border-left: 3px solid #009edb; background: #eaf6fb; color: #344653; overflow-wrap: anywhere; }
.qgir .qgir-result--error, .qgir .qgir-notice--error { border-left-color: #b42318; background: #fff1f0; color: #9d271e; }
.qgir .qgir-message { margin: 0; }
.qgir .qgir-mini-button { margin-top: 14px; }
.qgir .qgir-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.qgir-confirm-body { margin: 0; padding: 24px; background: #fff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.qgir-confirm { max-width: 600px; margin: 10vh auto; padding: 36px; border-radius: 20px; background: #f7f7f7; }
.qgir-confirm h1 { margin: 0 0 20px; font-size: 26px; color: #30353a; }
@media (max-width: 600px) {
    .qgir .qgir-intro { padding: 28px 22px; border-radius: 16px; }
    .qgir .qgir-form { padding: 28px 22px; border-radius: 16px; }
    .qgir .qgir-choices { gap: 12px 20px; }
    .qgir .qgir-submit { width: 100%; }
    .qgir .qgir-group, .qgir .qgir-field { margin-bottom: 26px; }
    .qgir-confirm { padding: 26px 22px; }
}
