/* Training in Demand 2027: report page and the leaving pop-up (20 November 2026).
   Loaded by /training-in-demand-2027 and, only when the pop-up opens, by report-offer.js. */

/* ---------- Report page ---------- */
.rp-hero { background: linear-gradient(135deg, #0B1730 0%, #14284B 70%, #1B3563 100%); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.rp-hero::after { content: ""; position: absolute; right: -180px; top: -140px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(90,140,240,.22), rgba(90,140,240,0) 70%); pointer-events: none; }
.rp-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.rp-pill { display: inline-block; border: 1.5px solid #E2B85A; color: #E2B85A; border-radius: 999px; padding: 8px 20px; font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 22px; }
.rp-hero h1 { color: #fff; text-transform: none; font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.08; margin: 0 0 18px; }
.rp-hero h1 .rp-year { display: block; color: #E2B85A; font-size: 1.25em; line-height: 1; margin-bottom: 6px; }
.rp-lead { font-size: 1.15rem; line-height: 1.6; color: #DCE3EE; margin: 0 0 26px; max-width: 34em; }
.rp-cover-wrap { display: flex; justify-content: center; }
.rp-cover { width: 100%; max-width: 360px; height: auto; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.45); transform: rotate(-2deg); }

.rp-form-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 30px 30px 26px; box-shadow: 0 24px 50px rgba(0,0,0,.28); max-width: 470px; }
.rp-form-card h2 { text-transform: none; font-size: 1.35rem; margin: 0 0 6px; }
.rp-form-card .rp-sub { margin: 0 0 18px; color: #4A5568; font-size: .98rem; }
.rp-form-card .field input[type="text"], .rp-form-card .field input[type="email"] { border-radius: 10px; }
.rp-form-card .check label { font-size: .92rem; color: #4A5568; }
.rp-form-card .btn { border-radius: 999px; padding: 15px 28px; }
.rp-small { font-size: .82rem; color: #6B7280; margin: 12px 0 0; }
.rp-done h2 { text-transform: none; margin: 0 0 8px; }
.rp-done p { margin: 0 0 18px; color: #4A5568; }
.rp-hide { display: none !important; }

.rp-section { padding: 72px 0; background: #fff; }
.rp-section-tint { background: #EEF2F8; }
.rp-section h2 { text-transform: none; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; }
.rp-intro { max-width: 46em; color: #4A5568; margin: 0 0 32px; font-size: 1.05rem; }
.rp-inside { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rp-inside li { list-style: none; background: #fff; border: 1px solid #DDE3EE; border-radius: 16px; padding: 24px 22px; }
.rp-inside { padding: 0; margin: 0; }
.rp-num { display: block; font-family: var(--display); font-weight: 700; font-size: 2.2rem; color: #B08D3C; line-height: 1; margin-bottom: 10px; }
.rp-inside h3 { text-transform: none; font-size: 1.05rem; margin: 0 0 6px; }
.rp-inside p { margin: 0; color: #4A5568; font-size: .95rem; }
.rp-areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; padding: 0; margin: 0; }
.rp-areas li { list-style: none; display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid #D5DBE5; }
.rp-areas b { font-family: var(--display); color: #B08D3C; font-weight: 600; min-width: 2em; }
.rp-areas span { font-weight: 500; color: var(--navy); }
.rp-cta { text-align: center; }
.rp-cta .btn { border-radius: 999px; padding: 15px 34px; }

@media (max-width: 900px) {
  .rp-hero { padding: 40px 0 48px; }
  .rp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .rp-cover-wrap { order: -1; }
  .rp-cover { max-width: 230px; }
  .rp-inside { grid-template-columns: repeat(2, 1fr); }
  .rp-areas { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rp-inside { grid-template-columns: 1fr; }
  .rp-form-card { padding: 24px 20px 20px; }
  .rp-section { padding: 52px 0; }
}

/* ---------- Leaving pop-up ---------- */
.ro-backdrop { position: fixed; inset: 0; background: rgba(8,16,34,.62); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s ease; }
.ro-backdrop.ro-open { opacity: 1; }
.ro-box { position: relative; background: #fff; color: var(--ink); width: 100%; max-width: 760px; border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 300px 1fr; box-shadow: 0 30px 70px rgba(0,0,0,.4); transform: translateY(12px); transition: transform .2s ease; max-height: calc(100vh - 32px); overflow-y: auto; }
.ro-open .ro-box { transform: none; }
.ro-side { background: linear-gradient(160deg, #0B1730, #1B3563); display: flex; align-items: center; justify-content: center; padding: 30px 26px; }
.ro-side img { width: 100%; max-width: 220px; height: auto; border-radius: 5px; box-shadow: 0 18px 36px rgba(0,0,0,.45); transform: rotate(-2deg); }
.ro-main { padding: 34px 32px 28px; }
.ro-kicker { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: #8A6A1F; margin: 0 0 8px; }
.ro-main h2 { text-transform: none; font-size: 1.55rem; line-height: 1.2; margin: 0 0 10px; }
.ro-main .ro-text { color: #4A5568; margin: 0 0 18px; font-size: .98rem; }
.ro-main .field { margin-bottom: 12px; }
.ro-main .field input[type="text"], .ro-main .field input[type="email"] { border-radius: 10px; }
.ro-main .check label { font-size: .88rem; color: #4A5568; }
.ro-main .btn { border-radius: 999px; padding: 14px 26px; }
.ro-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; }
.ro-close:hover { background: #EEF2F8; }
.ro-nothanks { display: block; margin: 12px auto 0; background: none; border: 0; color: #6B7280; text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; padding: 6px; }
@media (max-width: 680px) {
  .ro-box { grid-template-columns: 1fr; max-width: 440px; }
  .ro-side { display: none; }
  .ro-main { padding: 22px 20px 20px; }
  .ro-main h2 { font-size: 1.3rem; }
}
body.ro-lock { overflow: hidden; }
.rp-center { margin-left: auto; margin-right: auto; }
