@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;

  --off-white: #ffffff;
  --soft-beige: #ffffff;
  --paper-beige: #ffffff;

  --gold: #9b7b4d;
  --text-dark: #5f564d;
  --text-soft: #8b8178;
  --location-text: #747063;
  --location-line: #b8b0a4;
  --button-text: #6b6258;
  --logo-rose: #cf7f87;

  --card-green: #123322;
  --card-gold: #b58a3c;
  --card-soft-green: rgba(18, 51, 34, 0.68);
  --card-light-gold: rgba(181, 138, 60, 0.35);

  /* keep these because your countdown CSS uses them */
  --card-olive: #5f564d;
  --card-soft-olive: #8b8178;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #ffffff;
}

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;
}

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

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

.hidden {
  display: none !important;
}

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

.screen {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.full-media {
  width: 100%;
  height: 100%;
  display: block;
  background: #ffffff;
}

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

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

/* =========================
   Intro Video
========================= */

.click-text {
  position: absolute;
  bottom: calc(72px + env(safe-area-inset-bottom));
  left: 0;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-family: var(--english-font);
  font-size: clamp(13px, 3.6vw, 16px);
  font-weight: 600;
  letter-spacing: 1.6px;
  line-height: 1.7;
  z-index: 5;
}

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

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

#introScreen,
#mainVideoScreen {
  background: #ffffff;
}

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

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

.scroll-text {
  position: absolute;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--off-white);
  font-family: var(--english-font);
  font-size: clamp(12px, 3.4vw, 15px);
  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;
  font-weight: 800;
}

.scroll-text span {
  display: block;
  font-size: 20px;
  color: #ffffff;
}

/* =========================
   Full Image Sections
   The image height is automatic so the full image is shown.
   This removes gaps between image sections without cropping.
========================= */

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

.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: #ffffff;
}

/* =========================
   Smooth Scroll Section Transitions
========================= */

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

.section-animate .countdown-logo,
.section-animate .countdown-box,
.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;
  will-change: opacity, transform;
}

.section-visible .countdown-logo,
.section-visible .luxury-rsvp-card,
.section-visible .location-logo {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.section-visible .countdown-box:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.section-visible .countdown-box:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.14s;
}

.section-visible .countdown-box:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.section-visible .countdown-box:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.26s;
}

.section-visible .map-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}

.section-visible .maps-button {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

.image-full-section.section-animate img,
.timeline-section.section-animate img,
.dresscode-section.section-animate img,
.image-full-section.section-visible img,
.timeline-section.section-visible img,
.dresscode-section.section-visible img {
  transform: none;
  transition: none;
  will-change: auto;
}

/* =========================
   English Countdown Section
========================= */

.countdown-section {
  width: 100%;
  min-height: auto;
  background: #ffffff;
  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;
  direction: ltr;
}

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

.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%;
}

@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;
  }
}


/* =========================
   Canva Style RSVP Section
========================= */

.rsvp-section,
.canva-rsvp-section {
  width: 100%;
  min-height: auto;
  background: #ffffff;
  padding: 0;
  display: block;
  overflow: hidden;
}

.canva-rsvp-card {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 46px 34px 70px;
  background:
    linear-gradient(rgba(255,255,255,0.84), rgba(255,255,255,0.84)),
    repeating-linear-gradient(90deg, rgba(74,70,59,0.035) 0px, rgba(74,70,59,0.035) 1px, transparent 1px, transparent 6px);
  color: #1b1711;
  text-align: left;
}

.canva-rsvp-intro {
  margin: 0 0 42px;
  text-align: center;
}

