:root {
  --bg-primary: #ece6df;
  --bg-secondary: #f3eee8;
  --accent-primary: #9fb29a;
  --accent-title: #8fa085;
  --accent-secondary: #a9a39b;
  --accent-beige: #d3c6bb;
  --text-dark: #24221f;
  --off-white: #f4eee6;

  --font-display: "Imperial Script", cursive;
  --font-body: "Lato", sans-serif;
  --font-script: "Cinzel", serif;

  --bs-body-bg: #faf7f1;
  --bs-body-color: #24221f;
  --bs-primary: #b7c2a8;
  --bs-secondary: #afa89d;
  --hero-header-height: clamp(56px, 7vw, 74px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
}

h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
}

h3 {
  font-size: clamp(2.1rem, 4.7vw, 3.5rem);
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--hero-header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Eyebrow */
.hero-eyebrow-band {
  width: 100%;
  background: var(--accent-primary);
  border-top: 1px solid rgba(143, 160, 133, 0.45);
  border-bottom: 1px solid rgba(143, 160, 133, 0.45);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.52rem 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.84rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 0;
}

.hero-eyebrow .line {
  width: 48px;
  height: 1px;
  background: rgba(250, 247, 241, 0.75);
  opacity: 1;
}

/* Two-column hero layout */
.hero-grid {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}

.hero-couple-frame {
  position: relative;
  width: min(100%, 620px);
  padding: clamp(3rem, 6.4vw, 4.6rem) clamp(1.4rem, 3.4vw, 2.4rem);
  border-radius: 1rem;
  background: rgba(250, 247, 241, 0.78);
  border: 0;
  box-shadow: 0 20px 38px -30px rgba(36, 34, 31, 0.42);
  overflow: hidden;
}

.hero-couple-pampas {
  position: absolute;
  width: clamp(170px, 20vw, 240px);
  height: auto;
  max-width: none;
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
}

.hero-couple-pampas--top-left {
  top: 0;
  left: 0;
  transform: none;
}

.hero-couple-pampas--bottom-right {
  right: 0;
  bottom: 0;
  transform: none;
}

.hero-names {
  text-align: center;
  line-height: 0.95;
}

.hero-names .name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.1rem, 8.2vw, 5.6rem);
  color: var(--text-dark);
  display: block;
  line-height: 1;
  letter-spacing: 0.01em;
}

.hero-names .amp {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--accent-title);
  display: block;
  line-height: 1;
  margin: 0.4rem 0;
}

/* Photo frame with organic mask */
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  background: var(--off-white);
  border-radius: 38% 62% 58% 42% / 30% 34% 66% 70%;
  overflow: hidden;
  border: 1px solid rgba(183, 194, 168, 0.14);
  box-shadow: 0 30px 60px -25px rgba(36, 34, 31, 0.35);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Date subtitle */
.hero-date {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-left: 0.45em;
}

.hero-date .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: inline-block;
  transform: translateY(-2px);
}

.hero-date .dash {
  color: var(--accent-primary);
  opacity: 0.7;
  transform: translateY(-1px);
  display: inline-block;
}

/* ============== INTRO LETTER ============== */
.intro-letter-section {
  background: var(--off-white);
}

.intro-letter-wrap {
  max-width: 760px;
  padding: clamp(1.2rem, 3.2vw, 2.1rem) clamp(0.8rem, 2vw, 1.4rem);
  border-radius: 1rem;
}

.section-kicker {
  position: relative;
  margin-top: clamp(4.8rem, 9.5vw, 6.4rem);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.7rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent-title);
}

.section-kicker::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 1.25rem);
  transform: translateX(-50%);
  width: clamp(250px, 42vw, 380px);
  height: clamp(80px, 13vw, 124px);
  background: url("../img/pampas.png") center / contain no-repeat;
  opacity: 0.8;
  pointer-events: none;
}

.section-kicker--plain::before {
  content: none;
}

.section-kicker .line {
  width: 44px;
  height: 1px;
  background: var(--accent-title);
  opacity: 0.55;
}

