/* Contact your legislators panel (js/contact-rep.js). Matches the bill page and the profile pop-up:
   white panel, navy header, honey focus, paper fills. */
.cr-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(21, 32, 44, .55); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; }
.cr-panel { background: #fff; width: 100%; max-width: 640px; border-radius: 12px; box-shadow: 0 18px 48px rgba(21, 32, 44, .3); overflow: hidden; font-family: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #15202c; }
.cr-panel, .cr-panel * { box-sizing: border-box; }
.cr-head { background: #1e3a5f; color: #fff; padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.cr-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f2c14e; }
.cr-head h2 { margin: 4px 0 0; font-size: 18px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.cr-x { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; border-radius: 6px; }
.cr-body { padding: 4px 20px 20px; display: grid; }
.cr-sec { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid #e3e7ec; }
.cr-sec:first-child { border-top: 0; }
.cr-sec h3 { margin: 0; font-size: 14px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.cr-sec h3 span { font-size: 13px; font-weight: 500; color: #566271; }
.cr-legs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cr-leg { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #d2d8df; border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.cr-leg.on { border-color: #1e3a5f; box-shadow: inset 0 0 0 1px #1e3a5f; background: #f7f9fb; }
.cr-leg input { margin-top: 3px; accent-color: #1e3a5f; }
.cr-leg-main { display: grid; gap: 2px; min-width: 0; }
.cr-leg-main small { font-size: 12px; color: #566271; }
.cr-tag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a6410; background: #fbf3df; border-radius: 99px; padding: 1px 8px; margin-top: 2px; }
.cr-note { margin: 0; font-size: 13px; color: #3a4654; background: #fbf3df; border-left: 3px solid #d8a62a; padding: 8px 10px; border-radius: 4px; }
.cr-empty { display: grid; gap: 8px; justify-items: start; }
.cr-empty p { margin: 0; font-size: 14px; color: #3a4654; }
.cr-segs { display: inline-flex; flex-wrap: wrap; border: 1px solid #d2d8df; border-radius: 8px; overflow: hidden; justify-self: start; }
.cr-seg { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border: 0; background: #fff; color: #3a4654; cursor: pointer; }
.cr-seg + .cr-seg { border-left: 1px solid #d2d8df; }
.cr-seg[aria-pressed="true"] { background: #1e3a5f; color: #fff; }
.cr-body textarea, .cr-body input:not([type]) { font: inherit; font-size: 14px; color: #15202c; width: 100%; border: 1px solid #d2d8df; border-radius: 8px; padding: 9px 11px; background: #fff; }
.cr-body textarea { resize: vertical; line-height: 1.5; }
.cr-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; font-size: 13px; color: #566271; }
.cr-pts { display: grid; gap: 6px; }
.cr-pt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #2b3744; cursor: pointer; }
.cr-pt input { margin-top: 3px; accent-color: #1e3a5f; }
.cr-credit { font-size: 13px; color: #566271; }
.cr-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cr-btn { display: inline-flex; align-items: center; font: inherit; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 8px; border: 1px solid #d2d8df; background: #fff; color: #15202c; cursor: pointer; text-decoration: none; }
.cr-btn:hover { border-color: #1e3a5f; }
.cr-btn.primary { background: #1e3a5f; border-color: #1e3a5f; color: #fff; }
.cr-btn.is-off, .cr-btn:disabled { opacity: .45; cursor: not-allowed; }
.cr-need { margin: 0; font-size: 13px; font-weight: 600; color: #8a6410; }
.cr-link { font: inherit; font-size: 13px; font-weight: 600; color: #1e3a5f; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.cr-muted { margin: 0; font-size: 13px; color: #566271; }
.cr-call { background: #f3f5f7; border-radius: 8px; padding: 10px 12px; display: grid; gap: 4px; }
.cr-call p { margin: 0; font-size: 14px; }
.cr-done:empty { display: none; }
.cr-done p { margin: 0; font-size: 14px; }
.cr-logline { margin: 8px 0 0; font-size: 13px; color: #3a4654; }
.cr-logline b { color: #15202c; }
.cr-overlay :focus-visible { outline: 3px solid #d8a62a; outline-offset: 2px; }
@media (max-width: 560px) {
  .cr-overlay { padding: 0; }
  .cr-panel { border-radius: 0; min-height: 100%; }
  .cr-row { grid-template-columns: 1fr; }
}
