/* "I'm already a patient" (.pr-*): the page a patient uses to start a secure message. AccessGP's navy, plain and calm,
   like the secure message page; fits a pop-up from 280px wide. */
@font-face { font-family: "Aller"; src: url("/fonts/aller-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aller"; src: url("/fonts/aller-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
.pr { margin: 0; background: #fff; color: #1b2430; font: 16px/1.55 Aller, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.pr-main { box-sizing: border-box; max-width: 520px; margin: 0 auto; padding: 18px 18px 18px; text-align: center; }
/* The clinic's brand at the top: the logo, a small "Secure messaging" tag, and a thin navy line under them. */
.pr-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 52px 14px; border-bottom: 3px solid #2f4f7a; background: linear-gradient(180deg, #f4f6f9, #fff); }
.pr-brand img { display: block; height: 30px; width: auto; }
.pr-brand-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #566070; }
.pr-brand-tag::before { content: ""; width: 9px; height: 11px; border: 2px solid #566070; border-radius: 2px; box-sizing: border-box; box-shadow: inset 0 0 0 1px #f4f6f9; background: linear-gradient(#566070, #566070) center 60% / 3px 3px no-repeat; }
.pr-step { animation: pr-in 220ms ease both; }
.pr-step[hidden] { display: none; }
@keyframes pr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pr-h { margin: 0 0 8px; font-size: 21px; line-height: 1.3; font-weight: 700; color: #22364f; }
.pr p { margin: 0 0 12px; }
.pr-note { text-align: center; padding: 10px 12px; border-radius: 8px; background: #f4f6f9; font-size: 14.5px; color: #3b4757; }
.pr-label { display: block; margin: 16px 0 6px; padding: 0; font-weight: 700; font-size: 15px; color: #22364f; text-align: center; width: 100%; }
.pr form { display: flex; flex-direction: column; align-items: center; }
.pr-fs { margin: 8px 0 0; padding: 0; border: 0; min-width: 0; width: 100%; }
.pr-input { box-sizing: border-box; width: 100%; max-width: 360px; text-align: center; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #b6c2d1; border-radius: 8px; background: #fff; color: inherit; }
.pr-input:focus, .pr-dob input:focus { outline: 3px solid #a9bcd6; outline-offset: 1px; border-color: #2f4f7a; }
.pr-code { max-width: 220px; font-size: 22px; letter-spacing: 4px; text-align: center; }
.pr-text { max-width: none; min-height: 150px; resize: vertical; line-height: 1.5; text-align: left; }
.pr-dob { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pr-dob label { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13.5px; color: #566070; }
.pr-dob input { box-sizing: border-box; font: inherit; font-size: 17px; padding: 10px; border: 1px solid #b6c2d1; border-radius: 8px; width: 3.6em; text-align: center; }
.pr-dob label:last-child input { width: 5em; }
.pr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pr-err { align-self: stretch; text-align: center; min-height: 1.4em; margin: 10px 0 6px !important; color: #9b2c2c; font-size: 14.5px; }
.pr-err:empty { min-height: 0; margin: 4px 0 !important; }
.pr-count { align-self: stretch; margin: 4px 0 0 !important; min-height: 1.2em; font-size: 12.5px; color: #566070; text-align: right; }
.pr-btn { display: block; width: 100%; max-width: 360px; margin: 10px auto 0; padding: 15px 20px; border: 0; border-radius: 12px; background: #2f4f7a; color: #fff; font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: 0.01em; box-shadow: 0 4px 12px rgba(47, 79, 122, 0.22); font-family: inherit; cursor: pointer; transition: background 150ms ease, transform 100ms ease; }
.pr-btn:hover:not(:disabled) { background: #22364f; }
.pr-btn:active:not(:disabled) { transform: scale(0.99); }
.pr-btn:disabled { opacity: 0.55; cursor: default; }
.pr-btn:focus-visible, .pr-link:focus-visible { outline: 3px solid #a9bcd6; outline-offset: 2px; }
.pr-btn-quiet { background: #e8edf4; color: #22364f; }
.pr-btn-quiet:hover:not(:disabled) { background: #d9e1ec; }
.pr-small { margin: 12px 0 0 !important; font-size: 13.5px; color: #566070; }
.pr-small a, .pr-link { color: #2f4f7a; font-weight: 700; }
.pr-link { appearance: none; border: 0; background: none; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.pr-tick { width: 52px; height: 52px; margin: 6px auto 12px; border-radius: 50%; background: #e8f4ec; position: relative; animation: pr-pop 320ms cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.pr-tick::after { content: ""; position: absolute; left: 18px; top: 12px; width: 12px; height: 22px; border: solid #1e6b3f; border-width: 0 4px 4px 0; transform: rotate(45deg); }
@keyframes pr-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.pr-urgent { margin: 18px 0 0 !important; padding-top: 12px; border-top: 1px solid #e1e6ee; font-size: 13px; color: #566070; }
@media (prefers-reduced-motion: reduce) { .pr-step, .pr-tick { animation: none; } .pr-btn { transition: none; } }
.pr [hidden] { display: none !important; }

/* Inside a frame (the website's pop-up or its Need help widget, about 400 × 600): a compact layout that fits without
   scrolling. A smaller header with the logo and tag side by side, tighter spacing, slightly smaller type. The words
   and the 999 / 111 line are the same. (.pr-framed is set by contact-frame.js before the page is drawn.) */
.pr-framed .pr { font-size: 15px; line-height: 1.45; }
.pr-framed .pr-brand { flex-direction: row; justify-content: center; gap: 10px; padding: 10px 48px 9px; border-bottom-width: 2px; }
.pr-framed .pr-brand img { height: 20px; }
.pr-framed .pr-brand-tag { font-size: 11px; }
.pr-framed .pr-main { padding: 12px 16px 10px; }
.pr-framed .pr-h { margin-bottom: 4px; font-size: 18px; }
.pr-framed .pr p { margin-bottom: 8px; }
.pr-framed .pr-intro { font-size: 14.5px; }
.pr-framed .pr-note { padding: 6px 10px; font-size: 13.5px; }
.pr-framed .pr-label { margin: 10px 0 4px; font-size: 14px; }
.pr-framed .pr-fs { margin-top: 4px; }
.pr-framed .pr-input { padding: 9px 12px; }
.pr-framed .pr-dob { gap: 8px; }
.pr-framed .pr-dob label { gap: 2px; font-size: 12.5px; }
.pr-framed .pr-dob input { padding: 8px; font-size: 16px; }
.pr-framed .pr-err { min-height: 1.2em; margin: 6px 0 4px !important; font-size: 13.5px; }
.pr-framed .pr-err:empty { margin: 2px 0 !important; }
.pr-framed .pr-btn { margin-top: 6px; padding: 12px 18px; font-size: 17px; }
.pr-framed .pr-small { margin-top: 8px !important; font-size: 12.5px; }
.pr-framed .pr-small:empty { display: none; }
.pr-framed .pr-code { font-size: 20px; }
.pr-framed .pr-text { min-height: 120px; }
.pr-framed .pr-tick { width: 44px; height: 44px; margin: 2px auto 8px; }
.pr-framed .pr-tick::after { left: 15px; top: 9px; width: 10px; height: 19px; }
.pr-framed .pr-urgent { margin-top: 10px !important; padding-top: 8px; font-size: 12px; }

