/* ── Assessments page — follows harnods.com design language ── */

.assess-page {
  padding: 0 0 10rem;
}
.assess-container {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ── Hero ── */
.assess-hero {
  text-align: center;
  padding: 12rem 0 2rem;
}
.assess-hero__title {
  font-family: "Inter Bold", sans-serif;
  font-size: 2.25rem;
  line-height: 1.167em;
  margin: 0 0 0.5rem;
  color: #222;
}
.assess-hero__sub {
  font-size: 1rem;
  line-height: 1.5em;
  color: #767676;
  margin: 0;
}

/* ── Language toggle ── */
.assess-lang {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
}
.assess-lang__btn {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5em;
  padding: 0.25rem 1rem;
  border: 1px solid #C9CED7;
  background: #fff;
  color: #767676;
  cursor: pointer;
  transition: all 0.2s ease;
}
.assess-lang__btn:first-child {
  border-radius: 0.25rem 0 0 0.25rem;
}
.assess-lang__btn:last-child {
  border-radius: 0 0.25rem 0.25rem 0;
  border-left: 0;
}
.assess-lang__btn.active {
  background: #222;
  border-color: #222;
  color: #fff;
}

/* ── Card ── */
.assess-card {
  background: #fff;
  border: 1px solid #C9CED7;
  border-radius: 0.25rem;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
}
.assess-card--center {
  text-align: center;
}
.assess-card h2 {
  font-family: "Inter Semibold", sans-serif;
  font-size: 1.25rem;
  line-height: 1.5em;
  color: #222;
  margin: 0 0 0.5rem;
}
.assess-muted {
  font-size: 1rem;
  line-height: 1.5em;
  color: #555;
  margin: 0 0 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.assess-muted--small {
  font-size: 0.875rem;
  color: #767676;
}

/* ── Info grid ── */
.assess-info-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 2rem;
}
.assess-info-item {
  flex: 1;
  padding: 1rem 0.75rem;
  background: #F7F7F7;
  border-radius: 0.25rem;
}
.assess-info-item .num {
  display: block;
  font-family: "Inter Bold", sans-serif;
  font-size: 1.5rem;
  line-height: 1.167em;
  color: #4BA046;
}
.assess-info-item .label {
  display: block;
  font-size: 0.75rem;
  line-height: 1.333em;
  color: #767676;
  margin-top: 0.25rem;
}

/* ── Form ── */
.assess-form {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}
.assess-field {
  margin-bottom: 1rem;
}
.assess-field label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.5em;
  color: #222;
  margin-bottom: 4px;
}
.assess-field input {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5em;
  font-family: "Inter", sans-serif;
  color: #222;
  background: #fff;
  border: 1px solid #C9CED7;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.assess-field input::placeholder {
  color: #999;
}
.assess-field input:focus {
  outline: none;
  border-color: #4BA046;
  box-shadow: 0 0 0 1px #4BA046;
}

/* ── Buttons ── */
.assess-btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.4375rem 1rem;
  font-size: 1rem;
  line-height: 1.5em;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.assess-btn--primary {
  color: #fff;
  background-color: #4BA046;
  border-color: #4BA046;
}
.assess-btn--primary:hover {
  color: #fff;
  background-color: #438e3e;
  border-color: #438e3e;
  text-decoration: none;
}
.assess-btn--primary:disabled {
  color: #9BA8BF;
  background-color: #fff;
  border-color: #C9CED7;
  opacity: 1;
  cursor: not-allowed;
}
.assess-btn--secondary {
  color: #767676;
  background-color: #fff;
  border-color: #C9CED7;
}
.assess-btn--secondary:hover {
  color: #222;
  background-color: #EBF3FE;
  border-color: #C9CED7;
  text-decoration: none;
}
.assess-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* ── Progress ── */
.assess-progress {
  margin-bottom: 1.5rem;
}
.assess-progress__info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  line-height: 1.5em;
  color: #555;
  margin-bottom: 0.5rem;
}
.assess-progress__bar {
  height: 4px;
  background: #EAEAEA;
  border-radius: 2px;
  overflow: hidden;
}
.assess-progress__fill {
  height: 100%;
  background: #4BA046;
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0;
}

/* ── Badges ── */
.assess-badges {
  margin-bottom: 0.75rem;
}
.assess-cat-badge {
  display: inline-block;
  font-family: "Inter Semibold", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 2px;
  background: #EBF3FE;
  color: #2B59DA;
}
.assess-diff-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 0.5rem;
}
.assess-diff--easy {
  background: #e8f5e9;
  color: #4BA046;
}
.assess-diff--medium {
  background: #fff8e1;
  color: #d97706;
}
.assess-diff--hard {
  background: #fce4ec;
  color: #c62828;
}

/* ── Scenario ── */
.assess-scenario {
  font-size: 1rem;
  line-height: 1.5em;
  color: #333;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #F7F7F7;
  border-radius: 0.25rem;
  text-align: left;
}
.assess-scenario strong {
  color: #222;
}
.assess-scenario .q-prompt {
  display: block;
  margin-top: 0.75rem;
  color: #222;
  font-family: "Inter Semibold", sans-serif;
  font-size: 1rem;
  line-height: 1.5em;
}

/* ── Options ── */
.assess-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.assess-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #C9CED7;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-size: 1rem;
  line-height: 1.5em;
  text-align: left;
  color: #222;
}
.assess-option:hover {
  border-color: #4BA046;
  background: #f0f9ef;
}
.assess-option.selected {
  border-color: #4BA046;
  background: #f0f9ef;
}
.assess-option__marker {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #C9CED7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-family: "Inter Semibold", sans-serif;
  color: #767676;
  transition: all 0.3s ease-in-out;
  margin-top: 3px;
}
.assess-option.selected .assess-option__marker {
  border-color: #4BA046;
  background: #4BA046;
  color: #fff;
}

/* ── Done screen ── */
.assess-done-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
}

/* ── Overlay ── */
.assess-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.assess-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid #EAEAEA;
  border-top-color: #4BA046;
  border-radius: 50%;
  animation: assess-spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes assess-spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .assess-hero {
    padding: 8rem 0 1.5rem;
  }
  .assess-hero__title {
    font-size: 1.5rem;
    line-height: 1.333em;
  }
  .assess-info-grid {
    flex-direction: column;
  }
  .assess-card {
    padding: 1.5rem 1rem;
  }
}
