:root {
  --primary: #00828c;
  --primary-hover: #00a3af;
  --bg: #0a0c10;
  --card-bg: rgba(15, 18, 25, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --txt: #fff;
  --txt2: #8b949e;
  --field-bg: rgba(255, 255, 255, 0.04);
  --field-border: rgba(255, 255, 255, 0.11);
  --err: #ff5a5a;
  --star-off: rgba(255, 255, 255, 0.18);
  --ease-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --t-step: transform 0.52s var(--ease-out), opacity 0.42s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--txt);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

.page-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 760px;
  padding: 0 1rem;
}

.page-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.9) 0%, rgba(8, 10, 14, 0.82) 100%),
    url("../images/bg/bg.png") center center / cover no-repeat;
  z-index: -1;
  filter: none;
}

@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }

  .page-background {
    height: -webkit-fill-available;
  }
}

.site-logo {
  position: fixed;
  top: clamp(1.2rem, 3vw, 2.5rem);
  left: clamp(1.2rem, 3vw, 2.5rem);
  height: clamp(40px, 6vw, 65px);
  width: auto;
  z-index: 1000;
  opacity: 1;
  transition: all 0.4s var(--ease-soft);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.form-container {
  width: 100%;
  max-width: 700px;
  background: var(--card-bg);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin: 2rem 1rem 0;
  overflow: hidden;
}

#feedback-form {
  position: relative;
  transition: height 0.5s var(--ease-out);
}

.form-step {
  padding: 2.4rem 2.7rem 2rem;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform, opacity;
  transition: var(--t-step), visibility 0s linear 0.52s;
}

.form-step.is-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: var(--t-step), visibility 0s linear 0s;
}

.form-step.exit-up {
  transform: translateY(-100%);
}

.form-step.exit-down {
  transform: translateY(100%);
}

.form-step.exit-up,
.form-step.exit-down {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--t-step), visibility 0s linear 0.52s;
}

.form-step.enter-below,
.form-step.enter-above {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.form-step.enter-below {
  transform: translateY(100%);
}

.form-step.enter-above {
  transform: translateY(-100%);
}

.intro-content,
.intro-cta {
  text-align: center;
}

.intro-content {
  padding: 2rem 0;
}

.intro-cta {
  margin-top: 2rem;
}

.icon-large {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: wave 2.4s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(18deg);
  }
  75% {
    transform: rotate(-10deg);
  }
}

.intro-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.highlight {
  color: var(--primary);
  text-shadow: 0 0 22px rgba(0, 130, 140, 0.5);
}

.intro-content p {
  color: var(--txt2);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-top: 0.75rem;
}

.step-title {
  margin-bottom: 1rem;
}

.step-title h2 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.step-title p {
  color: var(--txt2);
  font-size: 0.95rem;
}

.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-group input {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 12px;
  padding: 1.25rem 1rem 0.5rem;
  height: 56px;
  line-height: 1.2;
  color: var(--txt);
  -webkit-text-fill-color: var(--txt);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    background 0.3s;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  -webkit-touch-callout: default;
}

body.feedback-ezhome .input-group input,
body.feedback-ezhome .input-group input:focus,
body.feedback-ezhome .input-group input:active,
body.feedback-ezhome .input-group input:not(:placeholder-shown),
body.feedback-ezhome .input-group input:valid,
body.feedback-ezhome .input-group input:autofill {
  color: var(--txt) !important;
  -webkit-text-fill-color: var(--txt) !important;
  caret-color: var(--txt) !important;
  text-shadow: 0 0 0 var(--txt) !important;
}

.input-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--txt2);
  pointer-events: none;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.input-group input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(0, 130, 140, 0.12);
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  color: var(--txt) !important;
  -webkit-text-fill-color: var(--txt) !important;
  caret-color: var(--txt) !important;
  box-shadow: 0 0 0 1000px rgba(13, 17, 24, 0.95) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(13, 17, 24, 0.95) inset !important;
  border-color: var(--field-border) !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  transition: background-color 9999s ease-in-out 0s;
}

