/* styles.css — кастомные стили для квиза «Движимый мечтой» */

body {
  background-color: #f5f7fa;
}

.header h1 {
  font-weight: 600;
}

.step[hidden] {
  display: none !important;
}

.summary-row {
  cursor: default;
}

.summary-row .editable-value {
  display: inline-block;
  min-width: 80px;
  padding: 2px 4px;
  border-radius: 4px;
}

.summary-row .editable-value:hover {
  background-color: #eef3f9;
}

.progress {
  height: 12px;
}

#participantsList .badge {
  font-size: 0.85rem;
}

#participantsList .border {
  background: #fff;
}

.participant-card {
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: .5rem;
  padding: 1rem;
  margin-bottom: .75rem;
}
.participant-card__row {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(30rem, 1.6fr);
  gap: 1rem;
  align-items: start;
}
.participant-card__person {
  font-size: 1rem;
  line-height: 1.35;
  min-width: 0;
}
.participant-card__docs {
  display: grid;
  gap: .5rem;
}
.participant-doc {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) auto auto auto;
  gap: .5rem;
  align-items: center;
  padding: .5rem;
  border: 1px solid #edf0f5;
  border-radius: .375rem;
  background: #fafbfc;
}
.participant-doc__title {
  min-width: 0;
  color: #343a40;
  font-size: .875rem;
  line-height: 1.25;
}
.participant-doc__status {
  border-radius: 999px;
  padding: .1875rem .5rem;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.participant-doc__status.is-loaded {
  background: #e3f5eb;
  color: #17663f;
}
.participant-doc__status.is-missing {
  background: #ffe6e6;
  color: #a02020;
}
.participant-doc__upload {
  min-width: 6rem;
}
.participant-doc__template {
  white-space: nowrap;
  font-size: .8125rem;
}
.participant-card__remove {
  justify-self: end;
}

textarea.form-control {
  resize: vertical;
}

button.next-step,
button.prev-step {
  min-width: 120px;
}

/* Политика конфиденциальности box */
.step[data-step="8"] div[style*="overflow-y"] {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Итоговые данные */
#summaryData {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
}
/* ── Крупные варианты выбора (возрастная категория, номинация) ───────── */
.choice-list { display: flex; flex-direction: column; gap: .5rem; }

.choice {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  background: #fff;
  cursor: pointer;
  transition: border-color .12s, background-color .12s, box-shadow .12s;
}
.choice:hover { border-color: #86b7fe; background: #f8fbff; }
.choice:has(.choice-input:focus-visible) { box-shadow: 0 0 0 .2rem rgba(13,110,253,.25); }

/* Своя отметка вместо системной радиокнопки — крупнее и заметнее */
.choice-input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-mark {
  flex: 0 0 auto;
  width: 1.25rem; height: 1.25rem;
  border: 2px solid #adb5bd;
  border-radius: 50%;
  position: relative;
  transition: border-color .12s;
}
.choice-input:checked ~ .choice-mark { border-color: #0d6efd; }
.choice-input:checked ~ .choice-mark::after {
  content: '';
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: #0d6efd;
}
.choice:has(.choice-input:checked) {
  border-color: #0d6efd;
  background: #f0f6ff;
}
.choice-text { font-size: 1rem; line-height: 1.35; }

/* ── Читаемость шагов ────────────────────────────────────────────────── */
.step h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.step .step-hint { color: #6c757d; font-size: .9375rem; margin-bottom: 1rem; }
.step { max-width: 42rem; }
.step[data-step="7"] { max-width: 58rem; }

.missing-doc-back {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(16, 22, 30, .45);
}
.missing-doc-box {
  position: relative;
  width: min(100%, 32rem);
  border-radius: .5rem;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,.25);
}
.missing-doc-close {
  position: absolute;
  top: .5rem;
  right: .625rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #6c757d;
}
.missing-doc-text {
  padding-right: 1.5rem;
}

@media (max-width: 576px) {
  .choice { padding: 1rem; }
  .choice-text { font-size: 1.0625rem; }
}

@media (max-width: 900px) {
  .participant-card__row {
    grid-template-columns: 1fr;
  }
  .participant-doc {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .participant-doc__upload,
  .participant-doc__template,
  .participant-card__remove {
    width: 100%;
    justify-self: stretch;
    text-align: center;
  }
}
