/* Nova EduSpace — standalone feedback page */
:root {
  color-scheme: dark;
  --feedback-bg: #071225;
  --feedback-panel: rgba(15, 29, 54, .82);
  --feedback-text: #f4f7ff;
  --feedback-muted: #adbed8;
  --feedback-cyan: #68dcff;
  --feedback-purple: #9b7bff;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body.feedback-page {
  min-height: 100vh;
  margin: 0;
  color: var(--feedback-text);
  background:
    radial-gradient(ellipse at 15% 18%, rgba(34, 174, 255, .15), transparent 34%),
    radial-gradient(ellipse at 85% 76%, rgba(139, 83, 255, .16), transparent 36%),
    var(--feedback-bg);
  font-family: "Outfit", "Inter", "Segoe UI", Arial, sans-serif;
}
.feedback-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: radial-gradient(rgba(198, 225, 255, .65) .7px, transparent .7px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.feedback-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 86px 22px 36px;
  overflow: hidden;
}
.feedback-back-link {
  position: absolute;
  top: 28px;
  left: max(24px, calc((100vw - 1180px) / 2));
  color: #c5d6f0;
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
}
.feedback-back-link:hover { color: var(--feedback-cyan); }
.feedback-panel {
  width: min(100%, 820px);
  padding: clamp(28px, 6vw, 66px) clamp(22px, 6vw, 64px);
  text-align: center;
  border: 1px solid rgba(135, 185, 255, .22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(19, 39, 70, .78), rgba(7, 17, 35, .86));
  box-shadow: 0 30px 100px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(14px);
}
.feedback-eyebrow {
  margin: 0 0 16px;
  color: var(--feedback-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
}
.feedback-panel h1 {
  max-width: 700px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(34px, 5.8vw, 62px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.feedback-intro {
  max-width: 590px;
  margin: 21px auto 27px;
  color: var(--feedback-muted);
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.8;
}
.feedback-star-rating { display: flex; justify-content: center; gap: clamp(6px, 1.5vw, 13px); }
.feedback-star {
  display: grid;
  place-items: center;
  width: clamp(46px, 7vw, 66px);
  height: clamp(46px, 7vw, 66px);
  padding: 0;
  border: 1px solid rgba(136, 177, 231, .22);
  border-radius: 17px;
  background: rgba(255, 255, 255, .045);
  color: #586987;
  font-size: clamp(27px, 4.5vw, 37px);
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feedback-star:hover, .feedback-star:focus-visible {
  transform: translateY(-4px);
  outline: none;
  color: #ffe17c;
  border-color: var(--feedback-cyan);
  box-shadow: 0 0 24px rgba(104, 220, 255, .15);
}
.feedback-star.is-active {
  color: #ffd66c;
  background: rgba(255, 207, 88, .10);
  border-color: rgba(255, 214, 108, .56);
}
.feedback-star-hint { margin: 15px 0 24px; color: #8ea2c1; font-size: 12px; }
.feedback-open-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 23px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(105deg, #54d7ff, #9a7cff);
  color: #071225;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(78, 156, 255, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feedback-open-form:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(78, 156, 255, .26); }
.feedback-footer-note { margin: 27px 0 0; color: #7186a8; font-size: 11px; letter-spacing: .12em; }
.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.feedback-modal.is-open { display: flex; }
.feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 19, .80);
  backdrop-filter: blur(9px);
}
.feedback-modal-dialog {
  position: relative;
  width: min(100%, 550px);
  max-height: min(92vh, 850px);
  overflow: auto;
  padding: 32px;
  border: 1px solid rgba(109, 181, 255, .25);
  border-radius: 22px;
  background: linear-gradient(145deg, #101e38, #080f20 76%);
  box-shadow: 0 28px 100px rgba(0, 0, 0, .55), 0 0 35px rgba(70, 151, 255, .10);
}
.feedback-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #adbed7;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}
.feedback-modal-dialog h2 { margin: 0; padding-right: 15px; font-size: clamp(25px, 4vw, 32px); line-height: 1.2; letter-spacing: -.03em; }
.feedback-modal-intro { margin: 10px 0 22px; color: var(--feedback-muted); font-size: 13px; line-height: 1.65; }
.feedback-label { display: block; margin: 15px 0 7px; color: #dce6f8; font-size: 12px; font-weight: 700; }
.feedback-label > span:not(.feedback-optional) { color: var(--feedback-cyan); }
.feedback-optional { color: #8292ad; font-weight: 400; }
.feedback-control {
  display: block;
  width: 100%;
  min-height: 43px;
  padding: 11px 12px;
  border: 1px solid rgba(133, 169, 219, .24);
  border-radius: 10px;
  outline: none;
  background: rgba(4, 11, 26, .72);
  color: #f4f7ff;
  font: inherit;
  font-size: 13px;
}
.feedback-control:focus { border-color: var(--feedback-cyan); box-shadow: 0 0 0 3px rgba(104, 220, 255, .10); }
.feedback-control option { background: #101e38; color: #fff; }
textarea.feedback-control { min-height: 96px; resize: vertical; }
.feedback-status { min-height: 18px; margin: 12px 0 0; color: #8de9bd; font-size: 12px; line-height: 1.5; }
.feedback-status.is-error { color: #ff9baf; }
.feedback-form-actions { display: flex; gap: 10px; margin-top: 17px; }
.feedback-cancel, .feedback-submit {
  min-height: 45px;
  padding: 0 17px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.feedback-cancel { border: 1px solid rgba(151, 174, 213, .25); background: transparent; color: #c5d0e4; }
.feedback-submit { flex: 1; border: 0; background: linear-gradient(100deg, #39c8f5, #8b70ff); color: #071225; }
.feedback-submit:disabled { opacity: .65; cursor: wait; }
.feedback-privacy-note { margin: 13px 0 0; color: #788ba9; font-size: 10px; line-height: 1.5; }
.feedback-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
body.feedback-modal-open { overflow: hidden; }
@media (max-width: 600px) {
  .feedback-hero { padding: 80px 14px 26px; }
  .feedback-back-link { left: 18px; top: 24px; }
  .feedback-panel { border-radius: 21px; padding: 34px 19px; }
  .feedback-star { border-radius: 12px; }
  .feedback-modal { padding: 9px; }
  .feedback-modal-dialog { padding: 28px 19px 22px; border-radius: 17px; }
  .feedback-form-actions { flex-direction: column-reverse; }
  .feedback-cancel, .feedback-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