.section-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.7rem, 5.8vw, 4.9rem);
  line-height: 0.95;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.section-description {
  max-width: 680px;
  margin: 1rem auto 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
  font-weight: 300;
  color: rgba(36, 34, 31, 0.78);
  text-align: center;
}

.section-description.is-left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.intro-letter-text {
  margin-top: 1rem;
}

.intro-letter-text p {
  margin: 0;
}

.intro-letter-text p:last-child {
  margin-bottom: 0;
}

.intro-letter-signature {
  margin-top: 1.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--accent-primary);
  line-height: 1;
}

/* ============== PROGRAM ============== */
.program-section {
  background: var(--off-white);
}

.program-head {
  max-width: 760px;
}

.program-layout {
  margin-top: clamp(0.8rem, 2vw, 1.4rem);
}

.program-timeline {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding-left: 2.2rem;
}

.program-timeline::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 1px;
  background: rgba(142, 89, 66, 0.4);
}

.program-item {
  position: relative;
  padding-bottom: 0.45rem;
}

.program-marker {
  position: absolute;
  left: -1.92rem;
  top: 0.38rem;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  background: var(--off-white);
  border: 1px solid rgba(142, 89, 66, 0.62);
  box-shadow: 0 0 0 4px rgba(175, 149, 131, 0.44);
}

.program-time,
.program-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8e5942;
}

.program-time {
  margin: 0;
  padding-left: 0.28em;
  display: inline;
}

.program-title {
  margin: 0 0 0 0.6rem;
  display: inline;
}

.program-text {
  margin: 0.5rem 0 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(36, 34, 31, 0.77);
}

.program-note {
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(36, 34, 31, 0.7);
  font-style: italic;
}

/* ============== LOCATION ============== */
.location-section {
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

.location-section .container {
  position: relative;
  z-index: 1;
}

.location-section-head {
  text-align: center;
}

.location-address {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-title);
  opacity: 0.82;
}

.location-photo-frame {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 32% 68% 61% 39% / 30% 37% 63% 70%;
  box-shadow: 0 28px 58px -30px rgba(36, 34, 31, 0.42);
  border: 1px solid rgba(183, 194, 168, 0.1);
  background: rgba(250, 247, 241, 0.7);
}

.location-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location-content {
  max-width: 560px;
  margin: 0 auto;
}

.location-map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(183, 194, 168, 0.16);
  box-shadow: 0 18px 42px -28px rgba(36, 34, 31, 0.5);
  background: var(--off-white);
}

