/* ================================================================
   GNB — Анкета удовлетворённости НК | survey.css
   ================================================================ */

.gnb-survey-wrap {
  --red-dark:   #6b0000;
  --red-mid:    #9b0000;
  --red-light:  #fdf0f0;
  --red-border: #e8b3b3;
  --text:       #1c1010;
  --muted:      #7a5050;
  --white:      #ffffff;
  --radius:     6px;
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  max-width: 820px;
  margin: 0 auto;
}

/* ── HERO ─────────────────────────────────────────────────────── */
.gnb-hero {
  background: linear-gradient(135deg, #6b0000 0%, #9b0000 100%);
  padding: 32px 28px 26px;
  text-align: center;
  border-bottom: 4px solid #9b0000;
  border-radius: 6px 6px 0 0;
}
.gnb-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 12px;
  color: #f0c0c0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.gnb-hero h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.35;
}
.gnb-hero p {
  color: #d49090;
  font-size: 16px;
  margin: 0;
}

/* ── ШКАЛА ────────────────────────────────────────────────────── */
.gnb-scale-legend {
  background: var(--red-light);
  border: 1px solid var(--red-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--red-dark);
}
.gnb-scale-legend strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.gnb-scale-row  { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.gnb-scale-item { display: flex; align-items: center; gap: 7px; }
.gnb-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gnb-dot.s1 { background: #7a0000; }
.gnb-dot.s2 { background: #b03030; }
.gnb-dot.s3 { background: #c07030; }
.gnb-dot.s4 { background: #3aaa6e; }
.gnb-dot.s5 { background: #1a7a45; }

/* ── СЕКЦИИ ───────────────────────────────────────────────────── */
.gnb-form-section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  margin-top: 18px;
  overflow: hidden;
}
.gnb-section-header {
  background: var(--red-dark);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gnb-section-num {
  background: var(--red-mid);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gnb-section-header h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.gnb-section-sub {
  font-weight: 400;
  font-size: 13px;
  color: #e8a0a0;
  margin-left: 4px;
}
.gnb-section-body { padding: 20px; }

/* ── ПОЛЯ ─────────────────────────────────────────────────────── */
.gnb-field { margin-bottom: 16px; }
.gnb-field:last-child { margin-bottom: 0; }
.gnb-field label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 6px;
}
.gnb-field label .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
  margin-left: 4px;
}
.gnb-field input[type="text"],
.gnb-field select,
.gnb-field textarea {
  width: 100%;
  border: 1.5px solid var(--red-border);
  border-radius: 4px;
  padding: 10px 13px;
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s;
  appearance: none;
  -webkit-appearance: none;
}
.gnb-field input:focus,
.gnb-field select:focus,
.gnb-field textarea:focus {
  outline: none;
  border-color: var(--red-mid);
  box-shadow: 0 0 0 3px rgba(155,0,0,.1);
}
.gnb-field textarea { resize: vertical; min-height: 90px; }
.gnb-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b0000' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── ОЦЕНКИ ───────────────────────────────────────────────────── */
.gnb-rating-group { margin-bottom: 16px; }
.gnb-rating-group:last-child { margin-bottom: 0; }
.gnb-rating-question {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.gnb-rating-hint {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.gnb-rating-stars { display: flex; gap: 10px; flex-wrap: wrap; }
.gnb-rating-stars input[type="radio"] { display: none; }
.gnb-rating-stars label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--red-border);
  font-size: 17px; font-weight: 700;
  color: var(--red-mid);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
  background: #fff;
  margin: 0;
}
.gnb-rating-stars input[type="radio"]:checked + label {
  background: var(--red-mid);
  border-color: var(--red-mid);
  color: #fff;
  box-shadow: 0 3px 10px rgba(155,0,0,.3);
}
.gnb-rating-stars label:hover {
  border-color: var(--red-mid);
  background: var(--red-light);
}
.gnb-divider { border: none; border-top: 1px solid #f0e8e8; margin: 16px 0; }

/* ── КНОПКА ───────────────────────────────────────────────────── */
.gnb-submit-area { text-align: center; margin-top: 18px; }
.gnb-privacy-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.gnb-privacy-note a { color: var(--red-mid); }
.gnb-btn-submit {
  background: var(--red-mid);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 14px 44px;
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .03em;
  transition: background .2s, transform .1s;
}
.gnb-btn-submit:hover   { background: var(--red-dark); }
.gnb-btn-submit:active  { transform: scale(.98); }
.gnb-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── СТАТУС ───────────────────────────────────────────────────── */
.gnb-msg {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 16px;
  margin-top: 14px;
  text-align: left;
}
.gnb-msg.success { background: #e8f5ee; border: 1px solid #7cc899; color: #1a5e35; display: block; }
.gnb-msg.error   { background: #fde8e8; border: 1px solid #e09090; color: #7a1a1a; display: block; }
.gnb-msg.loading { background: var(--red-light); border: 1px solid var(--red-border); color: var(--red-dark); display: block; text-align: center; }
.gnb-required { color: #9b0000; }

/* ── БЛОК БЛАГОДАРНОСТИ ───────────────────────────────────────── */
.gnb-thankyou {
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  margin-top: 18px;
  overflow: hidden;
  text-align: center;
}
.gnb-thankyou-header {
  background: linear-gradient(135deg, #6b0000 0%, #9b0000 100%);
  padding: 40px 28px 32px;
}
.gnb-thankyou-icon {
  width: 76px; height: 76px;
  background: rgba(255,255,255,.15);
  border: 3px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  line-height: 1;
  color: #fff;
}
.gnb-thankyou-header h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
}
.gnb-thankyou-header p {
  color: #f0c0c0;
  font-size: 17px;
  margin: 0;
}
.gnb-thankyou-body { padding: 32px 36px 36px; }
.gnb-thankyou-body p {
  font-size: 17px;
  color: #3a1010;
  line-height: 1.75;
  margin: 0 0 24px;
}
.gnb-thankyou-cards {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.gnb-thankyou-card {
  background: #fdf0f0;
  border: 1px solid var(--red-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  flex: 1;
  min-width: 170px;
  max-width: 230px;
}
.gnb-thankyou-card .card-icon { font-size: 30px; margin-bottom: 10px; }
.gnb-thankyou-card p {
  font-size: 15px;
  color: #6b0000;
  margin: 0;
  line-height: 1.55;
}
.gnb-thankyou-signature {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid #f0e8e8;
  padding-top: 22px;
  margin-top: 0;
}

/* ── АДАПТИВ ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .gnb-survey-wrap { font-size: 16px; }
  .gnb-hero { padding: 24px 16px 20px; }
  .gnb-hero h2 { font-size: 20px; }
  .gnb-hero p  { font-size: 14px; }
  .gnb-section-body { padding: 14px; }
  .gnb-rating-stars label { width: 42px; height: 42px; font-size: 15px; }
  .gnb-thankyou-header { padding: 28px 16px 22px; }
  .gnb-thankyou-header h2 { font-size: 22px; }
  .gnb-thankyou-body { padding: 22px 16px 26px; }
  .gnb-thankyou-cards { flex-direction: column; align-items: center; }
  .gnb-thankyou-card { max-width: 100%; width: 100%; }
}
