:root {
  --lavender: #b8a3d4;
  --lavender-light: #f1ebf8;
  --lavender-deep: #79609d;
  --lavender-mid: #9d84c0;
  --lavender-hero: #352555;
  --emerald: #145d3f;
  --emerald-mid: #1f7a56;
  --emerald-dark: #0c4731;
  --emerald-glow: rgba(20, 93, 63, 0.12);
  --gold: #c2a06a;
  --gold-warm: #d2b483;
  --gold-pale: #f9f2e5;
  --cream: #fdfaf6;
  --dark: #241739;
  --text: #2a2238;
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Cormorant Garamond', 'Georgia', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--cream);
  font-family: var(--font-body);
  color: var(--text);
  overflow-x: hidden;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background-color: var(--emerald-dark);
  background-image: url('YOUR_PHOTO_HERE.jpg');
  background-size: cover;
  background-position: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 40px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 40, 26, 0.25) 0%,
    rgba(10, 40, 26, 0.55) 60%,
    rgba(10, 40, 26, 0.75) 100%
  );
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 64, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hero::after {
  content: '';
  position: absolute;
  width: 850px;
  height: 850px;
  border-radius: 50%;
  border: 1px solid rgba(155, 135, 194, 0.14);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
}

.hero-ornament {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 12px;
  margin-bottom: 36px;
  opacity: 0.7;
}

.hero-invitation {
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 40px;
}

.hero-names {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 20px;
}

.hero-names em {
  font-style: italic;
  color: var(--lavender);
}

.hero-amp {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-style: italic;
  color: var(--gold);
  display: block;
  margin: 10px 0;
}

.hero-date-wrap {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.hero-date-line {
  width: 80px;
  height: 1px;
  background: rgba(201, 168, 76, 0.3);
}

.hero-date {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ── LANGUAGE HINT ── */
.lang-hint {
  position: fixed;
  top: 70px;
  right: 18px;

  /* 👇 shift right so arrow hits center of EN/FR box */
  transform: translateX(10%);

  text-align: center;
  z-index: 9998;
}

/* bigger text */
.lang-hint span {
  display: block;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--gold-warm);
  margin-top: 4px;
}

/* arrow pointing UP to buttons */
.lang-hint .arrow {
  font-size: 20px;
  color: var(--gold);
  animation: bounceUp 1.2s infinite;
}

/* bounce animation */
@keyframes bounceUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── STORY / TIMELINE ── */
.story {
  padding: 90px 40px 110px;
  background:
    radial-gradient(circle at top left, rgba(184, 163, 212, 0.16), transparent 38%),
    linear-gradient(180deg, var(--emerald-dark) 0%, var(--emerald) 65%, var(--lavender-hero) 100%);
  color: #fff;
  overflow-x: hidden;
}

.story-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  margin-bottom: 42px;
}

.timeline-horizontal {
  position: relative;
  height: 510px;
  margin-top: 20px;
}

.timeline-line {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(253, 251, 247, 0.8),
    transparent
  );
  transform: translateY(-50%);
}

.timeline-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.timeline-dots span {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--gold);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(200, 164, 64, 0.14);
}

.story-point {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 170px;
  transform: translateX(-50%);
  text-align: center;
}

.story-point img,
.story-point .story-meta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.story-point.top .story-meta {
  bottom: calc(50% + 34px);
}

.story-point.top img {
  top: calc(50% + 34px);
}

.story-point.bottom img {
  bottom: calc(50% + 34px);
}

.story-point.bottom .story-meta {
  top: calc(50% + 34px);
}

.story-point img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border: 4px solid var(--cream);
  background: var(--cream);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.story-meta {
  width: 160px;
}

.story-meta span {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-warm);
  margin-bottom: 6px;
}

.story-meta p {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.25;
  color: var(--cream);
}

.p1 { left: 13%; }
.p2 { left: 27%; }
.p3 { left: 41%; }
.p4 { left: 59%; }
.p5 { left: 73%; }
.p6 { left: 87%; }