.location-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.location-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(183, 194, 168, 0.42);
  background: var(--off-white);
  color: var(--accent-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.location-section .location-btn {
  background: var(--accent-primary);
  color: var(--off-white);
  border-color: var(--accent-primary);
}

.location-btn:hover {
  background: var(--accent-primary);
  color: var(--off-white);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.location-section .location-btn:hover {
  background: var(--accent-title);
  border-color: var(--accent-title);
}

@media (max-width: 991px) {
  .location-photo-frame {
    max-width: 720px;
  }

  .location-content {
    max-width: 720px;
  }
}

/* ============== DRESS CODE ============== */
.dresscode-section {
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

.dresscode-section .container {
  position: relative;
  z-index: 1;
}

.dresscode-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.dresscode-column-text {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.1vw, 1rem);
  line-height: 1.75;
  color: rgba(36, 34, 31, 0.76);
}

.dresscode-layout {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  align-items: start;
}

.dresscode-palette {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.1vw, 0.9rem);
  justify-items: center;
}

.dresscode-swatch {
  width: clamp(28px, 3.2vw, 40px);
  height: clamp(28px, 3.2vw, 40px);
  border-radius: 50%;
  box-shadow:
    0 12px 24px -18px rgba(36, 34, 31, 0.46),
    inset 0 0 0 1px rgba(36, 34, 31, 0.13);
  filter: saturate(0.88);
}

.swatch-1 {
  background: #777575;
}
.swatch-2 {
  background: #9fa2a1;
}
.swatch-3 {
  background: #b8b3b1;
}
.swatch-4 {
  background: #cdc6c3;
}
.swatch-5 {
  background: #d7d0c6;
}
.swatch-6 {
  background: #ddd8ce;
}
.swatch-7 {
  background: #d4cec3;
}
.swatch-8 {
  background: #d6d3c0;
}
.swatch-9 {
  background: #4b668f;
}
.swatch-10 {
  background: #8cb3d3;
}
.swatch-11 {
  background: #447bac;
}
.swatch-12 {
  background: #6093c5;
}
.swatch-13 {
  background: #4f7ca6;
}
.swatch-14 {
  background: #5f819f;
}
.swatch-15 {
  background: #97b5d1;
}
.swatch-16 {
  background: #9ebbd5;
}
.swatch-17 {
  background: #2f6662;
}
.swatch-18 {
  background: #4f7f74;
}
.swatch-19 {
  background: #638791;
}
.swatch-20 {
  background: #6f9ea5;
}
.swatch-21 {
  background: #7ca695;
}
.swatch-22 {
  background: #7ea694;
}
.swatch-23 {
  background: #87ae84;
}
.swatch-24 {
  background: #a2b49a;
}
.swatch-25 {
  background: #586674;
}
.swatch-26 {
  background: #4e5f72;
}
.swatch-27 {
  background: #7d8aa6;
}
.swatch-28 {
  background: #6f7597;
}
.swatch-29 {
  background: #9b92b4;
}
.swatch-30 {
  background: #8a96b8;
}
.swatch-31 {
  background: #a594b8;
}
.swatch-32 {
  background: #bb8fac;
}
.swatch-33 {
  background: #6d495f;
}
.swatch-34 {
  background: #7f5469;
}
.swatch-35 {
  background: #b27b95;
}
.swatch-36 {
  background: #bc8ca6;
}
.swatch-37 {
  background: #d0abbd;
}
.swatch-38 {
  background: #c9abb8;
}
.swatch-39 {
  background: #be7d96;
}
.swatch-40 {
  background: #c95c7f;
}
.swatch-41 {
  background: #e18995;
}
.swatch-42 {
  background: #b27a7f;
}
.swatch-43 {
  background: #c58d90;
}
.swatch-44 {
  background: #be8a8b;
}
.swatch-45 {
  background: #e0a4a8;
}
.swatch-46 {
  background: #e2b7b8;
}
.swatch-47 {
  background: #e4a1a5;
}
.swatch-48 {
  background: #ecc4c0;
}
.swatch-49 {
  background: #cfbb7a;
}
.swatch-50 {
  background: #d9c88a;
}
.swatch-51 {
  background: #d7c08a;
}
.swatch-52 {
  background: #dfdacb;
}
.swatch-53 {
  background: #7f766f;
}
.swatch-54 {
  background: #8b8b82;
}
.swatch-55 {
  background: #7d8177;
}
.swatch-56 {
  background: #bbb7b2;
}

.dresscode-subheading {
  margin: 1.35rem 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--);
  padding-left: 0.26em;
}

.dresscode-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.2rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.1vw, 1rem);
  line-height: 1.72;
  color: rgba(36, 34, 31, 0.78);
}

.dresscode-list li {
  position: relative;
  padding-left: 1.5rem;
}

.dresscode-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 0.95rem;
  color: rgba(183, 194, 168, 0.72);
}

.dresscode-list--yes li::before {
  content: "✓";
  color: #879b86;
}

.dresscode-list--no li::before {
  content: "✕";
  color: #cfa6a0;
}

