@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600;700&display=swap');

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #7f7fd5 0%, #86a8e7 50%, #91eae4 100%);
  color: #fff;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.06);
  padding: 22px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  animation: fadeIn 1s ease-in;
}

/* Fade-in animation for page load */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

h1 {
  font-size: 1.8rem;
  margin: 6px 0 8px;
  animation: fadeInText 1.2s ease;
}

@keyframes fadeInText {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 10px 0;
  text-transform: capitalize;
}

.message {
  margin: 14px 0;
  font-size: 1rem;
  animation: fadeInText 1.5s ease;
}

.gift-box {
  background: #fff;
  color: #d63333;
  padding: 10px;
  border-radius: 8px;
  margin-top: 14px;
  font-weight: 700;
}

.gift-box a {
  color: #d63333;
  text-decoration: underline;
}

input[type=text],
input[type=email] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  margin: 8px 0;
  font-size: 1rem;
}

.primary-btn {
  background: #fff;
  color: #b21f1f;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  margin-top: 10px;
  transition: transform 0.2s, opacity 0.3s;
}

.primary-btn:hover {
  opacity: 0.95;
  transform: scale(1.05);
}

.secondary-btn {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 12px;
  transition: transform 0.2s;
}

.secondary-btn:hover {
  transform: scale(1.05);
}

.hidden { display: none; }

.result-box {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #fff;
  animation: highlight 1s ease-out;
}

@keyframes highlight {
  0% { background: rgba(255, 255, 255, 0.3); transform: scale(1.05); }
  100% { background: rgba(255, 255, 255, 0.08); transform: scale(1); }
}

.row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.small {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 12px;
}

.consent {
  font-size: 0.85rem;
  opacity: 0.95;
  margin: 8px 0 12px;
}

.ad-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 10px;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* 🎄 Bouncing "Create Your Own Greeting" Button */
.bouncing-btn {
  background: #fff;
  color: #b21f1f;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 20px;
  animation: bounce 2s infinite;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.bouncing-btn:hover {
  transform: scale(1.08);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@media (max-width: 420px) {
  .container { padding: 16px; }
}