.er-selfcheck {
  background: #f7f2e9;
  color: #18322d;
  min-height: 100vh;
  padding: clamp(40px, 8vw, 96px) 0;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.er-selfcheck * {
  box-sizing: border-box;
}

.er-selfcheck__inner {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  background: rgba(255, 253, 248, .78);
  border: 1px solid #ded4c4;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 52px);
  box-shadow: 0 18px 55px rgba(32, 42, 35, .10);
}

.er-selfcheck__eyebrow {
  margin: 0 0 12px;
  color: #b28b4e;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

.er-selfcheck h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1;
}

.er-selfcheck__lead {
  max-width: 680px;
  margin: 0 0 28px;
  color: #36564e;
  font-size: 1.04rem;
}

.er-selfcheck__progress {
  height: 7px;
  background: #e8ddcf;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 30px;
}

.er-selfcheck__progress span {
  display: block;
  height: 100%;
  background: #0f3f38;
  transition: width .2s ease;
}

.er-selfcheck__step {
  display: none;
  border: 0;
  margin: 0;
  padding: 0;
}

.er-selfcheck__step.is-active {
  display: block;
}

.er-selfcheck legend {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 4vw, 2rem);
  margin-bottom: 20px;
}

.er-selfcheck__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.er-selfcheck__choice {
  display: block;
  cursor: pointer;
}

.er-selfcheck__choice input {
  position: absolute;
  opacity: 0;
}

.er-selfcheck__choice span {
  display: block;
  min-height: 112px;
  border: 1px solid #ded4c4;
  border-radius: 8px;
  padding: 18px;
  background: #fffdf8;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.er-selfcheck__choice strong {
  display: block;
  margin-bottom: 8px;
}

.er-selfcheck__choice small {
  display: block;
  color: #36564e;
}

.er-selfcheck__choice input:checked + span {
  border-color: #0f3f38;
  box-shadow: inset 0 0 0 2px #0f3f38;
}

.er-selfcheck__field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 800;
}

.er-selfcheck__field input,
.er-selfcheck__field select,
.er-selfcheck__field textarea {
  width: 100%;
  border: 1px solid #cfc3b2;
  border-radius: 6px;
  padding: 13px 14px;
  background: #fffdf8;
  color: #18322d;
  font: inherit;
}

.er-selfcheck__field textarea {
  resize: vertical;
}

.er-selfcheck__consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #36564e;
  font-size: .92rem;
}

.er-selfcheck__message {
  min-height: 28px;
  margin-top: 18px;
  font-weight: 800;
}

.er-selfcheck__message.is-error {
  color: #8a1f1f;
}

.er-selfcheck__message.is-success {
  color: #0f3f38;
}

.er-selfcheck__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.er-selfcheck__button {
  min-height: 48px;
  border: 1px solid #0f3f38;
  border-radius: 5px;
  padding: 0 22px;
  background: #0f3f38;
  color: #fffdf8;
  font-weight: 900;
  cursor: pointer;
}

.er-selfcheck__button--ghost {
  background: transparent;
  color: #0f3f38;
}

.er-selfcheck__button[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .er-selfcheck__choices {
    grid-template-columns: 1fr;
  }

  .er-selfcheck__actions {
    flex-direction: column;
  }

  .er-selfcheck__button {
    width: 100%;
  }
}

/* EN-Route visual integration. */
body.page-id-15 {
  background: #f7f2e9;
}

body.page-id-15 .wp-site-blocks > header.wp-block-template-part,
body.page-id-15 .wp-site-blocks > footer.wp-block-template-part,
body.page-id-15 h1.wp-block-post-title {
  display: none !important;
}

body.page-id-15 main.wp-block-group,
body.page-id-15 .wp-block-post-content,
body.page-id-15 .entry-content {
  max-width: none !important;
  margin-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-id-15 .wp-site-blocks,
body.page-id-15 main,
body.page-id-15 .wp-block-post-content {
  overflow-x: hidden !important;
}

.er-selfcheck {
  position: relative;
  min-height: 100vh;
  padding: 0;
  background: #f7f2e9;
  overflow: hidden;
}

.er-selfcheck::before {
  content: "";
  position: absolute;
  inset: 70px 0 auto;
  height: 620px;
  background-image: linear-gradient(90deg, rgba(247,242,233,.98) 0%, rgba(247,242,233,.90) 34%, rgba(247,242,233,.58) 60%, rgba(247,242,233,.20) 100%), image-set(url('/wp-content/uploads/enroute/enroute-hero.webp') type('image/webp'), url('/wp-content/uploads/enroute/enroute-hero.jpg') type('image/jpeg'), url('/wp-content/uploads/enroute/enroute-hero.png') type('image/png'));
  background-size: cover;
  background-position: center right;
  pointer-events: none;
}

.er-selfcheck::after {
  content: "";
  display: block;
  clear: both;
}

.er-selfcheck__topbar {
  position: relative;
  z-index: 3;
  background: rgba(247,242,233,.94);
  border-bottom: 1px solid #ded4c4;
  backdrop-filter: blur(14px);
}

.er-selfcheck__nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.er-selfcheck__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #18322d;
  text-decoration: none;
  font-weight: 900;
}

