/* Hero Section */

.rsvp-hero-section {
  width: 100%;
}

.rsvp-hero {
  min-height: 75vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rsvp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/rsvp-hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: rsvpZoomOut 18s ease forwards;
}

.rsvp-hero-content {
  position: relative;
  z-index: 2;
}

@keyframes rsvpZoomOut {
  from {
    transform: scale(1.15);
  }

  to {
    transform: scale(1);
  }
}

.rsvp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.25) 45%,
      rgba(0, 0, 0, 0.42) 100%
    ),
    rgba(214, 168, 184, 0.28);
}

.rsvp-hero-content {
  position: relative;
  z-index: 2;

  width: min(1100px, 92%);
  max-width: 720px;

  margin: 0 auto;

  text-align: center;
  color: #fff;
}

.hero-eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 16px;
  opacity: 0.9;
}

.rsvp-hero-content h1 {
  font-family: "Bodoni Moda", serif;
  font-size: 8.2rem;
  font-weight: 400;
  margin-bottom: 18px;
  line-height: 1.05;
  color: var(--white);
  margin: 0 0 18px;
}

.rsvp-hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 768px) {
  .rsvp-hero {
    min-height: 78vh;
    align-items: flex-start;
    padding-top: 120px;
    background-position: 68% center;
    background-image: url(./assets/rsvp-mobile.png);
  }

  .rsvp-hero-content {
    width: min(100%, 92%);
    margin: 0 auto;
  }

  .rsvp-hero-content h1 {
    font-size: clamp(3.2rem, 13vw, 5.5rem);
    line-height: 0.95;
  }

  .rsvp-hero-content p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* Password Protection */

.password-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background:
    radial-gradient(circle at top left, rgba(255, 182, 193, 0.35), transparent 40%),
    radial-gradient(circle at bottom right, rgba(255, 46, 120, 0.25), transparent 45%),
    linear-gradient(135deg, #fffafc 0%, #ffe4ee 55%, #ffd6e7 100%);
}

.password-modal {
  width: min(100%, 430px);
  padding: 42px 32px;
  border-radius: 30px;

  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);

  text-align: center;

  border: 1px solid rgba(255, 255, 255, 0.8);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 8px 25px rgba(255, 46, 120, 0.08);
}

.password-logo {
  width: 120px;
  margin-bottom: 18px;
}

.password-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a08d7c;
  margin-bottom: 12px;
}

.password-modal h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 500;
  color: #1f1f1f;
  margin-bottom: 14px;
}

.password-modal p {
  color: #6f6a64;
  line-height: 1.7;
  margin-bottom: 24px;
}

.password-modal input {
  width: 100%;
  padding: 15px 18px;
  margin-bottom: 16px;

  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);

  background: rgba(255, 255, 255, 0.92);

  font-size: 1rem;
  text-align: center;
  outline: none;
}

.password-modal input:focus {
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 4px rgba(255, 46, 120, 0.12);
}

.password-modal .rsvp-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font: inherit;
}

.password-error {
  margin-top: 16px;
  margin-bottom: 0 !important;
  color: var(--hot-pink) !important;
  font-size: 0.9rem;
}

/* RSVP Section */

.rsvp-section {
  padding: 120px 20px;

  background:
    radial-gradient(circle at top left, rgba(255, 182, 193, 0.35), transparent 40%),
    radial-gradient(circle at bottom right, rgba(255, 105, 180, 0.18), transparent 45%),
    linear-gradient(
      135deg,
      #ffffff 0%,
      #fff7fa 30%,
      #ffe4ee 65%,
      #ffd6e7 100%
    );
}

.rsvp-container {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a08d7c;
  margin-bottom: 18px;
}

.rsvp-container h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: #1f1f1f;
  margin-bottom: 24px;
}

.rsvp-intro {
  max-width: 560px;
  margin: 0 auto 55px;
  line-height: 1.8;
  color: #6f6a64;
}

.rsvp-form {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);

  padding: 42px;
  border-radius: 28px;

  border: 1px solid rgba(0, 0, 0, 0.05);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.04),
    0 25px 60px rgba(0, 0, 0, 0.06);

  text-align: left;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  color: #1f1f1f;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group label span {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 400;
  color: #8a8179;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 16px 18px;

  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);

  background: rgba(255, 255, 255, 0.9);

  font-size: 1rem;
  outline: none;

  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus {
  border-color: var(--bright-pink);

  box-shadow:
    0 0 0 4px rgba(255, 79, 139, 0.12);

  transform: translateY(-1px);
}

.radio-group {
  display: grid;
  gap: 14px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 18px 20px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.88);

  border: 1px solid rgba(0, 0, 0, 0.06);

  cursor: pointer;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.radio-group label:hover {
  transform: translateY(-2px);

  border-color: rgba(255, 79, 139, 0.25);

  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.04);
}

.rsvp-form .rsvp-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font: inherit;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: 10px;
}

/* Mobile */

@media (max-width: 768px) {
  .rsvp-section {
    padding: 90px 20px;
  }

  .rsvp-form {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .rsvp-container h2 {
    margin-bottom: 20px;
  }

  .rsvp-intro {
    margin-bottom: 40px;
  }
}

/* RSVP Message Box */


.form-group textarea {
  width: 100%;
  padding: 18px;

  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);

  background: rgba(255, 255, 255, 0.92);

  font-size: 1rem;
  line-height: 1.7;

  resize: vertical;
  min-height: 140px;

  outline: none;

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.form-group textarea:focus {
  border-color: var(--hot-pink);

  box-shadow:
    0 0 0 4px rgba(255, 46, 120, 0.12);

  transform: translateY(-1px);
}

@media (max-width: 768px) {

    .rsvp-hero::before,
    .things-hero::before {
        animation: none;
        transform: scale(1);
    }

    .rsvp-hero::before {
        background-image: url("./assets/rsvp-mobile.png");
        background-position: center 20%;
    }
  }

  .rsvp-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

.rsvp-hero .hero-eyebrow::before,
.rsvp-hero .hero-eyebrow::after {
  width: 60px;
  flex: 0 0 60px;
}
