/* =========================================================
   APRIL & DEVIN'S BABY SHOWER
   RSVP PAGE
   Brown • Cream • Orange
========================================================= */

* {
  box-sizing: border-box;
}

:root {
  --brown: #75401f;
  --brown-dark: #4b2817;
  --brown-light: #9a6034;

  --cream: #fff8e9;
  --cream-light: #fffdf7;
  --cream-dark: #f0dfc2;

  --orange: #d97816;
  --orange-light: #ed9635;

  --text: #4a2a1a;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(117, 64, 31, 0.10) 0 3px,
      transparent 4px
    ),
    radial-gradient(
      circle at 90% 35%,
      rgba(217, 120, 22, 0.10) 0 3px,
      transparent 4px
    ),
    #e7d6b9;

  color: var(--text);

  font-family:
    "DM Sans",
    Arial,
    sans-serif;
}


/* =========================================================
   MAIN PAGE
========================================================= */

.rsvp-page {
  position: relative;

  width: min(100%, 760px);
  min-height: 100vh;

  margin: 0 auto;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 12% 30%,
      rgba(217, 120, 22, 0.05),
      transparent 18%
    ),
    radial-gradient(
      circle at 88% 65%,
      rgba(117, 64, 31, 0.05),
      transparent 20%
    ),
    var(--cream);

  box-shadow:
    0 0 45px rgba(64, 34, 16, 0.22);
}


/* =========================================================
   BACKGROUND BALLOONS
========================================================= */

.background-balloons {
  position: absolute;

  inset: 0;

  overflow: hidden;

  pointer-events: none;

  z-index: 0;
}

.bg-balloon {
  position: absolute;

  width: 105px;
  height: 132px;

  border-radius:
    50%
    50%
    47%
    47%;

  opacity: 0.13;

  box-shadow:
    inset -15px -15px 22px rgba(0, 0, 0, 0.15),
    inset 10px 9px 15px rgba(255, 255, 255, 0.3);
}

.bg-balloon::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -75px;

  width: 1px;
  height: 80px;

  background: var(--brown);
}

.brown-balloon {
  background: var(--brown);

  top: 7%;
  left: -55px;

  transform: rotate(-13deg);
}

.orange-balloon {
  background: var(--orange);

  top: 20%;
  right: -55px;

  transform: rotate(14deg);
}

.cream-balloon {
  background: #ead9bb;

  top: 47%;
  left: -60px;

  transform: rotate(10deg);
}

.bg-balloon.small {
  width: 70px;
  height: 88px;

  opacity: 0.10;
}

.bg-balloon.small.brown-balloon {
  top: 63%;
  right: -30px;
  left: auto;
}

.bg-balloon.small.orange-balloon {
  top: 78%;
  left: -28px;
  right: auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
  position: relative;

  z-index: 2;

  padding:
    58px
    30px
    30px;

  text-align: center;
}

.top-decoration {
  display: flex;

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

  gap: 16px;

  margin-bottom: 17px;
}

.top-decoration span {
  width: 65px;
  height: 1px;

  background: var(--brown);
}

.top-decoration b {
  color: var(--brown);

  font-size: 20px;
}

.small-heading {
  margin: 0;

  color: var(--brown-dark);

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 0.27em;
}

.header h1 {
  margin:
    22px
    0
    0;

  color: var(--brown);

  font-size:
    clamp(43px, 10vw, 67px);

  line-height: 0.95;

  font-weight: 800;

  letter-spacing: 0.015em;
}

.header h2 {
  margin:
    8px
    0
    2px;

  color: var(--brown-dark);

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size:
    clamp(35px, 8vw, 58px);

  line-height: 1;

  font-style: italic;

  font-weight: 600;
}

.header h3 {
  margin:
    5px
    0
    0;

  color: var(--brown);

  font-size:
    clamp(35px, 9vw, 62px);

  line-height: 1;

  font-weight: 800;

  letter-spacing: 0.02em;
}

.header-decoration {
  display: flex;

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

  gap: 18px;

  margin:
    21px
    auto
    10px;
}

.teddy {
  font-size: 63px;

  filter:
    drop-shadow(
      0 7px 7px
      rgba(72, 38, 17, 0.18)
    );
}

