:root {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1b2631;
  background-color: #f5f7fb;
}

html {
  font-size: clamp(15px, 1.1vw + 0.25rem, 18px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(120deg, #eaf4ff, #fff);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intro h1 {
  margin-bottom: 0.5rem;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(21, 24, 38, 0.08);
  padding: 2rem;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo-wrapper img {
  max-width: 220px;
  width: 45%;
  min-width: 160px;
  height: auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.rating-grid {
  display: block;
}

.rating-field + .rating-field {
  margin-top: 1.25rem;
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

fieldset legend {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

fieldset legend span {
  display: block;
  font-weight: 400;
  font-size: 0.92rem;
  color: #5c6472;
  margin-top: 0.2rem;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #d6dbe4;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  background: #005df2;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

button[type="submit"]:hover {
  background: #0043b5;
}

.muted {
  color: #6b7484;
  margin-top: 0.5rem;
}

.status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.status.success {
  background: #e8f6ef;
  color: #196f3d;
}

.status.error {
  background: #fdecea;
  color: #c0392b;
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.35rem;
}

.star-rating input {
  position: absolute;
  left: -9999px;
}

.star-rating label {
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.star-rating label svg {
  width: 100%;
  height: 100%;
  fill: #d6dbe4;
  transition: fill 0.2s ease, transform 0.1s ease;
}

.star-rating label:hover svg,
.star-rating label:hover ~ label svg {
  fill: #ffcf4c;
  transform: scale(1.05);
}

.star-rating input:checked ~ label svg {
  fill: #ffc107;
}

.star-rating input:focus-visible + label {
  outline: 2px solid #005df2;
  outline-offset: 4px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.site-footer {
  margin-top: auto;
  background: #0f1724;
  color: #cfd8e3;
  padding: 1.5rem;
}

.footer-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.92rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-content a {
  color: #8ab4ff;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.thank-you {
  margin-top: 1.5rem;
  padding: 1.25rem;
  text-align: center;
  border-radius: 12px;
  background: #eef4ff;
  border: 1px solid #d6e0fb;
  color: #1b2631;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.thank-you h2 {
  margin: 0 0 0.35rem;
}

.thank-you p {
  margin: 0;
}

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

  .star-rating {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }

  fieldset legend {
    font-size: 1rem;
  }

  textarea {
    min-height: 160px;
  }

  fieldset legend span {
    font-size: 0.85rem;
  }
}

@media (min-width: 960px) {
  .container {
    padding-top: 3rem;
  }

  .card {
    padding: 2.5rem 3rem;
  }

  .intro p {
    font-size: 1.05rem;
  }
}
