:root {
  --rose-50: #f3d7db;
  --rose-500: #e91e63;
  --rose-600: #c2185b;
  --rose-700: #8e1245;
  --text-main: #3a1020;
  --text-soft: #5a2a3a;
  --card-bg: rgba(255, 252, 254, 0.86);
  --card-border: rgba(194, 24, 91, 0.22);
  --shadow-soft: 0 20px 45px rgba(142, 18, 69, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  background-color: var(--rose-50);
  background-image:
    linear-gradient(rgba(243, 215, 219, 0.9), rgba(243, 215, 219, 0.9)),
    url("tw3d-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.page {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1.4rem 0;
}

.waitlist-section {
  width: 100%;
  text-align: center;
}

.brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-700);
  font-size: 0.82rem;
}

.section-title {
  margin: 0.5rem 0 0;
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--rose-700);
}

.section-subtitle {
  margin: 0.9rem auto 1.2rem;
  max-width: 680px;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
}

.form-card {
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.1rem, 3vw, 1.65rem);
  text-align: left;
}

.form-title {
  margin: 0 0 1rem;
  font-family: "Playfair Display", serif;
  color: var(--rose-700);
  font-size: clamp(1.28rem, 2.3vw, 1.6rem);
  text-align: center;
}

.feedback {
  margin: 0 0 1rem;
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.feedback-success {
  background: rgba(34, 139, 34, 0.12);
  color: #1f5f1f;
}

.feedback-duplicate {
  background: rgba(194, 24, 91, 0.11);
  color: #7f1a47;
}

.feedback-error {
  background: rgba(176, 30, 30, 0.12);
  color: #821a1a;
}

label {
  display: block;
  margin: 0.8rem 0 0.38rem;
  font-weight: 600;
  color: #561f33;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(142, 18, 69, 0.28);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 0.82rem 0.88rem;
  font: inherit;
  color: var(--text-main);
}

input:focus,
select:focus {
  outline: 2px solid rgba(194, 24, 91, 0.22);
  border-color: rgba(194, 24, 91, 0.72);
}

.submit-button {
  width: 100%;
  margin-top: 1.1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.1rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  color: #ffffff;
  background: linear-gradient(130deg, var(--rose-600), var(--rose-500));
  box-shadow: 0 14px 30px rgba(194, 24, 91, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(194, 24, 91, 0.34);
}

.footer {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid rgba(142, 18, 69, 0.2);
  padding: 1rem 0 5rem;
  text-align: center;
  color: #6d2f46;
  font-size: 0.92rem;
}

.footer-links {
  margin-top: 0.45rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a,
.back-link {
  color: var(--rose-700);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

.policy-card {
  margin: clamp(1.4rem, 4vw, 3rem) auto;
  max-width: 860px;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.1rem, 3vw, 2rem);
}

.policy-card h1 {
  margin: 0 0 0.8rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--rose-700);
}

.policy-card p {
  margin: 0.75rem 0;
  line-height: 1.65;
  color: #4d1e31;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  border-radius: 14px;
  border: 1px solid rgba(194, 24, 91, 0.32);
  background: rgba(255, 248, 251, 0.97);
  box-shadow: 0 12px 24px rgba(142, 18, 69, 0.16);
  padding: 0.85rem;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  color: #4d1e31;
  line-height: 1.4;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: var(--rose-700);
  font-weight: 700;
}

.cookie-banner button {
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(130deg, var(--rose-600), var(--rose-500));
  cursor: pointer;
  white-space: nowrap;
}

.cookie-banner.is-hidden {
  display: none;
}

@media (max-width: 768px) {
  .page,
  .footer {
    width: min(760px, calc(100% - 1.2rem));
  }

  .submit-button {
    border-radius: 16px;
    font-size: 1.02rem;
    padding: 1rem;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner button {
    width: 100%;
  }
}