.mini-heart {
  color: var(--orange);

  font-size: 18px;
}

.welcome {
  width: min(100%, 510px);

  margin:
    15px
    auto
    0;

  color: var(--text);

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size: 19px;

  line-height: 1.55;
}


/* =========================================================
   RSVP CALL TO ACTION
========================================================= */

.rsvp-call {
  position: relative;

  z-index: 2;

  width: min(88%, 600px);

  margin:
    5px
    auto
    38px;

  padding:
    34px
    22px
    37px;

  text-align: center;

  border-radius: 30px;

  background:
    linear-gradient(
      145deg,
      #75401f,
      #5f3018
    );

  color: white;

  box-shadow:
    0 18px 38px
    rgba(117, 64, 31, 0.25);

  overflow: hidden;
}

.rsvp-call::before {
  content: "";

  position: absolute;

  width: 190px;
  height: 190px;

  top: -125px;
  right: -70px;

  border:
    1px solid
    rgba(255,255,255,.15);

  border-radius: 50%;
}

.rsvp-call::after {
  content: "";

  position: absolute;

  width: 140px;
  height: 140px;

  bottom: -100px;
  left: -55px;

  border-radius: 50%;

  background:
    rgba(217,120,22,.15);
}

.rsvp-sparkles {
  position: relative;

  z-index: 2;

  display: flex;

  justify-content: center;

  gap: 18px;

  color: var(--orange-light);

  font-size: 18px;
}

.rsvp-call h4 {
  position: relative;

  z-index: 2;

  margin:
    8px
    0
    7px;

  font-size:
    clamp(23px, 6vw, 31px);

  letter-spacing: 0.04em;
}

.rsvp-call p {
  position: relative;

  z-index: 2;

  margin:
    7px
    0;

  font-size: 15px;
}

.rsvp-button {
  position: relative;

  z-index: 2;

  display: inline-flex;

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

  gap: 8px;

  margin-top: 21px;

  padding:
    16px
    26px;

  border: none;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #e88a1b,
      #d46d0c
    );

  color: white;

  font-family: inherit;

  font-size: 15px;

  font-weight: 800;

  letter-spacing: 0.04em;

  cursor: pointer;

  box-shadow:
    0 8px 18px
    rgba(0,0,0,.2);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.rsvp-button:hover {
  transform:
    translateY(-3px);

  box-shadow:
    0 13px 25px
    rgba(0,0,0,.28);
}

.rsvp-button:active {
  transform:
    scale(.97);
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
  display: flex;

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

  gap: 14px;

  margin-bottom: 20px;

  grid-column: 1 / -1;
}

.section-heading span {
  width: 55px;
  height: 1px;

  background: var(--brown);
}

.section-heading h4 {
  margin: 0;

  color: var(--brown);

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size: 22px;

  font-style: italic;

  white-space: nowrap;
}


/* =========================================================
   QUICK REMINDERS — GRID
========================================================= */

.reminders {
  position: relative;

  z-index: 2;

  width: min(88%, 600px);

  margin:
    0
    auto
    35px;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}


/* =========================================================
   REMINDER CARDS
========================================================= */

.reminder-card {
  display: flex;

  align-items: flex-start;

  gap: 13px;

  margin: 0;

  min-height: 104px;

  padding: 17px;

  border:
    1px solid
    rgba(117, 64, 31, .15);

  border-radius: 17px;

  background:
    rgba(255,255,255,.72);

  box-shadow:
    0 5px 16px
    rgba(90,47,22,.045);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.reminder-card:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 8px 18px
    rgba(90,47,22,.08);
}


/* =========================================================
   LOCATION — FULL WIDTH
========================================================= */

.reminder-card:nth-of-type(4) {
  grid-column: 1 / -1;
}


/* =========================================================
   ICON
========================================================= */

.reminder-icon {
  display: grid;

  place-items: center;

  flex: 0 0 43px;

  width: 43px;
  height: 43px;

  border-radius: 50%;

  background:
    var(--brown);

  color: white;

  font-size: 19px;
}


/* =========================================================
   REMINDER TEXT
========================================================= */

.reminder-label {
  display: block;

  margin-bottom: 4px;

  color: var(--brown);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .18em;
}

