/**
 * Стили для кастомных GH-виджетов (квиз архетипов и т.д.).
 * Раньше страница /personality/ ссылалась на этот файл, но он не существовал —
 * квиз рендерился вообще без стилей. Теперь подключается реально
 * (см. hello_elementor_child_scripts_styles() в functions.php).
 */

.gh-card {
  font-family: 'Montserrat', sans-serif;
  color: rgba(255, 255, 255, 0.95);
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.gh-card .quiz-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.gh-card > p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.quiz-root {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
}

.question-meta {
  margin-bottom: 18px;
}

.question-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FE5500;
  font-weight: 600;
}

.question-text {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 24px;
  color: #FFFFFF;
}

.options-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.options-wrap label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.options-wrap label:hover {
  border-color: rgba(254, 85, 0, 0.4);
}

.options-wrap label.selected {
  background: rgba(254, 85, 0, 0.08);
  border-color: #FE5500;
}

.options-wrap input[type="radio"] {
  accent-color: #FE5500;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.options-wrap span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.quiz-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: 36px;
  border: none;
  cursor: pointer;
  background: #FE5500;
  color: #000000;
  transition: transform 0.15s, box-shadow 0.15s;
}

.quiz-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(254, 85, 0, 0.28);
}

.quiz-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.prev-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.progress {
  margin-left: auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.result-wrap {
  display: none;
}

.result-wrap h3 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 14px;
  color: #FFFFFF;
}

.result-wrap h3 span {
  color: #FE5500;
}

.result-note,
.result-teaser {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.result-table-wrap {
  overflow-x: auto;
  margin-bottom: 28px;
}

.result-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.result-table-wrap th,
.result-table-wrap td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.result-table-wrap th {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.result-table-wrap td.value,
.result-table-wrap th.value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.top-title {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.top-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.archetype-card {
  background: rgba(254, 85, 0, 0.05);
  border: 1px solid rgba(254, 85, 0, 0.2);
  border-radius: 16px;
  padding: 18px 20px;
}

.archetype-card-title {
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.archetype-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.archetype-card-def {
  margin-bottom: 6px;
}

.archetype-card-meta {
  color: rgba(255, 255, 255, 0.45);
}

.result-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-outline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.2s;
}

.btn-outline:hover {
  border-color: #FE5500;
}

.quiz-locked-box {
  margin-top: 8px;
}

.gh-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px 20px;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
}

.gh-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.gh-toast--success .gh-toast__icon {
  color: #4ade80;
}

.gh-toast--error .gh-toast__icon {
  color: #f87171;
}

@media (max-width: 640px) {
  .quiz-root {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .progress {
    margin-left: 0;
    order: 3;
    width: 100%;
    text-align: center;
  }
}
