:root {
  color-scheme: light;
  --bg: #f5efe5;
  --panel: #ffffff;
  --accent: #8b5e3c;
  --accent-dark: #5f3c24;
  --text: #2f241b;
  --muted: #6f5f4e;
  --border: #e4d8c8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #fbf7f1 0%, var(--bg) 100%);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 24px;
}

.page-shell {
  width: min(100%, 640px);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 20px 60px rgba(31, 36, 48, 0.08);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hotel-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(95, 60, 36, 0.12);
  background: #fff;
  padding: 6px;
}

.brand-mark.success {
  background: linear-gradient(135deg, #2f855a, #276749);
}

.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-dark);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}

.intro,
.thanks-copy,
.hint,
.modal p {
  color: var(--muted);
  line-height: 1.6;
}

.stars {
  display: flex;
  gap: 10px;
  margin: 24px 0 8px;
}

.star {
  border: none;
  background: transparent;
  font-size: 2.4rem;
  color: #d1c4b1;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 0;
}

.star:hover,
.star.active {
  color: var(--accent);
  transform: scale(1.08);
}

.hotel-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 6px 16px rgba(95, 60, 36, 0.12);
}

.hint {
  margin: 0;
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal {
  width: min(100%, 480px);
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 16px 0 18px;
  font: inherit;
  resize: vertical;
  min-height: 120px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn {
  background: var(--accent);
  color: white;
}

.secondary-btn {
  background: #f3ece4;
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .card {
    padding: 24px;
  }

  .stars {
    justify-content: center;
  }
}
