@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Tangerine:wght@400;700&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

:root {
  --english-font: "Cormorant Garamond", serif;
  --script-font: "Great Vibes", cursive;
  --calligraphy-font: "Tangerine", cursive;
  --arabic-font: "Simplified Arabic Fixed", "Simplified Arabic", "Tahoma", "Arial", sans-serif;

  --white: #ffffff;
  --off-white: #fbfaf6;
  --soft-beige: #f7f4ee;
  --paper-beige: #f0e9df;

  --card-olive: #777b60;
  --card-soft-olive: rgba(119, 123, 96, 0.72);
  --card-light-olive: rgba(119, 123, 96, 0.18);

  --card-gold: #c7a476;
  --card-soft-gold: rgba(199, 164, 118, 0.55);

  --text-dark: #777b60;
  --text-soft: rgba(119, 123, 96, 0.72);
  --gold: #c7a476;

  --location-text: #777b60;
  --location-line: rgba(119, 123, 96, 0.45);

  /* Old variable support */
  --card-green: #777b60;
  --card-soft-green: rgba(119, 123, 96, 0.72);
  --card-light-gold: rgba(199, 164, 118, 0.35);
  --button-text: #777b60;
  --logo-rose: #c7a476;
}

/* =========================
   Reset / Base
========================= */

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

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--white);
}

body {
  font-family: var(--english-font);
  color: var(--text-dark);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

section {
  margin: 0;
  padding: 0;
}

img,
video {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.hidden {
  display: none !important;
}

body.lock-scroll {
  overflow: hidden;
  height: 100dvh;
}

body.ready-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

/* =========================
   Full Screen Video Sections
========================= */

.screen {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.full-media {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--white);
}

.cover-media {
  object-fit: cover;
}

.contain-media {
  object-fit: contain;
}

#introScreen,
#mainVideoScreen {
  background: var(--white);
}

#firstVideo,
#mainVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
  background: var(--white);
}

#firstVideo {
  opacity: 1;
  pointer-events: none;
}

#mainVideo {
  pointer-events: none;
}

#mainVideoScreen {
  transform: translateY(100%);
  opacity: 0;
  overflow: hidden;
}

#mainVideoScreen.slide-up {
  animation: slideUpFade 0.65s ease-out forwards;
}

/* =========================
   Click / Scroll Text
========================= */

.click-text {
  position: absolute;
  bottom: calc(72px + env(safe-area-inset-bottom));
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--white);
  font-family: var(--english-font);
  font-size: clamp(13px, 3.6vw, 16px);
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1.7;
  animation: softPulse 2.2s ease-in-out infinite;
  z-index: 5;
}

.scroll-text {
  position: absolute;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--white);
  font-family: var(--english-font);
  font-size: clamp(12px, 3.4vw, 15px);
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 1.8;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  animation: softPulse 2.2s ease-in-out infinite;
  z-index: 5;
}

.scroll-text span {
  display: block;
  font-size: 20px;
  color: var(--white);
}

/* =========================
   White Transition
========================= */

.white-transition {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
}

.white-transition.show {
  display: block !important;
  animation: whiteFadeInHold 2.2s ease forwards;
}

.white-transition.fade-away {
  animation: whiteFadeOut 1.25s ease forwards;
}

.fade-out-video {
  animation: videoFadeOut 3.2s ease forwards;
}

/* =========================
   Full Image Sections
========================= */

.image-full-section,
.timeline-section,
.dresscode-section {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--white);
}

.image-full-section img,
.timeline-section img,
.dresscode-section img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--white);
}

/* =========================
   Smooth Section Animation
========================= */

