/* Nova EduSpace — Premium Glass Feedback Popup
   Replace public_html/css/nova-rating-feedback.css with this file.
   Compatible with the existing #nova-rating popup markup.
*/
:root {
  --nova-ink: #071326;
  --nova-cyan: #72f3ef;
  --nova-blue: #75a7ff;
  --nova-violet: #b49aff;
  --nova-gold: #ffd778;
  --nova-text: #f4f7ff;
  --nova-muted: #b9c6dc;
  --nova-line: rgba(204, 225, 255, 0.19);
}
.nova-rating {
  position: relative; isolation: isolate;
  padding: clamp(34px, 5vw, 58px) 20px;
  color: var(--nova-text); text-align: center; font-family: inherit;
}
.nova-rating__intro { max-width: 650px; margin: 0 auto 20px; }
.nova-rating__eyebrow, .nova-feedback-label {
  display: inline-block; color: var(--nova-cyan); font-size: 10px;
  font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
}
.nova-rating__intro h2 {
  margin: 12px 0 9px; font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12; letter-spacing: -.035em;
}
.nova-rating__intro p { margin: 0; color: var(--nova-muted); line-height: 1.7; }
.nova-rating__stars { display: flex; justify-content: center; align-items: center; gap: clamp(5px, 1vw, 13px); }
.nova-rating__star {
  display: inline-grid; place-items: center; width: 48px; height: 52px;
  padding: 0; border: 0; background: transparent; color: rgba(255,215,120,.55);
  font-size: clamp(34px,5vw,44px); line-height: 1; cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, filter 180ms ease;
}
.nova-rating__star:hover, .nova-rating__star:focus-visible {
  color: var(--nova-gold); filter: drop-shadow(0 0 12px rgba(255,215,120,.35));
  transform: translateY(-4px) scale(1.1); outline: none;
}
.nova-rating__star.is-selected { color: var(--nova-gold); filter: drop-shadow(0 0 9px rgba(255,215,120,.22)); }
.nova-rating__hint { min-height: 20px; margin: 10px 0 0; color: var(--nova-muted); font-size: 13px; }

