:root {
  --onyx-orange: #f5a623;
  --onyx-orange-dark: #d98911;
  --bg: #0b0b0d;
  --card: #141519;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --star-off: #6b6b6b;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(245, 166, 35, 0.2), transparent 45%),
    linear-gradient(135deg, #0a0a0c 0%, #111218 50%, #08090c 100%);
  min-height: 100vh;
}

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

.rating-card {
  width: min(520px, 100%);
  background: var(--card);
  border-radius: 24px;
  padding: 2.5rem 2.5rem 2.2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--card-border);
}

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

.footer-link {
  color: #f0ba1f;
  text-decoration: none;
  font-weight: 600;
}

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

.rating-header h1 {
  margin: 0.9rem 0 0.95rem;
  font-size: 2rem;
  line-height: 1.2;
}

.logo {
  width: min(200px, 70%);
  height: auto;
  display: block;
  margin: 0 auto 1.4rem;
}

.rating-header {
  text-align: center;
  padding-bottom: 0.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--onyx-orange);
  font-weight: 600;
  font-size: 0.75rem;
}

.subhead {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.7;
}

.stars {
  display: flex;
  gap: 0.7rem;
  margin: 2rem 0 1rem;
  justify-content: center;
}

.star {
  font-size: 2.2rem;
  background: transparent;
  border: none;
  color: var(--star-off);
  cursor: pointer;
  transition: transform 0.15s ease, color 0.2s ease;
}

.star:hover,
.star:focus {
  transform: scale(1.08);
}

.star.active {
  color: var(--onyx-orange);
}

.rating-note {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

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

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

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1114;
  color: var(--text);
  font-size: 1rem;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: 2px solid rgba(245, 166, 35, 0.5);
  border-color: transparent;
}

.feedback-form button,
.primary-link {
  background: var(--onyx-orange);
  color: #101010;
  font-weight: 700;
  border: none;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.feedback-form button:hover,
.primary-link:hover {
  background: var(--onyx-orange-dark);
  transform: translateY(-1px);
}

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

.redirect-panel {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.redirect-panel h2 {
  margin-top: 0;
}

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

  .stars {
    gap: 0.4rem;
  }

  .star {
    font-size: 1.8rem;
  }
}
