/* ============================================================
   CSS КВИЗА «ЛИЦЕНЗИРОВАНИЕ»
   Файл: /templates/8800-moscow/css/quiz-licensing.css
   ============================================================ */

.qz-wrap {
/*  max-width: 780px;  */
  margin: 0 auto 40px;
  padding: 0 15px;
  font-family: 'Roboto', 'Arial', sans-serif;
  color: #1a1a1a;
  box-sizing: border-box;
}

.qz-wrap *,
.qz-wrap *::before,
.qz-wrap *::after {
  box-sizing: border-box;
}

.qz-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 35px 40px 30px;
  box-shadow: 0 8px 32px rgba(11, 42, 74, 0.10);
  border: 1px solid #e8edf4;
  position: relative;
}

/* ==================== ПРОГРЕСС-БАР ==================== */
.qz-progress {
  position: relative;
  width: 100%;
  height: 8px;
  background: #e8edf4;
  border-radius: 20px;
  margin-bottom: 30px;
  overflow: hidden;
}

.qz-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #2b7be4 0%, #006699 100%);
  border-radius: 20px;
  transition: width 0.4s ease;
}

.qz-progress__text {
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 13px;
  color: #7a8fa3;
  font-weight: 600;
}

/* ==================== КОНТЕНТ ==================== */
.qz-content {
  padding-top: 10px;
}

.qz-question {
  font-size: 22px;
  font-weight: 700;
  color: #0b2a4a;
  line-height: 1.4;
  margin: 0 0 18px;
  padding: 0;
}

/* Общая подсказка под вопросом */
.qz-hint-top {
  font-size: 14px;
  line-height: 1.6;
  color: #5a6c80;
  margin: -8px 0 22px;
  padding: 12px 16px;
  background: #f4f8fd;
  border-left: 3px solid #2b7be4;
  border-radius: 6px;
}

/* Динамическая подсказка */
.qz-hint-dynamic {
  font-size: 14px;
  line-height: 1.6;
  color: #006699;
  margin: -8px 0 22px;
  padding: 12px 16px;
  background: #e8f2fb;
  border-left: 3px solid #006699;
  border-radius: 6px;
  font-weight: 500;
}

/* ==================== ВАРИАНТЫ (RADIO) ==================== */
.qz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.qz-opt {
  position: relative;
  width: 100%;
  text-align: left;
  background: #f9fafb;
  border: 2px solid #e1e7ef;
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
}

.qz-opt:hover {
  background: #eef4fc;
  border-color: #b8cff0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(43, 123, 228, 0.10);
}

.qz-opt--selected {
  background: linear-gradient(135deg, #e6eef9 0%, #dbe7f8 100%);
  border-color: #2b7be4;
  box-shadow: 0 4px 16px rgba(43, 123, 228, 0.18);
}

.qz-opt--selected::before {
  content: "✓";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: #2b7be4;
  font-size: 20px;
  font-weight: 900;
}

.qz-hint {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 400;
  color: #5a6c80;
  line-height: 1.5;
  font-style: italic;
}

/* ==================== КНОПКИ-ДЕЙСТВИЯ НА INFO ==================== */
.qz-opt--action {
  background: #2b7be4;
  color: #ffffff;
  border-color: #2b7be4;
  text-align: center;
  font-weight: 700;
}

.qz-opt--action:hover {
  background: #006699;
  border-color: #006699;
}

/* ==================== CHECKBOXES ==================== */
.qz-options--checkboxes {
  gap: 10px;
}

.qz-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: #f9fafb;
  border: 2px solid #e1e7ef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  position: relative;
}

.qz-checkbox:hover {
  background: #eef4fc;
  border-color: #b8cff0;
}

.qz-checkbox--checked {
  background: linear-gradient(135deg, #e6eef9 0%, #dbe7f8 100%);
  border-color: #2b7be4;
  box-shadow: 0 4px 16px rgba(43, 123, 228, 0.12);
}

.qz-checkbox__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.qz-checkbox__mark {
  display: inline-block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #b8cff0;
  border-radius: 6px;
  background: #ffffff;
  position: relative;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.qz-checkbox--checked .qz-checkbox__mark {
  background: #2b7be4;
  border-color: #2b7be4;
}

.qz-checkbox--checked .qz-checkbox__mark::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.qz-checkbox__label {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.45;
  flex: 1;
}

/* ==================== INFO-БЛОКИ ==================== */
.qz-info-blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 25px;
}

.qz-info-block {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6eef9 100%);
  border-left: 4px solid #2b7be4;
  border-radius: 10px;
  padding: 20px 22px;
  line-height: 1.6;
}

.qz-info-block__icon {
  font-size: 28px;
  margin-bottom: 8px;
  line-height: 1;
}

.qz-info-block__title {
  font-size: 17px;
  font-weight: 700;
  color: #0b2a4a;
  margin-bottom: 8px;
}

.qz-info-block__text {
  font-size: 15px;
  color: #2c3e4f;
  line-height: 1.6;
}

