/* ══════════════════════════════════════════════════════════════════
   KinoDron — Обратная связь (feedback.tpl) — v2
   Ширина как у футера: padding: X var(--pad), без max-width
   ══════════════════════════════════════════════════════════════════ */

/* ─── Контейнер: как .footer ────────────────────────────────────── */
.kino-auth--feedback {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(100px, 12vw, 160px) var(--pad, 24px) clamp(40px, 6vw, 80px);
  background: var(--surface-sunk, #101013);
  overflow: hidden;
  min-height: 60vh;
}

/* Фоновые слои — не мешают ширине */
.kino-auth__bg,
.kino-auth__rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.kino-auth__bg {
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(160,0,255,.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(206,94,255,.12), transparent 60%);
  animation: kinoFbBgPulse 10s ease-in-out infinite;
}
@keyframes kinoFbBgPulse {
  0%, 100% { opacity: .9; }
  50%      { opacity: 1.1; }
}
.kino-auth__rays {
  background: repeating-linear-gradient(
    115deg,
    transparent 0,
    transparent 80px,
    rgba(244,241,236,.025) 80px,
    rgba(244,241,236,.025) 81px
  );
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* ─── Карточка: 100% ширины, как футер ──────────────────────────── */
.kino-auth__feedback-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface, #141418);
  border: 1px solid var(--line2, rgba(244,241,236,.16));
  border-radius: var(--radius, 16px);
  box-shadow:
    0 32px 64px -24px rgba(160,0,255,.35),
    var(--shadow, 0 24px 48px -12px rgba(0,0,0,.7));
  overflow: hidden;
  animation: kinoFbAppear .7s cubic-bezier(.2,.8,.2,1);
}
.kino-auth__feedback-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--accent, #a000ff) 0%, var(--accent2, #ce5eff) 100%);
  z-index: 2;
}
.kino-auth__feedback-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(160,0,255,.05) 60deg, transparent 120deg);
  animation: kinoFbRotate 24s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes kinoFbAppear {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes kinoFbRotate {
  to { transform: rotate(360deg); }
}

/* ─── Hero ──────────────────────────────────────────────────────── */
.kino-auth__feedback-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.kino-auth__feedback-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent2, #ce5eff);
  margin-bottom: 10px;
}
.kino-auth__feedback-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 8px rgba(160,0,255,.7);
}
.kino-auth__feedback-title {
  margin: 0 0 10px;
  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text, #F4F1EC) 0%, var(--accent3, #e4a8ff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kino-auth__feedback-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted, #A29E97);
  max-width: 48ch;
}
.kino-auth__feedback-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(124,196,148,.1);
  border: 1px solid rgba(124,196,148,.28);
  color: var(--positive, #7cc494);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.kino-auth__feedback-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--positive, #7cc494);
  animation: kinoFbPulse 2s ease-out infinite;
}
@keyframes kinoFbPulse {
  0%   { box-shadow: 0 0 0 0 rgba(124,196,148,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(124,196,148,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,196,148,0); }
}

/* ─── Прогресс ──────────────────────────────────────────────────── */
.kino-auth__feedback-progress {
  position: relative;
  height: 4px;
  background: var(--line, rgba(244,241,236,.08));
  border-radius: 999px;
  margin-bottom: 28px;
}
.kino-auth__feedback-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent, #a000ff), var(--accent2, #ce5eff));
  border-radius: 999px;
  transition: width .3s ease, box-shadow .3s;
  box-shadow: 0 0 12px rgba(160,0,255,.6);
}
.kino-auth__feedback-progress-label {
  position: absolute;
  right: 0;
  top: -22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--muted, #A29E97);
  font-variant-numeric: tabular-nums;
  transition: color .2s;
}