/* ── PROPOSAL VIDEO SECTION ── */
.proposal-section {
  background: linear-gradient(135deg, var(--lavender-hero) 0%, var(--dark) 45%, var(--emerald-dark) 100%);
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}

.proposal-section::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 64, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.proposal-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.proposal-text {
  color: #fff;
}

.proposal-ornament {
  font-size: 52px;
  display: block;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 24px rgba(200, 164, 64, 0.6));
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(200, 164, 64, 0.4)); }
  50%       { filter: drop-shadow(0 0 36px rgba(200, 164, 64, 0.9)); }
}

.proposal-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}

.proposal-title em {
  color: var(--gold-warm);
  font-style: italic;
}

.proposal-date {
  font-size: 15px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.proposal-desc {
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  max-width: 420px;
}

/* ── COUNTDOWN INSIDE RSVP SECTION ── */
.countdown {
  display: flex;
  justify-content: center;
  margin-bottom: 70px;
}

.countdown-box {
  position: relative;
  text-align: center;
  padding: 28px 56px 24px;
  background: rgba(253, 250, 246, 0.72);
  border: 1px solid rgba(194, 160, 106, 0.35);
  box-shadow: 0 18px 45px rgba(36, 23, 57, 0.08);
}

.countdown-box::before,
.countdown-box::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 72px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.countdown-box::before {
  right: 100%;
}

.countdown-box::after {
  left: 100%;
  background: linear-gradient(to left, transparent, var(--gold));
}

.countdown-box span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 88px);
  font-style: italic;
  line-height: 0.95;
  color: var(--gold);
}

.countdown-box p {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--lavender-deep);
}

/* ── VIDEO WRAPPER — portrait phone frame, no black bars ── */
.proposal-video-wrap {
  position: relative;
  width: 320px;
  height: 568px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  border: 3px solid rgba(200, 164, 64, 0.35);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(200, 164, 64, 0.1);
  background: #000;
  cursor: pointer;
}

/* Rotate landscape video to fill portrait container perfectly */
.proposal-video {
  position: absolute;
  /* swap width/height so after 90° rotation they fill the container */
  width: 568px;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  object-fit: cover;
}

.proposal-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}

.proposal-play-btn:hover {
  background: rgba(0, 0, 0, 0.15);
}

.proposal-play-btn.hidden {
  display: none;
}

.play-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(200, 164, 64, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  padding-left: 5px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 0.2s, background 0.2s;
}

.proposal-play-btn:hover .play-icon {
  transform: scale(1.08);
  background: rgba(200, 164, 64, 1);
}

.proposal-video-label {
  position: absolute;
  bottom: -36px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* ── WELCOME ── */
.welcome {
  padding: 100px 40px;
  text-align: center;
  position: relative;
  background: linear-gradient(160deg, var(--cream) 0%, var(--lavender-light) 55%, rgba(20, 93, 63, 0.08) 100%);
}

.welcome .gold-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
}

.welcome .gold-rule::before,
.welcome .gold-rule::after {
  content: '';
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.welcome .gold-rule::after {
  background: linear-gradient(to left, transparent, var(--gold));
}

.welcome .gold-rule span {
  color: var(--gold);
  font-size: 20px;
}

.welcome h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 400;
  color: var(--emerald-dark);
  line-height: 1.2;
  margin-bottom: 28px;
}

.welcome h2 em {
  font-style: italic;
  color: var(--lavender-deep);
}

.welcome p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.85;
  color: #4a4060;
  font-weight: 400;
}

/* ── DETAILS ── */
.details {
  padding: 80px 40px;
  background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--emerald-mid) 55%, var(--lavender-hero) 100%);
}

.details .inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.detail-card {
  background: rgba(255, 255, 255, 0.07);
  padding: 48px 32px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-card .icon-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--gold);
  font-size: 20px;
}

.detail-card h3 {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 14px;
  font-weight: 600;
}

.detail-card p {
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
  line-height: 1.5;
  font-weight: 400;
}

/* ── FORM ── */
.form-section {
  padding: 100px 40px;
  background: linear-gradient(160deg, var(--gold-pale) 0%, var(--lavender-light) 60%, var(--cream) 100%);
}

