/* ==============================
CLOSING / THANK YOU
================================= */
.thankyou-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 60px 20px;
  text-align: center;
  background:
    linear-gradient(
      to bottom,
      rgba(230, 170, 180, 0.92) 0%,
      rgba(230, 170, 180, 0.82) 22%,
      rgba(230, 170, 180, 0.62) 48%,
      rgba(230, 170, 180, 0.48) 72%,
      rgba(230, 170, 180, 0.58) 100%
    ),
    url("background1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =================================
SOFT BACKGROUND GLOW
================================= */
.thankyou-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(255, 255, 255, 0.45),
      transparent 55%
    );
  z-index: 0;
}

/* =================================
CONTAINER
================================= */
.thankyou-section .container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* =================================
CLOSING ORNAMENT BASE
================================= */
.closing-ornament {
  position: absolute;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 2;
  opacity: 1;
  will-change: transform;
}

/* =================================
FLOWER LEFT
================================= */
.closing-flower-left {
  width: 74%;
  max-width: 320px;
  left: -24%;
  bottom: -7%;
  transform-origin: left bottom;
}

/* =================================
FLOWER RIGHT
================================= */
.closing-flower-right {
  width: 74%;
  max-width: 320px;
  right: 48%;
  bottom: -7%;
  transform:
    scaleX(-1);
  transform-origin: right bottom;
}

/* =================================
FLOWER MIDDLE LEFT
================================= */
.closing-flower-middle-left {
  width: 68%;
  max-width: 290px;
  top: 59%;
  left: -29%;
  transform:
    translateY(-50%);
  transform-origin: left center;
}

/* =================================
FLOWER MIDDLE RIGHT
================================= */
.closing-flower-middle-right {
  width: 68%;
  max-width: 290px;
  top: 59%;
  right: 39%;
  transform:
    translateY(-50%)
    scaleX(-1);
  transform-origin: right center;
}

/* =================================
FLOWER MIDDLE LEFT UPPER
================================= */
.closing-flower-middle-left-upper {
  width: 68%;
  max-width: 290px;
  top: 25%;
  left: 38%;
  transform:
    translateY(-50%)
    scaleX(-1);
  transform-origin: left center;
}

/* =================================
FLOWER MIDDLE RIGHT UPPER
================================= */
.closing-flower-middle-right-upper {
  width: 68%;
  max-width: 290px;
  top: 25%;
  right: -30%;
  transform:
    translateY(-50%);
  transform-origin: right center;
}

/* =================================
BOTTOM FLOWER LEFT
================================= */
.closing-flower-bottom-left {
  width: 62%;
  max-width: 270px;
  bottom: -18%;
  left: 5%;
  transform-origin: center bottom;
}

/* =================================
BOTTOM FLOWER RIGHT
================================= */
.closing-flower-bottom-right {
  width: 62%;
  max-width: 270px;
  bottom: -18%;
  right: 5%;
  transform:
    scaleX(-1);
  transform-origin: center bottom;
}

/* =================================
CLOSING PANEL
================================= */
.closing-panel {
  position: relative;
  width: 390px;
  min-height: 750px;
  margin-left: auto;
  margin-right: auto;
  padding: 15px 10px 48px;
  border-radius:
    310px 310px 34px 34px;
  background:
    rgba(250, 240, 225, 0.68);
  border:
    1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 5;
}

/* =================================
PHOTO FRAME
================================= */
.closing-photo-frame {
  position: relative;
  width: min(100%, 520px);
  height: 500px;
  margin: 0 auto 38px;
  overflow: hidden;
  border-radius:
    260px 260px 26px 26px;
  border:
    5px solid rgba(255, 255, 255, 0.95);
  outline:
    1px solid rgba(191, 154, 95, 0.55);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.12);
  background: #f5e8e8;
}

/* =================================
PHOTO
================================= */
.closing-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* =================================
DESCRIPTION
================================= */
.thankyou-section p {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin: 0 auto;
  font-family: "Montserrat", sans-serif;
  font-size: 0.94rem;
  line-height: 2;
  color: var(--text-light);
}

/* =================================
COUPLE NAME
================================= */
.thankyou-section h2 {
  position: relative;
  z-index: 2;
  margin: 42px 0 0;
  font-family: "Pinyon Script", cursive;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
}

/* =================================
AMPERSAND
================================= */
.thankyou-section h2 span {
  display: inline-block;
  margin: 0 0.25rem;
  color: var(--gold);
}

/* =======================================================
FOOTER
========================================================== */
.footer {
  padding: 2rem 1.5rem;
  background: var(--background-soft);
  text-align: center;
  border-top: 1px solid var(--border);
  line-height: 1.8;
}

.footer p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer p + p {
  margin-top: 0.35rem;
}