:root {
  --ubie-yellow: #f6c21e;
  --ubie-yellow-dark: #dfa400;
  --ubie-black: #0a0a0a;
  --ubie-panel: #111111;
  --ubie-panel-alt: #1a1a1a;
  --ubie-border: rgba(246, 194, 30, 0.2);
  --text: #ffffff;
  --muted: #d5d5d5;
  --star-off: #5f5f5f;
  --font-heading: "Cabin", "Segoe UI", sans-serif;
  --font-body: "Mulish", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(120% 95% at 50% -12%, rgba(246, 194, 30, 0.24) 0%, rgba(246, 194, 30, 0.13) 20%, rgba(246, 194, 30, 0.05) 38%, transparent 64%),
    radial-gradient(80% 55% at 15% 0%, rgba(246, 194, 30, 0.1) 0%, rgba(246, 194, 30, 0.03) 42%, transparent 70%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 3.5rem 1.5rem;
}

.rating-card {
  width: min(620px, 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), var(--ubie-panel);
  border-radius: 30px;
  padding: 3.4rem 3rem 2.9rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--ubie-border);
  position: relative;
  overflow: hidden;
}

.rating-card::before {
  content: "";
  position: absolute;
  inset: auto -4rem -4rem auto;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: rgba(246, 194, 30, 0.12);
  filter: blur(1px);
  pointer-events: none;
}

.rating-header {
  text-align: center;
  padding-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.logo {
  width: min(210px, 72%);
  height: auto;
  display: block;
  margin: 0 auto 1.7rem;
}

.rating-header h1 {
  margin: 45px 0 1.15rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.5;
}

.subhead {
  margin: 0 auto;
  max-width: 33rem;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.02rem;
  font-family: var(--font-heading);
}

.stars {
  display: flex;
  gap: 0.8rem;
  margin: 2.8rem 0 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.star {
  width: 3.85rem;
  height: 3.85rem;
  display: inline-grid;
  place-items: center;
  font-size: 2.35rem;
  line-height: 1;
  background: var(--ubie-panel-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--star-off);
  cursor: pointer;
  transition: transform 0.15s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.star:hover,
.star:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(246, 194, 30, 0.5);
  outline: none;
}

.star.active {
  color: var(--ubie-black);
  background: var(--ubie-yellow);
  border-color: var(--ubie-yellow);
}

.rating-note {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.2rem;
  min-height: 1.5rem;
}

.feedback-form {
  display: grid;
  gap: 1.2rem;
}

.feedback-form label {
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0c0c;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: #8f8f8f;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: rgba(246, 194, 30, 0.7);
  box-shadow: 0 0 0 4px rgba(246, 194, 30, 0.14);
}

.feedback-form button {
  appearance: none;
  background: var(--ubie-yellow);
  color: var(--ubie-black);
  font-family: var(--font-heading);
  font-weight: 700;
  border: none;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(246, 194, 30, 0.2);
}

.feedback-form button:hover,
.feedback-form button:focus-visible {
  background: var(--ubie-yellow-dark);
  transform: translateY(-1px);
  outline: none;
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.footer-link {
  color: var(--ubie-yellow);
  text-decoration: none;
  font-weight: 700;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

@media (max-width: 600px) {
  .page {
    padding: 1.5rem;
  }

  .rating-card {
    padding: 2.4rem 1.5rem 2rem;
    border-radius: 24px;
  }

  .logo {
    margin-bottom: 1.45rem;
  }

  .stars {
    gap: 0.55rem;
  }

  .star {
    width: 3.3rem;
    height: 3.3rem;
    font-size: 2rem;
  }
}