/* ==================== ПОЛЯ ==================== */
.qz-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.qz-input,
.qz-textarea {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid #e1e7ef;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: #1a1a1a;
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.qz-input:focus,
.qz-textarea:focus {
  outline: none;
  border-color: #2b7be4;
  box-shadow: 0 0 0 4px rgba(43, 123, 228, 0.10);
}

.qz-input--error,
.qz-textarea--error {
  border-color: #e74c3c;
  background: #fef5f4;
}

.qz-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}

/* ==================== ОШИБКИ ==================== */
.qz-error {
  display: none;
  font-size: 13px;
  color: #e74c3c;
  font-weight: 600;
  padding: 4px 0 0 2px;
}

.qz-error--visible {
  display: block;
}

/* ==================== СОГЛАШЕНИЯ ==================== */
.qz-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 14px;
  color: #2c3e4f;
  line-height: 1.5;
}

.qz-agreement input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #2b7be4;
}

.qz-agreement label {
  cursor: pointer;
  user-select: none;
}

.qz-agreement a {
  color: #2b7be4;
  text-decoration: underline;
  font-weight: 600;
}

/* ==================== КНОПКИ ==================== */
.qz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eef2f7;
}

.qz-btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
  line-height: 1.3;
  min-height: 48px;
}

.qz-btn--primary {
  background: #2b7be4;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(43, 123, 228, 0.28);
}

.qz-btn--primary:hover:not(:disabled) {
  background: #006699;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 102, 153, 0.35);
}

.qz-btn--primary:disabled {
  background: #c7d4e2;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.75;
}

.qz-btn--back {
  background: transparent;
  color: #5a6c80;
  border: 2px solid #d8e1ec;
  box-shadow: none;
}

.qz-btn--back:hover {
  background: #f4f7fb;
  color: #2b7be4;
  border-color: #b8cff0;
}

/* ==================== СТАТУС ==================== */
.qz-status {
  display: none;
  margin-top: 15px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.qz-status--visible {
  display: block;
}

.qz-status--loading {
  background: #e6eef9;
  color: #006699;
}

.qz-status--error {
  background: #fdecea;
  color: #c0392b;
}

/* ==================== ФИНАЛ ==================== */
.qz-final {
  text-align: center;
  padding: 30px 20px;
}

.qz-final__icon {
  font-size: 64px;
  margin-bottom: 20px;
  color: #27ae60;
}

.qz-final__text {
  font-size: 19px;
  line-height: 1.6;
  color: #1e2a41;
  margin: 0;
  font-weight: 500;
}

/* ==================== МОДАЛЬНОЕ ОКНО ==================== */
.qz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 42, 74, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: qzFadeIn 0.2s ease;
}

@keyframes qzFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.qz-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 30px 28px 26px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: qzSlideUp 0.25s ease;
}

@keyframes qzSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.qz-modal__icon {
  font-size: 44px;
  margin-bottom: 15px;
  line-height: 1;
}

.qz-modal__text {
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e4f;
  margin: 0 0 24px;
}

.qz-modal__btn {
  width: 100%;
  max-width: 220px;
}

/* ==================== МОБИЛЬНАЯ АДАПТАЦИЯ ==================== */
@media (max-width: 768px) {

  .qz-wrap {
    padding: 0 10px;
    margin-bottom: 25px;
  }

  .qz-box {
    padding: 22px 18px 20px;
    border-radius: 12px;
  }

  .qz-progress {
    height: 6px;
    margin-bottom: 22px;
  }

  .qz-progress__text {
    font-size: 12px;
    top: 10px;
  }

  .qz-question {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .qz-hint-top,
  .qz-hint-dynamic {
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 18px;
  }

  .qz-opt {
    padding: 15px 16px;
    font-size: 15px;
    border-radius: 10px;
  }

  .qz-opt--selected::before {
    right: 14px;
    font-size: 18px;
  }

  .qz-hint {
    font-size: 12.5px;
    margin-top: 6px;
  }

  .qz-checkbox {
    padding: 14px 16px;
    gap: 12px;
    border-radius: 10px;
  }

  .qz-checkbox__mark {
    width: 20px;
    height: 20px;
  }

  .qz-checkbox__label {
    font-size: 14.5px;
  }

  .qz-info-block {
    padding: 16px 18px;
  }

  .qz-info-block__icon {
    font-size: 24px;
  }

  .qz-info-block__title {
    font-size: 16px;
  }

  .qz-info-block__text {
    font-size: 14px;
  }

  .qz-input,
  .qz-textarea {
    padding: 13px 15px;
    font-size: 15px;
    border-radius: 8px;
  }

  .qz-actions {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
  }

  .qz-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    min-height: 50px;
  }

  .qz-final__text {
    font-size: 16px;
  }

  .qz-modal {
    padding: 24px 20px 20px;
  }

  .qz-modal__text {
    font-size: 15px;
  }
}

/* ==================== ДОСТУПНОСТЬ ==================== */
.qz-opt:focus-visible,
.qz-btn:focus-visible,
.qz-input:focus-visible,
.qz-textarea:focus-visible,
.qz-checkbox:focus-within {
  outline: 2px solid #2b7be4;
  outline-offset: 2px;
}