.reminder-card strong {
  display: block;

  font-size: 16px;

  line-height: 1.35;
}

.reminder-card p {
  margin:
    5px
    0
    0;

  font-size: 14px;

  line-height: 1.4;
}


/* =========================================================
   DRESS CODE
========================================================= */

.dress-colors {
  display: flex;

  gap: 8px;

  margin-top: 10px;
}

.dress-color {
  width: 26px;
  height: 26px;

  border-radius: 50%;

  border:
    2px solid
    white;

  box-shadow:
    0 2px 6px
    rgba(0,0,0,.1);
}

.dress-color.brown {
  background: #8a4c24;
}

.dress-color.cream {
  background: #f3e2c5;
}

.dress-color.orange {
  background: #d97816;
}


/* =========================================================
   DEADLINE
========================================================= */

.deadline {
  position: relative;

  z-index: 2;

  width: min(88%, 600px);

  margin:
    5px
    auto
    38px;

  padding:
    26px
    20px;

  text-align: center;

  border-radius: 23px;

  background:
    #f2e0c1;

  border:
    1px solid
    rgba(117,64,31,.12);
}

.deadline-heart {
  display: block;

  margin-bottom: 6px;

  color: var(--orange);

  font-size: 21px;
}

.deadline p {
  margin:
    0
    0
    5px;

  color: var(--brown);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: .18em;
}

.deadline strong {
  display: block;

  color: var(--brown-dark);

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size: 24px;

  font-weight: 600;
}

.deadline > span:last-child {
  display: block;

  margin-top: 3px;

  font-size: 14px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
  position: relative;

  z-index: 2;

  width: min(88%, 600px);

  margin:
    0
    auto
    35px;

  text-align: center;
}

.contacts {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 12px;
}

.contacts a {
  display: flex;

  flex-direction: column;

  gap: 4px;

  padding:
    16px
    10px;

  border-radius: 16px;

  background:
    rgba(255,255,255,.7);

  border:
    1px solid
    rgba(117,64,31,.14);

  color: var(--text);

  text-decoration: none;

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.contacts a:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 7px 15px
    rgba(117,64,31,.1);
}

.contacts a span {
  color: var(--brown);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: .08em;
}

.contacts a strong {
  font-size: 14px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  position: relative;

  z-index: 2;

  padding:
    22px
    18px;

  background:
    var(--brown-dark);

  color: white;

  text-align: center;

  font-size: 14px;
}

footer p {
  margin: 0;
}


/* =========================================================
   RSVP OVERLAY
========================================================= */

.rsvp-overlay {
  position: fixed;

  inset: 0;

  z-index: 100;

  display: grid;

  place-items: center;

  padding: 18px;

  background:
    rgba(57,29,14,.74);

  backdrop-filter:
    blur(7px);

  opacity: 0;

  pointer-events: none;

  transition:
    opacity .35s ease;
}

.rsvp-overlay.open {
  opacity: 1;

  pointer-events: auto;
}


/* =========================================================
   RSVP CARD
========================================================= */

.rsvp-card {
  position: relative;

  width: min(100%, 520px);

  max-height: 92vh;

  overflow-y: auto;

  padding:
    34px
    25px;

  border-radius: 28px;

  background:
    var(--cream);

  box-shadow:
    0 30px 80px
    rgba(0,0,0,.35);

  transform:
    translateY(25px)
    scale(.94);

  transition:
    transform .4s cubic-bezier(.2,.8,.2,1);
}