/* ─── Форма ─────────────────────────────────────────────────────── */
.kino-auth__feedback-form {
  position: relative;
  z-index: 1;
}
.kino-auth__feedback-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.kino-auth__feedback-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  position: relative;
}
.kino-auth__feedback-field > label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #A29E97);
  transition: color .2s;
}
.kino-auth__req {
  color: var(--accent2, #ce5eff);
  font-weight: 700;
}
.kino-auth__feedback-field:focus-within > label {
  color: var(--accent3, #e4a8ff);
}

/* ─── Поля ──────────────────────────────────────────────────────── */
.kino-auth__feedback-field input[type="text"],
.kino-auth__feedback-field input[type="email"],
.kino-auth__feedback-field input[type="file"],
.kino-auth__feedback-field textarea,
.kino-auth__feedback-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-family: var(--sans, "Manrope", system-ui, sans-serif);
  font-size: 15px;
  color: var(--text, #F4F1EC);
  background: var(--surface-soft, #1a1a20);
  border: 1px solid var(--line2, rgba(244,241,236,.16));
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background .2s, padding-right .2s;
  appearance: none;
  -webkit-appearance: none;
}
.kino-auth__feedback-field input::placeholder,
.kino-auth__feedback-field textarea::placeholder {
  color: var(--muted, #A29E97);
  opacity: .65;
}
.kino-auth__feedback-field input:hover,
.kino-auth__feedback-field textarea:hover {
  border-color: rgba(244,241,236,.28);
}
.kino-auth__feedback-field input:focus,
.kino-auth__feedback-field textarea:focus,
.kino-auth__feedback-field select:focus {
  outline: none;
  border-color: var(--accent, #a000ff);
  background: var(--surface, #141418);
  box-shadow: 0 0 0 4px rgba(160,0,255,.15), 0 0 20px rgba(160,0,255,.12);
}
.kino-auth__feedback-field input:focus-visible,
.kino-auth__feedback-field textarea:focus-visible {
  outline: 2px solid var(--accent2, #ce5eff);
  outline-offset: 2px;
}

/* Валидное — галочка */
.kino-auth__feedback-field input:not(:placeholder-shown):valid,
.kino-auth__feedback-field textarea:not(:placeholder-shown):valid {
  border-color: rgba(124,196,148,.5);
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237cc494' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
/* Невалидное — крестик */
.kino-auth__feedback-field input:not(:placeholder-shown):invalid,
.kino-auth__feedback-field textarea:not(:placeholder-shown):invalid {
  border-color: rgba(228,168,255,.55);
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e4a8ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.kino-auth__feedback-field input:disabled,
.kino-auth__feedback-field textarea:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.kino-auth__feedback-field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.kino-auth__feedback-counter {
  align-self: flex-end;
  font-size: 11px;
  color: var(--muted, #A29E97);
  font-variant-numeric: tabular-nums;
  transition: color .2s;
}

/* ─── Капча ─────────────────────────────────────────────────────── */
.kino-auth__feedback-captcha {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kino-auth__feedback-captcha-img {
  flex-shrink: 0;
  padding: 4px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-tiny, 0 4px 14px rgba(0,0,0,.35));
  line-height: 0;
}
.kino-auth__feedback-captcha-img img {
  display: block;
  height: 44px;
  width: auto;
  border-radius: 6px;
}
.kino-auth__feedback-captcha input {
  flex: 1;
  letter-spacing: .25em;
  text-align: center;
  font-weight: 600;
}

/* ─── Кнопка ────────────────────────────────────────────────────── */
.kino-auth__feedback-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 16px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent, #a000ff) 0%, var(--accent2, #ce5eff) 100%);
  color: #fff;
  font-family: var(--sans, "Manrope", system-ui, sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 24px -8px rgba(160,0,255,.5), inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform .15s ease, box-shadow .25s ease, filter .2s;
}
.kino-auth__feedback-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transition: left .5s ease;
}
.kino-auth__feedback-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(160,0,255,.7), inset 0 1px 0 rgba(255,255,255,.2);
}
.kino-auth__feedback-submit:hover:not(:disabled)::before { left: 100%; }
.kino-auth__feedback-submit:active:not(:disabled) {
  transform: translateY(0) scale(.99);
}
.kino-auth__feedback-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  filter: saturate(.5);
}
.kino-auth__feedback-submit i {
  font-size: 14px;
  transition: transform .2s;
}
.kino-auth__feedback-submit:hover:not(:disabled) i {
  transform: translateX(2px) rotate(-10deg);
}

/* ─── Согласие + футер ──────────────────────────────────────────── */
.kino-auth__feedback-agree {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted, #A29E97);
  text-align: center;
}
.kino-auth__feedback-agree a {
  color: var(--accent2, #ce5eff);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kino-auth__feedback-agree a:hover { color: var(--accent3, #e4a8ff); }

.kino-auth__feedback-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line, rgba(244,241,236,.08));
  font-size: 13px;
}
.kino-auth__feedback-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted, #A29E97);
  text-decoration: none;
  transition: color .2s;
}
.kino-auth__feedback-back i {
  font-size: 12px;
  transition: transform .2s;
}
.kino-auth__feedback-back:hover { color: var(--accent2, #ce5eff); }
.kino-auth__feedback-back:hover i { transform: translateX(-3px); }

.kino-auth__feedback-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted, #A29E97);
}
.kino-auth__feedback-meta i {
  font-size: 11px;
  color: var(--positive, #7cc494);
}

/* ─── Светлая тема ──────────────────────────────────────────────── */
[data-theme="light"] .kino-auth--feedback {
  background: #f5f5f7;
}
[data-theme="light"] .kino-auth__bg {
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(160,0,255,.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(206,94,255,.08), transparent 60%);
}
[data-theme="light"] .kino-auth__rays {
  background: repeating-linear-gradient(115deg, transparent 0, transparent 80px, rgba(0,0,0,.02) 80px, rgba(0,0,0,.02) 81px);
}
[data-theme="light"] .kino-auth__feedback-card {
  background: #ffffff;
  border-color: #e5e5ea;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.1);
}
[data-theme="light"] .kino-auth__feedback-title {
  background: linear-gradient(135deg, #1a1a1f 0%, var(--accent, #a000ff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .kino-auth__feedback-lead,
[data-theme="light"] .kino-auth__feedback-agree,
[data-theme="light"] .kino-auth__feedback-field > label,
[data-theme="light"] .kino-auth__feedback-counter,
[data-theme="light"] .kino-auth__feedback-back,
[data-theme="light"] .kino-auth__feedback-meta {
  color: #6b6b73;
}
[data-theme="light"] .kino-auth__feedback-field input,
[data-theme="light"] .kino-auth__feedback-field textarea,
[data-theme="light"] .kino-auth__feedback-field select {
  background: #f9f9fb;
  border-color: #e5e5ea;
  color: #1a1a1f;
}
[data-theme="light"] .kino-auth__feedback-field input:focus,
[data-theme="light"] .kino-auth__feedback-field textarea:focus {
  background: #fff;
  border-color: var(--accent, #a000ff);
}
[data-theme="light"] .kino-auth__feedback-foot {
  border-top-color: #e5e5ea;
}

/* ─── Адаптив ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .kino-auth__feedback-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .kino-auth__feedback-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .kino-auth__feedback-badge {
    align-self: flex-start;
  }
  .kino-auth__feedback-foot {
    flex-direction: column;
    text-align: center;
  }
  .kino-auth__feedback-submit {
    padding: 14px 20px;
    font-size: 14px;
  }
}

/* ─── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .kino-auth__feedback-card,
  .kino-auth__feedback-card::after,
  .kino-auth__bg,
  .kino-auth__feedback-badge-dot {
    animation: none !important;
  }
  .kino-auth__feedback-submit,
  .kino-auth__feedback-submit::before,
  .kino-auth__feedback-progress-bar {
    transition: none !important;
  }
}
