.lm-wrap {
  direction: rtl;
  max-width: 980px;
  margin: 0 auto 3rem;
  color: #172033;
  font-family: inherit;
}

.lm-section-header {
  margin-bottom: 1.6rem;
}

.lm-section-header h2 {
  margin-bottom: 0.55rem;
}

.lm-kicker {
  margin: 0 0 0.5rem;
  color: #1d4f86;
  font-weight: 800;
}

.lm-muted,
.lm-section-header p {
  color: #5d6879;
}

.lm-form,
.lm-panel,
.lm-domain-section,
.lm-save-box,
.lm-result-card,
.lm-score-card {
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(16, 35, 63, 0.07);
}

.lm-form {
  padding: clamp(1rem, 3vw, 1.6rem);
}

.lm-form--compact {
  max-width: 680px;
}

.lm-domain-section {
  padding: clamp(1rem, 3vw, 1.35rem);
  margin-bottom: 1rem;
}

.lm-background-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(220, 238, 250, 0.72)),
    #fff;
  border-color: rgba(58, 134, 200, 0.24);
}

.lm-background-section::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 6px;
  background: linear-gradient(180deg, #10233f, #3a86c8);
}

.lm-step-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.75rem;
  background: #10233f;
  border-radius: 8px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 850;
}

.lm-form-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
  padding: 0.9rem 1rem;
  background: #eef6fb;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.lm-form-divider span {
  color: #1d4f86;
  font-weight: 850;
}

.lm-form-divider strong {
  color: #10233f;
  font-size: 1.05rem;
}

.lm-domain-section h3 {
  margin-bottom: 1rem;
}

.lm-question {
  margin: 0 0 1.2rem;
  padding: 0 0 1.2rem;
  border: 0;
  border-bottom: 1px solid #edf2f6;
}

.lm-question:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.lm-question legend {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 0.8rem;
  color: #10233f;
  font-weight: 750;
}

.lm-question legend span {
  display: inline-grid;
  min-width: 2rem;
  height: 2rem;
  place-items: center;
  background: #dceefa;
  border-radius: 8px;
  color: #1d4f86;
  font-size: 0.9rem;
}

.lm-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.lm-scale-option {
  position: relative;
  display: grid;
  gap: 0.3rem;
  min-height: 96px;
  align-content: center;
  padding: 0.75rem;
  background: #f7f9fb;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.lm-scale-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lm-scale-number {
  color: #10233f;
  font-size: 1.25rem;
  font-weight: 900;
}

.lm-scale-label {
  color: #5d6879;
  font-size: 0.86rem;
  line-height: 1.35;
}

.lm-scale-option:has(input:checked) {
  background: #10233f;
  border-color: #10233f;
  box-shadow: 0 12px 24px rgba(16, 35, 63, 0.16);
}

.lm-scale-option:has(input:checked) .lm-scale-number,
.lm-scale-option:has(input:checked) .lm-scale-label {
  color: #fff;
}

.lm-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #10233f;
  font-weight: 700;
}

.lm-field input,
.lm-field select,
.lm-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d1dce8;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.lm-checkbox {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.65rem 0;
  color: #263348;
  font-weight: 600;
}

.lm-checkbox input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
}

.lm-save-box {
  padding: 1rem;
  margin: 1rem 0;
  background: #eef6fb;
}

.lm-disclaimer {
  color: #425169;
  font-size: 0.95rem;
}

.lm-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid #10233f;
  border-radius: 8px;
  background: #10233f;
  color: #fff;
  font: inherit;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.lm-button:hover,
.lm-button:focus {
  background: #1d4f86;
  border-color: #1d4f86;
  color: #fff;
}

.lm-button--secondary {
  background: #fff;
  border-color: #d1dce8;
  color: #10233f;
}

.lm-button--secondary:hover,
.lm-button--secondary:focus {
  background: #dceefa;
  color: #10233f;
}

.lm-notice {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  font-weight: 700;
}

.lm-notice--error {
  background: #fff1f1;
  color: #8a1f1f;
}

.lm-notice--success {
  background: #e5f4ed;
  color: #1f684e;
}

.lm-notice--info {
  background: #eef6fb;
  color: #1d4f86;
}

.lm-result-grid,
.lm-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.lm-score-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lm-result-card,
.lm-score-card,
.lm-panel {
  padding: 1.15rem;
}

.lm-result-card {
  display: grid;
  gap: 0.45rem;
  min-height: 130px;
}

.lm-result-card span,
.lm-score-card__top span {
  color: #5d6879;
  font-weight: 700;
}

.lm-result-card strong {
  color: #10233f;
  font-size: 1.35rem;
}

.lm-result-card--strong {
  background: linear-gradient(180deg, #fff, #e5f4ed);
}

.lm-result-card--attention {
  background: linear-gradient(180deg, #fff, #fff3d7);
}

.lm-background-result {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(238, 246, 251, 0.92)),
    #fff;
  border: 1px solid rgba(58, 134, 200, 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(16, 35, 63, 0.07);
}

.lm-background-result__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dfe7ef;
}

.lm-background-result__top span {
  color: #1d4f86;
  font-weight: 850;
}

.lm-background-result__top strong {
  color: #10233f;
  font-size: 1.12rem;
}

.lm-background-result p:last-child {
  margin-bottom: 0;
}

.lm-panel {
  margin-bottom: 1rem;
}

.lm-panel--step {
  background: #eef6fb;
}

.lm-score-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.lm-score-card__top strong {
  color: #10233f;
}

.lm-score-bar {
  height: 10px;
  overflow: hidden;
  background: #edf2f6;
  border-radius: 999px;
}

.lm-score-bar span {
  display: block;
  width: var(--score-width);
  height: 100%;
  background: linear-gradient(90deg, #3a86c8, #287357);
  border-radius: inherit;
}

.lm-comparison-list {
  display: grid;
  gap: 0.6rem;
}

.lm-comparison-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #edf2f6;
}

.lm-comparison-row:last-child {
  border-bottom: 0;
}

.lm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.lm-login-screen {
  max-width: 1080px;
}

.lm-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: stretch;
}

.lm-login-intro,
.lm-login-card {
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(16, 35, 63, 0.07);
}

.lm-login-intro {
  display: grid;
  align-content: center;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(220, 238, 250, 0.76)),
    #fff;
}

.lm-login-intro h2 {
  max-width: 560px;
  margin-bottom: 0.8rem;
}

.lm-login-intro p {
  max-width: 620px;
}

.lm-login-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.1rem 0 1.3rem;
}

.lm-login-points span {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(58, 134, 200, 0.22);
  border-radius: 8px;
  color: #10233f;
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
}

.lm-login-card {
  padding: clamp(1rem, 3vw, 1.35rem);
}

.lm-login-card .lm-form {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.lm-login-submit {
  width: 100%;
}

.lm-login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  margin-top: 1rem;
  color: #5d6879;
  font-size: 0.94rem;
  font-weight: 700;
}

.lm-login-links a {
  color: #1d4f86;
}

@media (max-width: 860px) {
  .lm-scale,
  .lm-result-grid,
  .lm-score-grid,
  .lm-login-layout,
  .lm-login-points {
    grid-template-columns: 1fr;
  }

  .lm-scale-option {
    min-height: auto;
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: right;
  }
}

@media (max-width: 640px) {
  .lm-button {
    width: 100%;
  }

  .lm-comparison-row,
  .lm-score-card__top,
  .lm-background-result__top,
  .lm-form-divider {
    align-items: flex-start;
    flex-direction: column;
  }
}
