:root {
  --bg: #efe7e4;
  --card: rgba(255, 252, 250, 0.94);
  --card-strong: #ffffff;
  --text: #161413;
  --muted: #5f5a57;
  --line: rgba(27, 23, 21, 0.12);
  --shadow: 0 20px 60px rgba(45, 23, 19, 0.15);
  --red: #c9272a;
  --red-deep: #a7191b;
  --green: #22964a;
  --green-deep: #167238;
  --cream: #fff7f2;
  --focus: #111111;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 39, 42, 0.08), transparent 32%),
    radial-gradient(circle at bottom right, rgba(34, 150, 74, 0.12), transparent 28%),
    linear-gradient(180deg, #f5efec 0%, #e9dfdb 100%);
}

button,
input,
textarea,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.noscript-banner {
  padding: 1rem;
  background: var(--red);
  color: #fff;
  text-align: center;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 18px 48px;
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.8;
  pointer-events: none;
}

.ambient-one {
  width: 220px;
  height: 220px;
  top: 8%;
  right: -50px;
  background: radial-gradient(circle, rgba(201, 39, 42, 0.18), transparent 72%);
}

.ambient-two {
  width: 260px;
  height: 260px;
  bottom: 2%;
  left: -80px;
  background: radial-gradient(circle, rgba(34, 150, 74, 0.18), transparent 72%);
}

.experience-card,
.modal-card {
  position: relative;
  width: min(100%, 468px);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.experience-card {
  padding: 28px 22px 24px;
  animation: rise-in 420ms ease;
}

.simple-location-view {
  display: grid;
  gap: 20px;
}

.simple-location-view h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.brand-lockup {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.brand-mark {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f0ed 100%);
  border: 1px solid rgba(22, 20, 19, 0.08);
  display: grid;
  place-items: center;
  box-shadow: inset 0 -12px 24px rgba(22, 20, 19, 0.04);
}

.brand-mark img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.headline-block {
  text-align: center;
}

.headline-block h1,
.modal-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.headline-block h1 {
  white-space: normal;
}

.headline-block p,
.modal-header p,
.reward-intro,
.redeem-copy,
.field-label,
.location-cta {
  margin: 0;
  color: var(--muted);
}

.headline-block p {
  margin-top: 10px;
  font-size: 1.08rem;
  font-weight: 500;
}

.sentiment-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.location-grid {
  display: grid;
  gap: 12px;
}

.sentiment-button {
  border: 1px solid rgba(22, 20, 19, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f9f4f1 100%);
  border-radius: 24px;
  min-height: 88px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  box-shadow: 0 10px 24px rgba(22, 20, 19, 0.05);
}

.sentiment-button:hover,
.sentiment-button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(22, 20, 19, 0.2);
  box-shadow: 0 16px 28px rgba(22, 20, 19, 0.1);
  outline: none;
}

.emoji {
  font-size: 2.2rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px 18px;
  background: rgba(43, 36, 33, 0.48);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.modal-card {
  padding: 24px 18px 20px;
  animation: modal-in 240ms ease;
}

.modal-card-wide {
  width: min(100%, 520px);
}

.modal-stack {
  display: grid;
  gap: 18px;
}

.modal-header {
  text-align: center;
}

.modal-header h2 {
  max-width: 12ch;
  margin-inline: auto;
}

.modal-header-neutral h2.neutral-title {
  max-width: none;
  font-size: clamp(1rem, 3.6vw, 1.3rem);
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.modal-header p {
  margin-top: 10px;
  font-size: 1rem;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.simple-location-grid {
  margin-top: 0;
}

.location-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(22, 20, 19, 0.08);
  background: rgba(255, 255, 255, 0.72);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.location-card:hover,
.location-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(22, 20, 19, 0.18);
  box-shadow: 0 12px 26px rgba(22, 20, 19, 0.08);
  outline: none;
}

.simple-location-card {
  min-height: 56px;
}

.location-name {
  font-weight: 700;
}

.field-label {
  font-size: 0.98rem;
  font-weight: 600;
}

textarea,
input[type="tel"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-strong);
  color: var(--text);
  padding: 15px 16px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

textarea::placeholder,
input::placeholder {
  color: #8a807b;
}

textarea:focus,
input:focus {
  outline: none;
  border-color: rgba(22, 20, 19, 0.3);
  box-shadow: 0 0 0 4px rgba(34, 150, 74, 0.12);
}

.form-error {
  margin: 0;
  color: var(--red-deep);
  font-weight: 600;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  color: #fff;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.03);
  box-shadow: 0 16px 28px rgba(22, 20, 19, 0.14);
  outline: none;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.8;
  transform: none;
  box-shadow: none;
}

.primary-button-red {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
}

.primary-button-green {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
}

.review-hero {
  display: grid;
}

.review-hero-button {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(34, 150, 74, 0.98) 0%, rgba(22, 114, 56, 1) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 22px 40px rgba(23, 106, 53, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.review-hero-button:hover,
.review-hero-button:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.04);
  box-shadow:
    0 26px 44px rgba(23, 106, 53, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  outline: none;
}

.review-hero-stars {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
}

.review-hero-label {
  font-size: clamp(1.35rem, 4.6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.reward-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 248, 246, 0.96) 100%);
  border: 1px solid rgba(22, 20, 19, 0.08);
}

.reward-panel h3 {
  margin: 0;
  text-align: center;
  font-size: 1.45rem;
}

.reward-panel-only {
  padding-top: 10px;
}

.reward-panel-secondary {
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(251, 245, 242, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.reward-panel-secondary h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.reward-intro {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
}

.promo-code-wrap {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.promo-code-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.promo-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.promo-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(22, 20, 19, 0.18);
  background: var(--cream);
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.copy-code-button {
  border: 1px solid rgba(22, 20, 19, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.copy-code-button:hover,
.copy-code-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(22, 20, 19, 0.24);
  box-shadow: 0 10px 18px rgba(22, 20, 19, 0.08);
  outline: none;
}

.copy-code-button::before {
  content: "⧉";
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  margin-right: 0;
}

.copy-code-button[data-copied="true"]::before {
  content: "✓";
}

.reward-details {
  margin: 0;
  display: grid;
  gap: 12px;
}

.reward-details div {
  display: grid;
  gap: 4px;
}

.reward-details dt {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.reward-details dd,
.redeem-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.redeem-copy strong {
  color: var(--text);
}

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

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 720px) {
  .page-shell {
    padding: 40px 24px 56px;
  }

  .experience-card {
    padding: 34px 30px 28px;
  }

  .modal-card {
    padding: 28px 24px 22px;
  }
  
  .location-grid {
    grid-template-columns: 1fr 1fr;
  }
}
