/*
 * Ethos Migration Lawyers — Quiz Result page
 * Stylesheet for page-quiz-result.php
 *
 * This intentionally does NOT redefine header/footer/button/base styles —
 * those come from partner-visa.css, loaded as a dependency (see
 * functions-snippet.php). The page wrapper carries both "pv-page" and
 * "qr-page" classes, so those shared rules already apply here. Everything
 * below is specific to this template: the result hero, the floating
 * "speak to a lawyer" panel, and the 3-column details grid.
 */

/* ---------- RESULT HERO ---------- */
.qr-page .qr-hero {
  position: relative;
  padding: 90px 0px 180px 0px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(23, 69, 79, 0.96) 0%,
      rgba(38, 115, 148, 0.92) 35%,
      rgba(38, 115, 148, 0.55) 62%,
      rgba(38, 115, 148, 0.15) 82%,
      rgba(38, 115, 148, 0) 100%
    ),
    var(--img-qr-hero);
  background-size: cover;
  background-position: center right;
}
.qr-page .qr-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.qr-page .qr-badge img {
  width: 28px;
  height: 28px;
}
.qr-page .qr-hero-copy {
  max-width: 700px;
  position: relative;
  z-index: 2;
}
.qr-page .qr-hero-copy h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}
.qr-page .qr-hero-copy h1 .qr-label {
  font-weight: 400;
  font-size: inherit;
}
.qr-page .qr-hero-copy h1 strong {
  font-weight: 800;
  /* fonts.css (loaded in <head> for global theme styling) has a bare,
     unscoped "strong { font-size: 1rem; }" rule that otherwise wins here,
     since nothing else in this file ever set a font-size on this element
     for it to compete against — it was silently shrinking the bold result
     title down to 16px regardless of the h1's actual clamp() size. */
  font-size: inherit;
}
.qr-page .qr-summary {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 16px;
}
.qr-page .qr-detail {
  font-size: 15px;
  line-height: 1.7;
  color: #dceaf0;
}

/* ---------- DETAILS SECTION WRAPPER ---------- */
.qr-page .qr-details-section {
  background: var(--gray-bg);
  padding: 64px 0 100px;
}
.qr-page .qr-details-section{
    margin-bottom: 50px!important;
}
/* ---------- "SPEAK TO A LAWYER" PANEL ----------
 * Plain stacked block — no overlap/floating positioning. Left intentionally
 * minimal (no shadow, no z-index) so it's easy to restyle further. */
.qr-page .qr-lawyer-panel {
    background: var(--white);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    margin-top: -180px;
    margin-bottom: 100px;
}
.qr-page .qr-lawyer-copy {
  flex: 1 1 50%;
  padding: 48px;
  align-self: center;
}
.qr-page .qr-lawyer-copy h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 16px;
}
.qr-page .qr-lawyer-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 24px;
}
.qr-page .qr-lawyer-body p + p {
  margin-top: 12px;
}
.qr-page .qr-lawyer-body p{
    font-size: 15px!important;
}
.qr-page .qr-lawyer-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-gray);
  margin-top: 20px;
}
.qr-page .qr-lawyer-note a {
  text-decoration: underline;
  font-weight: 600;
  color: var(--ink);
}
.qr-page .qr-lawyer-photo {
  flex: 1 1 50%;
  background: var(--img-qr-lawyer) no-repeat center center;
  background-size: contain;
  min-height: 360px;
}

/* ---------- 3-COLUMN DETAILS GRID ---------- */
.qr-page .qr-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: stretch;
  margin-top: 64px;
}
.qr-page .qr-list-col h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.qr-page .qr-details-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 16px;
}
.qr-page .qr-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qr-page .qr-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-gray);
}
.qr-page .qr-list li img {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex: none;
}
.qr-page .qr-list li strong {
  color: var(--ink);
  font-weight: 700;
}
.qr-page .qr-photo-col {
  background: var(--img-qr-details) no-repeat center center;
  background-size: cover;
  min-height: 340px;
  height: 100%;
}
.qr-page .qr-callout-col {
  background: var(--tan);
  padding: 32px;
}
.qr-page .qr-callout-item + .qr-callout-item {
  margin-top: 24px;
}
.qr-page .qr-callout-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
}
.qr-page .qr-callout-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .qr-page .qr-detail-grid {
    grid-template-columns: 1fr;
  }
  .qr-page .qr-photo-col {
    min-height: 260px;
  }
}
@media (max-width: 780px) {
  .qr-page .qr-hero {
    padding: 60px 0 100px;
  }
  .qr-page .qr-hero-copy h1 {
    font-size: 24px !important;
  }
  /* The theme's global CSS has several scattered, low-specificity h1/strong
     rules across different files (fonts.css alone has three) that can win
     against a plain "font-size: inherit" at this width depending on which
     ones happen to be active together — explicit !important sizes here
     guarantee both spans actually match the h1, regardless of which one. */
  .qr-page .qr-hero-copy h1 .qr-label,
  .qr-page .qr-hero-copy h1 strong {
    font-size: 24px !important;
  }
  .qr-page .qr-summary {
    font-size: 15px;
  }
  .qr-page .qr-detail {
    font-size: 13.5px;
  }
  .qr-page .qr-lawyer-panel {
    flex-direction: column;
    margin-top: -100px;
  }
  .qr-page .qr-lawyer-photo {
    min-height: 220px;
  }
  .qr-page .qr-lawyer-copy {
    padding: 28px 24px;
  }
}
