/* Compatibility layer for the verbatim FPT reference theme. */
body.fpt-mode .contact-accent:before,
body.rpl-mode .hero-seal,
body.fpt-mode .qualification-detail-seal {
  background-image: url("/assets/rpl-stamp.png") !important;
}
body.fpt-mode .contact-accent:after {
  background-image: url("/assets/fpt-logo.png") !important;
}
body.fpt-mode .contact-original:before {
  background-image: linear-gradient(90deg, rgba(255,255,255,.96) 0, rgba(255,255,255,.84) 44%, rgba(255,255,255,.32) 100%), url("/assets/contact-consultation.png") !important;
}
body.fpt-mode .about-story-image img,
body.fpt-mode .employer-photo img,
body.fpt-mode .portal-intro-visual img,
body.fpt-mode .assessment-visual img,
body.fpt-mode .portal-visual-label img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-page.active-page { display: block; }
.fpt-legacy-form-status { margin-top: 12px; }
.fpt-other-group .qualification-group-title { border-color: #7a0f2e; }
html, body { max-width: 100%; }
main.site-page { min-width: 0; max-width: 100%; }
main.site-page img,
main.site-page video,
main.site-page iframe { max-width: 100%; }
main.site-page :is(.container, .support-content, .legal-layout, .legal-content, .popia-layout, .popia-content, .contact-layout, .employer-form-card, .article-shell, .article-main, .article-body) {
  min-width: 0;
  max-width: 100%;
}
.article-page .article-hero-inner,
.article-page .article-shell { width: min(980px, calc(100% - 38px)); }
.article-page .article-shell { grid-template-columns: minmax(0, 1fr) 250px; }
.article-main, .article-body { min-width: 0; max-width: 100%; }
.article-body > * { min-width: 0; max-width: 100%; }
.article-body img, .article-body picture, .article-body video { max-width: 100%; height: auto; }
.article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
.article-body pre, .article-body code { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-layout .form-row,
.employer-form-card .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.contact-layout .form-group,
.employer-form-card .form-group { min-width: 0; }
.contact-layout .form-group input,
.contact-layout .form-group select,
.contact-layout .form-group textarea,
.employer-form-card .form-group input,
.employer-form-card .form-group select,
.employer-form-card .form-group textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.employer-form-card {
  width: min(900px, calc(100% - 38px));
  margin: 32px auto 0;
  padding: 34px;
  border: 1px solid #dce4eb;
  border-top: 8px solid #7a0f2e;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(38,62,116,.11);
}
.employer-form-card .form-check { display: flex; gap: 10px; align-items: flex-start; }
.employer-form-card .form-check input { width: auto; flex: 0 0 auto; }
.employer-form-card .form-check label { min-width: 0; line-height: 1.5; }
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 12px;
}
.footer-bottom-links a { color: inherit; }
.membership-form-section { padding: 60px 20px; background: #f3f6f8; }
.membership-form-section .container { max-width: 850px; margin-inline: auto; }
.membership-form-section .membership-inner { padding: 30px; border-top: 5px solid #7a0f2e; border-radius: 18px; background: #fff; box-shadow: 0 18px 44px rgba(38,62,116,.1); }
.membership-form-section .membership-inner h2 { color: #263e74; font-size: clamp(26px, 3vw, 38px); }
.membership-form-section .membership-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 20px; }
.membership-form-section .membership-form input { min-width: 0; padding: 13px 14px; border: 1px solid #cad5df; border-radius: 9px; font: inherit; }
.membership-form-section .membership-form button { border: 0; border-radius: 9px; padding: 12px 18px; background: #7a0f2e; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.membership-form-section .membership-msg { color: #7a0f2e; font-weight: 700; }
.blog-sidebar .newsletter-widget {
  padding: 23px;
  border: 1px solid #dfe7ec;
  border-radius: 17px;
  background: #fff;
}
.blog-sidebar .newsletter-widget h2 { margin: 0 0 12px; color: #263e74; }
.blog-sidebar .newsletter-widget p { color: #5e6c80; line-height: 1.55; }
.blog-sidebar .newsletter-widget input {
  width: 100%;
  margin-bottom: 9px;
  padding: 12px;
  border: 1px solid #ced8e1;
  border-radius: 9px;
}
.blog-sidebar .newsletter-widget button { width: 100%; }
@media (max-width: 640px) {
  .membership-form-section { padding: 40px 18px; }
  .membership-form-section .membership-form { grid-template-columns: 1fr; }
  .article-page .article-shell { grid-template-columns: minmax(0, 1fr); }
  .article-body { padding: 22px 18px; }
  .contact-layout .form-row,
  .employer-form-card .form-row { grid-template-columns: minmax(0, 1fr); }
  .employer-form-card { width: calc(100% - 36px); padding: 22px 18px; }
}
