:root {
  --bg: #0f1115;
  --card: #171923;
  --muted: #9aa4b2;
  --text: #e7e9ee;
  --brand: #30a46c;
  --radius: 16px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px; /* padding laterale omogeneo */
}

/* Card principale centrata e con aria */
.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  padding: 28px 22px; /* padding uniforme su tutti i lati */
  text-align: center;
}

/* Logo */
.logo img {
  width: 110px;
  height: auto;
  margin-bottom: 14px;
}

/* Titoli */
h1 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.lead {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 18px;
}

/* Stelle */
.stars-picker {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 25px;
}
.stars-picker button {
  font-size: 38px;
  line-height: 1;
  border: none;
  background: transparent;
  color: #3a4150;
  cursor: pointer;
  transition: transform .1s, color .1s;
}
.stars-picker button.on {
  color: #f7c948;
  transform: scale(1.15);
}

/* Textarea per recensione interna */
textarea {
  width: 100%;
  border: 1px solid #2a2f3a;
  border-radius: 10px;
  background: #10131a;
  color: var(--text);
  padding: .8rem;
  font-size: 1rem;
  margin-bottom: 16px;
  resize: none;
}
.hidden { display: none; }

/* Pulsante principale */
.btn-primary {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #04130b;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.btn-primary:hover:not(:disabled) {
  background: #2b945f;
  transform: scale(1.03);
}

/* Centra anche la schermata di ringraziamento */
.center { text-align: center; }

/* Responsività perfetta */
@media (min-width: 480px) {
  body { padding: 40px; }
  .card { padding: 32px 26px; }
  h1 { font-size: 1.5rem; }
}