.rsvp-overlay.open .rsvp-card {
  transform:
    translateY(0)
    scale(1);
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.close-rsvp {
  position: absolute;

  top: 11px;
  right: 15px;

  width: 38px;
  height: 38px;

  border: none;

  border-radius: 50%;

  background:
    rgba(117,64,31,.08);

  color: var(--brown);

  font-size: 28px;

  line-height: 1;

  cursor: pointer;
}


/* =========================================================
   FORM HEADER
========================================================= */

.form-decoration {
  margin-bottom: 6px;

  font-size: 40px;

  text-align: center;
}

.form-kicker {
  margin: 0;

  color: var(--brown);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .16em;

  text-align: center;
}

.rsvp-card h4 {
  margin:
    8px
    0
    8px;

  color: var(--brown);

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size: 39px;

  font-style: italic;

  text-align: center;
}

.form-intro {
  width: 90%;

  margin:
    0
    auto
    24px;

  text-align: center;

  font-size: 14px;

  line-height: 1.5;
}


/* =========================================================
   FORM
========================================================= */

.rsvp-card form {
  display: grid;

  gap: 20px;
}

.form-group {
  display: grid;

  gap: 8px;
}

.form-group label,
fieldset legend {
  color: var(--text);

  font-size: 14px;

  font-weight: 700;
}

.rsvp-card input[type="text"],
.rsvp-card input[type="number"] {
  width: 100%;

  padding:
    14px;

  border:
    1px solid
    rgba(117,64,31,.25);

  border-radius: 13px;

  background:
    white;

  color:
    var(--text);

  font-family:
    inherit;

  font-size: 15px;

  outline: none;

  transition:
    border .2s ease,
    box-shadow .2s ease;
}

.rsvp-card input:focus {
  border-color:
    var(--orange);

  box-shadow:
    0 0 0 3px
    rgba(217,120,22,.12);
}


/* =========================================================
   RADIO OPTIONS
========================================================= */

fieldset {
  margin: 0;

  padding: 0;

  border: 0;
}

fieldset legend {
  margin-bottom: 9px;
}

.radio-option {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 9px;

  padding:
    14px;

  border-radius: 13px;

  background:
    white;

  cursor: pointer;

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.radio-option:hover {
  transform:
    translateY(-1px);

  box-shadow:
    0 4px 12px
    rgba(117,64,31,.08);
}

.radio-option input {
  accent-color:
    var(--brown);
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.submit-rsvp {
  width: 100%;

  padding:
    15px;

  border: none;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #e5891c,
      #d36e0d
    );

  color: white;

  font-family: inherit;

  font-size: 15px;

  font-weight: 800;

  letter-spacing: .05em;

  cursor: pointer;

  box-shadow:
    0 8px 18px
    rgba(0,0,0,.17);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.submit-rsvp:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 12px 22px
    rgba(0,0,0,.22);
}


/* =========================================================
   SUCCESS SCREEN
========================================================= */

.success-screen {
  padding:
    10px
    5px
    5px;

  text-align: center;
}

.success-teddy {
  margin-bottom: 10px;

  font-size: 75px;

  filter:
    drop-shadow(
      0 8px 8px
      rgba(72,38,17,.18)
    );
}

.success-screen h4 {
  margin:
    5px
    0
    15px;

  font-family:
    "DM Sans",
    Arial,
    sans-serif;

  font-size:
    clamp(23px, 6vw, 30px);

  font-style: normal;

  line-height: 1.2;
}

.success-divider {
  display: flex;

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

  gap: 12px;

  color: var(--orange);

  font-size: 17px;
}

.success-divider span {
  width: 55px;
  height: 1px;

  background: var(--brown);
}

.success-screen p {
  margin:
    16px
    0
    0;

  color: var(--brown);

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size: 24px;

  font-style: italic;
}


/* =========================================================
   CELEBRATION EXPLOSION
========================================================= */

.celebration-layer {
  position: fixed;

  inset: 0;

  z-index: 200;

  pointer-events: none;

  overflow: hidden;
}

.celebration-flash {
  position: absolute;

  inset: 0;

  background:
    var(--cream);

  opacity: 0;

  animation:
    celebration-flash
    .55s
    ease-out
    forwards;
}

.confetti {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 10px;
  height: 17px;

  border-radius: 3px;

  opacity: 1;

  animation:
    confetti-explode
    1.7s
    cubic-bezier(.12,.7,.3,1)
    forwards;
}

.explosion-heart {
  position: absolute;

  left: 50%;
  top: 50%;

  color: var(--orange);

  font-size: 24px;

  animation:
    heart-explode
    1.7s
    cubic-bezier(.12,.7,.3,1)
    forwards;
}

.explosion-star {
  position: absolute;

  left: 50%;
  top: 50%;

  color: var(--brown);

  font-size: 21px;

  animation:
    heart-explode
    1.6s
    cubic-bezier(.12,.7,.3,1)
    forwards;
}

.party-balloon {
  position: absolute;

  left: 50%;
  top: 52%;

  width: 64px;
  height: 82px;

  border-radius:
    50%
    50%
    47%
    47%;

  box-shadow:
    inset -10px -10px 15px
    rgba(0,0,0,.13),
    inset 8px 8px 10px
    rgba(255,255,255,.2);

  animation:
    balloon-explode
    2s
    cubic-bezier(.12,.7,.3,1)
    forwards;
}

.party-balloon::after {
  content: "";

  position: absolute;

  left: 50%;
  top: 78px;

  width: 1px;
  height: 130px;

  background:
    rgba(117,64,31,.4);
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes celebration-flash {

  0% {
    opacity: .85;
  }

  100% {
    opacity: 0;
  }

}

@keyframes confetti-explode {

  0% {
    transform:
      translate(-50%, -50%)
      scale(.3)
      rotate(0deg);

    opacity: 1;
  }

  100% {
    transform:
      translate(
        calc(-50% + var(--x)),
        calc(-50% + var(--y))
      )
      scale(1)
      rotate(var(--rotation));

    opacity: 0;
  }

}

@keyframes heart-explode {

  0% {
    transform:
      translate(-50%, -50%)
      scale(.2);

    opacity: 1;
  }

  100% {
    transform:
      translate(
        calc(-50% + var(--x)),
        calc(-50% + var(--y))
      )
      scale(1.3)
      rotate(var(--rotation));

    opacity: 0;
  }

}

@keyframes balloon-explode {

  0% {
    transform:
      translate(-50%, -50%)
      scale(.15);

    opacity: 1;
  }

  100% {
    transform:
      translate(
        calc(-50% + var(--x)),
        calc(-50% + var(--y))
      )
      rotate(var(--rotation))
      scale(1);

    opacity: 0;
  }

}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 560px) {

  .header {
    padding:
      48px
      20px
      25px;
  }

  .header h1 {
    font-size:
      clamp(38px, 11vw, 55px);
  }

  .header h2 {
    font-size:
      clamp(31px, 9vw, 48px);
  }

  .header h3 {
    font-size:
      clamp(31px, 10vw, 50px);
  }

  .welcome {
    font-size: 17px;
  }

  .rsvp-call {
    padding:
      30px
      18px
      33px;
  }

  .rsvp-button {
    width: 100%;

    font-size: 14px;
  }

  .section-heading h4 {
    font-size: 20px;
  }


  /* Mobile reminder grid */

  .reminders {
    grid-template-columns: 1fr;
  }

  .reminder-card:nth-of-type(4) {
    grid-column: auto;
  }


  .contacts {
    grid-template-columns: 1fr;
  }

  .rsvp-card {
    padding:
      31px
      20px;
  }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

  .header h1 {
    font-size: 36px;
  }

  .header h2 {
    font-size: 30px;
  }

  .header h3 {
    font-size: 31px;
  }

  .teddy {
    font-size: 55px;
  }

  .rsvp-call h4 {
    font-size: 22px;
  }

  .reminder-card {
    padding: 14px;
  }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before {
    animation-duration: .01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: .01ms !important;
  }

}
/* =========================================================
   RSVP DROPDOWN
========================================================= */

.rsvp-card select {
  display: block;
  width: 100%;
  height: 48px;

  padding: 0 14px;

  border: 1px solid rgba(117, 64, 31, 0.25);
  border-radius: 13px;

  background: #ffffff;
  color: var(--text);

  font-family: inherit;
  font-size: 15px;

  box-sizing: border-box;
  outline: none;

  cursor: pointer;
}


/* =========================================================
   RSVP COMMENTS
========================================================= */

.rsvp-card textarea {
  display: block;
  width: 100%;
  height: 110px;

  padding: 14px;

  border: 1px solid rgba(117, 64, 31, 0.25);
  border-radius: 13px;

  background: #ffffff;
  color: var(--text);

  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;

  box-sizing: border-box;
  outline: none;

  resize: vertical;
}


/* =========================================================
   FOCUS
========================================================= */

.rsvp-card select:focus,
.rsvp-card textarea:focus {
  border-color: var(--orange);

  box-shadow:
    0 0 0 3px rgba(217, 120, 22, 0.12);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.rsvp-card textarea::placeholder {
  color: #8d8883;
  opacity: 1;
}