/* ARNI interactive tests — shared quiz UI */
[hidden] {
  display: none !important;
}

/* Shorter hero, keep photo + brand layout (do not collapse to empty teal) */
@media (min-width: 960px) {
  body.arni-test .od-hero,
  body.arni-test .od-body {
    min-height: 420px !important;
  }

  body.arni-test .od-copy {
    padding-top: 96px;
    padding-bottom: 28px;
  }

  body.arni-test .od-stage {
    padding-bottom: 1.5rem;
  }
}

#eem-app {
  scroll-margin-top: 1.25rem;
}

/* condition-template-v2 hides main > section until .is-in; quiz pages
   never run that observer — keep the test visible always. */
html.od-js body.arni-inner main > section.eem-wrap,
html.od-js body.arni-inner main > section.eem-wrap:not(.is-in),
body.arni-test main > section.eem-wrap {
  opacity: 1 !important;
  transform: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eem-wrap {
  padding: clamp(1.5rem, 4vw, 3rem) 0 3.5rem;
  background: #f7f4ee;
  border-top: 1px solid rgba(0, 56, 56, 0.08);
}

.eem-wrap > .ip-in {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eem-card {
  background: #fff;
  border: 1px solid rgba(0, 56, 56, 0.12);
  border-radius: 14px;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  box-shadow: 0 8px 28px rgba(0, 56, 56, 0.05);
}

.eem-card.eem-panel {
  border-color: rgba(0, 56, 56, 0.16);
}

.eem-howto {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  padding: 0.85rem 1rem;
}

.eem-howto .ip-eb,
.eem-howto h2 {
  display: none;
}

.eem-howto .eem-lead {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: rgba(0, 56, 56, 0.82);
}

.eem-howto .eem-lead:last-child {
  margin-bottom: 0;
}

.eem-howto .eem-scoring {
  margin: 0.35rem 0 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: rgba(0, 56, 56, 0.82);
}

.eem-lead {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.eem-scoring {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.eem-panel:focus {
  outline: 2px solid #c8a35c;
  outline-offset: 2px;
}

.eem-progress-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: rgba(0, 56, 56, 0.85);
}

.eem-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(0, 56, 56, 0.12);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.eem-progress-bar {
  display: block;
  height: 100%;
  width: 5%;
  background: #008080;
  transition: width 0.25s ease;
}

.eem-q {
  font-family: inherit;
  font-size: clamp(1.1rem, 2.8vw, 1.28rem);
  line-height: 1.4;
  margin: 0 0 1rem;
  font-weight: 650;
  color: #003838;
}

.eem-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.eem-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 56, 56, 0.18);
  background: #fff;
  cursor: pointer;
}

.eem-opt:hover {
  border-color: rgba(0, 128, 128, 0.45);
  background: #f3fbfb;
}

.eem-opt:has(input:checked) {
  border-color: #008080;
  background: rgba(0, 128, 128, 0.08);
}

.eem-opt:has(:focus-visible) {
  outline: 2px solid #c8a35c;
  outline-offset: 2px;
}

.eem-opt input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #008080;
  flex-shrink: 0;
}

.eem-opt label {
  cursor: pointer;
  line-height: 1.45;
  flex: 1;
  font-size: 1rem;
  color: #003838;
}

.eem-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1.35rem;
}

.eem-nav-row .od-btn-outline,
.eem-nav-row .od-btn-primary {
  min-height: 2.75rem;
}

/* od-btn-outline is white-on-transparent for dark heroes — force readable contrast on the quiz card */
.eem-nav-row .od-btn-outline,
.eem-card .od-btn-outline[data-eem-prev],
.eem-wrap .od-btn-outline[data-eem-prev],
button.od-btn-outline[data-eem-prev] {
  border: 1px solid rgba(0, 56, 56, 0.4) !important;
  background: #f3f7f7 !important;
  color: #003838 !important;
}

.eem-nav-row .od-btn-outline:hover,
.eem-nav-row .od-btn-outline:focus-visible,
.eem-card .od-btn-outline[data-eem-prev]:hover,
.eem-card .od-btn-outline[data-eem-prev]:focus-visible,
.eem-wrap .od-btn-outline[data-eem-prev]:hover,
.eem-wrap .od-btn-outline[data-eem-prev]:focus-visible,
button.od-btn-outline[data-eem-prev]:hover,
button.od-btn-outline[data-eem-prev]:focus-visible {
  border-color: #008080 !important;
  color: #006666 !important;
  background: rgba(0, 128, 128, 0.1) !important;
}

.eem-nav-row .od-btn-outline[hidden],
.eem-wrap .od-btn-outline[data-eem-prev][hidden] {
  display: none !important;
}

.eem-gate .eem-card h2,
.eem-result .eem-card h2 {
  margin-top: 0;
}

.eem-form label {
  display: block;
  font-weight: 600;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
}

.eem-form label:first-of-type,
.eem-form > div:first-child label {
  margin-top: 0;
}

.eem-form .eem-opt-hint {
  font-weight: 400;
  opacity: 0.85;
}

.eem-form .eem-req {
  color: #c8a35c;
}

.eem-privacy-hint {
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.9;
  margin: 0.75rem 0 0;
}

.eem-form input[type="email"],
.eem-form input[type="text"],
.eem-form input[type="tel"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 56, 56, 0.25);
  font: inherit;
  background: #fff;
}

.eem-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.eem-form-error {
  color: #a40000;
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.eem-result .eem-scoreline {
  font-size: 1.1rem;
  font-weight: 600;
}

.eem-result p {
  line-height: 1.55;
  margin: 0.65rem 0;
}

.eem-cta-wrap {
  margin: 1.25rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.eem-cta-btn {
  text-decoration: none;
  display: inline-flex;
}

.eem-disclaimer {
  font-size: 0.88rem;
  opacity: 0.9;
  margin-top: 1rem !important;
}

.eem-mail-note {
  font-size: 0.9rem;
  background: rgba(200, 163, 92, 0.12);
  padding: 0.75rem;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .eem-wrap {
    padding-top: 1.25rem;
  }

  .eem-nav-row {
    flex-direction: column;
    align-items: stretch;
  }

  .eem-nav-row button,
  .eem-nav-row .od-btn-primary,
  .eem-nav-row .od-btn-outline {
    width: 100%;
    justify-content: center;
  }

  .eem-opt {
    padding: 0.95rem 1rem;
  }
}
