/* Scoped to the package-quote dialog; existing consultation styles stay intact. */
body.xq-lock { overflow: hidden !important; }
body > #xq-modal { position: fixed !important; inset: 0 !important; z-index: 2147483000 !important; display: flex !important; justify-content: center; align-items: center; width: 100% !important; height: 100vh; height: 100dvh; padding: 24px; background: rgba(0,0,0,.68); backdrop-filter: blur(5px); box-sizing: border-box; overflow: hidden; }
body > #xq-modal[hidden], #xq-modal [hidden] { display: none !important; }
#xq-modal *, #xq-modal *::before, #xq-modal *::after { box-sizing: border-box; }
#xq-modal { color: #000; font-family: inherit; letter-spacing: 0; text-align: left; }
#xq-modal .xq-dialog { position: relative; width: 100%; max-width: 1040px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: 0; padding: 50px; border: 1px solid #ddd; border-radius: 28px; background: #fff; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; outline: none; }
#xq-modal .xq-kicker { margin: 0 55px 16px 0; color: #6d777e; font-size: 12px; line-height: 1.6; font-weight: 700; letter-spacing: 1.4px; }
#xq-modal h2 { margin: 0 0 18px; color: #000; font-family: inherit; font-size: clamp(30px,4vw,54px); font-weight: 800; line-height: 1.16; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
#xq-modal .xq-lead { margin: 0 0 28px; color: #66727a; font-size: 17px; line-height: 1.7; letter-spacing: 0; }
#xq-modal .xq-package { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; padding: 22px; margin-bottom: 28px; border: 1px solid #d6dbdf; border-radius: 16px; background: #f6f7f8; }
#xq-modal .xq-caption { display: block; color: #66727a; font-size: 12px; line-height: 1.5; }
#xq-modal h3 { color: #000; margin: 6px 0 0; font-size: 24px; line-height: 1.3; letter-spacing: 0; text-transform: none; }
#xq-modal .xq-package-price { text-align: right; }
#xq-modal .xq-package-price strong { display: block; color: #000; font-size: 26px; line-height: 1.4; }
#xq-modal .xq-package-price span { display: block; color: #66727a; font-size: 12px; line-height: 1.6; }
#xq-modal .xq-package p { grid-column: 1 / -1; margin: 0; color: #66727a; font-size: 14px; line-height: 1.7; }
#xq-modal .xq-installments { grid-column: 1 / -1; justify-self: start; border-radius: 30px; padding: 6px 12px; background: #000; color: #fff !important; -webkit-text-fill-color: #fff; font-size: 12px; line-height: 1.5; }
#xq-modal form { margin: 0; padding: 0; }
#xq-modal .xq-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 32px; }
#xq-modal .xq-fields label { display: flex; flex-direction: column; gap: 9px; min-width: 0; margin: 0; padding: 0; color: #30383d; font-size: 14px; font-weight: 700; line-height: 1.5; letter-spacing: .3px; }
#xq-modal .xq-fields small { color: #748089; font-size: 12px; font-weight: 400; letter-spacing: 0; }
body #xq-modal .xq-fields input { display: block !important; width: 100% !important; min-width: 0 !important; height: 54px !important; margin: 0 !important; padding: 0 16px !important; background: #fff !important; color: #000 !important; -webkit-text-fill-color: #000 !important; border: 1px solid #bdc6cc !important; border-radius: 12px !important; font-family: inherit !important; font-size: 16px !important; font-weight: 400 !important; line-height: normal !important; letter-spacing: 0 !important; box-shadow: none !important; }
body #xq-modal .xq-fields input:focus { outline: 2px solid rgba(0,0,0,.15); outline-offset: 1px; border-color: #000 !important; }
#xq-modal .xq-phone-wrap { position: relative; display: block; height: 54px; font-family: inherit; font-size: 16px; font-weight: 400; line-height: 54px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
#xq-modal .xq-phone-guide { position: absolute; inset: 1px 17px; display: flex; align-items: center; color: #a9b0b5; white-space: pre; pointer-events: none; line-height: 52px; }
#xq-modal [data-xq-phone-filled] { visibility: hidden; }
body #xq-modal .xq-phone-wrap input { position: relative; background: transparent !important; font-variant-numeric: tabular-nums; }
#xq-modal .xq-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 22px; margin-top: 28px; border-top: 1px solid #dce0e3; }
#xq-modal .xq-meta span { display: block; color: #748089; font-size: 12px; line-height: 1.6; }
#xq-modal .xq-meta strong { display: block; font-size: 13px; line-height: 1.7; font-weight: 500; color: #30383d; overflow-wrap: anywhere; }
#xq-modal .xq-note { margin: 18px 0 24px; color: #748089; font-size: 12px; line-height: 1.7; }
#xq-modal .xq-consent { position: relative; display: flex; align-items: flex-start; gap: 14px; margin: 0; color: #333; font-size: 13px; font-weight: 400; line-height: 1.7; letter-spacing: 0; cursor: pointer; }
#xq-modal .xq-consent input { position: absolute !important; top: 0; left: 0; width: 28px !important; height: 28px !important; margin: 0 !important; opacity: 0 !important; }
#xq-modal .xq-checkbox { flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid #738089; border-radius: 50%; background: #fff; }
#xq-modal .xq-consent input:checked + .xq-checkbox { background: #000; border-color: #000; }
#xq-modal .xq-consent input:checked + .xq-checkbox::after { content: '✓'; display: block; color: #fff; text-align: center; line-height: 26px; font-size: 19px; }
#xq-modal .xq-consent input:focus-visible + .xq-checkbox { outline: 2px solid #000; outline-offset: 3px; }
#xq-modal .xq-consent a { color: #000; text-decoration: underline; font-weight: 700; }
#xq-modal .xq-actions { display: flex; justify-content: center; margin-top: 28px; }
body #xq-modal button { appearance: none !important; display: inline-flex !important; justify-content: center !important; align-items: center !important; float: none !important; margin: 0 !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; border: 1px solid #000 !important; background: #000 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-family: inherit !important; font-weight: 600 !important; font-size: 16px !important; line-height: 1.4 !important; letter-spacing: 0 !important; text-transform: none !important; transform: none !important; box-shadow: none !important; cursor: pointer; }
body #xq-modal button::before, body #xq-modal button::after { content: none !important; }
body #xq-modal button.xq-submit { position: static !important; width: min(100%, 300px) !important; height: 54px !important; border-radius: 50px !important; }
body #xq-modal button:hover:not(:disabled) { background: #fff !important; color: #000 !important; -webkit-text-fill-color: #000 !important; }
body #xq-modal button:disabled { opacity: .5 !important; cursor: wait; }
body #xq-modal button:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
body #xq-modal button.xq-close { position: absolute !important; top: 18px !important; right: 18px !important; left: auto !important; width: 44px !important; height: 44px !important; border: 1px solid #aeb9c0 !important; border-radius: 50% !important; background: #fff !important; color: #000 !important; -webkit-text-fill-color: #000 !important; font-size: 28px !important; font-weight: 400 !important; z-index: 2; }
#xq-modal .xq-progress { margin: 22px 0 0; color: #166534; font-size: 13px; line-height: 1.6; text-align: center; }
#xq-modal .xq-track { margin-top: 9px; height: 6px; overflow: hidden; border-radius: 20px; background: #dcfce7; }
#xq-modal .xq-track i { display: block; width: 35%; height: 100%; border-radius: inherit; background: #16a34a; animation: xqProgress 1.25s linear infinite; }
@keyframes xqProgress { from { transform: translateX(-100%); } to { transform: translateX(286%); } }
#xq-modal .xq-error { margin: 20px 0 0; padding: 14px; border-radius: 10px; background: #fff3f2; color: #b42318; font-size: 14px; line-height: 1.6; }
#xq-modal .xq-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
#xq-modal .xq-success { text-align: center; padding: 20px 0; outline: none; }
#xq-modal .xq-success .xq-kicker { margin: 18px 0; }
#xq-modal .xq-success p { font-size: 16px; line-height: 1.7; color: #66727a; }
#xq-modal .xq-success .xq-meta { margin-bottom: 28px; }
#xq-modal .xq-success-check { display: inline-flex; width: 64px; height: 64px; justify-content: center; align-items: center; border-radius: 50%; background: #000; color: #fff; font-size: 32px; }
@media (max-width: 640px) {
  body > #xq-modal { padding: 10px; }
  #xq-modal .xq-dialog { padding: 58px 20px 24px; border-radius: 22px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  #xq-modal .xq-fields, #xq-modal .xq-meta, #xq-modal .xq-package { grid-template-columns: minmax(0,1fr); }
  #xq-modal .xq-fields { gap: 18px; }
  #xq-modal .xq-package { padding: 18px; gap: 12px; }
  #xq-modal .xq-package-price { text-align: left; }
  #xq-modal .xq-lead { font-size: 16px; }
  #xq-modal .xq-kicker { margin-right: 0; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { #xq-modal .xq-track i { animation: none; width: 100%; } }
