/* Tech2CL scam test (scam-test.html / scam-test-fr.html). Loaded after tech2cl.css. */

.scam-page #banner {
  background-image: linear-gradient(90deg,rgba(7,22,43,.82),rgba(9,28,53,.52),rgba(11,31,59,.2)),url("../../images/cybersecurity-placeholder.webp") !important;
}
.scam-page { --mobile-hero: url("../../images/cybersecurity-placeholder.webp"); }

.t2q {
  --ink: #153153; --txt: #334c68; --blue: #175cae; --blue-d: #123e72; --line: #d5e2ed;
  --scam: #c8333e; --scam-bg: #fde3e5; --legit: #1f8a5b; --legit-bg: #e2f5ec;
  max-width: 50rem;
  margin: 0 auto;
  scroll-margin-top: 6rem;
}
.t2q-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .6rem;
  box-shadow: 0 1em 2.8em rgba(19,47,80,.08);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}
.t2q h2 { font-size: 1.6rem; text-transform: none; letter-spacing: normal; margin: 0 0 .75rem; line-height: 1.3; }
.t2q h3 { font-size: .95rem; margin: 1.25rem 0 .5rem; }
.t2q p { margin: 0 0 1rem; }
.t2q .t2q-step {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #2368b8; margin-bottom: .6rem;
}
.t2q-bar { height: 5px; background: #e3ebf3; border-radius: 3px; overflow: hidden; margin-bottom: 1.6rem; }
.t2q-bar i { display: block; height: 100%; background: #2368b8; transition: width .35s ease; }
.t2q .t2q-ctx { font-style: italic; }
.t2q .t2q-small { font-size: .85rem; color: #5a6f86; }
.t2q .t2q-small a { color: var(--blue); }

/* Buttons: override the template's white-on-dark button styles */
.t2q .t2q-btn {
  display: inline-block; height: auto; line-height: 1.3; white-space: normal;
  padding: .95em 1.6em; border: 0; border-radius: .4rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center;
  background: #fff; color: var(--blue) !important; box-shadow: inset 0 0 0 2px var(--blue);
  cursor: pointer; text-decoration: none; border-bottom: 0;
  transition: background-color .2s, color .2s;
}
.t2q .t2q-btn:hover { background: #eaf2fb; color: var(--blue-d) !important; }
.t2q .t2q-btn.primary { background: var(--blue); color: #fff !important; box-shadow: none; }
.t2q .t2q-btn.primary:hover { background: var(--blue-d); color: #fff !important; }
.t2q .t2q-btn:focus-visible, .t2q [tabindex="-1"]:focus-visible { outline: 3px solid #4aa3ff; outline-offset: 3px; }
.t2q [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.t2q-choices { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.t2q-choices .t2q-btn { flex: 1 1 13rem; }

/* Message mock-ups */
.t2q-msg {
  background: #f5f8fb; border: 1px solid var(--line); border-radius: .8rem;
  padding: 1.1rem 1.25rem; color: #1d2b3c; line-height: 1.6;
}
.t2q-msg .from { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: #5a6f86; margin-bottom: .6rem; }
.t2q-msg .from b, .light-section .t2q-msg .from b { color: #1d2b3c !important; font-weight: 700; }
.t2q-msg .subj { font-weight: 700; margin-bottom: .5rem; }
.t2q-msg .body { white-space: pre-line; }
.t2q-ico {
  display: inline-flex; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  align-items: center; justify-content: center; background: #2368b8; color: #fff; font-size: .8rem; font-weight: 700;
}
.t2q-msg.sms .body { display: inline-block; max-width: 92%; background: #e4e9f0; border-radius: 1.1rem 1.1rem 1.1rem .3rem; padding: .7rem 1rem; }
.t2q-msg.call .body, .t2q-msg.door .body { font-style: italic; }
.t2q-msg.email { background: #fff; }
.t2q-msg.ad { border-style: dashed; background: #fff; }
.t2q-msg.popup { background: #fff; border: 3px solid #c62828; font-family: Arial, Helvetica, sans-serif; }
.t2q-msg.popup .t2q-ico { background: #c62828; }

.t2q-flag { border-radius: 3px; transition: background-color .3s, box-shadow .3s; }
.t2q.revealed .t2q-flag { background: var(--scam-bg); box-shadow: 0 2px 0 var(--scam); }

/* Feedback */
.t2q-fb { margin-top: 1.75rem; border-left: 4px solid var(--scam); padding: .2rem 0 .2rem 1.25rem; }
.t2q-fb.legit { border-color: var(--legit); }
.t2q .t2q-fb .verdict { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: .25rem; }
.t2q-fb .tag {
  display: inline-block; margin-right: .6rem; padding: .15rem .6rem; border-radius: .25rem; vertical-align: 2px;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--scam);
}
.t2q-fb.legit .tag { background: var(--legit); }
.t2q-fb ul { margin: .25rem 0 1rem; padding-left: 1.2rem; }
.t2q-fb li { margin-bottom: .35rem; }
.t2q .t2q-fb .do { background: #eef4fa; border-radius: .4rem; padding: .8rem 1rem; margin-bottom: 1.25rem; }

/* Results */
.t2q .t2q-score { font-size: 3.6rem; font-weight: 800; line-height: 1; color: var(--ink); margin: .25rem 0 1rem; }
.t2q-review { list-style: none; padding: 0; margin: .5rem 0 1.75rem; border-top: 1px solid var(--line); }
.t2q-review li { display: flex; gap: .75rem; padding: .55rem 0; margin: 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.t2q-review .ok { color: var(--legit); font-weight: 700; }
.t2q-review .no { color: var(--scam); font-weight: 700; }
.t2q-cta { background: #193b70; border-radius: .5rem; padding: 1.5rem 1.6rem; margin: 1.5rem 0; }
.light-section .t2q-cta h3 { color: #fff !important; margin-top: 0; }
.t2q .t2q-cta p { color: #e0ebf8; }
.t2q .t2q-cta .t2q-btn.primary { background: #fff; color: var(--ink) !important; }
.t2q .t2q-cta .t2q-btn.primary:hover { background: #dceefc; color: var(--ink) !important; }

/* Homepage / Services teaser link */
.scam-teaser { margin-top: 1.2em; }

@media (prefers-reduced-motion: reduce) {
  .t2q-bar i, .t2q-flag, .t2q .t2q-btn { transition: none; }
}

/* v11: separate uncertain answers and review explanations. */
.t2q-review-details { flex: 1; min-width: 0; }
.t2q-review-details summary { cursor: pointer; font-weight: 600; padding: .25rem 0; }
.t2q-review-details p, .t2q-review-details ul { margin: .45rem 0; }
.t2q-review .unsure { color: #805000; font-weight: 700; }
.t2q .t2q-btn:focus-visible, .t2q [tabindex="-1"]:focus-visible, .t2q summary:focus-visible { outline-color: #164f95; }
.t2q-review-details ul li { display: list-item; border: 0; padding: .1rem 0; }