.nova-feedback-modal[hidden] { display: none !important; }
.nova-feedback-modal {
  position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center;
  padding: 18px; overflow-x: hidden; overflow-y: auto;
}
.nova-feedback-backdrop {
  position: fixed; inset: 0; cursor: pointer;
  background: radial-gradient(ellipse at 18% 15%, rgba(83,110,255,.18), transparent 48%),
              radial-gradient(ellipse at 84% 82%, rgba(57,232,221,.12), transparent 44%),
              rgba(3,8,20,.64);
  -webkit-backdrop-filter: blur(7px) saturate(125%); backdrop-filter: blur(7px) saturate(125%);
}
.nova-feedback-dialog {
  position: relative; z-index: 1; box-sizing: border-box; width: min(100%,510px);
  max-height: calc(100dvh - 36px); overflow-y: auto; padding: clamp(24px,5vw,38px);
  border: 1px solid rgba(198,225,255,.25); border-radius: 25px;
  background: linear-gradient(140deg, rgba(24,42,72,.88), rgba(7,17,36,.88));
  -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%);
  box-shadow: 0 32px 100px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 1px rgba(115,220,255,.035);
  color: var(--nova-text); text-align: left;
  animation: novaGlassEnter 280ms cubic-bezier(.2,.8,.2,1) both;
}
.nova-feedback-dialog::before {
  content: ""; position: absolute; top: 0; left: 13%; right: 13%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg,transparent,rgba(114,243,239,.8),rgba(180,154,255,.65),transparent);
}
@keyframes novaGlassEnter {
  from { opacity: 0; transform: translateY(14px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.nova-feedback-close {
  position: absolute; top: 13px; right: 15px; display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%; background: rgba(255,255,255,.055); color: #eaf1ff;
  font: inherit; font-size: 25px; line-height: 1; cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.nova-feedback-close:hover { background: rgba(255,255,255,.13); transform: rotate(90deg); }
.nova-feedback-heading { padding-right: 24px; }
.nova-feedback-heading h2 { margin: 11px 0 9px; font-size: clamp(25px,4vw,31px); line-height: 1.15; letter-spacing: -.035em; }
.nova-feedback-heading p { margin: 0 0 18px; color: var(--nova-muted); font-size: 13px; line-height: 1.65; }
.nova-feedback-rating {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 24px; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.045);
}
#nova-modal-rating-stars { color: var(--nova-gold); font-size: 26px; letter-spacing: 2px; filter: drop-shadow(0 0 8px rgba(255,215,120,.15)); }
#nova-modal-rating-value { margin-left: auto; color: var(--nova-cyan); font-size: 13px; font-weight: 800; }
.nova-feedback-field { margin-bottom: 18px; }
.nova-feedback-field label { display: block; margin: 0 0 8px; color: #eaf0ff; font-size: 12px; font-weight: 750; letter-spacing: .01em; }
.nova-feedback-field label span { color: #ff9fbd; }
.nova-feedback-field input, .nova-feedback-field select, .nova-feedback-field textarea {
  display: block; box-sizing: border-box; width: 100%; min-height: 47px; padding: 13px 14px;
  border: 1px solid var(--nova-line); border-radius: 12px; outline: none;
  background: rgba(3,12,28,.42); color: #f7f9ff; font: inherit; font-size: 13px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.nova-feedback-field input::placeholder, .nova-feedback-field textarea::placeholder { color: #8f9fb9; }
.nova-feedback-field select option { background: #101d35; color: #fff; }
.nova-feedback-field input:hover, .nova-feedback-field select:hover, .nova-feedback-field textarea:hover { border-color: rgba(180,204,245,.35); }
.nova-feedback-field input:focus, .nova-feedback-field select:focus, .nova-feedback-field textarea:focus {
  border-color: rgba(114,243,239,.9); background: rgba(4,16,34,.66); box-shadow: 0 0 0 3px rgba(114,243,239,.10);
}
.nova-feedback-field textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.nova-feedback-status { margin: 0 0 12px; font-size: 12px; line-height: 1.55; }
.nova-feedback-status[data-state="error"] { color: #ffb2bd; }
.nova-feedback-status[data-state="success"] { color: #8df3c4; }
.nova-feedback-status[data-state="sending"] { color: #9ee9ff; }
.nova-feedback-submit {
  display: flex; justify-content: center; align-items: center; gap: 11px; width: 100%;
  min-height: 50px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.3);
  border-radius: 13px; background: linear-gradient(105deg,#7af0e6 0%,#83c6ff 54%,#b9a0ff 100%);
  color: #07152a; font: inherit; font-size: 13px; font-weight: 850; letter-spacing: .015em;
  cursor: pointer; box-shadow: 0 9px 26px rgba(95,186,240,.16);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.nova-feedback-submit span { font-size: 18px; transition: transform 180ms ease; }
.nova-feedback-submit:hover { transform: translateY(-2px); filter: brightness(1.045); box-shadow: 0 13px 30px rgba(95,186,240,.23); }
.nova-feedback-submit:hover span { transform: translateX(3px); }
.nova-feedback-submit:active { transform: translateY(0); }
.nova-feedback-submit:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: none; }
.nova-feedback-note { margin: 13px 0 0; color: #9eacc4; font-size: 10px; line-height: 1.5; text-align: center; }
.nova-feedback-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
body.nova-feedback-open { overflow: hidden; }

@media (max-width: 520px) {
  .nova-feedback-modal { padding: 10px; }
  .nova-feedback-dialog { width: 100%; max-height: calc(100dvh - 20px); padding: 25px 19px 21px; border-radius: 20px; }
  .nova-feedback-heading h2 { font-size: 25px; }
  .nova-rating__star { width: 41px; height: 46px; font-size: 36px; }
  .nova-feedback-field { margin-bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .nova-feedback-dialog, .nova-rating__star, .nova-feedback-close, .nova-feedback-submit, .nova-feedback-submit span { animation: none; transition: none; }
}
