:root {
  --navy: #213764;
  --gold: #c2862a;
  --gold-light: #e0bc63;
  --paper: rgba(255, 255, 255, 0.72);
  --paper-strong: rgba(255, 255, 255, 0.88);
  --ink: #14264a;
  --muted: #5d6580;
  --line: rgba(33, 55, 100, 0.18);
  --danger: #d33b3b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #0e2f56;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 21, 49, 0.08) 0%, rgba(4, 21, 49, 0.44) 58%, rgba(4, 21, 49, 0.78) 100%),
    linear-gradient(90deg, rgba(1, 12, 34, 0.68), rgba(9, 42, 79, 0.38), rgba(1, 12, 34, 0.64)),
    url("assets/bg.png") center / cover no-repeat;
  filter: blur(2px) brightness(.82) saturate(.88);
  transform: scale(1.035);
  z-index: -2;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,.14), transparent 27%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.12) 46%, rgba(255,255,255,.20) 100%),
    rgba(2, 11, 25, .28);
  z-index: -1;
}

.app-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  min-height: 100vh;
  padding: 44px 22px 28px;
  position: relative;
}

.evaluation-panel {
  width: min(100%, 740px);
  min-height: 820px;
  margin: 0 auto;
  padding: 74px 38px 42px;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.74));
  border: 1px solid rgba(255,255,255,.52);
  box-shadow: 0 28px 80px rgba(0,0,0,.25);
  backdrop-filter: blur(3px);
}

.title-image {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: min(62%, 430px);
  height: auto;
  filter: drop-shadow(0 9px 15px rgba(0,0,0,.18));
}

.event-card {
  width: min(100%, 610px);
  margin: 0 auto 20px;
  padding: 16px 22px;
  background: var(--paper-strong);
  border: 2px solid rgba(194, 134, 42, .75);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
}

.event-line {
  display: grid;
  grid-template-columns: 28px auto 1fr;
  gap: 7px;
  align-items: center;
  line-height: 1.35;
  margin: 6px 0;
}

.event-icon {
  display: inline-grid;
  place-items: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 22px;
}

.progress-wrap {
  width: min(100%, 620px);
  margin: 8px auto 24px;
  position: relative;
}

.progress-line {
  height: 5px;
  background: rgba(33,55,100,.18);
  border-radius: 999px;
  overflow: hidden;
  position: absolute;
  left: 21px;
  right: 21px;
  top: 17px;
}

.progress-line span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width .28s ease;
}

.progress-steps,
.progress-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  z-index: 1;
}

.step-dot {
  justify-self: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(33,55,100,.26);
  background: rgba(255,255,255,.88);
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.step-dot.active,
.step-dot.done {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.progress-labels {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  color: rgba(20,38,74,.78);
  font-weight: 700;
}

.slide {
  display: none;
  animation: slideIn .28s ease both;
}

.slide.active { display: block; }

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

h1 {
  margin: 0 0 6px;
  text-align: center;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.slide-subtitle {
  margin: 0 auto 22px;
  max-width: 610px;
  color: rgba(20,38,74,.82);
  text-align: center;
  font-size: 17px;
  line-height: 1.4;
}

.fields-card,
.text-card,
.rating-card {
  width: min(100%, 620px);
  margin: 0 auto;
  background: rgba(255,255,255,.78);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
  overflow: hidden;
}

.fields-card,
.text-card { padding: 22px; }

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-weight: 800;
  font-size: 15px;
}

.field-hint {
  display: block;
  margin: -12px 0 18px;
  color: rgba(20,38,74,.64);
  font-size: 12px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px dotted rgba(33,55,100,.72);
  background: rgba(255,255,255,.42);
  outline: 0;
  padding: 10px 12px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 16px;
  transition: .18s ease;
}

textarea { resize: vertical; min-height: 98px; }

input:focus,
textarea:focus {
  background: rgba(255,255,255,.85);
  border-bottom-color: var(--gold);
  box-shadow: 0 5px 0 rgba(194,134,42,.08);
}

input.invalid,
textarea.invalid,
.rating-row.invalid {
  outline: 2px solid rgba(211, 59, 59, .7);
  outline-offset: 3px;
}

.rating-card {
  padding: 16px;
}

.rating-head,
.rating-numbers,
.rating-row {
  display: grid;
  grid-template-columns: 2.1fr repeat(5, 1fr);
  gap: 8px;
  align-items: center;
}

.rating-head {
  font-size: 11px;
  color: var(--navy);
  font-weight: 800;
  text-align: center;
  padding: 2px 0 0;
}

.rating-numbers {
  margin: 4px 0 10px;
  text-align: center;
  color: #fff;
}

.rating-numbers b {
  justify-self: center;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  font-size: 12px;
}

.rating-row {
  min-height: 66px;
  padding: 10px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.58);
  margin: 6px 0;
}

.rating-row:nth-of-type(even) {
  background: rgba(245,247,250,.88);
}

.rating-row p {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.radio-group {
  display: contents;
}

.radio-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-group label {
  width: 26px;
  height: 26px;
  justify-self: center;
  display: inline-block;
  position: relative;
  border-radius: 50%;
  border: 2px solid rgba(194,134,42,.28);
  background: #f0cf4d;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 #fff, 0 4px 10px rgba(0,0,0,.08);
  transition: .18s ease;
}

.radio-group input:checked + label {
  background: var(--navy);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 6px var(--navy), 0 0 0 4px rgba(194,134,42,.24);
  transform: scale(1.08);
}

.rating-pop {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 16px 30px rgba(0,0,0,.18), 0 0 0 7px rgba(255,255,255,.42);
  pointer-events: none;
  z-index: 5;
  animation: ratingBubblePop .82s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes ratingBubblePop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.25);
    filter: blur(1px);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -115%) scale(1.35);
    filter: blur(0);
  }
  52% {
    opacity: 1;
    transform: translate(-50%, -150%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -230%) scale(.62);
  }
}