.form-inner {
  max-width: 680px;
  margin: 0 auto;
}

.form-title {
  text-align: center;
  margin-bottom: 60px;
}

.form-title .flourish {
  font-family: var(--font-display);
  font-size: 72px;
  font-style: italic;
  font-weight: 400;
  color: var(--lavender-light);
  line-height: 0.7;
  display: block;
  margin-bottom: -10px;
}

.form-title h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--emerald-dark);
  position: relative;
  z-index: 1;
}

.form-title p {
  font-size: 18px;
  color: #5a4e72;
  margin-top: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.fgroup {
  margin-bottom: 24px;
}

.fgroup label {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lavender-deep);
  margin-bottom: 8px;
  font-weight: 600;
  font-family: var(--font-body);
}

.fgroup input,
.fgroup select,
.fgroup textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1.5px solid rgba(155, 135, 194, 0.3);
  background: #fff;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  outline: none;
  border-radius: 2px;
  transition: all 0.3s;
}

.fgroup input:focus,
.fgroup select:focus,
.fgroup textarea:focus {
  border-color: var(--emerald);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 92, 58, 0.06);
}

.fgroup textarea {
  height: 110px;
  resize: vertical;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.radio-card input[type="radio"] {
  display: none;
}

.radio-card label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  min-height: 130px;
  border: 1.5px solid var(--lavender-light);
  background: var(--cream);
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 2px;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  font-weight: 500;
  text-align: center;
}

.radio-card label .card-icon {
  font-size: 28px;
}

.radio-card input[type="radio"]:checked + label {
  border-color: var(--lavender-deep);
  background: var(--lavender-light);
  color: var(--lavender-deep);
}

.radio-card label:hover {
  border-color: var(--lavender-mid);
  color: var(--lavender-deep);
  background: #fff;
}

.fdivider {
  height: 1px;
  background: var(--lavender-light);
  margin: 36px 0;
}

.submit-btn {
  width: 100%;
  padding: 20px;
  background: var(--emerald);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.3s;
  font-weight: 500;
}

.submit-btn:hover {
  background: var(--lavender-deep);
}

/* ── FOOTER ── */
footer {
  background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--lavender-hero) 100%);
  border-top: 1px solid rgba(200, 164, 64, 0.2);
  padding: 48px 40px;
  text-align: center;
}

footer .f-names {
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  color: var(--gold-warm);
  margin-bottom: 12px;
}

footer p {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

/* ── TOAST ── */
.toast {
  display: none;
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lavender-deep);
  color: #fff;
  padding: 16px 36px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ── LANG SWITCHER ── */
.lang-switcher {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px;
  border-radius: 4px;
  border: 1px solid rgba(155, 135, 194, 0.06);
  backdrop-filter: blur(4px);
}

.lang-switcher .lang-btn {
  font-size: 12px;
  padding: 6px 8px;
  border: none;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 1px;
}

.lang-switcher .lang-btn.active {
  background: rgba(200, 164, 64, 0.12);
  color: var(--gold-warm);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .story {
    padding: 70px 20px;
  }

  .story-title {
    font-size: 56px;
    margin-bottom: 34px;
  }

  .timeline-horizontal {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 34px;
    margin-left: 12px;
  }

  .timeline-line {
    left: 8px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    transform: none;
    background: linear-gradient(
      to bottom,
      transparent,
      rgba(253, 251, 247, 0.8),
      transparent
    );
  }

  .timeline-dots {
    display: none;
  }

  .story-point,
  .story-point.top,
  .story-point.bottom {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    transform: none;
    text-align: left;
    padding-left: 38px;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .story-point img,
  .story-point .story-meta,
  .story-point.top img,
  .story-point.bottom img,
  .story-point.top .story-meta,
  .story-point.bottom .story-meta {
    position: static;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
  }

  .story-point .story-meta {
    width: auto;
    text-align: left;
  }

  .story-point img {
    width: 160px;
    height: 200px;
  }

  .proposal-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .proposal-desc {
    max-width: 100%;
  }

  .details .inner {
    grid-template-columns: 1fr;
    gap: 3px;
  }

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

  .admin-top {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}