/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: "Georgia", serif;
}

/* Background */
body {
  background-image: url("background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f5f2ef;
  position: relative;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(40, 10, 15, 0.65);
  z-index: 1;
}

/* Header */
header {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Main layout */
main {
  position: relative;
  z-index: 2;
  min-height: calc(100% - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Content */
.content {
  text-align: center;
  max-width: 680px;
}

/* Headings */
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}

.subheading {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin-bottom: 36px;
  color: #e6d8d8;
  line-height: 1.5;
}

/* Form */
.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.waitlist-form label {
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.waitlist-form input {
  width: 100%;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
}

.waitlist-form input:focus {
  outline: 2px solid #8b2c3a;
}

.waitlist-form button {
  margin-top: 10px;
  padding: 14px 40px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #8b2c3a;
  color: #ffffff;
}

.waitlist-form button:hover {
  background-color: #a13a49;
}

/* Success page */
.success {
  text-align: center;
}

.success-card {
  background-color: rgba(0, 0, 0, 0.35);
  padding: 40px 30px;
  border-radius: 12px;
  max-width: 420px;
}

.success-card h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin-bottom: 12px;
}

.success-card p {
  font-size: 1.1rem;
  color: #f0e5e5;
}

/* Success message */
.success-message {
  display: none;
  margin-top: 18px;
  font-size: 1rem;
  color: #f2dcdc;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

