/* Reset & background */
body {
  margin: 0;
  font-family: 'Noto Sans', sans-serif;
  background: linear-gradient(to bottom right, #0e0f1a, #1b1d2f);
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.bg-video {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: -1; opacity: 0.4;
}

/* Logo */
.logo-wrapper {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  z-index: 10;
}
.logo {
  height: 240px; max-width: 660px;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards 0.5s;
}

/* Hero section (landing) */
.hero-section {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1s;
}
.hero-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 600;
  margin-bottom: 1rem;
}
.hero-section p {
  font-size: 1.1rem; color: #e0e0e0; margin-bottom: 1.5rem;
}
.hero-section button {
  padding: 0.75rem 1.5rem; border-radius: 10px;
  font-size: 1rem; font-weight: 600; border: none;
  background: linear-gradient(135deg, #b08d57, #d9b382);
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(176,141,87,0.4);
  transition: all 0.3s ease; opacity: 0;
  animation: fadeInUp 1s ease forwards 1.3s;
}
.hero-section button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176,141,87,0.6);
}

/* Form area */
.form-outer-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;         /* center horizontally */
  align-items: flex-start;         /* start below logo, not vertical center */
  overflow-y: auto;
  padding: 2rem;
  box-sizing: border-box;
  width: 100%;                     /* ensure full width so center works */
}

.form-container {
  position: relative;
  overflow: hidden;
  max-width: 600px;
  overflow-y: auto;
  max-height: calc(100vh - 300px);
  padding: 2rem 2.5rem;
  border-radius: 20px;
  background: rgba(20, 20, 20, 0.2); /* base layer, subtle */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Add a radial gradient to fade out smoothly */
.form-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.03) 65%,
    rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Step transitions */
.step {
  opacity: 0; transform: translateY(40px);
  transition: all 0.4s ease; pointer-events: none;
  position: absolute; width: 100%;
}
.step.active {
  opacity: 1; transform: translateY(0);
  pointer-events: all; position: relative;
}

/* Bubble options */
.bubble-options {
  display: flex; flex-wrap: wrap;
  gap: 0.75rem; margin-top: 1rem; justify-content: center;
}
.bubble {
  background: rgba(255,255,255,0.08);
  padding: 0.6rem 1.2rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-weight: 500; cursor: pointer;
  transition: all 0.25s ease, transform 0.4s ease;
}
.bubble:hover { background: rgba(176,141,87,0.25); transform: scale(1.05); }
.bubble.selected {
  background: #b08d57; border-color: #b08d57; color: #fff;
  animation: bubblePulse 1.5s ease infinite alternate;
}

/* Inputs */
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; padding: 0.8rem 1rem; margin-top: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; color: #fff; font-size: 1rem;
  box-sizing: border-box; transition: border 0.3s ease;
}
input:focus { border-color: #d9b382; }

/* Buttons shared */
button {
  padding: 0.75rem 1.5rem; border-radius: 10px;
  font-size: 1rem; font-weight: 600; border: none;
  background: linear-gradient(135deg, #b08d57, #d9b382);
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(176,141,87,0.4);
  transition: all 0.3s ease;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176,141,87,0.6);
}

/* Form actions */
.form-actions {
  display: flex; justify-content: center;
  gap: 1rem; margin-top: 2rem; flex-wrap: wrap;
}

/* OTP & status */
#emailInput, #otpInput, #sendOtpBtn, #resendOtpBtn, #verifyOtpBtn { margin-top: 1rem; }
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid #d9b382; border-top: 2px solid transparent;
  border-radius: 50%; animation: spin 0.7s linear infinite;
  vertical-align: middle; margin-left: 8px;
}
.otp-status { font-size: 0.9rem; color: #d9b382; margin-top: 0.5rem; }
.hidden { display: none !important; }

/* Thank you */
#thank-you { padding-top: 0.5rem; animation: fadeInUp 0.6s ease forwards; }

/* Keyframes */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bubblePulse { from { transform: scale(1); } to { transform: scale(1.08); } }

/* Mobile */
@media (max-width: 640px) {
  .logo { height: 200px; max-width: 480px; }
  .logo-wrapper { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .form-container { padding: 1.5rem; max-height: calc(100vh - 220px); }
  .hero-section { padding: 1.5rem; }
  .hero-section h1 { font-size: 1.6rem; }
  .hero-section p { font-size: 0.95rem; }
  button { width: 100%; }
  .form-actions { flex-direction: column; }
}