.canva-rsvp-intro p {
  margin: 0 auto 8px;
  font-family: var(--calligraphy-font);
  font-size: clamp(34px, 9.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  color: #2f2c23;
}

.canva-rsvp-form {
  width: 100%;
  margin: 0 auto;
}

.canva-form-group {
  width: 100%;
  margin: 0 0 30px;
}

.canva-form-group label,
.canva-field-label {
  display: block;
  margin: 0 0 12px;
  font-family: var(--english-font);
  font-size: clamp(17px, 4.6vw, 22px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: #1d1a14;
}

.canva-rsvp-form input,
.canva-rsvp-form textarea {
  width: 100%;
  border: 1.2px solid rgba(29, 26, 20, 0.72);
  border-radius: 0;
  background: transparent;
  color: #1d1a14;
  font-family: var(--english-font);
  font-size: 18px;
  font-weight: 400;
  outline: none;
  box-shadow: none;
}

.canva-rsvp-form input {
  height: 56px;
  padding: 8px 12px;
}

.canva-rsvp-form textarea {
  min-height: 106px;
  padding: 10px 12px;
  resize: vertical;
}

.canva-rsvp-form input:focus,
.canva-rsvp-form textarea:focus {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.canva-option-group,
.canva-guest-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.canva-option-btn,
.canva-guest-btn {
  width: 100%;
  min-height: 55px;
  padding: 0 14px;
  border: none;
  border-radius: 2px;
  background: #d9d6d0;
  color: #1d1a14;
  font-family: var(--english-font);
  font-size: clamp(16px, 4.2vw, 20px);
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.canva-option-btn:hover,
.canva-option-btn.active,
.canva-guest-btn:hover,
.canva-guest-btn.active {
  background: #000000;
  color: #ffffff;
  transform: translateY(-1px);
}

.canva-submit-btn,
.submit-rsvp {
  width: 100%;
  height: 58px;
  margin: -6px 0 0;
  padding: 0 20px;
  border: none;
  border-radius: 7px;
  background: #000000;
  color: #ffffff;
  font-family: var(--calligraphy-font);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.canva-submit-btn:hover,
.submit-rsvp:hover {
  transform: translateY(-2px);
  background: #111111;
  color: #ffffff;
}

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

.rsvp-status {
  margin-top: 16px;
  color: #1d1a14;
  font-family: var(--english-font);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

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

.rsvp-submitted-message {
  margin-top: 22px;
  padding: 18px 14px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #1d1a14;
  font-family: var(--english-font);
  text-align: center;
}

.submitted-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: none;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 18px;
}

.rsvp-registry-note {
  margin: 28px auto 0;
  max-width: 330px;
  color: #1d1a14 !important;
  font-family: var(--english-font) !important;
  font-size: clamp(13px, 3.4vw, 15px);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.3px;
  text-align: center;
}

.rsvp-registry-note strong {
  display: inline-block;
  margin-top: 4px;
  color: #1d1a14 !important;
  font-weight: 500;
  letter-spacing: 1px;
}

@media (max-width: 390px) {
  .canva-rsvp-card { padding: 40px 28px 62px; }
  .canva-rsvp-intro { margin-bottom: 36px; }
  .canva-rsvp-intro p { font-size: clamp(30px, 9vw, 42px); }
  .canva-form-group { margin-bottom: 26px; }
  .canva-rsvp-form input { height: 52px; }
  .canva-option-btn,
  .canva-guest-btn { min-height: 52px; }
}

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

.location-section {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #ffffff;
}

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

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

.location-view-map-button {
  position: absolute;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 20;

  min-width: 130px;
  height: 34px;
  padding: 0 12px;

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

  border-radius: 0;
  border: 1px solid rgba(86, 87, 58, 0.45);
  background: rgba(255, 255, 255, 0.9);

  color: var(--card-text-color, #56573a);
  text-decoration: none;
  font-family: var(--english-font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.7px;
  white-space: nowrap;

  box-shadow: 0 6px 16px rgba(115, 95, 62, 0.12);
  backdrop-filter: blur(4px);
}

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

.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-view-map-button:hover {
  transform: translateX(-50%) translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

/* Old location content classes kept safe in case they exist in HTML */
.location-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.arabic-location-title {
  font-family: "Simplified Arabic", "Tahoma", "Arial", sans-serif;
  font-weight: 100;
  letter-spacing: 0.5px;
}

.map-card {
  width: 88%;
  max-width: 315px;
  aspect-ratio: 1.45 / 1;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  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: #ffffff;
  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: #ffffff;
  text-decoration: none;
  font-family: var(--english-font);
  font-size: clamp(12px, 3vw, 14px);
  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: 38px 20px 36px;
    border-radius: 24px;
  }

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

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

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

@media (max-width: 390px) {
  .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;
  }
}

/* =========================
   Reduce Motion
========================= */

@media (prefers-reduced-motion: reduce) {
  .section-animate,
  .section-animate .countdown-logo,
  .section-animate .countdown-box,
  .section-animate .luxury-rsvp-card,
  .section-animate .location-logo,
  .section-animate .map-card,
  .section-animate .maps-button,
  .image-full-section.section-animate img,
  .timeline-section.section-animate img,
  .dresscode-section.section-animate img {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* =========================
   Mobile Only Website
========================= */

@media (min-width: 1024px) {
  body > * {
    display: none !important;
  }

  body::before {
    content: "Please open this invitation on a mobile phone.";
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 20px;
    color: #8b6a3e;
    background: #ffffff;
  }
}

/* =========================
   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 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 0.2s ease forwards;
}

/* =========================
   FINAL FONT FIX
   Cursive only for Countdown title + RSVP title
========================= */

/* Countdown title only */
.countdown-header h2 {
  font-family: var(--script-font) !important;
  font-size: clamp(42px, 12vw, 62px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  color: var(--text-dark) !important;
  letter-spacing: 0.4px !important;
}

/* Countdown subtitle normal */
.countdown-header p {
  font-family: var(--english-font) !important;
  color: var(--text-soft) !important;
}

/* Countdown numbers normal font */
.countdown-item span {
  font-family: var(--english-font) !important;
  font-weight: 300 !important;
  color: var(--text-dark) !important;
}

/* Countdown labels normal font */
.countdown-item small {
  font-family: var(--english-font) !important;
  font-weight: 300 !important;
  color: var(--text-soft) !important;
}

/* RSVP title only */
.luxury-rsvp-card h2 {
  font-family: var(--script-font) !important;
  font-size: clamp(42px, 12vw, 62px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  color: var(--text-dark) !important;
  letter-spacing: 0.4px !important;
}

/* RSVP rest stays normal */
.rsvp-subtitle,
.rsvp-choice-btn,
.rsvp-form-title,
.luxury-rsvp-form input,
.luxury-rsvp-form textarea,
.luxury-rsvp-form select,
.submit-rsvp,
.rsvp-status,
.rsvp-submitted-message {
  font-family: var(--english-font) !important;
}

/* =========================
   FINAL COLOR MATCH
   Match all text + buttons to card text color
========================= */

:root {
  --card-text-color: #56573a;
  --card-text-soft: rgba(86, 87, 58, 0.72);
}

/* All main text */
body,
.countdown-header h2,
.countdown-header p,
.countdown-item,
.countdown-item span,
.countdown-item small,
.luxury-rsvp-card h2,
.rsvp-subtitle,
.children-note,
.rsvp-form-title,
.rsvp-status,
.rsvp-submitted-message,
.location-title,
.location-kids-note {
  color: var(--card-text-color) !important;
}

/* Softer secondary text */
.countdown-header p,
.countdown-item small,
.rsvp-subtitle,
.children-note,
.rsvp-form-title {
  color: var(--card-text-soft) !important;
}

/* RSVP buttons */
.rsvp-choice-btn,
.rsvp-choice-btn.secondary,
.submit-rsvp {
  color: var(--card-text-color) !important;
  border-color: var(--card-text-color) !important;
  background: transparent !important;
}

/* RSVP button active / hover */
.rsvp-choice-btn.active,
.rsvp-choice-btn:hover,
.submit-rsvp:hover {
  background: var(--card-text-color) !important;
  color: #ffffff !important;
  border-color: var(--card-text-color) !important;
}

/* RSVP form fields */
.luxury-rsvp-form input,
.luxury-rsvp-form textarea,
.luxury-rsvp-form select,
#guestsCount {
  color: var(--card-text-color) !important;
  border-color: rgba(86, 87, 58, 0.55) !important;
}

/* Placeholders */
.luxury-rsvp-form input::placeholder,
.luxury-rsvp-form textarea::placeholder {
  color: rgba(86, 87, 58, 0.45) !important;
}

/* Focus */
.luxury-rsvp-form input:focus,
.luxury-rsvp-form textarea:focus,
.luxury-rsvp-form select:focus {
  border-color: var(--card-text-color) !important;
  box-shadow: 0 0 0 4px rgba(86, 87, 58, 0.08) !important;
}

/* Guest dropdown options */
#guestsCount option {
  color: var(--card-text-color) !important;
  background: #ffffff !important;
}

/* Divider */
.form-divider span {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(86, 87, 58, 0.45),
    transparent
  ) !important;
}

/* Submitted icon */
.submitted-icon {
  background: var(--card-text-color) !important;
  color: #ffffff !important;
}

/* Location button */
.location-view-map-button,
.maps-button,
.road-video-button {
  color: var(--card-text-color) !important;
  border-color: rgba(86, 87, 58, 0.45) !important;
}

/* Map icon */
.map-pin-icon {
  color: var(--card-text-color) !important;
}

/* =========================
   Full Image Sections
   The image height is automatic so the full image is shown.
   This removes gaps between image sections without cropping.
========================= */

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

.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: #ffffff;
}


/* =========================
   RSVP Registry Note
========================= */

.rsvp-registry-note {
  margin: 8px auto 26px;
  max-width: 330px;
  color: var(--black-text, #1b0507) !important;
  font-family: var(--english-font) !important;
  font-size: clamp(13px, 3.4vw, 15px);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.3px;
  text-align: center;
}

.rsvp-registry-note strong {
  display: inline-block;
  margin-top: 4px;
  color: var(--black-text, #1b0507) !important;
  font-weight: 500;
  letter-spacing: 1px;
}


/* =========================
   Fixed Guests Label On Location
========================= */

.fixed-guests-location-note {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  z-index: 20;

  width: 100%;
  padding: 0 12px;

  text-align: center;
  color: var(--card-text-color, #56573a);
  font-family: var(--english-font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.2px;
  line-height: 1.4;

  opacity: 0.9;
  pointer-events: none;
}

.fixed-guests-location-note span {
  font-weight: 600;
}

/* =========================
   Final Small Spacing Fixes
========================= */

/* Make Invitees text a little bigger */
.fixed-guests-location-note {
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 1.3px !important;
}

/* Add more top spacing before wedding registry note */
.rsvp-registry-note {
  margin-top: 35px !important;
}

/* =========================
   New RSVP + Countdown Scroll Animation
========================= */

.section-animate .countdown-header,
.section-animate .countdown-layout,
.section-animate .canva-rsvp-card,
.section-animate .canva-rsvp-intro,
.section-animate .canva-form-group,
.section-animate .canva-submit-btn {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.section-visible .countdown-header,
.section-visible .countdown-layout,
.section-visible .canva-rsvp-card,
.section-visible .canva-rsvp-intro,
.section-visible .canva-form-group,
.section-visible .canva-submit-btn {
  opacity: 1;
  transform: translateY(0);
}

.section-visible .countdown-header { transition-delay: 0.04s; }
.section-visible .countdown-layout { transition-delay: 0.16s; }
.section-visible .canva-rsvp-intro { transition-delay: 0.08s; }
.section-visible .canva-form-group:nth-of-type(1) { transition-delay: 0.16s; }
.section-visible .canva-form-group:nth-of-type(2) { transition-delay: 0.24s; }
.section-visible .canva-form-group:nth-of-type(3) { transition-delay: 0.32s; }
.section-visible .canva-form-group:nth-of-type(4) { transition-delay: 0.4s; }
.section-visible .canva-submit-btn { transition-delay: 0.48s; }

/* Keep website white and keep image borders touching */
html,
body,
section,
.screen,
.image-full-section,
.timeline-section,
.dresscode-section,
.countdown-section,
.rsvp-section,
.location-section {
  background-color: #ffffff !important;
}

.image-full-section,
.timeline-section,
.dresscode-section {
  line-height: 0 !important;
  font-size: 0 !important;
}

.image-full-section img,
.timeline-section img,
.dresscode-section img {
  display: block !important;
  vertical-align: top !important;
}

.image-full-section + .image-full-section,
.image-full-section + .timeline-section,
.timeline-section + .countdown-section,
.countdown-section + .rsvp-section,
.rsvp-section + .location-section {
  margin-top: -1px !important;
}

/* =========================
   Compact Canva RSVP Section
========================= */

.canva-rsvp-section {
  padding: 34px 26px 46px !important;
}

.canva-rsvp-inner {
  max-width: 390px !important;
}

.canva-rsvp-intro {
  margin-bottom: 28px !important;
  font-size: clamp(24px, 7vw, 34px) !important;
  line-height: 1.28 !important;
}

.canva-rsvp-form {
  gap: 22px !important;
}

.canva-form-group {
  margin-bottom: 20px !important;
}

.canva-form-label {
  margin-bottom: 8px !important;
  font-size: clamp(15px, 4vw, 18px) !important;
  line-height: 1.25 !important;
}

.canva-rsvp-form input,
.canva-rsvp-form textarea {
  height: 44px !important;
  padding: 8px 12px !important;
  font-size: 15px !important;
}

.canva-rsvp-form textarea {
  height: 86px !important;
  min-height: 86px !important;
}

.canva-options {
  gap: 8px !important;
}

.canva-attendance-btn,
.canva-guest-btn {
  min-height: 44px !important;
  padding: 9px 12px !important;
  font-size: clamp(14px, 3.7vw, 16px) !important;
  line-height: 1.2 !important;
}

.canva-submit-wrap {
  margin-top: 4px !important;
}

.submit-rsvp {
  height: 50px !important;
  padding: 0 18px !important;
  border-radius: 6px !important;

  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;

  font-size: clamp(18px, 5vw, 22px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

.submit-rsvp:hover,
.submit-rsvp:active,
.submit-rsvp:focus {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  transform: none !important;
}

.rsvp-status,
.rsvp-submitted-message {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

/* Smaller phones */
@media (max-width: 390px) {
  .canva-rsvp-section {
    padding: 30px 22px 42px !important;
  }

  .canva-rsvp-intro {
    font-size: clamp(22px, 6.5vw, 30px) !important;
    margin-bottom: 24px !important;
  }

  .canva-form-group {
    margin-bottom: 18px !important;
  }

  .canva-form-label {
    font-size: 15px !important;
  }

  .canva-attendance-btn,
  .canva-guest-btn {
    min-height: 40px !important;
    font-size: 14px !important;
  }

  .submit-rsvp {
    height: 46px !important;
    font-size: 18px !important;
  }
}

/* =========================
   Invitation Scroll Video
========================= */

.invitation-video-section {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  overflow: hidden;
  background: #ffffff;
  line-height: 0;
  font-size: 0;
}

.invitation-scroll-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: #ffffff;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Faster stamp to intro transition */


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

.click-text.fade-out {
  animation: textFadeOut 0.25s ease forwards !important;
}
/* =========================
   Fix Countdown Logo Center Position
========================= */

.countdown-layout {
  width: min(100%, 390px) !important;
  height: 330px !important;
  position: relative !important;
  margin: 0 auto !important;
}

.countdown-logo {
  position: absolute !important;
  left: 50% !important;
  top: 56% !important;
  transform: translate(-50%, -50%) !important;
  width: clamp(120px, 34vw, 155px) !important;
  z-index: 2 !important;
}

/* Move numbers farther away from the center */
.countdown-days {
  top: 15% !important;
  left: 2% !important;
}

.countdown-hours {
  top: 15% !important;
  right: 2% !important;
}

.countdown-minutes {
  top: 67% !important;
  left: 2% !important;
}

.countdown-seconds {
  top: 67% !important;
  right: 2% !important;
}

/* Keep numbers above but not touching the logo */
.countdown-item {
  width: 95px !important;
  z-index: 3 !important;
}

.countdown-item span {
  font-size: clamp(32px, 9vw, 44px) !important;
}

.countdown-item small {
  font-size: clamp(10px, 2.7vw, 12px) !important;
}

/* Smaller phones */
@media (max-width: 390px) {
  .countdown-layout {
    height: 310px !important;
  }

  .countdown-logo {
    top: 56% !important;
    width: clamp(110px, 33vw, 140px) !important;
  }

  .countdown-days {
    left: 0 !important;
  }

  .countdown-hours {
    right: 0 !important;
  }

  .countdown-minutes {
    left: 0 !important;
  }

  .countdown-seconds {
    right: 0 !important;
  }

  .countdown-item {
    width: 86px !important;
  }
}


/* =========================
   Remove gap between Letter and Location
========================= */

html,
body {
  background: #ffffff !important;
}

.letter-section {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  line-height: 0 !important;
  font-size: 0 !important;
  background: #ffffff !important;
}

.letter-section img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: top !important;
  object-fit: contain !important;
  background: #ffffff !important;
}

/* Pull location section up by 1px to kill tiny browser gap */
.letter-section + .location-section {
  margin-top: -1px !important;
}

/* Keep location full screen */
.location-section {
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
}

/* Make the actual location image fill the location section */
.location-bg-image {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* =========================
   RSVP Conditional Fields + Submit Animation
========================= */

.canva-conditional-fields {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    transform 0.35s ease,
    margin 0.35s ease;
}

.canva-conditional-fields.hidden-rsvp-fields {
  max-height: 0 !important;
  opacity: 0 !important;
  transform: translateY(-8px) !important;
  margin-bottom: 0 !important;
  pointer-events: none;
}

.canva-rsvp-form {
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    max-height 0.5s ease;
}

.canva-rsvp-form.rsvp-form-hide-animation {
  opacity: 0 !important;
  transform: translateY(-14px) !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.rsvp-submitted-message {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.rsvp-submitted-message.show-submitted {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   Scroll To Continue Text
========================= */

.scroll-to-continue {
  position: absolute;
  left: 0;
  bottom: calc(26px + env(safe-area-inset-bottom));
  width: 100%;
  z-index: 10;

  text-align: center;
  color: #ffffff;
  font-family: var(--english-font);
  pointer-events: none;

  opacity: 0;
  transform: translateY(10px);
  animation: scrollTextFadeIn 1s ease forwards 0.8s;
}

.scroll-to-continue p {
  margin: 0;
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 1.4;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.scroll-to-continue span {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  line-height: 1;
  animation: scrollArrowMove 1.4s ease-in-out infinite;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

@keyframes scrollTextFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

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

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

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