@media (max-width: 991px) {
  .dresscode-guidelines {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .dresscode-palette {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .dresscode-swatch {
    width: clamp(22px, 6.3vw, 30px);
    height: clamp(22px, 6.3vw, 30px);
  }

  .section-kicker {
    gap: 0.7rem;
    letter-spacing: 0.36em;
  }

  .section-kicker .line {
    width: 28px;
  }

  .section-kicker::before {
    width: clamp(190px, 56vw, 270px);
    height: clamp(64px, 18vw, 92px);
  }
}

@media (max-width: 767px) {
  .hero-couple-frame {
    width: min(100%, 430px);
    padding: 2.4rem 1rem;
  }

  .hero-couple-pampas {
    width: 45%;
  }

  .hero-photo {
    max-width: 280px;
    margin-top: 2.5rem;
    aspect-ratio: 4 / 5;
    border-radius: 42% 58% 61% 39% / 32% 36% 64% 68%;
  }
  .hero-names .name {
    font-size: clamp(2.5rem, 12.8vw, 4rem);
  }
}

/* ============== ENVELOPE OPENING ============== */
.envelope-overlay {
  --env-back: #c8d8c3;
  --env-border: rgba(103, 129, 103, 0.42);
  --env-left: #bdd0b8;
  --env-right: #b6cbb1;
  --env-bottom: #bdd0b8;
  --env-top-front: #d0e0ca;
  --env-top-inner: #9bb591;
  --sheet-paper: #faf7f1;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.envelope-overlay.is-hidden {
  display: none;
}

.envelope-stage {
  position: relative;
  width: min(700px, 90vw);
  aspect-ratio: 16 / 10;
  perspective: 2200px;
}

.envelope-layer {
  position: absolute;
}

.envelope-back {
  top: 8%;
  left: 10%;
  width: 80%;
  height: 76%;
  border-radius: 0.6rem;
  background: var(--env-back);
  border: 1px solid var(--env-border);
  box-shadow:
    inset 0 1px 0 rgba(250, 247, 241, 0.34),
    0 10px 22px rgba(36, 34, 31, 0.08);
}

.paper-sheet {
  --sheet-scale: 0.3;
  position: absolute;
  top: 21.5%;
  left: 20%;
  width: 60%;
  height: 56%;
  z-index: 2;
  overflow: hidden;
  border-radius: 0.3rem;
  border: 1px solid rgba(175, 168, 157, 0.25);
  background: var(--sheet-paper);
  box-shadow: 0 12px 28px rgba(36, 34, 31, 0.13);
  opacity: 0;
  pointer-events: none;
}

.paper-sheet > .site-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  background: var(--bg-primary);
  transform: scale(var(--sheet-scale));
  transform-origin: top left;
}

.envelope-side {
  top: 8%;
  width: calc(40% + 2px);
  height: 76%;
  border: 1px solid var(--env-border);
  box-shadow: inset 0 0 18px rgba(36, 34, 31, 0.05);
}

.envelope-left {
  left: 10%;
  z-index: 3;
  clip-path: polygon(-1% -1%, 101% 47%, -1% 101%);
  background: var(--env-left);
}

.envelope-right {
  right: 10%;
  z-index: 4;
  clip-path: polygon(101% -1%, -1% 47%, 101% 101%);
  background: var(--env-right);
}

.envelope-bottom {
  top: calc(44% - 1px);
  left: calc(10% - 1px);
  width: calc(80% + 2px);
  height: calc(40% + 2px);
  z-index: 5;
  clip-path: polygon(-1% 101%, 50% -1%, 101% 101%);
  background: var(--env-bottom);
  border: 1px solid var(--env-border);
  box-shadow: 0 -8px 12px rgba(36, 34, 31, 0.06);
}

.envelope-top {
  top: 8%;
  left: 10%;
  width: 80%;
  height: 36%;
  z-index: 6;
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
  will-change: transform;
}

.envelope-top::before,
.envelope-top::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  border: 1px solid var(--env-border);
  backface-visibility: hidden;
}

.envelope-top::before {
  background: var(--env-top-front);
}

.envelope-top::after {
  transform: rotateX(180deg) scaleY(-1);
  background: var(--env-top-inner);
}

