/* ── Embeddable Mini Giveaway — quiet storefront widget ─────────────
   Blush-linen background, one compact hairline card, terracotta
   button, small serif headline, iframe-friendly sizing. */

:root {
  --linen: #f7efe9;
  --card: #ffffff;
  --ink: #3a3230;
  --ink-soft: #8f827c;
  --terra: #c46a4a;
  --terra-deep: #a4502f;
  --line: #eadfd7;
  --err: #c2453a;
  --font-serif: 'Fraunces', serif;
  --font-body: 'Mulish', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.hidden { display: none !important; }

body {
  font-family: var(--font-body);
  background: var(--linen);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.page { min-height: 100vh; display: flex; }

.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* ── Card ─────────────────────────────────────────────────────────── */
.card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px 26px;
  box-shadow: 0 18px 40px rgba(58, 50, 48, 0.08);
  text-align: center;
}

.gift-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--linen);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sub { color: var(--ink-soft); font-size: 0.92rem; margin: 8px 0 18px; }

/* ── Form ─────────────────────────────────────────────────────────── */
form { display: flex; flex-direction: column; gap: 10px; }

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 13px 15px;
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--ink);
  background: #fdfaf8;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(196, 106, 74, 0.12);
}

input.error { border-color: var(--err); }
input::placeholder { color: var(--ink-soft); opacity: 0.7; }

.form-error { color: var(--err); font-weight: 700; font-size: 0.86rem; }

.fine { margin-top: 14px; color: var(--ink-soft); font-size: 0.76rem; }

/* ── Button ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 13px 24px;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
  line-height: 1.2;
}

.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(120deg, var(--terra), var(--terra-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(196, 106, 74, 0.28);
}

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 120;
  max-width: 92vw;
  text-align: center;
}

/* ── Powered by ───────────────────────────────────────────────────── */
.powered { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
