/*
 * phishing-quiz.css — "Can You Spot the Phish?" (phishing-quiz.php + js/phishing-quiz.js).
 * Brand tokens (--pit-*) come from custom.css. Everything here is prefixed .pq-.
 */

.pq-section{ background:var(--pit-surface); }
.pq-app{ background:#fff; border:1px solid var(--pit-border); border-radius:16px; padding:34px; box-shadow:0 10px 36px rgba(16,32,64,.07); }
.pq-panel[hidden]{ display:none !important; }
.pq-h2{ font-size:26px; margin:0 0 14px; }
.pq-h3{ font-size:20px; margin:30px 0 14px; }

/* ---- Shared buttons (own class so the theme's .btn rules don't interfere) ---- */
.pq-btn, .pq-answer, .pq-share-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font:inherit; font-weight:700; font-size:16px; line-height:1.2; letter-spacing:0; text-transform:none;
  border-radius:10px; padding:13px 22px; cursor:pointer; text-decoration:none;
  transition:background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.pq-btn-primary{ background:var(--pit-accent); color:#fff; border:2px solid var(--pit-accent); }
.pq-btn-primary:hover, .pq-btn-primary:focus{ background:var(--pit-anchor); border-color:var(--pit-anchor); color:#fff; }
.pq-btn-outline{ background:#fff; color:var(--pit-anchor); border:2px solid var(--pit-primary); }
.pq-btn-outline:hover, .pq-btn-outline:focus{ background:var(--pit-primary); color:#fff; }
.pq-btn-block{ display:flex; width:100%; }
.pq-app button:focus-visible, .pq-app a:focus-visible, .pq-app [tabindex]:focus-visible{ outline:3px solid var(--pit-primary); outline-offset:2px; }

/* ---- Intro ---- */
.pq-how{ list-style:none; margin:0; padding:0; }
.pq-how li{ display:flex; gap:14px; margin-bottom:16px; }
.pq-how i{ color:var(--pit-accent); font-size:20px; width:24px; margin-top:4px; flex:0 0 24px; text-align:center; }
.pq-start-card{ background:var(--pit-surface); border:1px solid var(--pit-border); border-radius:14px; padding:24px; }
.pq-meta{ font-weight:700; color:var(--pit-anchor); margin-bottom:10px; }
.pq-privacy{ font-size:14px; color:#5b6573; margin:14px 0 0; }
.pq-error{ color:var(--pit-fail); font-weight:600; }

/* ---- Round chrome ---- */
.pq-topbar{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px; }
.pq-round-title{ font-size:20px; margin:0; }
.pq-round-title:focus{ outline:none; }
.pq-score{ font-weight:800; color:var(--pit-anchor); background:var(--pit-surface); border:1px solid var(--pit-border); border-radius:999px; padding:5px 14px; font-size:15px; white-space:nowrap; }
.pq-progress{ height:8px; background:#e8ecf1; border-radius:999px; overflow:hidden; margin-bottom:18px; }
.pq-progress-bar{ height:100%; width:0; background:var(--pit-primary); border-radius:999px; transition:width .3s; }
.pq-context{ font-size:15px; color:#3d4655; background:#eef5fb; border-left:4px solid var(--pit-primary); border-radius:0 10px 10px 0; padding:12px 16px; margin:0 0 20px; }
.pq-context i{ color:var(--pit-primary); margin-right:6px; }

.pq-stage{ display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:28px; align-items:start; }
.pq-mock-col{ min-width:0; }
.pq-side{ min-width:0; position:sticky; top:90px; }

/* ---- Answer buttons ---- */
.pq-ask-q{ font-size:19px; font-weight:700; color:var(--pit-ink); margin:0 0 14px; }
.pq-answers{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pq-answer{ padding:18px 12px; font-size:19px; background:#fff; border:2px solid; }
.pq-answer i{ font-size:20px; }
.pq-answer-phish{ color:#a82828; border-color:var(--pit-fail); }
.pq-answer-phish:hover, .pq-answer-phish:focus{ background:var(--pit-fail); color:#fff; }
.pq-answer-legit{ color:#16733f; border-color:var(--pit-pass); }
.pq-answer-legit:hover, .pq-answer-legit:focus{ background:var(--pit-pass); color:#fff; }
.pq-answer:active{ transform:scale(.98); }
.pq-hint{ font-size:14px; color:#5b6573; margin:14px 0 0; }
.pq-hint i{ color:var(--pit-primary); margin-right:4px; }

/* ---- Feedback ---- */
.pq-verdict{ font-size:22px; margin:0 0 4px; display:flex; align-items:center; gap:10px; }
.pq-verdict:focus{ outline:none; }
.pq-verdict.is-right{ color:#16733f; }
.pq-verdict.is-wrong{ color:#a82828; }
.pq-verdict-sub{ font-size:15px; color:#3d4655; margin:0 0 14px; }
.pq-verdict-sub strong{ color:var(--pit-ink); }
.pq-notes{ list-style:none; margin:0 0 14px; padding:0; }
.pq-note{ display:flex; gap:12px; padding:11px 12px; border:1px solid var(--pit-border); border-radius:10px; margin-bottom:8px; background:#fff; transition:border-color .15s, box-shadow .15s; }
.pq-note:focus{ outline:3px solid var(--pit-primary); outline-offset:1px; }
.pq-note.is-active{ border-color:var(--pit-fail); box-shadow:0 0 0 3px rgba(210,59,59,.12); }
.pq-note h4{ font-size:15.5px; margin:1px 0 3px; line-height:1.35; }
.pq-note p{ font-size:14.5px; line-height:1.55; color:#2b3240; margin:0; }
.pq-lesson{ font-size:15px; background:var(--pit-surface); border-radius:10px; padding:12px 14px; margin:0 0 16px; }
.pq-lesson strong{ color:var(--pit-anchor); }

/* Numbered markers: an inline badge inserted as the first child of the flagged element. */
.pq-badge{
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:22px; height:22px; min-width:22px; border-radius:50%; padding:0; margin:0 5px 0 0;
  font:800 12px/1 "Helvetica Neue",Arial,sans-serif; letter-spacing:0; text-transform:none; text-decoration:none;
  color:#fff; background:var(--pit-fail); border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.25);
  vertical-align:1px; cursor:pointer; text-indent:0;
}
.pq-note .pq-badge{ width:26px; height:26px; min-width:26px; font-size:13px; margin:0; cursor:default; box-shadow:none; }
.is-legit .pq-badge{ background:var(--pit-pass); }
.is-legit .pq-note.is-active{ border-color:var(--pit-pass); box-shadow:0 0 0 3px rgba(31,157,87,.15); }

.pq-hit{ outline:2px dashed var(--pit-fail); outline-offset:2px; background-color:rgba(210,59,59,.07); border-radius:4px; -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.pq-nowrap{ white-space:nowrap; }
.is-legit .pq-hit{ outline-color:var(--pit-pass); background-color:rgba(31,157,87,.08); }
.pq-hit.is-active{ outline-style:solid; outline-width:3px; background-color:rgba(210,59,59,.14); }
.is-legit .pq-hit.is-active{ background-color:rgba(31,157,87,.16); }

/* ---- Mock mail client (generic styling, no real product look) ---- */
.pq-mail{ border:1px solid #d5dbe3; border-radius:12px; overflow:hidden; background:#fff; box-shadow:0 6px 22px rgba(16,32,64,.08); font-family:"Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",Arial,sans-serif; color:#1f2430; }
.pq-mail-bar{ display:flex; align-items:center; gap:8px; background:#eef1f5; border-bottom:1px solid #d5dbe3; padding:8px 12px; font-size:12.5px; color:#5b6573; }
.pq-dots{ display:inline-flex; gap:5px; margin-right:4px; }
.pq-dots span{ width:10px; height:10px; border-radius:50%; background:#c9d0da; }
.pq-mail-tools{ margin-left:auto; display:inline-flex; gap:14px; color:#7a8594; }
.pq-mail-head{ padding:16px 18px 12px; border-bottom:1px solid #e6eaf0; }
.pq-subject{ font-size:19px; font-weight:700; line-height:1.3; margin:0 0 12px; color:#1f2430; overflow-wrap:anywhere; }
.pq-from{ display:flex; gap:12px; align-items:flex-start; }
.pq-avatar{ flex:0 0 40px; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:15px; }
.pq-from-main{ min-width:0; flex:1; font-size:14px; line-height:1.5; }
.pq-from-line{ overflow-wrap:anywhere; }
.pq-from-name{ font-weight:700; color:#1f2430; }
.pq-addr{ color:#4a5566; }
.pq-meta-row{ color:#5b6573; overflow-wrap:anywhere; }
.pq-meta-row b{ font-weight:600; color:#3d4655; }
.pq-date{ color:#6b7280; font-size:12.5px; }
.pq-banner{ background:#fff4d6; color:#6b4a00; border-bottom:1px solid #f0d58a; font-size:13px; padding:8px 18px; display:block; }
.pq-banner i{ margin-right:6px; }
.pq-mail-body{ padding:16px 18px 6px; font-size:15px; line-height:1.6; overflow-wrap:anywhere; }
.pq-mail-body p{ margin:0 0 12px; color:#1f2430; font-size:15px; line-height:1.6; }
.pq-mail-body ul, .pq-mail-body ol{ margin:0 0 12px 1.2em; padding:0; }
.pq-mail-body li{ margin-bottom:4px; }
.pq-center{ text-align:center; }
.pq-fine{ font-size:12px !important; color:#7a8594 !important; }
.pq-muted{ color:#7a8594; font-size:13px; }
.pq-brandbar{ background:#2f3b4c; color:#fff; font-weight:600; font-size:14px; padding:10px 14px; border-radius:6px; margin-bottom:14px; }
.pq-bank{ background:#f6f7f9; border:1px solid #e3e7ed; border-radius:8px; padding:10px 14px; margin:0 0 12px; font-size:14px; font-family:Consolas,"Courier New",monospace; }
.pq-esign{ background:#23324a; color:#fff; border-radius:8px; padding:18px 16px 6px; margin-bottom:14px; }
.pq-esign p{ color:#fff !important; }
.pq-esign-head{ font-size:16px !important; font-weight:600; }

/* In-message links are buttons: they never navigate, they only reveal the URL. */
.pq-link{
  display:inline; background:none; border:0; padding:0; margin:0; font:inherit; letter-spacing:inherit; text-transform:none;
  color:#1a5fb4; text-decoration:underline; text-underline-offset:2px; cursor:pointer; text-align:left; overflow-wrap:anywhere; line-height:inherit;
}
.pq-link:hover{ color:#164e96; }
.pq-link.pq-cta{ display:inline-block; text-decoration:none; background:#2b6cb0; color:#fff; font-weight:600; padding:10px 22px; border-radius:4px; }
.pq-link.pq-cta:hover{ background:#235a94; color:#fff; }
.pq-link.pq-cta-gold{ background:#f2c14e; color:#1f2430; letter-spacing:.04em; }
.pq-link.pq-cta-gold:hover{ background:#e6b23a; color:#1f2430; }

.pq-atts{ display:flex; flex-wrap:wrap; gap:8px; padding:4px 18px 16px; }
.pq-att{
  display:inline-flex; align-items:center; gap:8px; max-width:100%; min-width:0;
  background:#f6f7f9; border:1px solid #d5dbe3; border-radius:8px; padding:8px 12px;
  font:inherit; font-size:13.5px; letter-spacing:0; text-transform:none; color:#1f2430; cursor:pointer; text-align:left;
}
.pq-att:hover{ border-color:#9aa6b6; }
.pq-att > i{ font-size:20px; color:#c0392b; flex:0 0 auto; }
.pq-att .fa-file-code{ color:#6b4fbb; }
.pq-att-name{ font-weight:600; overflow-wrap:anywhere; }
.pq-att-size{ color:#5b6573; white-space:nowrap; }  /* 5.4:1 on the #f6f7f9 attachment chip */

.pq-invite{ display:flex; gap:14px; align-items:flex-start; border:1px solid #e3e7ed; border-radius:8px; padding:12px; margin-bottom:10px; font-size:14px; line-height:1.5; }
.pq-invite-cal{ flex:0 0 56px; text-align:center; border-radius:6px; overflow:hidden; border:1px solid #d5dbe3; line-height:1.2; }
.pq-invite-cal span{ display:block; font-size:11px; text-transform:uppercase; background:#2b6cb0; color:#fff; padding:2px 0; }
.pq-invite-cal span:last-child{ background:#fff; color:#5b6573; }
.pq-invite-cal strong{ display:block; font-size:22px; padding:2px 0; }
.pq-rsvp{ display:inline-flex; align-items:center; flex-wrap:wrap; gap:6px; margin:0 0 14px; }
.pq-rsvp span:not(.pq-badge){ display:inline-block; border:1px solid #c9d0da; border-radius:4px; padding:4px 12px; font-size:13px; color:#3d4655; background:#fff; }

.pq-qr{ display:block; width:168px; max-width:100%; margin:4px auto 14px; padding:0; background:none; border:0; cursor:pointer; text-align:center; font:inherit; letter-spacing:0; text-transform:none; }
.pq-qr svg{ display:block; width:100%; height:auto; background:#fff; border:1px solid #d5dbe3; border-radius:6px; padding:6px; }
.pq-qr-cap{ display:block; font-size:12px; color:#7a8594; margin-top:6px; }

/* Status bar under the mock: where the hovered/tapped thing really goes. */
.pq-status{
  margin:10px 0 0; min-height:40px; padding:9px 12px; border-radius:8px; background:#1f2430; color:#cfd6e0;
  font:13px/1.45 Consolas,"Courier New",monospace; overflow-wrap:anywhere;
}
.pq-status b{ color:#fff; font-weight:700; }
.pq-status .pq-url{ color:#ffd479; }
.pq-status.is-idle{ color:#9aa6b6; font-family:inherit; font-family:"Segoe UI",-apple-system,Roboto,Arial,sans-serif; }

/* ---- Mock phone (SMS) ---- */
.pq-phone{ max-width:360px; margin:0 auto; border:10px solid #1f2430; border-radius:34px; background:#fff; overflow:hidden; box-shadow:0 8px 26px rgba(16,32,64,.16); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; }
.pq-phone-head{ text-align:center; padding:14px 12px 10px; background:#f4f5f7; border-bottom:1px solid #e3e7ed; }
.pq-phone-head .pq-avatar{ margin:0 auto 6px; background:#9aa6b6; }
.pq-phone-sender{ font-size:14px; font-weight:600; color:#1f2430; overflow-wrap:anywhere; display:inline-block; }
.pq-phone-note{ display:block; font-size:11.5px; color:#7a8594; }
.pq-phone-body{ padding:14px 12px 18px; min-height:220px; background:#fff; }
.pq-phone-day{ text-align:center; font-size:11.5px; color:#7a8594; margin:0 0 10px; }
.pq-bubble{ max-width:88%; background:#e9ebef; color:#1f2430; border-radius:18px 18px 18px 6px; padding:10px 13px; font-size:14.5px; line-height:1.45; margin:0 0 8px; overflow-wrap:anywhere; }
.pq-bubble-time{ display:block; font-size:11px; color:#7a8594; margin:-4px 0 10px 6px; }

/* ---- Mock work chat ---- */
.pq-chat{ border:1px solid #d5dbe3; border-radius:12px; overflow:hidden; background:#fff; box-shadow:0 6px 22px rgba(16,32,64,.08); font-family:"Segoe UI",-apple-system,Roboto,Arial,sans-serif; }
.pq-chat-bar{ display:flex; align-items:center; gap:10px; background:#3b3f73; color:#fff; padding:10px 14px; font-size:13px; }
.pq-chat-bar i{ opacity:.85; }
.pq-chat-head{ display:flex; gap:12px; align-items:center; padding:12px 16px; border-bottom:1px solid #e6eaf0; }
.pq-chat-head .pq-avatar{ background:#6b4fbb; }
.pq-chat-who{ min-width:0; font-size:14px; line-height:1.45; }
.pq-chat-name{ font-weight:700; color:#1f2430; }
.pq-tag{ display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; background:#fde7c7; color:#8a4b00; border-radius:4px; padding:1px 6px; margin-left:4px; vertical-align:1px; }
.pq-chat-sub{ display:block; color:#6b7280; font-size:12.5px; overflow-wrap:anywhere; }
.pq-chat-body{ padding:14px 16px 18px; background:#f5f5f8; }
.pq-chat-msg{ display:flex; gap:10px; margin-bottom:12px; }
.pq-chat-msg .pq-avatar{ flex:0 0 32px; width:32px; height:32px; font-size:12px; background:#6b4fbb; }
.pq-chat-card{ background:#fff; border-radius:8px; padding:8px 12px 10px; box-shadow:0 1px 2px rgba(0,0,0,.08); font-size:14.5px; line-height:1.5; color:#1f2430; min-width:0; overflow-wrap:anywhere; }
.pq-chat-meta{ font-size:12px; color:#6b7280; margin-bottom:2px; }
.pq-chat-meta b{ color:#1f2430; }
.pq-chat-input{ margin-top:6px; border:1px solid #d5dbe3; border-radius:6px; background:#fff; color:#9aa6b6; font-size:13px; padding:9px 12px; }

/* ---- Results ---- */
.pq-result-head{ display:flex; gap:24px; align-items:center; margin-bottom:10px; }
.pq-result-head .health-score{ flex:0 0 auto; }
.pq-result-head p{ margin:0; }
#pq-results-title:focus{ outline:none; }
.pq-share{ background:var(--pit-surface); border:1px solid var(--pit-border); border-radius:12px; padding:16px 18px; margin:22px 0 6px; }
.pq-share-label{ font-weight:700; margin:0 0 10px; color:var(--pit-ink); }
.pq-share-btns{ display:flex; flex-wrap:wrap; gap:8px; }
.pq-share-btn{ font-size:14px; padding:9px 14px; min-height:44px; background:#fff; color:var(--pit-anchor); border:1px solid #c9d3df; }
.pq-share-btn:hover, .pq-share-btn:focus{ background:var(--pit-primary); border-color:var(--pit-primary); color:#fff; }
.pq-copied{ margin:8px 0 0; font-size:14px; color:#16733f; font-weight:600; min-height:1em; }
.pq-copied:empty{ margin:0; }
.pq-recap{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 30px; }
.pq-missed, .pq-topflags{ list-style:none; margin:0; padding:0; }
.pq-missed li{ border-left:4px solid var(--pit-fail); background:#fff; border-radius:0 10px 10px 0; padding:10px 14px; margin-bottom:10px; box-shadow:0 1px 0 var(--pit-border); font-size:15px; }
.pq-missed li strong{ display:block; color:var(--pit-ink); }
.pq-missed li span{ display:block; color:#3d4655; font-size:14.5px; }
.pq-missed li.is-none{ border-left-color:var(--pit-pass); }
.pq-topflags li{ display:flex; gap:12px; margin-bottom:12px; font-size:15px; line-height:1.5; }
.pq-topflags i{ flex:0 0 22px; color:var(--pit-accent); font-size:17px; margin-top:3px; text-align:center; }
.pq-actions{ margin:10px 0 30px; }
.pq-cta{ margin:10px auto; }
.pq-cta-btns{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.pq-cta .btn{ margin:0 !important; }
.pq-resources{ grid-template-columns:repeat(auto-fill,minmax(215px,1fr)); grid-template-columns:repeat(auto-fill,minmax(min(215px,100%),1fr)); }
.pq-resources .hub-card h4{ font-size:18px; margin:0 0 6px; }
.pq-lead{ margin-top:30px; background:var(--pit-surface); border:1px solid var(--pit-border); border-radius:14px; padding:26px; }
.pq-lead .pq-h3{ margin-top:0; }
.pq-fields{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; }
.pq-fields .form-control{ max-width:none; height:48px; border-radius:10px; }
.pq-lead-form .btn{ margin:0; }
.pq-form-note{ font-size:13px; color:#6b7280; margin:12px 0 0; }

/* ---- SEO + FAQ ---- */
.pq-checklist li{ margin-bottom:.7em; }
.pq-checklist li::before{ content:"\2691"; color:var(--pit-fail); }
.pq-faq-item{ border-bottom:1px solid var(--pit-border); padding:4px 0; }
.pq-faq-item summary{ cursor:pointer; font-weight:700; font-size:18px; color:var(--pit-ink); padding:14px 30px 14px 0; position:relative; list-style:none; }
.pq-faq-item summary::-webkit-details-marker{ display:none; }
.pq-faq-item summary::after{ content:"+"; position:absolute; right:4px; top:10px; font-size:24px; color:var(--pit-primary); }
.pq-faq-item[open] summary::after{ content:"\2212"; }
.pq-faq-item p{ margin:0 0 16px; }

/* ---- Tablet and down ---- */
@media (max-width:991.98px){
  .pq-stage{ grid-template-columns:1fr; gap:18px; }
  .pq-side{ position:static; }
}
@media (max-width:767.98px){
  .pq-app{ padding:20px 14px; border-radius:12px; }
  .pq-h2{ font-size:22px; }
  .pq-round-title{ font-size:18px; }
  .pq-context{ font-size:14.5px; padding:10px 12px; }
  .pq-mail-head{ padding:14px 14px 10px; }
  .pq-mail-body{ padding:14px 14px 4px; }
  .pq-atts{ padding:4px 14px 14px; }
  .pq-subject{ font-size:17px; }
  .pq-addr{ display:block; }
  .pq-addr .pq-br{ display:none; }
  .pq-avatar{ flex-basis:34px; width:34px; height:34px; font-size:13px; }
  .pq-banner{ padding:8px 14px; }
  .pq-mail-tools{ gap:10px; }
  .pq-phone{ border-width:8px; border-radius:28px; }
  .pq-answer{ font-size:18px; padding:16px 10px; }
  .pq-result-head{ flex-direction:column; align-items:flex-start; gap:14px; }
  .pq-recap, .pq-fields{ grid-template-columns:1fr; }
  .pq-lead{ padding:20px 16px; }
  .pq-cta-btns .btn{ flex:1 1 100%; }
  .pq-share-btn{ flex:1 1 calc(50% - 8px); }
}

/* Headings that receive focus programmatically (tabindex=-1) need no ring. */
.pq-app h2[tabindex="-1"]:focus, .pq-app h3[tabindex="-1"]:focus{ outline:none; }
