/* ---------- Design tokens ---------- */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --border: #e5e7ef;
  --border-strong: #d2d5e0;
  --text: #1b1f3a;
  --text-secondary: #5b6275;
  --text-tertiary: #8a90a3;
  --primary: #1b3a8f;
  --primary-dark: #132a6a;
  --primary-accent: #1e95e8;
  --primary-tint: rgba(27, 58, 143, 0.1);
  --success: #30d158;
  --danger: #ff3b30;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.06);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.47;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.brand-title-ta,
.page-title-ta,
.subtitle-ta,
.hero-title-ta,
.eyebrow-ta {
  font-family: "Noto Sans Tamil", "Inter", -apple-system, sans-serif;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ---------- Header / Brand bar (full-width, edge-to-edge) ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff; /* solid fallback for older Android WebView */
  border-bottom: 1px solid var(--border);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .app-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
}
.app-header-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
}
.brand-accent {
  height: 3px;
  background: linear-gradient(90deg, #1b3a8f 0%, #1e95e8 50%, #ffb800 100%);
  opacity: 0.9;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
  max-width: 100%;
}
.brand-logo {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-company {
  margin: 0;
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
  max-width: 14ch;
}

/* ---------- Container ---------- */
.container {
  flex: 1;
  padding: 0 1.25rem 2rem;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 2.5rem 0 1.75rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 1rem;
  padding: 0.4rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  background: var(--primary-tint);
  border-radius: 999px;
  border: 1px solid rgba(27, 58, 143, 0.12);
}
.eyebrow-emoji {
  font-size: 0.95rem;
  line-height: 1;
}
.eyebrow-dot {
  color: rgba(27, 58, 143, 0.35);
  font-weight: 700;
}
.eyebrow-ta {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--primary);
}
.hero-title {
  margin: 0;
  font-size: clamp(1.875rem, 7vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  max-width: 24ch;
  margin-inline: auto;
}
.hero-title-ta {
  margin: 0.625rem auto 0;
  font-size: clamp(1rem, 3.6vw, 1.1875rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
  line-height: 1.5;
  max-width: 32ch;
}
.feast-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.125rem;
  padding: 0.375rem 0.875rem 0.375rem 0.75rem;
  background: linear-gradient(135deg, #fff7e6 0%, #fff1d6 100%);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #8a5a00;
  box-shadow: 0 1px 3px rgba(255, 184, 0, 0.15);
}
.feast-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffb800;
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.25);
  animation: feastPulse 2s ease-in-out infinite;
}
@keyframes feastPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.25); }
  50%      { box-shadow: 0 0 0 5px rgba(255, 184, 0, 0.1); }
}

/* Cards align left even though hero is centered */
.card,
.privacy-pill,
.error,
.submit-btn {
  text-align: left;
}

/* ---------- Privacy pill ---------- */
.privacy-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
.privacy-icon {
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}
.privacy-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.privacy-text-ta {
  font-family: "Noto Sans Tamil", "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  line-height: 1.45;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.card-title {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}
.card-title-ta {
  font-family: "Noto Sans Tamil", "Inter", -apple-system, sans-serif;
  margin: -0.75rem 0 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.005em;
  line-height: 1.3;
}

/* ---------- Form fields ---------- */
.field {
  margin-bottom: 1rem;
}
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  letter-spacing: -0.005em;
}

.field input[type="text"],
.field input[type="tel"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  transition: all 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-tint);
}
.field input::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
}
.field input.valid {
  border-color: var(--success);
}
.field input.invalid {
  border-color: var(--danger);
  background: #fff5f5;
}

.hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  min-height: 1em;
}
.field input.invalid + .hint { color: var(--danger); }

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* ---------- Identity card ---------- */
.identity-card {
  background: linear-gradient(135deg, #eef3ff 0%, #f5f9ff 100%);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.25rem;
  margin: 0 0 1rem;
  animation: cardIn 0.35s var(--ease-spring);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.identity-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
}
.identity-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0.25rem 0 0.875rem;
}
.identity-confirm,
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  user-select: none;
}
.identity-confirm input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary);
  cursor: pointer;
}
.identity-correction {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px dashed rgba(27, 58, 143, 0.3);
}
.identity-correction .checkbox-inline {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.identity-correction input[type="text"] {
  margin-top: 0.625rem;
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  transition: all 0.2s var(--ease);
}
.identity-correction input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

/* ---------- Emoji picker ---------- */
.emoji-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.625rem;
}
.emoji-option {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}
.emoji-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.emoji-option .emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: clamp(2.5rem, 11vw, 3.5rem);
  line-height: 1;
  transition: all 0.25s var(--ease-spring);
  filter: grayscale(0.4);
  opacity: 0.6;
}
.emoji-option .emoji-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: -0.005em;
  transition: color 0.2s var(--ease);
}
.emoji-option:hover .emoji {
  background: var(--surface);
  border-color: var(--border-strong);
  opacity: 0.95;
  filter: grayscale(0);
  transform: translateY(-2px);
}
.emoji-option:hover .emoji-label {
  color: var(--text-secondary);
}
.emoji-option input:checked + .emoji {
  background: var(--primary-tint);
  border-color: var(--primary);
  transform: scale(1.1);
  opacity: 1;
  filter: grayscale(0);
  box-shadow: 0 6px 18px rgba(27, 58, 143, 0.28);
}
.emoji-option input:checked ~ .emoji-label {
  color: var(--primary);
  font-weight: 600;
}
.emoji-option input:focus-visible + .emoji {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Star rating ---------- */
.card-sub {
  margin: -0.25rem 0 1.125rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 500;
}
.star-rows {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.star-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.875rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  gap: 0.75rem;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
}
.star-row:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}
.star-row:not(.unrated) {
  background: linear-gradient(135deg, #fffaeb 0%, #fff5d6 100%);
  border-color: rgba(255, 184, 0, 0.4);
}
.star-row-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.01em;
}
.cat-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.25s var(--ease-spring);
}
.star-row:not(.unrated) .cat-icon {
  background: #fff;
  border-color: rgba(255, 184, 0, 0.45);
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 3px 10px rgba(255, 184, 0, 0.2);
}
.cat-text {
  flex: 1;
  min-width: 0;
}
.star-row.highlight {
  background: rgba(255, 184, 0, 0.12);
  animation: pulseHighlight 1.4s var(--ease);
}
@keyframes pulseHighlight {
  0%   { background: rgba(255, 184, 0, 0); }
  20%  { background: rgba(255, 184, 0, 0.18); }
  100% { background: rgba(255, 184, 0, 0); }
}
.star-rating {
  display: flex;
  gap: 0.375rem;
}
.star {
  background: transparent;
  border: 0;
  padding: 0.25rem;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--border-strong);
  cursor: pointer;
  transition: color 0.15s var(--ease), transform 0.2s var(--ease-spring);
  font-family: inherit;
}
.star:hover { transform: scale(1.18); color: #ffd166; }
.star.active {
  color: #ffb800;
  text-shadow: 0 1px 3px rgba(255, 184, 0, 0.35);
}
.star:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Submit button ---------- */
.submit-btn {
  position: relative;
  width: 100%;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, #1e95e8 0%, #1b3a8f 60%, #132a6a 100%);
  border: 0;
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  margin-top: 0.75rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 6px 18px rgba(27, 58, 143, 0.35),
    0 2px 4px rgba(27, 58, 143, 0.2);
  overflow: hidden;
  isolation: isolate;
}
.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}
.submit-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.7s var(--ease);
}
.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 -1px 0 rgba(0, 0, 0, 0.2) inset,
    0 10px 28px rgba(27, 58, 143, 0.42),
    0 4px 8px rgba(27, 58, 143, 0.25);
}
.submit-btn:hover:not(:disabled)::after {
  left: 125%;
}

/* ---------- Guest / Support Staff flow ---------- */
.guest-divider {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 1.25rem 0 0.875rem;
  color: var(--text-tertiary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.guest-divider::before,
.guest-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.guest-divider span { flex-shrink: 0; }

.guest-toggle {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #f0f5ff 0%, #f7faff 100%);
  border: 1.5px solid rgba(27, 58, 143, 0.18);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s var(--ease);
}
.guest-toggle:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, #e8efff 0%, #f0f5ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(27, 58, 143, 0.12);
}
.guest-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--surface);
  border: 1px solid rgba(27, 58, 143, 0.15);
  border-radius: 10px;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.guest-toggle-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.guest-toggle-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.guest-toggle-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}