.input-group input:-moz-autofill {
  color: var(--txt) !important;
  -webkit-text-fill-color: var(--txt) !important;
  caret-color: var(--txt) !important;
  text-shadow: 0 0 0 var(--txt) !important;
  box-shadow: 0 0 0 1000px rgba(13, 17, 24, 0.95) inset !important;
  border-color: var(--field-border) !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

body.feedback-ezhome .input-group input:-moz-autofill:focus {
  color: var(--txt) !important;
  -webkit-text-fill-color: var(--txt) !important;
  caret-color: var(--txt) !important;
  text-shadow: 0 0 0 var(--txt) !important;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
  top: 0.35rem;
  transform: none;
  font-size: 0.72rem;
  color: var(--primary);
}

.input-group input.err {
  border-color: var(--err);
}

.rating-group {
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 16px;
  padding: 1.25rem;
  transition:
    border-color 0.3s,
    background 0.3s;
  position: relative;
}

.rating-group:hover,
.rating-group:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.rating-group.err-group {
  border-color: var(--err);
  background: rgba(255, 68, 68, 0.04);
}

.rating-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.rating-header--center {
  justify-content: center;
  margin-bottom: 1rem;
}

.rating-header > span {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--txt);
}

.rating-prompt {
  text-align: left;
  font-weight: 500;
  font-size: 1.08rem;
  margin-bottom: 0.8rem;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 3px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 1.55rem;
  color: var(--star-off);
  cursor: pointer;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease,
    transform 0.2s var(--ease-spring);
  line-height: 1;
  user-select: none;
  display: inline-block;
  position: relative;
}

.star-rating:not(.rated) label:hover {
  color: var(--primary);
  text-shadow: 0 0 14px rgba(0, 130, 140, 0.55);
  transform: translateY(-3px) scale(1.15);
}

.star-rating:not(.rated) label:hover ~ label {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0, 130, 140, 0.35);
  transform: translateY(-1px) scale(1.05);
}

.star-rating.rated label:hover,
.star-rating.rated label:hover ~ label {
  color: inherit;
  text-shadow: inherit;
  transform: none;
}

.star-rating input:checked ~ label {
  color: var(--star-color, var(--primary));
  text-shadow: 0 0 18px var(--star-color, rgba(0, 130, 140, 0.7));
  animation: none;
}

.star-rating label.star-pop {
  animation: starPop 0.38s var(--ease-spring) forwards;
}

@keyframes starPop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.55) rotate(-10deg);
  }
  65% {
    transform: scale(0.9) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.big-stars {
  justify-content: center;
  gap: 8px;
  position: relative;
}

.big-stars label {
  font-size: 2.8rem;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease,
    transform 0.25s var(--ease-spring);
}

.big-stars label:hover {
  transform: translateY(-5px) scale(1.2);
}

.big-stars label.star-pop {
  animation: bigStarPop 0.45s var(--ease-spring) forwards;
}

@keyframes bigStarPop {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.6) rotate(-12deg);
  }
  60% {
    transform: scale(0.88) rotate(6deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.star-particle {
  position: absolute;
  pointer-events: none;
  font-size: 0.75rem;
  animation: particleFly 0.7s ease-out forwards;
  z-index: 10;
}

@keyframes particleFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0);
  }
}

.star-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.emoji-circle {
  width: 0;
  height: 2.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  opacity: 0;
  overflow: hidden;
  flex-shrink: 0;
  transition:
    width 0.36s var(--ease-spring),
    opacity 0.28s ease;
  will-change: transform;
}

.emoji-circle.active {
  width: 2.4rem;
  opacity: 1;
}

.emoji-label-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.3s ease,
    margin 0.3s ease;
}

.emoji-label-row.active {
  max-height: 28px;
  margin: 0.35rem 0 0.25rem;
}

.emoji-lbl-txt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@keyframes circlePopIn {
  0% {
    transform: scale(0) rotate(-20deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.4) rotate(10deg);
    opacity: 1;
  }
  72% {
    transform: scale(0.88) rotate(-5deg);
  }
  90% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes bigCirclePopIn {
  0% {
    transform: scale(0) rotate(-22deg);
    opacity: 0;
  }
  45% {
    transform: scale(1.5) rotate(12deg);
    opacity: 1;
  }
  68% {
    transform: scale(0.85) rotate(-6deg);
  }
  88% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes emojiFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes emojiFadeUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.optional-comment {
  width: 100%;
  color: var(--txt);
  font-family: inherit;
  font-size: 0.88rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.7rem;
  height: 58px;
  outline: none;
  resize: none;
  transition:
    border-color 0.3s,
    background 0.3s,
    height 0.25s;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  -webkit-touch-callout: default;
}

.suggestions-input {
  height: 120px;
}

.optional-comment:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.4);
  height: 80px;
}