.section-animate {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

.section-animate .countdown-logo,
.section-animate .luxury-rsvp-card,
.section-animate .location-logo,
.section-animate .map-card,
.section-animate .maps-button {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.section-visible .countdown-logo,
.section-visible .luxury-rsvp-card,
.section-visible .location-logo,
.section-visible .map-card,
.section-visible .maps-button {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Countdown Section
   Current HTML:
   .countdown-section / .countdown-layout / .countdown-item
========================= */

.countdown-section {
  width: 100%;
  min-height: auto;
  background: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 52px;
}

.countdown-header {
  text-align: center;
  margin-top: 0;
  margin-bottom: 14px;
}

.countdown-header h2 {
  font-family: var(--script-font);
  font-size: clamp(42px, 12vw, 62px);
  font-weight: 400;
  line-height: 1;
  color: var(--card-olive);
  letter-spacing: 0.4px;
}

.countdown-header p {
  margin-top: 8px;
  font-family: var(--english-font);
  font-size: clamp(14px, 3.6vw, 17px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 1.1px;
  color: var(--card-soft-olive);
}

.countdown-layout {
  position: relative;
  width: min(100%, 390px);
  height: 310px;
  margin-top: 0;
}

.countdown-logo {
  position: absolute;
  width: clamp(105px, 35vw, 150px);
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 1;
}

.countdown-item {
  position: absolute;
  width: 105px;
  text-align: center;
  color: var(--card-olive);
  z-index: 3;
}

.countdown-item span {
  display: block;
  font-family: var(--english-font);
  font-size: clamp(34px, 10vw, 48px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 1.5px;
  color: var(--card-olive);
}

.countdown-item small {
  display: block;
  margin-top: 5px;
  font-family: var(--english-font);
  font-size: clamp(10px, 2.8vw, 13px);
  font-weight: 300;
  letter-spacing: 1.2px;
  color: var(--card-soft-olive);
  text-transform: lowercase;
}

.countdown-days {
  top: 17%;
  left: 5%;
}

.countdown-hours {
  top: 17%;
  right: 5%;
}

.countdown-minutes {
  top: 64%;
  left: 5%;
}

.countdown-seconds {
  top: 64%;
  right: 5%;
}

/* Optional support for vintage countdown class */
.vintage-countdown-section {
  width: 100%;
  height: auto;
  min-height: auto;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px 28px 95px;
  overflow: hidden;
}

.countdown-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
}

.countdown-title {
  margin: 0 0 42px;
  color: var(--card-olive);
  font-family: var(--script-font);
  font-size: clamp(38px, 11vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.5px;
}

.countdown-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 36px;
}

.countdown-box {
  min-height: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-box span {
  display: block;
  color: var(--card-olive);
  font-family: var(--english-font);
  font-size: clamp(34px, 10vw, 48px);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 1.5px;
}

.countdown-box small {
  display: block;
  color: var(--card-soft-olive);
  font-family: var(--english-font);
  font-size: clamp(13px, 3.6vw, 16px);
  font-weight: 300;
  line-height: 1;
  text-transform: lowercase;
  letter-spacing: 1px;
}

/* =========================
   RSVP Section
========================= */

.rsvp-section,
.luxury-rsvp-section {
  width: 100%;
  height: auto;
  min-height: auto;
  background: var(--white);
  padding: 44px 22px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
}

.rsvp-content {
  display: block;
  width: 100%;
  max-width: 430px;
  text-align: center;
  opacity: 1;
  visibility: visible;
}

.luxury-rsvp-card {
  position: relative;
  width: 100%;
  padding: 38px 20px 36px;
  text-align: center;
  background: var(--white);
  border: none;
  border-radius: 24px;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 1;
  visibility: visible;
}

.luxury-rsvp-card::before,
.luxury-rsvp-card::after {
  display: none;
}

.luxury-rsvp-card h2 {
  margin: 0 0 10px;
  color: var(--card-olive);
  font-family: var(--script-font);
  font-size: clamp(42px, 12vw, 62px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.4px;
}

.rsvp-subtitle {
  margin: 10px 0 24px;
  color: var(--card-soft-olive);
  font-family: var(--english-font);
  font-size: clamp(13px, 3.4vw, 15px);
  font-weight: 300;
  line-height: 1.7;
}

.children-note {
  margin: -10px auto 24px;
  max-width: 330px;
  color: var(--card-soft-olive);
  font-family: var(--english-font);
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.3px;
  opacity: 0.85;
}

.rsvp-choice {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.rsvp-choice-btn {
  width: 100%;
  min-width: 150px;
  padding: 13px 20px;
  border: 1px solid var(--card-olive);
  border-radius: 999px;
  background: transparent;
  color: var(--card-olive);
  font-family: var(--english-font);
  font-size: 13.5px;
  font-weight: 300;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: none;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.rsvp-choice-btn.secondary {
  border-color: var(--card-olive);
  background: transparent;
  color: var(--card-olive);
}

.rsvp-choice-btn.active,
.rsvp-choice-btn:hover {
  background: var(--card-olive);
  color: var(--white);
  border-color: var(--card-olive);
  transform: translateY(-2px);
}

.luxury-rsvp-form {
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.45s ease,
    max-height 0.55s ease,
    transform 0.45s ease;
}

.luxury-rsvp-form.hidden {
  display: none !important;
}

.luxury-rsvp-form.show-form {
  display: block !important;
  opacity: 1;
  max-height: 900px;
  transform: translateY(0);
}

.form-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 18px;
}

.form-divider span {
  width: 140px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--card-soft-gold),
    transparent
  );
}

.rsvp-form-title {
  margin: 0 0 16px;
  color: var(--card-soft-olive);
  font-family: var(--english-font);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.25px;
}

.form-group {
  width: 100%;
  margin-bottom: 14px;
}

.luxury-rsvp-form input,
.luxury-rsvp-form textarea,
.luxury-rsvp-form select {
  width: 100%;
  padding: 14px 17px;
  border: 1px solid rgba(119, 123, 96, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--card-olive);
  font-family: var(--english-font);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.4;
  text-align: left;
  direction: ltr;
  outline: none;
  box-shadow: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.luxury-rsvp-form input::placeholder,
.luxury-rsvp-form textarea::placeholder {
  color: rgba(119, 123, 96, 0.48);
}

.luxury-rsvp-form input:focus,
.luxury-rsvp-form textarea:focus,
.luxury-rsvp-form select:focus {
  background-color: var(--white);
  border-color: var(--card-olive);
  box-shadow: 0 0 0 4px rgba(119, 123, 96, 0.08);
}

.luxury-rsvp-form textarea {
  min-height: 95px;
  resize: vertical;
}

#guestsCountWrapper {
  width: 100%;
  margin-bottom: 14px;
  display: block;
}

#guestsCount,
.luxury-rsvp-form select {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 14px 17px;
  border-radius: 16px;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
  background-image: none;
}

#guestsCount option {
  background: var(--white);
  color: var(--card-olive);
  font-family: var(--english-font);
  font-size: 13.5px;
}

.submit-rsvp {
  width: 100%;
  margin-top: 4px;
  padding: 13px 22px;
  border: 1px solid var(--card-olive);
  border-radius: 999px;
  background: transparent;
  color: var(--card-olive);
  font-family: var(--english-font);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.7px;
  cursor: pointer;
  box-shadow: none;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.submit-rsvp:hover {
  transform: translateY(-2px);
  background: var(--card-olive);
  color: var(--white);
  border-color: var(--card-olive);
}

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

.rsvp-status {
  margin-top: 14px;
  color: var(--card-olive);
  font-family: var(--english-font);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
}

.rsvp-status.error {
  color: #9b4d4d;
}

.rsvp-status.success {
  color: var(--card-olive);
}

.rsvp-submitted-message {
  margin-top: 20px;
  padding: 16px 12px;
  border: none;
  border-radius: 18px;
  background: var(--white);
  color: var(--card-olive);
  font-family: var(--english-font);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
}

.submitted-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--card-olive);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 18px;
}

/* =========================
   Location Section
========================= */

.location-section {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: var(--white);
}

.location-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  z-index: 1;
  background: var(--white);
}

.location-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;
  pointer-events: none;
}

.location-view-map-button {
  position: absolute;
  left: 50%;
  bottom: 53%;
  transform: translateX(-50%);
  z-index: 5;

  min-width: 175px;
  height: 46px;
  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: 999px;
  border: 1px solid rgba(190, 167, 125, 0.5);
  background: rgba(255, 255, 255, 0.86);

  color: #6f745e;
  text-decoration: none;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 3px;
  white-space: nowrap;

  box-shadow:
    0 10px 25px rgba(115, 95, 62, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75);

  backdrop-filter: blur(4px);
}

.location-view-map-button span:last-child {
  display: inline-block;
  white-space: nowrap;
}

.location-view-map-button:hover {
  transform: translateX(-50%) translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

.map-pin-icon {
  width: 20px;
  height: 20px;
  color: #c2a36c;
  flex: 0 0 auto;
}

.map-pin-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-pin-icon path,
.map-pin-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.location-title {
  margin: 28px 0 28px;
  color: var(--white);
  font-family: "Times New Roman", serif;
  font-size: clamp(25px, 6.5vw, 34px);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 1px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.arabic-location-title {
  font-family: var(--arabic-font);
  font-weight: 300;
  letter-spacing: 0.5px;
}

.map-card {
  width: 88%;
  max-width: 315px;
  aspect-ratio: 1.45 / 1;
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
  border-radius: 18px;
  border: none;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
}

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

.location-buttons {
  margin-top: auto;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.location-kids-note {
  width: 88%;
  max-width: 320px;
  margin: 18px auto 0;
  color: var(--white);
  font-family: var(--arabic-font);
  font-size: clamp(13px, 3.3vw, 15px);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.2px;
  text-align: center;
  opacity: 0.9;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.maps-button,
.road-video-button {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  text-decoration: none;
  font-family: var(--english-font);
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 300;
  letter-spacing: 0.4px;
  backdrop-filter: blur(4px);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* =========================
   Mobile Adjustments
========================= */

@media (max-width: 600px) {
  .luxury-rsvp-section {
    padding: 44px 16px 78px;
  }

  .luxury-rsvp-card {
    padding: 34px 18px 34px;
    border-radius: 22px;
  }

  .rsvp-choice {
    flex-direction: column;
  }

  .rsvp-choice-btn {
    width: 100%;
  }

  .luxury-rsvp-form input,
  .luxury-rsvp-form textarea,
  .luxury-rsvp-form select {
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  .countdown-section {
    padding: 38px 22px 46px;
  }

  .countdown-layout {
    height: 285px;
  }

  .countdown-logo {
    width: clamp(96px, 34vw, 135px);
  }

  .countdown-item {
    width: 92px;
  }

  .vintage-countdown-section {
    padding: 30px 24px 70px;
  }

  .countdown-grid {
    gap: 18px 18px;
  }

  .location-view-map-button {
    bottom: 20%;
    min-width: 165px;
    height: 44px;
    font-size: 11px;
    letter-spacing: 2.5px;
  }

  .map-pin-icon {
    width: 18px;
    height: 18px;
  }

  .map-card {
    width: 90%;
    max-width: 320px;
  }

  .rsvp-section,
  .luxury-rsvp-section {
    padding: 38px 18px 64px;
  }
}

/* =========================
   Reduced Motion
========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   Mobile Only Access
========================= */

@media (min-width: 768px) {
  body {
    overflow: hidden !important;
    background: var(--white) !important;
  }

  body > * {
    display: none !important;
  }

  body::before {
    content: "Please open this invitation on a mobile phone.";
    display: flex !important;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    font-family: var(--english-font), Arial, sans-serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--card-olive);
    background: var(--white);
  }
}

/* =========================
   Animations
========================= */

@keyframes slideUpFade {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes textFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes introFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes videoFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes whiteFadeInHold {
  0% {
    opacity: 0;
  }

  65% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

@keyframes whiteFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes softPulse {
  0% {
    opacity: 0.45;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-6px);
  }

  100% {
    opacity: 0.45;
    transform: translateY(0);
  }
}

.click-text.fade-out {
  animation: textFadeOut 0.6s ease forwards;
}

#introScreen.fade-out-intro {
  animation: introFadeOut 1.8s ease forwards;
}

/* =========================
   FINAL FIX — RSVP ALWAYS VISIBLE
========================= */

.rsvp-section,
.luxury-rsvp-section {
  display: flex !important;
  width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  background: #ffffff !important;
  padding: 44px 22px 70px !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.rsvp-content,
.luxury-rsvp-card {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.section-animate .luxury-rsvp-card,
.section-visible .luxury-rsvp-card {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.luxury-rsvp-form.hidden {
  display: none !important;
}

.luxury-rsvp-form.show-form {
  display: block !important;
  opacity: 1 !important;
  max-height: 900px !important;
  transform: translateY(0) !important;
}

/* =========================
   Countdown + RSVP Design Like Reference
========================= */

.countdown-rsvp-section {
  width: 100%;
  min-height: 100dvh;
  background: #ded4cb;
  padding: calc(54px + env(safe-area-inset-top)) 24px calc(70px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  text-align: center;
}

.countdown-rsvp-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 64px;
}

.countdown-rsvp-logo {
  width: clamp(150px, 46vw, 215px);
  height: auto;
  object-fit: contain;
  opacity: 0.72;
}

.new-countdown-block {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.new-countdown-title {
  margin: 0 0 42px;
  font-family: var(--english-font);
  font-size: clamp(44px, 14vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 7px;
  color: #050505;
}

.new-countdown-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin: 0 auto;
}

.new-countdown-box {
  min-height: 76px;
  border-radius: 16px;
  background: #cdbb91;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.new-countdown-box span {
  display: block;
  margin-bottom: 5px;
  font-family: var(--english-font);
  font-size: clamp(28px, 9vw, 46px);
  font-weight: 500;
  line-height: 0.95;
  color: #ffffff;
  letter-spacing: 1px;
}

.new-countdown-box small {
  display: block;
  font-family: var(--english-font);
  font-size: clamp(12px, 3.4vw, 18px);
  font-weight: 500;
  line-height: 1;
  color: #050505;
  text-transform: capitalize;
}

/* RSVP part */
.new-rsvp-block {
  width: 100%;
  max-width: 430px;
  margin: 92px auto 0;
  text-align: center;
}

.new-rsvp-title {
  margin: 0 0 20px;
  font-family: var(--english-font);
  font-size: clamp(46px, 14vw, 72px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.78);
}

.new-rsvp-subtitle {
  margin: 0 0 34px;
  font-family: var(--english-font);
  font-size: clamp(24px, 7vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  color: #050505;
}

.countdown-rsvp-section .rsvp-content,
.countdown-rsvp-section .luxury-rsvp-card {
  max-width: 430px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.countdown-rsvp-section .luxury-rsvp-card::before,
.countdown-rsvp-section .luxury-rsvp-card::after {
  display: none;
}

.countdown-rsvp-section .rsvp-choice {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  margin: 0;
}

.countdown-rsvp-section .rsvp-choice-btn {
  width: 72%;
  min-width: 0;
  max-width: 310px;
  height: 66px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid rgba(80, 77, 70, 0.45);
  background: transparent;
  color: #050505;
  font-family: var(--english-font);
  font-size: clamp(22px, 6vw, 31px);
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
}

.countdown-rsvp-section .rsvp-choice-btn em {
  font-style: italic;
  font-weight: 600;
}

.countdown-rsvp-section .rsvp-choice-btn.secondary {
  background: transparent;
  color: #050505;
  border-color: rgba(80, 77, 70, 0.45);
}

.countdown-rsvp-section .rsvp-choice-btn.active,
.countdown-rsvp-section .rsvp-choice-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #050505;
  border-color: rgba(80, 77, 70, 0.65);
  transform: translateY(-2px);
}

.countdown-rsvp-section .luxury-rsvp-form {
  width: 82%;
  max-width: 330px;
  margin: 30px auto 0;
}

.countdown-rsvp-section .form-divider span {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(80, 77, 70, 0.45),
    transparent
  );
}

.countdown-rsvp-section .rsvp-form-title {
  color: #050505;
  font-family: var(--english-font);
  font-size: 15px;
}

.countdown-rsvp-section .luxury-rsvp-form input,
.countdown-rsvp-section .luxury-rsvp-form textarea,
.countdown-rsvp-section .luxury-rsvp-form select {
  border: 1px solid rgba(80, 77, 70, 0.45);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  color: #050505;
  font-family: var(--english-font);
  text-align: left;
  direction: ltr;
}

.countdown-rsvp-section .luxury-rsvp-form input::placeholder,
.countdown-rsvp-section .luxury-rsvp-form textarea::placeholder {
  color: rgba(5, 5, 5, 0.55);
}

.countdown-rsvp-section .submit-rsvp {
  border: 1px solid rgba(80, 77, 70, 0.55);
  background: transparent;
  color: #050505;
  font-family: var(--english-font);
}

.countdown-rsvp-section .submit-rsvp:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #050505;
}

.countdown-rsvp-section .rsvp-status,
.countdown-rsvp-section .rsvp-submitted-message {
  color: #050505;
  font-family: var(--english-font);
}

/* Hide old separate countdown/rsvp styles if still affecting */
.countdown-rsvp-section .countdown-header,
.countdown-rsvp-section .countdown-layout {
  display: none;
}

@media (max-width: 390px) {
  .countdown-rsvp-section {
    padding: calc(42px + env(safe-area-inset-top)) 18px calc(60px + env(safe-area-inset-bottom));
  }

  .countdown-rsvp-logo-wrap {
    margin-bottom: 58px;
  }

  .countdown-rsvp-logo {
    width: clamp(145px, 48vw, 190px);
  }

  .new-countdown-title {
    margin-bottom: 38px;
    letter-spacing: 5px;
  }

  .new-countdown-grid {
    gap: 10px;
  }

  .new-countdown-box {
    min-height: 70px;
    border-radius: 14px;
  }

  .new-rsvp-block {
    margin-top: 82px;
  }

  .countdown-rsvp-section .rsvp-choice-btn {
    width: 76%;
    height: 60px;
  }
}

/* =========================
   Make Countdown + RSVP Smaller
========================= */

.countdown-rsvp-section {
  padding: calc(42px + env(safe-area-inset-top)) 22px calc(54px + env(safe-area-inset-bottom));
}

.countdown-rsvp-logo-wrap {
  margin-bottom: 42px;
}

.countdown-rsvp-logo {
  width: clamp(115px, 34vw, 160px);
}

.new-countdown-title {
  margin: 0 0 28px;
  font-size: clamp(34px, 10vw, 52px);
  letter-spacing: 5px;
}

.new-countdown-grid {
  max-width: 330px;
  gap: 10px;
}

.new-countdown-box {
  min-height: 58px;
  border-radius: 13px;
}

.new-countdown-box span {
  font-size: clamp(23px, 7vw, 34px);
  margin-bottom: 4px;
}

.new-countdown-box small {
  font-size: clamp(10px, 2.8vw, 14px);
}

.new-rsvp-block {
  margin-top: 62px;
}

.new-rsvp-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 10vw, 52px);
}

.new-rsvp-subtitle {
  margin: 0 0 24px;
  font-size: clamp(18px, 5.2vw, 26px);
}

.countdown-rsvp-section .rsvp-choice {
  gap: 16px;
}

.countdown-rsvp-section .rsvp-choice-btn {
  width: 68%;
  max-width: 260px;
  height: 52px;
  padding: 0 18px;
  font-size: clamp(17px, 4.8vw, 24px);
  border-width: 1.5px;
}

.countdown-rsvp-section .luxury-rsvp-form {
  width: 78%;
  max-width: 300px;
  margin-top: 24px;
}

.countdown-rsvp-section .rsvp-form-title {
  font-size: 13px;
}

.countdown-rsvp-section .luxury-rsvp-form input,
.countdown-rsvp-section .luxury-rsvp-form textarea,
.countdown-rsvp-section .luxury-rsvp-form select {
  padding: 12px 14px;
  font-size: 13px;
  border-radius: 12px;
}

.countdown-rsvp-section .submit-rsvp {
  padding: 12px 18px;
  font-size: 13.5px;
}

.countdown-rsvp-section .rsvp-submitted-message {
  font-size: 12.5px;
}

/* Smaller phones */
@media (max-width: 390px) {
  .countdown-rsvp-section {
    padding: calc(34px + env(safe-area-inset-top)) 18px calc(50px + env(safe-area-inset-bottom));
  }

  .countdown-rsvp-logo-wrap {
    margin-bottom: 36px;
  }

  .countdown-rsvp-logo {
    width: clamp(105px, 32vw, 145px);
  }

  .new-countdown-title {
    margin-bottom: 24px;
    font-size: clamp(31px, 9.5vw, 46px);
    letter-spacing: 4px;
  }

  .new-countdown-grid {
    max-width: 305px;
    gap: 8px;
  }

  .new-countdown-box {
    min-height: 54px;
    border-radius: 12px;
  }

  .new-countdown-box span {
    font-size: clamp(21px, 6.8vw, 30px);
  }

  .new-countdown-box small {
    font-size: clamp(9px, 2.6vw, 12px);
  }

  .new-rsvp-block {
    margin-top: 54px;
  }

  .new-rsvp-title {
    font-size: clamp(31px, 9.5vw, 46px);
  }

  .new-rsvp-subtitle {
    font-size: clamp(17px, 5vw, 23px);
    margin-bottom: 22px;
  }

  .countdown-rsvp-section .rsvp-choice-btn {
    width: 70%;
    height: 48px;
    font-size: clamp(16px, 4.6vw, 22px);
  }
}

/* =========================
   Final Color + Scroll Gap Fix
========================= */

:root {
  --section-bg: #E4DBD4;
  --stamp-gold: #c7a476;
}

/* Make page background same as RSVP/countdown so no white shows while scrolling */
html,
body {
  background: var(--section-bg) !important;
}

/* Countdown + RSVP background */
.countdown-rsvp-section,
.countdown-section,
.rsvp-section,
.luxury-rsvp-section {
  background: var(--section-bg) !important;
}

/* RSVP submit form same background too */
.countdown-rsvp-section .luxury-rsvp-form {
  background: var(--section-bg) !important;
}

/* Click to open text same color as stamp/logo gold */
.click-text,
.click-text p,
.click-text .arabic {
  color: var(--stamp-gold) !important;
  font-weight: 1000;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.55);
}

/* Remove white spaces/gaps between image sections while scrolling */
section {
  margin: 0 !important;
}

.image-full-section,
.timeline-section,
.dresscode-section {
  background: var(--section-bg) !important;
  line-height: 0;
  display: block;
  overflow: hidden;
}

.image-full-section img,
.timeline-section img,
.dresscode-section img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

/* Fix tiny 1px browser gaps between sections */
.image-full-section + section,
.countdown-rsvp-section + section,
.countdown-section + section,
.rsvp-section + section,
.timeline-section + section,
.dresscode-section + section {
  margin-top: -1px !important;
}

/* If mobile browser height changes while scrolling, prevent white flash */
.screen,
.full-media {
  background: var(--section-bg) !important;
}

/* =========================
   Fix white gaps between sections on mobile scroll
========================= */

:root {
  --section-bg: #E4DBD4;
}

/* Page background must match countdown/RSVP */
html,
body {
  background: var(--section-bg) !important;
}

/* Prevent white flashes while the browser address bar expands/collapses */
.countdown-rsvp-section,
.location-section {
  background-color: var(--section-bg) !important;
  margin: 0 !important;
}

/* Use stable mobile viewport instead of dynamic viewport */
.countdown-rsvp-section {
  min-height: 100svh !important;
}

.location-section {
  min-height: 100svh !important;
  height: auto !important;
}

/* If location uses an image background */
.location-bg-image {
  background-color: var(--section-bg) !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Remove tiny browser rendering gap between these two sections */
.countdown-rsvp-section + .location-section {
  margin-top: -1px !important;
}

/* Remove white gap after location section */
.location-section::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--section-bg);
}

/* Make all image sections not create inline/image gaps */
section,
img,
video {
  margin: 0 !important;
  padding: 0;
}

img,
video {
  display: block;
}

/* If you still see a gap at the very bottom */
body::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--section-bg);
}

/* =========================
   Full Screen Image Pages
   details.png / timeline.png / dresscode.png
========================= */

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  overflow-x: hidden !important;
}

section {
  margin: 0 !important;
  padding: 0 !important;
}

/* Each image page takes exactly one phone screen */
.full-screen-image-section {
  width: 100vw !important;
  height: 100svh !important;
  min-height: 100svh !important;
  max-height: 100svh !important;

  margin: 0 !important;
  padding: 0 !important;

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

  overflow: hidden !important;
  line-height: 0 !important;
  background: #ffffff !important;
}

/* Image fully visible, not cropped */
.full-screen-image-section img {
  width: 100% !important;
  height: 100% !important;

  object-fit: contain !important;
  object-position: center center !important;

  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;

  background: #ffffff !important;
}

/* Remove tiny browser rendering line between sections */
.full-screen-image-section + .full-screen-image-section,
.image-full-section + .full-screen-image-section,
.full-screen-image-section + section {
  margin-top: -1px !important;
}

/* Also remove gap from the first card image section */
.image-full-section {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  background: #ffffff !important;
}

.image-full-section img {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* =========================
   REMOVE WHITE GAP BETWEEN IMAGE SECTIONS
========================= */

html,
body {
  background: #ded4cb !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Make image sections take only the real image height */
.full-screen-image-section,
.location-section {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  display: block !important;
  line-height: 0 !important;
  overflow: hidden !important;

  background: #ded4cb !important;
}

/* Images fully visible with no extra white space */
.full-screen-image-section img,
.location-section img,
.location-bg-image {
  position: relative !important;
  inset: auto !important;

  width: 100% !important;
  height: auto !important;

  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;

  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;

  background: #ded4cb !important;
}

/* Remove tiny browser line between sections */
.full-screen-image-section + .full-screen-image-section,
.location-section + .location-section,
.full-screen-image-section + .location-section,
.location-section + .full-screen-image-section {
  margin-top: -1px !important;
}

/* =========================
   NO ANIMATION / NO GAP BETWEEN INTRO AND CARD
========================= */

/* Remove any animation from card image section */
.image-full-section,
.image-full-section.section-animate,
.image-full-section.section-visible {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;

  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  display: block !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

/* Card image starts directly after intro video */
.image-full-section img {
  width: 100% !important;
  height: auto !important;

  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;

  object-fit: contain !important;
  object-position: center top !important;

  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* Remove tiny browser gap between intro video and card image */
#mainVideoScreen + .image-full-section {
  margin-top: -1px !important;
}