.er-selfcheck__mark {
  width: 34px;
  height: 34px;
  border: 1px solid #b28b4e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #b28b4e;
}

.er-selfcheck__menu {
  display: flex;
  gap: 24px;
  font-size: .92rem;
  font-weight: 800;
}

.er-selfcheck__menu a {
  color: #18322d;
  text-decoration: none;
}

.er-selfcheck__layout {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(54px, 8vw, 92px) 0;
}

.er-selfcheck__intro {
  max-width: 620px;
}

.er-selfcheck__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.er-selfcheck__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: #b28b4e;
}

.er-selfcheck__intro h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: .96;
  letter-spacing: 0;
}

.er-selfcheck__lead {
  max-width: 600px;
  font-size: 1.06rem;
}

.er-selfcheck__note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  max-width: 560px;
  color: #36564e;
  margin-top: 22px;
}

.er-selfcheck__note::before {
  content: "✓";
  width: 23px;
  height: 23px;
  border: 1px solid #9fb5aa;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0f3f38;
  font-weight: 900;
  font-size: .78rem;
}

.er-selfcheck__inner {
  width: 100%;
  margin: 0;
  background: rgba(255,253,248,.86);
  backdrop-filter: blur(10px);
}

.er-selfcheck__inner > .er-selfcheck__eyebrow,
.er-selfcheck__inner > h1,
.er-selfcheck__inner > h2,
.er-selfcheck__inner > .er-selfcheck__lead {
  display: none;
}

@media (max-width: 980px) {
  .er-selfcheck::before {
    height: 520px;
    background-image: linear-gradient(180deg, rgba(247,242,233,.98) 0%, rgba(247,242,233,.92) 52%, rgba(247,242,233,.68) 100%), image-set(url('/wp-content/uploads/enroute/enroute-hero-mobile.webp') type('image/webp'), url('/wp-content/uploads/enroute/enroute-hero-mobile.jpg') type('image/jpeg'), url('/wp-content/uploads/enroute/enroute-hero.png') type('image/png'));
    background-position: center bottom;
  }

  .er-selfcheck__layout {
    grid-template-columns: 1fr;
    max-width: 760px;
    min-height: 0;
  }

  .er-selfcheck__intro {
    max-width: 680px;
  }
}

@media (max-width: 620px) {
  .er-selfcheck__nav,
  .er-selfcheck__layout {
    width: calc(100% - 28px);
  }

  .er-selfcheck__nav {
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .er-selfcheck__menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    font-size: .82rem;
  }

  .er-selfcheck__layout {
    padding: 44px 0;
    gap: 28px;
  }

  .er-selfcheck__intro h1 {
    font-size: clamp(2.7rem, 13vw, 3.6rem);
  }

  .er-selfcheck__inner {
    padding: 22px 16px;
  }
}

body.page-id-15 .has-global-padding > .alignfull,
body.page-id-15 .wp-block-post-content.alignfull,
body.page-id-15 .entry-content.alignfull {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-id-15 .wp-block-post-content > .er-selfcheck {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (min-width: 981px) {
  .er-selfcheck__layout {
    grid-template-columns: minmax(420px, 560px) minmax(420px, 520px);
  }

  .er-selfcheck__intro h1 {
    font-size: clamp(4.2rem, 6vw, 5.8rem);
  }

  .er-selfcheck__lead,
  .er-selfcheck__note {
    max-width: 520px;
  }
}

@media (max-width: 620px) {
  body.page-id-15 .wp-block-post-content > .er-selfcheck {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  body.page-id-15 .wp-site-blocks,
  body.page-id-15 main,
  body.page-id-15 .wp-block-post-content,
  .er-selfcheck {
    overflow-x: hidden !important;
  }

  .er-selfcheck,
  .er-selfcheck__intro,
  .er-selfcheck__inner {
    width: min(270px, calc(100vw - 120px)) !important;
    max-width: min(270px, calc(100vw - 120px)) !important;
    min-width: 0;
  }

  .er-selfcheck__intro,
  .er-selfcheck__inner {
    justify-self: start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .er-selfcheck__nav,
  .er-selfcheck__layout {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .er-selfcheck__layout {
    max-width: none;
  }

  .er-selfcheck__intro h1 {
    font-size: clamp(2.55rem, 10.5vw, 3.05rem);
  }

  .er-selfcheck__lead,
  .er-selfcheck__note,
  .er-selfcheck legend {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: break-word;
  }

  .er-selfcheck__note {
    grid-template-columns: 23px minmax(0, 1fr);
  }

  .er-selfcheck legend {
    font-size: clamp(1.34rem, 6.4vw, 1.68rem);
  }

  .er-selfcheck__choices {
    grid-template-columns: 1fr;
  }

  .er-selfcheck__choice span {
    min-height: auto;
  }
}
