/* RepCentral EU GPSR Responsible Person Checker.
   Extends gpsr-labelling-checklist.css. Scoped to #gpsr-main. */

/* Five-step progress */
.gpsr-progress-steps.rp-progress-steps{grid-template-columns:repeat(5,minmax(0,1fr))}

/* Country picker */
.rp-country-picker{display:grid;gap:8px;max-width:560px}
.rp-country-picker label{font-size:12px;font-weight:700;color:#3c4c68}
.rp-country-search{width:100%;height:46px;padding:0 13px;border:1.5px solid #dce3ed;border-radius:10px;background:#fff;color:var(--gpsr-ink);font:inherit;font-size:13.5px;outline:none}
.rp-country-search::placeholder{color:#9aa6ba}
.rp-country-search:focus{border-color:var(--gpsr-blue);box-shadow:0 0 0 3px #3758f925}
.rp-country-picker select{width:100%;height:50px;padding:0 38px 0 13px;border:1.5px solid #dce3ed;border-radius:10px;background:#fff;color:var(--gpsr-ink);font:inherit;font-size:14.5px;outline:none;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#63708b 50%),linear-gradient(135deg,#63708b 50%,transparent 50%);background-position:calc(100% - 18px) 21px,calc(100% - 13px) 21px;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.rp-country-picker select:focus{border-color:var(--gpsr-blue);box-shadow:0 0 0 3px #3758f925}
.rp-country-empty{margin:0;color:#6c7990;font-size:12px;line-height:1.5}

/* Inline explanation panels */
.rp-note{margin:0 0 16px;padding:13px 15px;border:1px solid #dbe3ff;border-radius:10px;background:#f7f9ff;color:#42527a;font-size:12.5px;line-height:1.6}
.rp-note strong{color:#1d2e53}
.rp-note--amber{border-color:#f0d9a8;background:#fffaf0;color:#6b5422}
.rp-note--amber strong{color:#5b4517}
.rp-followup{margin:-8px 0 27px;padding:16px 17px;border:1px solid #e1e8f5;border-radius:11px;background:#fbfcff}
.rp-followup::before{content:'Because you selected an EU operator, confirm its legal role.';display:block;margin-bottom:11px;color:#5f6c82;font-size:10.5px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.rp-followup .gpsr-q:last-child{margin-bottom:0}

/* Product category hints */
.rp-category-scale{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 13px}
.rp-category-scale span{padding:4px 9px;border-radius:99px;background:#f0f4fb;color:#4b5b78;font-size:10.5px;font-weight:700}

/* Readiness checklist */
.rp-readiness{margin:0 0 27px}
.rp-readiness-head{margin:0 0 12px}
.rp-readiness-head h3{margin:0 0 4px;font-size:16.5px;font-weight:750;color:var(--gpsr-ink)}
.rp-readiness-head p{margin:0;color:var(--gpsr-muted);font-size:12.5px;line-height:1.6}
.rp-check-list{display:grid;gap:10px}
.rp-check-row{margin:0;padding:13px 15px;border:1.5px solid #e1e8f5;border-radius:11px;background:#fff;min-width:0}
.rp-check-row legend{display:block;width:100%;padding:0;margin:0 0 9px;color:var(--gpsr-ink);font-size:13px;line-height:1.5;font-weight:650}
.rp-check-choices{display:flex;flex-wrap:wrap;gap:7px}
.rp-check-choices label{position:relative;display:inline-flex;align-items:center;gap:0;min-width:78px;justify-content:center;padding:8px 11px;border:1.5px solid #dce3ed;border-radius:8px;background:#fff;color:#3c4c68;font-size:12px;font-weight:700;cursor:pointer;transition:border-color .15s,background .15s}
.rp-check-choices label:hover{border-color:#a9b8e8;background:#f9faff}
.rp-check-choices input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.rp-check-choices label.is-selected{border-color:var(--gpsr-blue);background:#eef2ff;color:#1d3aa8;box-shadow:0 0 0 1px #3758f914 inset}
.rp-check-choices input:focus-visible+span{outline:3px solid #91a5ff;outline-offset:3px;border-radius:3px}
.rp-check-choices span{padding:1px 2px}
.rp-check-row.rp-check-row--error{border-color:#efb5af}
.rp-check-error{display:none;margin:8px 0 0;color:var(--gpsr-red);font-size:12px;font-weight:650}
.rp-check-row--error .rp-check-error{display:block}

/* Results */
.rp-results{display:grid;gap:22px}
.rp-result-card{padding:23px 25px;border-radius:15px;border:1px solid #dbe3ff;background:#f7f9ff}
.rp-result-card--likely{border-color:#efd5a4;background:#fff8ec}
.rp-result-card--existing{border-color:#bfe7d5;background:#f1fbf6}
.rp-result-card--review{border-color:#cfd9ff;background:#f4f6ff}
.rp-result-card--not-indicated{border-color:#c7e7dc;background:#f3fbf8}
.rp-result-badge{display:inline-block;padding:5px 11px;border-radius:99px;background:#fff;color:#3758f9;font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase;border:1px solid #cfd9ff}
.rp-result-card--likely .rp-result-badge{color:#8a5200;border-color:#ead3a6}
.rp-result-card--existing .rp-result-badge,.rp-result-card--not-indicated .rp-result-badge{color:#13704b;border-color:#bfe7d5}
.rp-result-card h2{margin:11px 0 9px;font-size:clamp(24px,3vw,33px);color:var(--gpsr-ink);font-weight:800}
.rp-result-card h2:focus{outline:none}
.rp-result-card>p{margin:0;color:#3c4c68;font-size:14px;line-height:1.68;max-width:820px}
.rp-result-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}
.rp-result-meta span{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:99px;background:#ffffffc9;border:1px solid #e2e9f5;color:#3c4c68;font-size:10.5px;font-weight:650}
.rp-result-meta b{font-weight:850;color:#253654}

.rp-section{margin:0;padding:21px 23px;border:1px solid var(--gpsr-line);border-radius:13px;background:#fff}
.rp-section>h3{margin:0 0 11px;font-size:18px;color:var(--gpsr-ink);font-weight:800}
.rp-section>p{margin:0;color:#3c4c68;font-size:13px;line-height:1.65}
.rp-section--wash{background:var(--gpsr-wash)}
.rp-section-lead{color:var(--gpsr-muted);font-size:12.5px;line-height:1.6;margin:0 0 12px}

.rp-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0}
.rp-facts div{display:grid;grid-template-columns:145px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid #eef2f9;min-width:0}
.rp-facts dt{color:#5f6c82;font-size:11.5px;font-weight:700;line-height:1.45}
.rp-facts dd{margin:0;color:#1f2f4f;font-size:12.5px;line-height:1.45;overflow-wrap:anywhere}

.rp-reason{margin:13px 0 0;padding:12px 14px;border-left:3px solid var(--gpsr-blue);border-radius:0 8px 8px 0;background:#f6f8ff;color:#3c4c68;font-size:12.5px;line-height:1.6}
.rp-reason strong{display:block;margin-bottom:3px;color:#1d2e53;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}

.rp-check-summary{width:100%;border-collapse:collapse;margin:0}
.rp-check-summary th{text-align:left;padding:7px 9px;border-bottom:1px solid #e4eaf4;color:#5f6c82;font-size:9.5px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
.rp-check-summary th:last-child{text-align:right}
.rp-check-summary td{padding:8px 9px;border-bottom:1px solid #eef2f9;color:#3c4c68;font-size:11.5px;line-height:1.5;vertical-align:top}
.rp-check-summary td:last-child{text-align:right;white-space:nowrap;font-weight:750}
.rp-check-summary tr:last-child td{border-bottom:0}
.rp-check-summary .is-gap{color:#b42318}
.rp-check-summary .is-ok{color:#178157}
.rp-check-summary .is-na{color:#6c7990}

.rp-actions{margin:0;padding-left:19px;display:grid;gap:8px}
.rp-actions li{color:#2b3b5c;font-size:12.5px;line-height:1.6}

.rp-refs{list-style:none;display:flex;flex-wrap:wrap;gap:6px 15px;margin:0;padding:0}
.rp-refs li{font-size:11.5px;line-height:1.55;color:#6c7990}
.rp-refs a{color:var(--gpsr-blue);font-weight:650}
.rp-refs a:hover{text-decoration:underline}

.rp-cta{margin:0;padding:23px 25px;border-radius:15px}
.rp-cta h3{margin:5px 0 7px;font-size:20px;font-weight:800}
.rp-cta p{max-width:800px;margin:0;font-size:13px;line-height:1.65}
.rp-cta--service{background:radial-gradient(circle at 90% 10%,#2a458e 0,transparent 45%),linear-gradient(130deg,#090e34,#16285f);color:#fff;box-shadow:0 14px 34px #0a173d1f}
.rp-cta--service .gpsr-kicker{color:#b9caff}
.rp-cta--service h3{color:#fff}
.rp-cta--service p{color:#d6e0f8}
.rp-cta--consultation{border:1px solid #dbe3ff;background:#f0f4ff}
.rp-cta--consultation h3{color:#1d2e53}
.rp-cta--consultation p{color:#4e5e7d}
.rp-cta-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:14px}
.rp-cta--service .gpsr-btn-primary{background:#fff;color:#16285f}
.rp-cta--service .gpsr-btn-primary:hover{background:#edf1ff}
.rp-cta--service .gpsr-text-link{color:#b9caff}

.rp-result-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:19px;border-top:1px solid var(--gpsr-line)}
.rp-result-actions-right{display:flex;flex-wrap:wrap;align-items:center;gap:9px}

.rp-ce-mark-note{display:flex;gap:11px;align-items:flex-start;padding:12px 14px;border:1px solid #eadfbe;border-radius:9px;background:#fffdf5;color:#6b5b2f;font-size:11.5px;line-height:1.55}
.rp-ce-mark-note strong{color:#5b4517}

/* Explainer band */
.rp-explainer{background:#fff;border-top:1px solid var(--gpsr-line);padding:52px 0 58px}
.rp-explainer-head h2{margin:8px 0 10px;font-size:clamp(24px,2.8vw,33px);color:var(--gpsr-ink);font-weight:800}
.rp-explainer-head>p{max-width:820px;margin:0;color:var(--gpsr-muted);font-size:14px;line-height:1.7}
.rp-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:26px 0 18px}
.rp-role-card{padding:19px 20px;border:1px solid var(--gpsr-line);border-top:4px solid #3758f9;border-radius:12px;background:#fbfcff}
.rp-role-card:nth-child(2){border-top-color:#178157}
.rp-role-card:nth-child(3){border-top-color:#9a5b00}
.rp-role-card h3{margin:0 0 7px;font-size:15.5px;color:var(--gpsr-ink);font-weight:800}
.rp-role-card p{margin:0;color:#4b5b78;font-size:12.5px;line-height:1.62}
.rp-explainer-note{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.rp-explainer-note>div{padding:17px 19px;border:1px solid #e4eaf4;border-radius:11px;background:#f7f9fc}
.rp-explainer-note h3{margin:0 0 6px;font-size:14.5px;color:var(--gpsr-ink);font-weight:800}
.rp-explainer-note p{margin:0;color:#4b5b78;font-size:12px;line-height:1.6}
.rp-explainer-note a{color:var(--gpsr-blue);font-weight:650}
.rp-explainer-note a:hover{text-decoration:underline}

@media(max-width:1000px){
  .rp-facts{grid-template-columns:1fr}
  .rp-role-grid{grid-template-columns:1fr}
}
@media(max-width:790px){
  .gpsr-progress-steps.rp-progress-steps{grid-template-columns:repeat(5,minmax(0,1fr))}
  .rp-section{padding:18px 19px}
  .rp-check-row{padding:12px 13px}
  .rp-explainer-note{grid-template-columns:1fr}
  .rp-result-actions{flex-direction:column;align-items:stretch}
  .rp-result-actions-right{flex-direction:column;align-items:stretch}
  .rp-result-actions .gpsr-btn{width:100%}
}
@media(max-width:620px){
  .gpsr-progress-steps.rp-progress-steps{gap:3px}
  .gpsr-progress-steps.rp-progress-steps .gpsr-progress-info strong{font-size:9px}
  .gpsr-progress-steps.rp-progress-steps .gpsr-progress-num{width:22px;height:22px;font-size:9.5px}
  .rp-facts div{grid-template-columns:1fr;gap:2px}
  .rp-result-card{padding:19px 18px}
  .rp-result-meta span{width:100%}
  .rp-check-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .rp-check-choices label{min-width:0}
  .rp-cta{padding:19px 18px}
  .rp-cta-actions{align-items:stretch}
  .rp-cta-actions .gpsr-btn{width:100%}
  .rp-refs{display:grid;gap:5px}
  .rp-explainer{padding:40px 0 44px}
}
