:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --error: #dc2626;
  --success: #16a34a;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 1rem;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  text-align: center;
}

/* Card header, visible on every step: logo above the title. */
.logo {
  display: block;
  height: 96px;
  width: auto;
  margin: 0 auto 0.75rem;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 1.5rem;
}

.step label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  text-align: left;
}

input[type="tel"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
}

button {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  margin-bottom: 0.6rem;
}

button:hover {
  background: var(--primary-dark);
}

button.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.guest-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.5rem 0 1rem;
}

.error {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.success-mark {
  color: var(--success);
  font-size: 2.5rem;
  margin: 0;
}

#success-detail {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Shown only when the guest's Gift count (column E) is greater than 0. */
.gift-notice {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--success);
  border-radius: 8px;
  background: #f0fdf4;
}

.gift-notice p {
  margin: 0;
}

.gift-notice .gift-title {
  font-weight: 600;
  color: var(--success);
}

.gift-notice .gift-count {
  margin-top: 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.gift-notice .gift-hint {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
