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

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

/* Page transitions */
.page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(30px);
}

.page.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.container {
  text-align: center;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
}

/* Typography */
.title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Buttons */
.buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  min-height: 80px;
}

.btn {
  padding: 0.9rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-yes {
  background: #fff;
  color: #764ba2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 1.3rem;
  padding: 1.1rem 3rem;
}

.btn-yes:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.btn-no {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  position: relative;
  transition: all 0.1s ease;
}

.btn-next,
.btn-submit {
  background: #fff;
  color: #764ba2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-top: 1.5rem;
}

.btn-next:hover,
.btn-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-option {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
}

.btn-option:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-option.selected {
  background: #fff;
  color: #764ba2;
  border-color: #fff;
}

/* Custom input */
.custom-input {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.custom-input input {
  padding: 0.8rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  width: 250px;
  backdrop-filter: blur(10px);
}

.custom-input input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.custom-input input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
}

.custom-input input[type="date"] {
  width: auto;
  min-width: 200px;
  color-scheme: dark;
  cursor: pointer;
}

.custom-input input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.5);
  cursor: pointer;
}

.custom-input .btn-submit {
  margin-top: 0;
}

.date-error {
  color: #ffd5d5;
  font-size: 0.95rem;
  margin-top: 1rem;
  min-height: 1.2em;
}

/* Celebration page */
.celebration {
  position: relative;
}

.emoji-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.emoji-rain span {
  position: absolute;
  top: -50px;
  font-size: 2rem;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
  }
}

/* Final page */
.final-note {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1rem;
  font-weight: 400;
}

.final-heart {
  margin-top: 2rem;
  font-size: 4rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.final-heart::after {
  content: '\2764';
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Floating hearts background */
.hearts-bg::before,
.hearts-bg::after {
  content: '';
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  animation: float 6s ease-in-out infinite;
}

.hearts-bg::before {
  top: -100px;
  right: -100px;
}

.hearts-bg::after {
  bottom: -100px;
  left: -100px;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .buttons {
    flex-direction: column;
  }

  .options-grid {
    grid-template-columns: 1fr 1fr;
  }

  .custom-input {
    flex-direction: column;
  }

  .custom-input input {
    width: 100%;
  }
}