.button-group {
  display: flex;
  margin-top: 1.25rem;
}

.button-group.apart {
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.button-group.apart .btn {
  min-width: 148px;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s,
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-lg {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 130, 140, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--txt2);
  border: 1px solid var(--field-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.shake {
  animation: shake 0.38s ease-in-out;
}

.success-content {
  text-align: center;
  padding: 2.5rem 0;
}

.success-icon {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  display: block;
  animation: pop 0.65s var(--ease-soft);
}

@keyframes pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.success-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.success-content p {
  color: var(--txt2);
  line-height: 1.65;
}

.progress-wrap {
  width: 100%;
  max-width: 700px;
  margin: 0.75rem 0 2rem;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.progress-wrap.hidden {
  opacity: 0;
  pointer-events: none;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-label,
.progress-pct {
  font-size: 0.78rem;
}

.progress-label {
  font-weight: 500;
  color: var(--txt2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.progress-pct {
  font-weight: 600;
  color: var(--primary);
}

.progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  border-radius: 99px;
  transition: width 0.55s var(--ease-out);
}

.mcq-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
}

.mcq-option {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mcq-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.mcq-label {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--field-border);
  border-radius: 12px;
  color: var(--txt2);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mcq-key {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--txt);
  transition: all 0.3s ease;
}

.mcq-option input:checked + .mcq-label {
  background: rgba(0, 130, 140, 0.12);
  border-color: var(--primary);
  color: #fff;
}

.mcq-option input:checked + .mcq-label .mcq-key {
  background: var(--primary);
  color: #fff;
}

.mcq-option:hover .mcq-label {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1024px) {
  body {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding:
      max(0.9rem, env(safe-area-inset-top))
      max(0.9rem, env(safe-area-inset-right))
      max(1rem, env(safe-area-inset-bottom))
      max(0.9rem, env(safe-area-inset-left));
    gap: 0.55rem;
  }

  .site-logo {
    position: static;
    align-self: flex-start;
    height: clamp(32px, 4.5vw, 52px);
    margin: 0;
  }

  .page-center {
    width: min(100%, 760px);
    max-width: 760px;
    padding: 0;
  }

  .form-container,
  .progress-wrap {
    max-width: 100%;
  }

  .form-step {
    padding: clamp(1.8rem, 3.3vw, 2.8rem) clamp(1.2rem, 2.8vw, 2.25rem);
  }

  .intro-content h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.25rem);
  }

  .step-title h2 {
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  }

  .input-group input {
    padding: 1.08rem 0.95rem 0.45rem;
    font-size: 0.96rem;
  }

  .btn {
    min-height: 42px;
    padding: 0.75rem 1.1rem;
    font-size: 0.95rem;
  }

  .big-stars label {
    font-size: clamp(2rem, 4.4vw, 2.55rem);
  }

  .progress-wrap {
    margin: 0.55rem 0 0.45rem;
  }
}

@media (max-width: 768px) {
  .page-center {
    width: 100%;
  }

  .form-container {
    border-radius: 20px;
    margin: 0;
  }

  .form-step {
    padding: 2.2rem 1.4rem;
  }

  .intro-content h1 {
    font-size: 2.1rem;
  }

  .step-title h2 {
    font-size: 1.45rem;
  }

  .rating-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .button-group.apart {
    gap: 0.7rem;
  }

  .button-group.apart .btn {
    flex: 1;
    min-width: 0;
  }

  .btn {
    min-height: 44px;
    padding: 0.8rem 1rem;
  }

  .btn-lg {
    width: 100%;
  }

  .big-stars label {
    font-size: 2.45rem;
  }
}

@media (max-width: 580px) {
  body {
    padding:
      max(0.7rem, env(safe-area-inset-top))
      max(0.7rem, env(safe-area-inset-right))
      max(0.7rem, env(safe-area-inset-bottom))
      max(0.7rem, env(safe-area-inset-left));
    gap: 0.45rem;
  }

  .site-logo {
    height: 34px;
  }

  .form-step {
    padding: 2rem 1.15rem;
  }

  .intro-content h1 {
    font-size: 1.85rem;
  }

  .intro-content p {
    font-size: 0.95rem;
  }

  .step-title h2 {
    font-size: 1.3rem;
  }

  .rating-group {
    padding: 1rem;
  }

  .big-stars label {
    font-size: 2.2rem;
  }

  .star-rating label {
    font-size: 1.35rem;
  }

  .optional-comment {
    min-height: 56px;
  }

  .progress-wrap {
    margin: 0.45rem 0 0.4rem;
  }

  .mcq-label {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .app-toast {
    width: calc(100vw - 1rem);
    bottom: 0.75rem;
    padding: 0.75rem 0.85rem;
  }
}

@media (max-width: 390px) {
  .site-logo {
    height: 30px;
  }

  .form-step {
    padding: 1.65rem 0.95rem;
  }

  .big-stars label {
    font-size: 2rem;
  }

  .btn {
    font-size: 0.92rem;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  body {
    min-height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    padding:
      max(0.6rem, env(safe-area-inset-top))
      max(0.6rem, env(safe-area-inset-right))
      max(0.6rem, env(safe-area-inset-bottom))
      max(0.6rem, env(safe-area-inset-left));
  }

  .site-logo {
    position: static;
    height: 32px;
    margin: 0 0 0.4rem;
  }

  .page-center {
    max-width: 100%;
    padding: 0;
    gap: 0.4rem;
  }

  .form-container,
  .progress-wrap {
    max-width: min(96vw, 920px);
  }

  .form-container {
    margin: 0;
    border-radius: 16px;
  }

  .form-step {
    padding: 1rem 1.2rem;
  }

  .intro-content {
    padding: 0.25rem 0;
  }

  .icon-large {
    font-size: 2rem;
    margin-bottom: 0.35rem;
  }

  .intro-content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
  }

  .intro-content p {
    font-size: 0.9rem;
    margin-top: 0.25rem;
    line-height: 1.45;
  }

  .intro-cta {
    margin-top: 0.9rem;
  }

  .step-title {
    margin-bottom: 1rem;
  }

  .step-title h2 {
    font-size: 1.2rem;
  }

  .step-title p {
    font-size: 0.84rem;
  }

  .input-group,
  .mcq-options {
    margin-bottom: 0.8rem;
  }

  .rating-group {
    padding: 0.9rem;
  }

  .button-group {
    margin-top: 1rem;
  }

  .btn {
    min-height: 44px;
    padding: 0.62rem 0.9rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    width: auto;
    padding-inline: 1.5rem;
  }

  .big-stars label {
    font-size: 1.9rem;
  }

  .progress-wrap {
    margin: 0.25rem 0 0;
  }

  .progress-label,
  .progress-pct {
    font-size: 0.7rem;
  }
}

.req-badge {
  position: static;
  margin-left: auto;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 82, 82, 0.12);
  font-size: 0.7rem;
  font-weight: 800;
  color: #ff5252;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.rating-group.err-group .req-badge {
  opacity: 1;
}

.input-group.has-error input {
  border-color: #ff5252 !important;
  background: rgba(255, 82, 82, 0.03) !important;
  box-shadow: 0 0 0 1px rgba(255, 82, 82, 0.2) !important;
}

.field-error {
  margin-top: 0.4rem;
  color: #ff6b6b;
  font-size: 0.85rem;
  line-height: 1.35;
  min-height: 1.15rem;
}

.rating-group .field-error {
  margin-top: 0.55rem;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(14px);
  width: min(92vw, 560px);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(14, 17, 23, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 82, 82, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  white-space: pre-line;
  font-size: 0.9rem;
  line-height: 1.4;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.feedback-ezhome {
  background: var(--bg);
  display: block;
  overflow-x: hidden;
}

body.feedback-ezhome #main {
  min-height: 100vh;
  min-height: 100dvh;
}

body.feedback-ezhome #wrapper.feedback-embed {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  margin-top: 80px;
  padding: 0 0 0 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 1;
}

body.feedback-ezhome .page-background {
  z-index: 0;
}

body.feedback-ezhome .page-center {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  padding-bottom: 2rem;
  text-align: left;
}

@media only screen and (max-width: 1036px) {
  body.feedback-ezhome #wrapper.feedback-embed {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
    padding-left: 0;
  }
}
