/* PMI assessment modal — Reflexsion Love theme */
.asmt-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(44, 24, 16, 0.55);
  backdrop-filter: blur(4px);
  font-family: 'Inter', sans-serif;
}
.asmt-root.open { display: flex; }

.asmt-panel {
  position: relative;
  width: min(100%, 480px);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  background: #FDF4ED;
  color: #2C1810;
  border-radius: 18px;
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: 0 24px 64px rgba(44, 24, 16, 0.22);
  border: 1px solid rgba(178, 58, 92, 0.12);
}

.asmt-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(178, 58, 92, 0.08);
  color: #5C3F30;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.asmt-close:hover { background: rgba(178, 58, 92, 0.16); }

.asmt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.asmt-sub {
  font-size: 0.875rem;
  color: #5C3F30;
  margin-bottom: 1rem;
}
.asmt-resume {
  font-size: 0.8125rem;
  color: #5C3F30;
  background: rgba(178, 58, 92, 0.08);
  border: 1px solid rgba(178, 58, 92, 0.18);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}

.asmt-quick {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 2px solid rgba(178, 58, 92, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(248, 220, 228, 0.9) 0%, rgba(253, 244, 237, 1) 100%);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.asmt-quick:hover { transform: scale(1.01); border-color: #B23A5C; }
.asmt-quick.done { opacity: 0.7; }
.asmt-quick strong { display: block; font-size: 0.9375rem; margin-bottom: 2px; }
.asmt-quick span { font-size: 0.75rem; color: #5C3F30; }

.asmt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.asmt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 1rem 0.5rem;
  border: 1.5px solid rgba(44, 24, 16, 0.1);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.asmt-card:hover { transform: scale(1.02); border-color: var(--card-color, #B23A5C); }
.asmt-card.done { opacity: 0.65; }
.asmt-card-check {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.7rem;
  color: #22c55e;
  font-weight: 800;
}
.asmt-card-icon { font-size: 1.5rem; }
.asmt-card-name { font-size: 0.8125rem; font-weight: 700; text-align: center; }
.asmt-card-time { font-size: 0.6875rem; color: #5C3F30; }

.asmt-foot {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #5C3F30;
  text-align: center;
}

.asmt-quiz-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.asmt-quick-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(178, 58, 92, 0.12);
  color: #B23A5C;
  padding: 2px 8px;
  border-radius: 999px;
}

.asmt-progress { margin-bottom: 1.25rem; }
.asmt-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #5C3F30;
  margin-bottom: 6px;
}
.asmt-progress-bar {
  height: 6px;
  background: rgba(178, 58, 92, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.asmt-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #B23A5C, #8A2845);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.asmt-dots {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  justify-content: center;
}
.asmt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(178, 58, 92, 0.2);
}
.asmt-dot.on { background: #B23A5C; }

.asmt-question {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.asmt-opts { display: flex; flex-direction: column; gap: 8px; }
.asmt-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(44, 24, 16, 0.1);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  transition: border-color 0.15s, background 0.15s;
}
.asmt-opt:hover {
  border-color: #B23A5C;
  background: rgba(248, 220, 228, 0.5);
}
.asmt-opt-val { font-size: 0.75rem; color: #5C3F30; opacity: 0.7; }

.asmt-disclaimer {
  margin-top: 1rem;
  font-size: 0.6875rem;
  color: #5C3F30;
  opacity: 0.75;
  line-height: 1.4;
}

.asmt-gate h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.asmt-gate p { font-size: 0.8125rem; color: #5C3F30; margin-bottom: 1rem; }
.asmt-email-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.asmt-email-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.asmt-email-row input,
.asmt-signup-card input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(44, 24, 16, 0.15);
  border-radius: 10px;
  font-size: 0.875rem;
  background: #fff;
  color: #2C1810;
}
.asmt-email-row button,
.asmt-cta-primary {
  padding: 0.625rem 1rem;
  background: linear-gradient(135deg, #B23A5C, #8A2845);
  color: #FDF4ED;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  white-space: nowrap;
}
.asmt-gate-err { margin-top: 0.5rem; font-size: 0.75rem; color: #ef4444; min-height: 1em; }
.asmt-text-btn {
  margin-top: 0.5rem;
  background: transparent;
  border: none;
  color: #5C3F30;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}
.asmt-fine { margin-top: 0.75rem; font-size: 0.6875rem; color: #5C3F30; opacity: 0.7; }

.asmt-badge {
  font-size: 0.75rem;
  background: rgba(178, 58, 92, 0.1);
  border: 1px solid rgba(178, 58, 92, 0.2);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  text-align: center;
}
.asmt-score-card {
  text-align: center;
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(44, 24, 16, 0.08);
  margin-bottom: 1rem;
}
.asmt-score-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.asmt-score-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--level-color, #B23A5C);
}
.asmt-score-level {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--level-color, #B23A5C);
  margin: 4px 0 8px;
}
.asmt-score-card p { font-size: 0.8125rem; color: #5C3F30; }

.asmt-lock-preview {
  position: relative;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px dashed rgba(178, 58, 92, 0.3);
  padding: 1.5rem;
  text-align: center;
}
.asmt-lock-blur {
  filter: blur(6px);
  font-size: 0.8125rem;
  color: #5C3F30;
  user-select: none;
}
.asmt-lock-preview > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #B23A5C;
  background: rgba(253, 244, 237, 0.65);
}

.asmt-signup-card {
  padding: 1rem;
  background: rgba(178, 58, 92, 0.06);
  border: 1px solid rgba(178, 58, 92, 0.18);
  border-radius: 14px;
  margin-bottom: 0.75rem;
}
.asmt-signup-card h4 {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.asmt-cta-primary { width: 100%; margin-top: 0.5rem; padding: 0.75rem; }

.asmt-code {
  font-size: 0.75rem;
  text-align: center;
  color: #5C3F30;
  margin-bottom: 0.75rem;
}
.asmt-secondary {
  display: block;
  width: 100%;
  padding: 0.7rem;
  background: transparent;
  border: 1.5px solid rgba(178, 58, 92, 0.35);
  border-radius: 10px;
  color: #B23A5C;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
}

button.assessment-pill {
  border: none;
  cursor: pointer;
}