.text-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.text-card label {
  display: block;
  padding: 18px;
  margin-bottom: 18px;
  background: rgba(218, 178, 90, .86);
  border-radius: 3px;
}

.text-card textarea {
  background: rgba(255,255,255,.42);
  margin: 0;
  color: var(--ink);
}

.thank-you {
  text-align: center;
  padding: 40px 0 30px;
}

.thank-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-size: 48px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(194,134,42,.32);
}

.score-preview {
  width: min(100%, 430px);
  margin: 24px auto 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.65);
  color: var(--navy);
  font-weight: 800;
}

.form-message {
  min-height: 24px;
  margin: 18px auto 4px;
  text-align: center;
  color: var(--danger);
  font-weight: 800;
}

.form-message.success { color: #12733c; }

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn {
  min-width: 132px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  font-size: 15px;
  transition: .18s ease;
  box-shadow: 0 12px 20px rgba(0,0,0,.13);
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy); }
.btn.secondary { background: rgba(33,55,100,.92); }

.brand-word {
  position: absolute;
  left: 28px;
  bottom: 18px;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -2px;
  text-shadow: 0 4px 16px rgba(0,0,0,.32);
}

@media (max-width: 720px) {
  .app-shell { padding: 38px 10px 24px; }
  .evaluation-panel { padding: 58px 14px 28px; min-height: auto; }
  .title-image { width: min(88%, 400px); top: -28px; }
  .event-card { font-size: 14px; padding: 12px; }
  .progress-labels { display: none; }
  .rating-head,
  .rating-numbers { display: none; }
  .rating-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rating-row p { text-align: center; }
  .radio-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .radio-group label::before {
    content: attr(data-label);
  }
  .brand-word { font-size: 34px; left: 16px; }
}


/* ===== v220 mobile visual fixes ===== */
.page-bg {
  background:
    linear-gradient(180deg, rgba(4, 21, 49, 0.00) 0%, rgba(4, 21, 49, 0.22) 58%, rgba(4, 21, 49, 0.42) 100%),
    linear-gradient(90deg, rgba(1, 12, 34, 0.34), rgba(9, 42, 79, 0.12), rgba(1, 12, 34, 0.34)),
    url("assets/bg.png") center / cover no-repeat;
  filter: blur(.4px) brightness(1.03) saturate(1.05);
  transform: scale(1.015);
}

.page-bg::after {
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,.08), transparent 27%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.05) 48%, rgba(255,255,255,.08) 100%),
    rgba(2, 11, 25, .06);
}

.evaluation-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.event-card,
.fields-card,
.text-card,
.rating-card {
  background: rgba(255,255,255,.74);
}

.premiere-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -8px auto 18px;
}

.premiere-logo {
  width: min(74vw, 270px);
  max-width: 270px;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

.radio-group label {
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}

.radio-group label::before {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  text-align: center;
  line-height: 1;
  font-weight: 800;
  color: var(--navy);
}

.radio-group input:checked + label::before {
  color: #fff;
}

@media (min-width: 721px) {
  .radio-group label::before { content: ""; }
}

@media (max-width: 720px) {
  .app-shell { padding: 34px 10px 24px; }
  .evaluation-panel {
    padding: 58px 14px 30px;
    background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.50));
  }

  .premiere-logo-wrap { margin: -4px auto 14px; }
  .premiere-logo { width: min(72vw, 250px); max-width: 250px; }

  .rating-card { padding: 14px 12px; background: rgba(255,255,255,.68); }

  .rating-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.72);
  }

  .rating-row p {
    text-align: center;
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 4px;
  }

  .radio-group {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 8px;
    width: 100%;
  }

  .radio-group label {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0;
  }

  .radio-group label::before {
    content: attr(data-label);
    font-size: 21px;
    transform: translateY(0);
  }

  .radio-group input:checked + label {
    transform: scale(1.06);
  }

  .rating-pop {
    min-width: 46px;
    height: 46px;
    font-size: 24px;
  }
}

@media (max-width: 380px) {
  .radio-group { gap: 5px; }
  .radio-group label {
    width: 39px;
    height: 39px;
    min-width: 39px;
    min-height: 39px;
  }
  .radio-group label::before { font-size: 19px; }
}