.seal {
  position: absolute;
  top: 47.5%;
  left: 50%;
  z-index: 7;
  transform: translate(-50%, -50%);
  appearance: none;
  padding: 0;
  width: 6.6rem;
  height: 6.6rem;
  border: 0;
  border-radius: 50%;
  background: url("../img/sigillo.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
  will-change: opacity;
}

.seal .seal-amp {
  font-size: 0.62em;
  display: inline-block;
  margin: 0 0.1em;
  transform: translateY(-0.04em);
}

.envelope-hint {
  position: absolute;
  left: 50%;
  bottom: 2%;
  z-index: 8;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .envelope-stage {
    width: 88vw;
    height: 88vh;
    aspect-ratio: auto;
  }

  .envelope-back {
    top: 11%;
    left: 8%;
    width: 84%;
    height: 73%;
  }

  .paper-sheet {
    top: 16%;
    left: 50%;
    width: 78vw;
    margin-left: -39vw;
    height: 78vh;
    max-height: 78vh;
    border-radius: 0.4rem;
  }

  .envelope-side {
    top: 11%;
    width: calc(42% + 6px);
    height: calc(73% + 4px);
  }

  .envelope-left {
    left: calc(8% - 3px);
    clip-path: polygon(-2% -2%, 102% 47%, -2% 102%);
  }

  .envelope-right {
    right: calc(8% - 3px);
    clip-path: polygon(102% -2%, -2% 47%, 102% 102%);
  }

  .envelope-bottom {
    top: calc(48% - 2px);
    left: calc(8% - 3px);
    width: calc(84% + 6px);
    height: calc(36% + 6px);
    clip-path: polygon(-2% 102%, 50% -2%, 102% 102%);
  }

  .envelope-top {
    top: 11%;
    left: 8%;
    width: 84%;
    height: 32%;
  }

  .seal {
    top: 47.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5.6rem;
    height: 5.6rem;
  }

  .envelope-hint {
    bottom: 1.2%;
    font-size: 0.68rem;
    letter-spacing: 0.3em;
  }
}

@media (max-width: 480px) {
  .envelope-stage {
    width: 88vw;
    height: 88vh;
    aspect-ratio: auto;
  }

  .paper-sheet {
    left: 50%;
    width: 88%;
    margin-left: -44%;
    top: 16%;
    height: 78vh;
    max-height: 78vh;
  }

  .seal {
    width: 5.1rem;
    height: 5.1rem;
  }
}

/* ============== GIFT TRIP ============== */
.gift-trip-section {
  position: relative;
  background: var(--off-white);
  overflow: hidden;
}

.gift-trip-section .container {
  position: relative;
  z-index: 1;
}

.gift-trip-layout {
  margin-top: 0.2rem;
}

.gift-trip-intro {
  max-width: 900px;
}

.gift-trip-photo-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 34% 66% 57% 43% / 34% 36% 64% 66%;
  overflow: hidden;
  border: 1px solid rgba(183, 194, 168, 0.14);
  box-shadow: 0 24px 52px -30px rgba(36, 34, 31, 0.36);
  background: rgba(250, 247, 241, 0.8);
}

.gift-trip-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  max-width: 640px;
  margin: 0 auto;
}

.gift-trip-photo-frame-korea {
  aspect-ratio: 4 / 5;
  border-radius: 62% 38% 45% 55% / 46% 58% 42% 54%;
}

.gift-trip-photo-frame-japan {
  aspect-ratio: 4 / 5;
  border-radius: 44% 56% 58% 42% / 35% 40% 60% 65%;
  transform: translateY(0.8rem);
}

.gift-trip-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gift-trip-content {
  max-width: 560px;
  margin: 0 auto;
}

.gift-trip-text {
  font-family: var(--font-body);
  font-size: clamp(0.99rem, 1.26vw, 1.08rem);
  line-height: 1.82;
  color: rgba(36, 34, 31, 0.78);
}

.gift-trip-text p {
  margin: 0 0 1.12rem;
}

.gift-trip-bank {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(183, 194, 168, 0.18);
  border-radius: 1rem;
  background: rgba(250, 247, 241, 0.6);
}

.gift-trip-bank-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  padding-left: 0.2em;
}

.gift-trip-iban-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.gift-trip-iban {
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 0.55rem;
  background: transparent;
  border: 1px solid rgba(175, 168, 157, 0.24);
  font-family: var(--font-body);
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  color: var(--text-dark);
}

.gift-trip-copy {
  margin-top: 0;
  background: var(--accent-primary);
  color: var(--off-white);
  border-color: var(--accent-primary);
}

