.notify {
  margin: 0 6vw 2.5rem;
  padding: 1.4rem 1.25rem 1.5rem;
  border: 3px solid #3a241c;
  border-radius: 1.4rem;
  background: #fffdf8;
}

.notify-form {
  max-width: 40rem;
}

.notify-form .field {
  scroll-margin-block: 0.75rem;
}

.field + .field {
  margin-top: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.label-note {
  font-weight: 400;
}

#notify-phone {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.field textarea {
  width: 100%;
  min-height: 6.5rem;
  padding: 0.65rem 0.8rem;
  border: 2px solid var(--ink, #3a241c);
  border-radius: 0.6rem;
  background: var(--paper, #fffdf8);
  color: var(--ink, #3a241c);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.field input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 2px solid var(--ink, #3a241c);
  border-radius: 0.6rem;
  background: var(--paper, #fffdf8);
  color: var(--ink, #3a241c);
  font: inherit;
}

.hint {
  margin: 0.35rem 0 0;
  color: var(--ink, #3a241c);
}

.field-error {
  margin: 0.35rem 0 0;
  color: #7a1f1f;
  font-weight: 600;
}

.field input[aria-invalid="true"] {
  border-color: #7a1f1f;
}

.hp {
  display: none;
}

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

.notify-status {
  margin-top: 1rem;
  min-height: 1.5em;
  font-weight: 600;
}

.notify-status:focus {
  outline: 3px solid #3a241c;
  outline-offset: 3px;
}

.thanks {
  position: relative;
  max-width: 40rem;
  margin-top: 0.5rem;
}

.thanks-card {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1.3rem 1.4rem;
  border: 3px solid #3a241c;
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 137, 61, 0.28), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(194, 75, 36, 0.16), transparent 28%),
    #fffdf8;
  text-align: center;
}

.thanks-badge {
  display: grid;
  place-items: center;
  margin: 0 auto 0.6rem;
}

.thanks-kicker {
  margin: 0;
  color: #5c3a18;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.thanks-card h3 {
  margin: 0.45rem 0 0.6rem;
  font-family: "Fraunces", Palatino, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.thanks-card p {
  margin: 0 auto;
  max-width: 36rem;
}

.thanks-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.thanks-checks li {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border: 2px solid #3a241c;
  border-radius: 999px;
  background: #fbf6ee;
  font-weight: 600;
}

.thanks-checks li::before {
  content: "✓ ";
}

.thanks .actions {
  justify-content: center;
  margin-top: 1.1rem;
}

.icon-mask {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.45rem;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon-instagram { --icon: url("../assets/icons/instagram.svg"); }
.icon-whatsapp { --icon: url("../assets/icons/whatsapp.svg"); }

#thanks-title:focus {
  outline: 3px solid #3a241c;
  outline-offset: 4px;
}

/* When focus lands on the heading, keep the badge and kicker above it in view. */
#thanks-title {
  scroll-margin-top: 9rem;
}

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: -12px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  background: #c24b24;
  animation: confetti-fall 1.1s ease-in forwards;
}

.confetti span:nth-child(2) { left: 12%; background: #b8893d; animation-delay: 0.05s; }
.confetti span:nth-child(3) { left: 24%; background: #2c5648; animation-delay: 0.12s; }
.confetti span:nth-child(4) { left: 36%; background: #3a241c; animation-delay: 0.02s; }
.confetti span:nth-child(5) { left: 48%; background: #c24b24; animation-delay: 0.18s; }
.confetti span:nth-child(6) { left: 58%; background: #b8893d; animation-delay: 0.08s; }
.confetti span:nth-child(7) { left: 68%; background: #2c5648; animation-delay: 0.15s; }
.confetti span:nth-child(8) { left: 78%; background: #c24b24; animation-delay: 0.04s; }
.confetti span:nth-child(9) { left: 88%; background: #3a241c; animation-delay: 0.1s; }
.confetti span:nth-child(1) { left: 6%; }
.confetti span:nth-child(10) { left: 94%; background: #b8893d; animation-delay: 0.2s; }

@keyframes confetti-fall {
  from { transform: translateY(0) rotate(0deg); opacity: 1; }
  to { transform: translateY(220px) rotate(180deg); opacity: 0; }
}

button.order-text {
  padding: 0.55rem 0.15rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  min-height: 2.75rem;
}

.soon-dialog {
  width: min(32rem, calc(100% - 2rem));
  margin: auto;
  padding: 1.5rem 1.3rem 1.3rem;
  border: 3px solid #3a241c;
  border-radius: 1.4rem;
  background: #fffdf8;
  color: #3a241c;
}

.soon-dialog::backdrop {
  background: rgba(44, 27, 20, 0.62);
}

.soon-dialog h2 {
  margin: 0.35rem 0 0.6rem;
  font-family: "Fraunces", Palatino, serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
}

.soon-dialog p {
  margin: 0;
  line-height: 1.5;
}

.soon-dialog .actions {
  margin-top: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
}