.guest-toggle-arrow {
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.guest-toggle:hover .guest-toggle-arrow {
  transform: translateX(3px);
}

.guest-block {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1rem;
  margin-bottom: 1rem;
  animation: cardIn 0.3s var(--ease-spring);
}
.guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}
.guest-header-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}
.guest-back {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}
.guest-back:hover { color: var(--primary); }

.select-input {
  width: 100%;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  transition: all 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6275' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.select-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-tint);
}

.footer-company {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
}
.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}
.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Error banner ---------- */
.error {
  background: #fff5f5;
  border: 1.5px solid var(--danger);
  color: var(--danger);
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  animation: cardIn 0.25s var(--ease-spring);
}

/* ---------- Thank you ---------- */
.thank-you {
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(30, 149, 232, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3.5rem 1.5rem 2.75rem;
  box-shadow: var(--shadow-lg);
  animation: cardIn 0.5s var(--ease-spring);
  overflow: hidden;
  margin-top: 1rem;
}
.thank-you::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1b3a8f 0%, #1e95e8 50%, #ffb800 100%);
}
.thank-you-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.thank-you-confetti span {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0;
  animation: confettiFall 3s ease-out forwards;
}
.thank-you-confetti span:nth-child(1) { left:  8%; animation-delay: 0.0s; }
.thank-you-confetti span:nth-child(2) { left: 22%; animation-delay: 0.4s; }
.thank-you-confetti span:nth-child(3) { left: 38%; animation-delay: 0.15s; }
.thank-you-confetti span:nth-child(4) { left: 52%; animation-delay: 0.55s; }
.thank-you-confetti span:nth-child(5) { left: 66%; animation-delay: 0.25s; }
.thank-you-confetti span:nth-child(6) { left: 78%; animation-delay: 0.7s; }
.thank-you-confetti span:nth-child(7) { left: 88%; animation-delay: 0.35s; }
.thank-you-confetti span:nth-child(8) { left: 14%; animation-delay: 0.85s; }
@keyframes confettiFall {
  0%   { top: -10%; opacity: 0; transform: rotate(0deg); }
  10%  { opacity: 1; }
  100% { top: 110%; opacity: 0; transform: rotate(360deg); }
}
.thank-you-emoji {
  position: relative;
  font-size: 4.5rem;
  margin-bottom: 0.875rem;
  display: inline-block;
  animation: pop 0.6s var(--ease-spring);
  filter: drop-shadow(0 4px 14px rgba(27, 58, 143, 0.2));
}
@keyframes pop {
  0%   { transform: scale(0.3) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.thank-you h2 {
  position: relative;
  margin: 0 0 0.25rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  background: linear-gradient(135deg, #1b3a8f 0%, #1e95e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.thank-you-ta {
  font-family: "Noto Sans Tamil", "Inter", sans-serif;
  position: relative;
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.thank-you-message {
  position: relative;
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
}
.thank-you-message-ta {
  font-family: "Noto Sans Tamil", "Inter", sans-serif;
  position: relative;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.thank-you-extra {
  position: relative;
  margin: 1.25rem 0 0.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.thank-you-extra-ta {
  font-family: "Noto Sans Tamil", "Inter", sans-serif;
  position: relative;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.8;
}
.thank-you-divider {
  position: relative;
  width: 48px;
  height: 3px;
  margin: 1.5rem auto 1rem;
  background: linear-gradient(90deg, transparent 0%, #ffb800 50%, transparent 100%);
  border-radius: 2px;
}
.thank-you-sign {
  position: relative;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
  text-transform: none;
}

/* ---------- Footer ---------- */
.app-footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }

/* ---------- Small / mid-size phones (iPhone SE, mid-tier Android) ---------- */
@media (max-width: 420px) {
  body { font-size: 16px; }
  .container { padding: 0 0.875rem 1.5rem; }
  .card {
    padding: 1.125rem 0.9375rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius);
  }
  .app-header-inner { padding: 0.75rem 0.9375rem; }
  .brand { gap: 0.625rem; }
  .brand-logo { height: 44px; }
  .brand-company {
    font-size: 0.9375rem;
    max-width: 14ch;
    line-height: 1.2;
  }

  .hero { padding: 1.625rem 0 1rem; }
  .eyebrow {
    font-size: 0.625rem;
    padding: 0.3125rem 0.6875rem;
    gap: 0.375rem;
  }
  .hero-title { font-size: 1.625rem; line-height: 1.15; }
  .hero-title-ta { font-size: 0.9375rem; margin-top: 0.5rem; }
  .feast-badge {
    font-size: 0.6875rem;
    padding: 0.3125rem 0.75rem 0.3125rem 0.625rem;
    margin-top: 0.875rem;
  }

  .privacy-pill {
    padding: 0.75rem 0.875rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
  }
  .privacy-text-ta { font-size: 0.75rem; }

  .card-title { font-size: 1rem; }
  .card-title-ta { font-size: 0.875rem; margin-top: -0.625rem; }

  .field input[type="text"],
  .field input[type="tel"],
  .select-input,
  textarea {
    font-size: 16px; /* prevent iOS/Android zoom on focus */
    padding: 0.8125rem 0.875rem;
  }

  /* Guest CTA — keep prominent but tighter */
  .guest-toggle {
    padding: 0.75rem 0.875rem;
    gap: 0.6875rem;
  }
  .guest-toggle-icon { width: 2rem; height: 2rem; font-size: 1rem; }
  .guest-toggle-title { font-size: 0.875rem; }
  .guest-toggle-sub { font-size: 0.6875rem; }
  .guest-divider { margin: 1rem 0 0.75rem; }

  /* Emoji picker — guarantee 5 columns fit even on 320px */
  .emoji-picker { gap: 0.375rem; }
  .emoji-option .emoji {
    border-width: 1.5px;
    border-radius: var(--radius);
  }
  .emoji-option .emoji-label { font-size: 0.625rem; }

  /* Star rows — bigger touch targets, tighter spacing */
  .star-rows { gap: 0.3125rem; }
  .star-row {
    padding: 0.6875rem 0.75rem;
    gap: 0.5rem;
  }
  .star-row-label { font-size: 0.875rem; gap: 0.5rem; }
  .cat-icon {
    font-size: 1.25rem;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 8px;
  }
  .star {
    font-size: 1.625rem;
    padding: 0.3125rem 0.1875rem; /* min ~44px touch height */
    min-width: 32px;
  }
  .star-rating { gap: 0.125rem; }

  textarea { min-height: 90px; }

  .submit-btn {
    font-size: 1rem;
    padding: 1rem 1.125rem;
  }

  /* Thank-you — lighter on small screens */
  .thank-you { padding: 2.5rem 1.125rem 2rem; }
  .thank-you h2 { font-size: 1.625rem; }
  .thank-you-ta { font-size: 1.0625rem; }
  .thank-you-emoji { font-size: 3.75rem; }
  .thank-you-extra { font-size: 0.9375rem; }
  .thank-you-extra-ta { font-size: 0.875rem; }
}

/* ---------- Tiny phones (≤340px: low-end Android, old Galaxy J/A) ---------- */
@media (max-width: 340px) {
  .container { padding: 0 0.75rem 1.25rem; }
  .card { padding: 1rem 0.8125rem; }
  .app-header-inner { padding: 0.625rem 0.75rem; }
  .brand-logo { height: 38px; }
  .brand-company { font-size: 0.875rem; max-width: 13ch; }
  .hero { padding: 1.375rem 0 0.875rem; }
  .hero-title { font-size: 1.4375rem; }
  .hero-title-ta { font-size: 0.875rem; }
  .feast-badge { font-size: 0.625rem; }

  .emoji-picker { gap: 0.25rem; }
  .star {
    font-size: 1.4375rem;
    padding: 0.3125rem 0.125rem;
    min-width: 28px;
  }
  .cat-icon {
    width: 1.625rem;
    height: 1.625rem;
    font-size: 1.125rem;
  }
  .star-row { padding: 0.625rem 0.625rem; }
  .star-row-label { font-size: 0.8125rem; }

  .submit-btn { font-size: 0.9375rem; padding: 0.9375rem 1rem; }
}

/* ---------- Reduced motion / low-power devices ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .submit-btn::after { display: none; }
  .thank-you-confetti { display: none; }
}

/* Disable expensive shimmer + confetti on small screens (low-end GPU) */
@media (max-width: 420px) {
  .submit-btn::after { display: none; }
  .feast-badge-dot { animation: none; }
}
