/* Site-wide "Start Your Journey" popup — a lightweight overlay shell around
   an iframe (the actual assessment form lives in /assessment-widget, its own
   sandboxed document, so its Bootstrap/theme.css never touches this page). */
.asm-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.asm-overlay.is-open { display: flex; }
.asm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 20, 16, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s ease;
}
.asm-overlay.is-open .asm-backdrop { opacity: 1; }
.asm-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  height: min(88vh, 900px);
  background: var(--white);
  border-radius: var(--r-xl, 20px);
  box-shadow: var(--shadow-md, 0 24px 60px rgba(0,0,0,.28));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s ease;
}
.asm-overlay.is-open .asm-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.asm-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border, #e8e8e8);
  background: var(--white, #fff);
  color: var(--ink, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm, 0 4px 16px rgba(0,0,0,.06));
  transition: background .15s, transform .15s;
}
.asm-close:hover { background: var(--bg, #f9f9f9); transform: scale(1.05); }
.asm-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}
.asm-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.asm-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white, #fff);
  transition: opacity .3s ease;
  pointer-events: none;
}
.asm-loading[hidden] { display: none; }
.asm-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--border, #e8e8e8);
  border-top-color: var(--green, #008944);
  animation: asmSpin .8s linear infinite;
}
.asm-loading span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #606060);
}
@keyframes asmSpin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .asm-overlay { padding: 0; }
  .asm-dialog { max-width: none; height: 100dvh; border-radius: 0; }
}