.gift-trip-copy:hover {
  background: var(--accent-title);
  color: var(--off-white);
  border-color: var(--accent-title);
}

.gift-trip-account {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.65;
  color: rgba(36, 34, 31, 0.8);
}

@media (max-width: 991px) {
  .gift-trip-photos {
    max-width: 720px;
    gap: 1rem;
  }

  .gift-trip-photo-frame-japan {
    transform: translateY(0.4rem);
  }
}

@media (max-width: 575px) {
  .gift-trip-photos {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 0.9rem;
  }

  .gift-trip-photo-frame,
  .gift-trip-photo-frame-korea,
  .gift-trip-photo-frame-japan {
    max-width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 32% 68% 61% 39% / 30% 37% 63% 70%;
    transform: none;
  }

  .gift-trip-photo-frame-japan {
    transform: none;
  }

  .gift-trip-bank {
    padding: 0.9rem;
  }

  .gift-trip-iban {
    width: 100%;
    text-align: center;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
  }

  .gift-trip-copy {
    width: 100%;
  }
}

/* ============== RSVP ============== */
.rsvp-section {
  background: var(--bg-primary);
}

.rsvp-intro {
  max-width: 760px;
}

.rsvp-form {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.2rem, 2.8vw, 2rem);
  background: rgba(250, 247, 241, 0.78);
  border: 1px solid rgba(36, 34, 31, 0.1);
  border-radius: 1.6rem;
  box-shadow: 0 22px 48px -34px rgba(36, 34, 31, 0.35);
}

.rsvp-form .form-label {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-title);
  font-weight: bold;
}

.rsvp-form .form-control,
.rsvp-form .form-select {
  border-radius: 999px;
  border: 1px solid rgba(36, 34, 31, 0.18);
  background: #ffffff;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.3;
  min-height: 3rem;
  padding: 0.65rem 1rem;
}

.rsvp-form .form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' fill='none' stroke='%23A0522D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 14px 14px;
}

.rsvp-form textarea.form-control {
  border-radius: 1.15rem;
  min-height: 7.5rem;
  resize: vertical;
  padding: 0.9rem 1rem;
}

.rsvp-form .form-control:focus,
.rsvp-form .form-select:focus {
  border-color: rgba(183, 194, 168, 0.4);
  box-shadow: 0 0 0 0.22rem rgba(183, 194, 168, 0.1);
}

.rsvp-submit-btn {
  width: 100%;
  border: 1px solid rgba(183, 194, 168, 0.55);
  background: var(--accent-primary);
  color: var(--off-white);
}

.rsvp-submit-btn:hover {
  background: var(--accent-title);
  color: var(--off-white);
  border-color: var(--accent-title);
}

.rsvp-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.rsvp-submit-btn.is-success,
.rsvp-submit-btn.is-success:hover {
  opacity: 1;
  background: #8fa085;
  color: var(--off-white);
  border-color: #8fa085;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.toast-container {
  z-index: 1100;
}

.rsvp-toast {
  min-width: min(92vw, 420px);
  border-radius: 1.05rem;
  border: 1px solid rgba(36, 34, 31, 0.14);
  box-shadow: 0 22px 40px -22px rgba(36, 34, 31, 0.65);
  background: rgba(250, 247, 241, 0.98);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
}

.rsvp-toast .toast-body {
  padding: 0.95rem 1rem;
}

.rsvp-toast.is-success {
  color: #6f8367;
  border-color: rgba(111, 140, 104, 0.45);
  background: rgba(226, 239, 222, 0.95);
}

.rsvp-toast.is-error {
  color: #6f5f54;
  border-color: rgba(183, 194, 168, 0.45);
  background: rgba(245, 224, 214, 0.95);
}

.rsvp-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(143, 160, 133, 0),
    rgba(143, 160, 133, 0.24),
    rgba(143, 160, 133, 0)
  );
}

.rsvp-subtitle {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-title);
  font-weight: 700;
}

.rsvp-helper-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(36, 34, 31, 0.72);
}
