:root {
  --ink: #171717;
  --ink-soft: #2f2b29;
  --muted: #6b6661;
  --accent: #c9a46b;
  --accent-strong: #b9894f;
  --surface: rgba(255, 255, 255, 0.82);
  --border: rgba(20, 20, 20, 0.12);
  --shadow: 0 30px 70px rgba(16, 15, 15, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(140deg, #f6f2ec 0%, #f8f7f6 52%, #f2eee9 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -15% -10%;
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 164, 107, 0.2), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(23, 23, 23, 0.08), transparent 55%),
    radial-gradient(circle at 50% 85%, rgba(255, 255, 255, 0.65), transparent 50%);
  z-index: -1;
}

.page {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) clamp(18px, 6vw, 64px) 48px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.logo {
  width: 96px;
  height: auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  animation: card-in 0.8s ease-out both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(201, 164, 107, 0.18), transparent 55%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 12px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

.section-title {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.stars {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.star-button {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.star-button svg {
  width: 28px;
  height: 28px;
  fill: transparent;
  stroke: var(--ink);
  stroke-width: 1.6;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.star-button:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 164, 107, 0.8);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.star-button:focus-visible {
  outline: 2px solid rgba(201, 164, 107, 0.8);
  outline-offset: 3px;
}

.star-button.is-active {
  background: rgba(201, 164, 107, 0.2);
  border-color: rgba(201, 164, 107, 0.9);
  transform: translateY(-2px);
}

.star-button.is-active svg {
  fill: var(--accent);
  stroke: var(--accent-strong);
}

.rating-hint {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.feedback {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.5s ease;
  max-height: 0;
  opacity: 0;
  transform: translateY(12px);
  overflow: hidden;
  pointer-events: none;
}

.feedback[data-state="visible"] {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.muted {
  margin: 0 0 18px;
  color: var(--muted);
}

.field {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.field textarea {
  width: 100%;
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input {
  width: 100%;
  margin-top: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: rgba(201, 164, 107, 0.9);
  box-shadow: 0 0 0 3px rgba(201, 164, 107, 0.2);
}

.field textarea:focus {
  outline: none;
  border-color: rgba(201, 164, 107, 0.9);
  box-shadow: 0 0 0 3px rgba(201, 164, 107, 0.2);
}

.submit-button {
  border: none;
  background: var(--ink);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.submit-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 164, 107, 0.3);
}

.form-status {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.2em;
}

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

.hidden-iframe {
  display: none;
}

.form-status[data-type="success"] {
  color: #2d6a4f;
}

.form-status[data-type="error"] {
  color: #a83232;
}

.footer {
  margin-top: 32px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .brand {
    margin-bottom: 24px;
  }

  .stars {
    gap: 10px;
  }

  .star-button {
    width: 50px;
    height: 50px;
  }

  .star-button svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }

  .feedback {
    transition: none;
  }

  .star-button {
    transition: none;
  }
}
