/* A self-contained, accessible quote dialog shared by every public page. */
.q-modal { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgb(16 45 63 / .58); backdrop-filter: blur(7px); color: #102d3f; }
.q-modal[hidden], .q-modal [hidden] { display: none !important; }
.q-panel { width: min(100%, 650px); max-height: calc(100svh - 48px); overflow-y: auto; overscroll-behavior: contain; background: #fafaf6; border: 1px solid rgb(255 255 255 / .8); border-radius: 8px; box-shadow: 0 28px 90px rgb(4 25 36 / .25); scrollbar-gutter: stable; }
.q-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 30px 22px; border-bottom: 1px solid #d8dfdf; }
.q-eyebrow { margin: 0 0 11px; color: #1649de; font: 700 10px/1.4 Manrope, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.q-header h2 { margin: 0; font-family: Newsreader, Georgia, serif; font-size: clamp(28px, 3vw, 36px); line-height: 1.08; font-weight: 400; letter-spacing: -.035em; }
.q-close { display: flex; flex: 0 0 40px; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -5px -8px 0 0; border: 1px solid #d6dddf; border-radius: 50%; color: #102d3f; background: transparent; cursor: pointer; }
.q-content { padding: 24px 30px 28px; }
.q-intro { margin: 0 0 22px; color: #51616a; font-size: 14px; line-height: 1.6; }
.q-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.q-choice { position: relative; min-width: 0; padding: 22px 20px 46px; text-align: left; color: #102d3f; border: 1px solid #ccd7dd; border-radius: 4px; background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s; }
.q-choice:hover { border-color: #1649de; background: #f0f4ff; }
.q-choice-number { display: block; margin-bottom: 24px; font-size: 10px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; color: #1649de; }
.q-choice-title { display: block; font-family: Newsreader, Georgia, serif; font-size: 28px; font-weight: 400; line-height: 1.05; letter-spacing: -.025em; }
.q-choice-copy { display: block; margin-top: 12px; color: #51616a; font-size: 12px; line-height: 1.6; }
.q-choice-arrow { position: absolute; bottom: 15px; right: 19px; color: #1649de; font-size: 23px; }
.q-footnote { margin: 23px 0 0; font-size: 11px; color: #51616a; }
.q-direct { display: grid; gap: 0; border-top: 1px solid #ccd7dd; }
.q-direct a { display: grid; grid-template-columns: 1fr auto; padding: 20px 0; border-bottom: 1px solid #ccd7dd; color: #102d3f; text-decoration: none; }
.q-direct a > span:first-child { font-size: 18px; font-weight: 600; }
.q-direct small { grid-row: 2; margin-top: 5px; font-size: 12px; color: #51616a; }
.q-direct a > span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 24px; color: #1649de; }
.q-direct a:hover > span:first-child { color: #1649de; }
.q-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 16px 0 -8px; padding: 4px 0; background: none; border: 0; color: #1649de; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.q-fields { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.q-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.q-preference { min-width: 0; padding: 0; border: 0; margin: 0; }
.q-preference legend, .q-field label { display: block; margin: 0 0 8px; font-size: 12px; line-height: 1.5; font-weight: 700; color: #102d3f; }
.q-preference legend > span, .q-field label > span { margin-left: 4px; font-weight: 400; color: #637079; font-size: 10px; }
.q-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.q-methods label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; border: 1px solid #c7d1d6; background: #fff; border-radius: 3px; font-size: 12px; font-weight: 600; cursor: pointer; }
.q-methods label:has(input:checked) { color: #1649de; background: #ecf1ff; border-color: #1649de; }
.q-methods input[type="radio"] { width: 15px; height: 15px; margin: 0; accent-color: #1649de; color: #1649de; }
.q-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.q-field { min-width: 0; }
.q-field input, .q-field select, .q-field textarea { display: block; width: 100%; min-height: 45px; margin: 0; padding: 11px 12px; border: 1px solid #c7d1d6; border-radius: 3px; color: #102d3f; background-color: #fff; font-family: inherit; font-size: 14px; line-height: 1.4; box-shadow: none; }
.q-field select { padding-right: 30px; }
.q-field textarea { min-height: 82px; resize: vertical; }
.q-field input::placeholder, .q-field textarea::placeholder { color: #7c8990; opacity: 1; }
.q-counter { display: block; margin-top: 5px; text-align: right; font-size: 10px; line-height: 1.4; color: #637079; }
.q-privacy { margin: -4px 0 0; color: #637079; font-size: 10px; line-height: 1.6; }
.q-privacy a { color: #1649de; text-decoration: underline; text-underline-offset: 3px; }
.q-submit, .q-secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 22px; border: 1px solid #1649de; border-radius: 3px; background: #1649de; color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.q-submit:hover { background: #103cc0; }
.q-secondary { background: transparent; color: #1649de; }
.q-fields:disabled { opacity: .7; }
.q-fields:disabled .q-submit { cursor: wait; }
.q-form-error { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid #a93131; background: #fff0ed; color: #792820; font-size: 12px; line-height: 1.6; }
.q-send-status { margin: 9px 0 0; color: #637079; font-size: 11px; }
.q-send-status:empty { display: none; }
.q-success { margin-bottom: 22px; padding: 24px; background: #ecf3ec; border-left: 3px solid #3d7155; font-size: 15px; line-height: 1.6; }
.q-success-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 10px; border: 1px solid #3d7155; border-radius: 50%; color: #3d7155; }
.q-success p { margin: 0; }
.q-success .q-reference { margin-top: 13px; font-size: 10px; letter-spacing: .035em; color: #51616a; }
.q-success-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-modal :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid #1649de; outline-offset: 4px; }
@media (max-width: 540px) {
  .q-modal { padding: 10px; }
  .q-panel { max-height: calc(100svh - 20px); border-radius: 6px; scrollbar-gutter: auto; }
  .q-header { gap: 12px; padding: 23px 20px 18px; }
  .q-header h2 { font-size: 30px; }
  .q-eyebrow { font-size: 9px; letter-spacing: .08em; }
  .q-content { padding: 20px; }
  .q-choices { grid-template-columns: 1fr; gap: 12px; }
  .q-choice { padding: 19px 40px 19px 19px; }
  .q-choice-number { margin-bottom: 14px; }
  .q-choice-title { font-size: 27px; }
  .q-choice-copy { margin-top: 7px; }
  .q-choice-arrow { bottom: 18px; }
  .q-field-pair { grid-template-columns: 1fr; gap: 16px; }
  .q-field input, .q-field select, .q-field textarea { font-size: 16px; }
  .q-methods { gap: 6px; }
  .q-methods label { font-size: 11px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .q-modal * { transition: none !important; } }
