:root {
  --rose-50: #fff8f7;
  --rose-100: #fdeeed;
  --rose-200: #f5d9d6;
  --rose-500: #a85868;
  --rose-700: #7f384a;
  --ink-900: #2d1f24;
  --card-bg: rgba(255, 249, 247, 0.86);
  --card-border: rgba(255, 255, 255, 0.68);
  --card-shadow: 0 20px 40px rgba(76, 37, 51, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cormorant Garamond", serif;
  color: var(--ink-900);
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(255, 255, 255, 0.32),
      transparent 52%
    ),
    linear-gradient(160deg, rgba(255, 244, 241, 0.9), rgba(251, 235, 231, 0.4)),
    url("/Afbeeldingen/Achtergrond/achtergrond5.jpeg") no-repeat fixed;
  background-size: auto, auto, 100%;
  background-position:
    center 0%,
    center center,
    center bottom;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, fixed;
  display: grid;
  place-items: center;
  padding: 24px;
}

.entry-shell {
  width: 100%;
  max-width: 1500px;
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: end;
  gap: 0;
}

.column-ornament {
  width: min(540px, 72vw);
  filter: drop-shadow(0 12px 18px rgba(70, 34, 41, 0.18));
  position: relative;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px);
  animation: floatIn 0.9s ease forwards;
}

.column-left {
  animation-delay: 0.08s;
  justify-self: end;
  margin-right: clamp(-170px, -11vw, -120px);
}

.column-right {
  animation-delay: 0.24s;
  justify-self: start;
  margin-left: clamp(-170px, -11vw, -120px);
}

.prompt-card {
  width: 580px;
  max-width: calc(100vw - 48px);
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
  padding: clamp(30px, 5vw, 52px);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 0.9s ease forwards;
}

.heading-script {
  margin: 0 0 0.25rem;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  color: var(--rose-700);
  line-height: 1;
}

.heading-text {
  margin: 0.4rem 0 0.65rem;
  font-size: clamp(1.2rem, 2.7vw, 1.6rem);
  letter-spacing: 0.02em;
}

.intro-text {
  max-width: 30rem;
  margin: 0 auto 0.4rem;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  line-height: 1.6;
  color: rgba(52, 28, 35, 0.9);
}

.entry-form {
  display: grid;
  gap: 14px;
  width: min(390px, 100%);
  margin: 0.35rem auto 0;
}

.entry-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(152, 89, 107, 0.34);
  background: rgba(255, 255, 255, 0.9);
  font:
    500 1.15rem "Cormorant Garamond",
    serif;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.entry-input:focus {
  outline: none;
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(168, 88, 104, 0.14);
}

.entry-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #bb6877, #8b4255);
  color: #fff;
  font:
    600 1.08rem "Cormorant Garamond",
    serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.entry-btn:hover,
.entry-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(105, 47, 61, 0.3);
}

.helper {
  max-width: 28rem;
  margin: 0.35rem auto 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(61, 31, 39, 0.82);
}

.provision-result {
  margin-top: 0.45rem;
  min-height: 1.2rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(61, 31, 39, 0.9);
}

.provision-result.success {
  color: #2f6a58;
}

.provision-result.error {
  color: #a14d43;
}

.provision-result a {
  color: inherit;
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .entry-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .column-ornament {
    width: min(450px, 100vw);
  }

  .column-left {
    order: 1;
    justify-self: center;
    margin-right: 0;
  }

  .prompt-card {
    order: 2;
  }

  .column-right {
    order: 3;
    justify-self: center;
    margin-left: 0;
  }
}
