/* =================================================================
   THE SACRED GARDEN - LUXURY WEDDING INVITATION STYLES
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Ovo&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Alex+Brush&display=swap');

/* Local fonts — files live in the fonts/ folder. */
@font-face {
  font-family: 'HeroScript';
  src: url('fonts/IranNastaliq.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IranNastaliq';
  src: url('fonts/IranNastaliq.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Shekasteh';
  src: url('fonts/Shekasteh.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazir';
  src: url('fonts/Vazir-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'VazirRegular';
  src: url('fonts/Vazir-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HeroScript';
  src: url('fonts/heroScript.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-cream: #F9F0E0;
  --bg-card: #FAF4EB;
  --gold-primary: #B48C3D;
  --gold-dark: #a67d2b;
  --gold-deep: #a07b33;
  --gold-light: #cda95a;
  --gold-shimmer: #d8ba72;
  --burgundy: #5A0F1B;
  --text-dark: #4f4f4f;
  --text-brown: #6a5140;
  --border-gold: rgba(180, 140, 61, 0.3);
  --shadow-soft: 0 10px 30px rgba(140, 100, 60, 0.08);
  --shadow-card: 0 15px 35px rgba(90, 15, 27, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-dark);
    font-family: 'Vazir', Arial, serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── OVERLAY & VIDEO SEQUENCE ── */

#weiOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: opacity 1.4s ease, visibility 1.4s ease;
}

#weiOverlay.is-loading {
  cursor: wait;
}

#weiOverlay.is-ready {
  cursor: pointer;
}

#weiImg {
  width: 90%;
  max-width: 440px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(140, 100, 60, 0.15));
  transition: transform 0.4s ease;
}

#weiOverlay.is-ready:hover #weiImg {
  transform: scale(1.02);
}

#weiLoadingWrap {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

#weiOverlay.is-ready #weiLoadingWrap {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  pointer-events: none !important;
}

.wei-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(180, 140, 61, 0.2);
  border-top-color: var(--gold-primary);
  border-right-color: var(--gold-primary);
  border-radius: 50%;
  animation: weiSpin 0.8s linear infinite;
}

@keyframes weiSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#weiLoadingLabel {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(140, 100, 60, 0.85);
  animation: weiPulse 2s ease-in-out infinite;
  white-space: nowrap;
}

#weiTapWrap {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

#weiOverlay.is-ready #weiTapWrap {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
}

@keyframes weiTapIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

#weiTapLabel {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(140, 100, 60, 0.85);
  animation: weiPulse 2.4s 1.6s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes weiPulse {

  0%,
  100% {
    opacity: 0.5;
    letter-spacing: 0.26em;
  }

  50% {
    opacity: 1;
    letter-spacing: 0.32em;
  }
}

.wei-chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(140, 100, 60, 0.7);
  border-top: 2px solid rgba(140, 100, 60, 0.7);
  transform: rotate(-45deg);
  animation: weiChevron 2.4s 1.9s ease-in-out infinite;
}

@keyframes weiChevron {

  0%,
  100% {
    transform: rotate(-45deg) translate(0, 0);
    opacity: 0.6;
  }

  50% {
    transform: rotate(-45deg) translate(3px, -3px);
    opacity: 1;
  }
}

#weiVideoWrap {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-cream);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

#weiVideoWrap.wei-video-in {
  opacity: 1;
  pointer-events: all;
}

#weiVideoWrap.wei-video-out {
  opacity: 0;
  transition: opacity 1.4s ease;
}

#weiVideo {
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  display: block;
  object-fit: contain;
  box-shadow: var(--shadow-soft);
  border-radius: 8px;
}

/* ── FLOATING AUDIO TOGGLE ── */

#weiAudioBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: var(--burgundy);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2147483647;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(90, 15, 27, 0.35);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.3s ease, background-color 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#weiAudioBtn:hover {
  transform: scale(1.08);
  background: #731423;
}

#weiAudioBtn svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

/* ── CONTAINER & SECTIONS LAYOUT ── */

.container {
  max-width: 425px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.section {
  padding: 70px 0;
  text-align: center;
  position: relative;
}

.section-title {
  font-family: 'HeroScript', 'Vazir', Georgia, serif;
  font-size: 38px;
  color: var(--gold-dark);
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.section-subtitle {
  font-family: 'HeroScript', 'Vazir', 'Ovo', Georgia, serif;
  font-size: 18px;
  color: var(--text-brown);
  margin-bottom: 30px;
  font-style: italic;
}

/* ── HERO SECTION ── */

.hero-section {
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-arch-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 30px;
}

.hero-arch-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-content {
  text-align: center;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  z-index: 2;
}

.couple-names {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 68px;
  color: var(--gold-dark);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #a67d2b 0%, #B48C3D 50%, #846f61 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ampersand {
  display: block;
  font-family: 'HeroScript', 'Vazir', Georgia, serif;
  font-size: 48px;
  color: var(--gold-dark);
  margin: 5px 0;
}

.tagline {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
  font-weight: 500;
  direction: rtl;
}

.event-date-display {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  color: var(--gold-dark);
  margin-bottom: 25px;
  letter-spacing: 0.1em;
}

.hero-quote {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--gold-deep);
  margin: 25px 0;
  text-transform: uppercase;
}

.welcome-box {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  border: 3px solid #d4a46a;
  border-radius: 12px;
  padding: 30px 25px;
  margin-top: 30px;
  box-shadow: var(--shadow-soft);
}

.welcome-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.welcome-text {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
}

.scroll-indicator {
  margin-top: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.8;
}

.scroll-arrow {
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--gold-dark);
  border-right: 2px solid var(--gold-dark);
  transform: rotate(45deg);
  animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }

  40% {
    transform: rotate(45deg) translate(4px, 4px);
  }

  60% {
    transform: rotate(45deg) translate(2px, 2px);
  }
}

/* ── COUNTDOWN TIMER SECTION ── */

.timer-section {
  padding: 50px 0 70px;
}

#countdownContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 40px auto 20px;
}

.time-block {
  text-align: center;
  min-width: 80px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 15px 10px;
  box-shadow: var(--shadow-soft);
}

.number-wrap {
  overflow: hidden;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translatey(12px);
}

.number {
  font-size: 44px;
  font-family: 'Ovo', serif;
  line-height: 1.2;
  display: block;
  white-space: nowrap;
  background: linear-gradient(105deg, #B48C3D 0%, #B48C3D 25%, #cda95a 46%, #d8ba72 52%, #cda95a 58%, #B48C3D 75%, #B48C3D 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  clip-path: inset(0 100% 0 0);
  transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.55s ease;
}

.number.revealed {
  animation: inkReveal 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards, candleShimmer 4.5s ease-in-out 1.1s infinite;
}

#tb-days .number.revealed {
  animation-delay: 0s, 1.1s;
}

#tb-hours .number.revealed {
  animation-delay: 0.18s, 1.28s;
}

#tb-mins .number.revealed {
  animation-delay: 0.36s, 1.46s;
}

#tb-secs .number.revealed {
  animation-delay: 0.54s, 1.64s;
}

@keyframes inkReveal {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  100% {
    clip-path: inset(0 0% 0 0);
  }
}

@keyframes candleShimmer {
  0% {
    background-position: 100% 0;
  }

  50% {
    background-position: 0% 0;
  }

  100% {
    background-position: 100% 0;
  }
}

.label {
  font-size: 15px;
  margin-top: 6px;
  font-weight: 400;
  color: var(--gold-primary);
  font-family: 'Ovo', serif;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.separator {
  font-size: 36px;
  color: var(--gold-primary);
  font-family: 'Ovo', serif;
  margin-top: -20px;
  transform: translatey(12px);
}

/* ── SCHEDULE OF EVENTS ── */

.timeline {
  position: relative;
  max-width: 520px;
  margin: 40px auto 0;
  padding: 10px 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 20px 24px;
  width: 88%;
  max-width: 440px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(90, 15, 27, 0.1);
}

.timeline-time {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--burgundy);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(90, 15, 27, 0.06);
  border: 1px solid rgba(90, 15, 27, 0.15);
  margin-bottom: 8px;
}

.timeline-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-brown);
}

/* ── LOCATION SECTION ── */

.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 30px 25px;
  box-shadow: var(--shadow-card);
  margin-top: 30px;
}

.venue-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.venue-address {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 34px;
}

.map-wrapper {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  margin-bottom: 20px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.directions-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(166, 125, 43, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-directions:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(166, 125, 43, 0.35);
}

.btn-directions img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
}

/* ── RSVP GRID ── */

.rsvp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 600px) {
  .rsvp-grid {
    grid-template-columns: 1fr;
  }
}

/* ── RSVP SECTION & FORM ── */

.rsvp-container {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: var(--shadow-card);
  max-width: 560px;
  margin: 30px auto 0;
  position: relative;
}

.wax-seal-btn-wrap {
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;

}

.wax-seal-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 6px 12px rgba(90, 15, 27, 0.2));
}

.wax-seal-btn-wrap:hover .wax-seal-img {
  transform: scale(1.08) rotate(5deg);
}

.wax-seal-label {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-top: 10px;
  font-weight: 600;
}

.rsvp-form {
  text-align: right;
  margin-top: 30px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--gold-dark);
  margin-bottom: 8px;

}

.form-subtext {
  font-size: 13px;
  color: var(--text-brown);
  margin-bottom: 6px;

}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  font-family: 'Ovo', serif;
  font-size: 15px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(180, 140, 61, 0.15);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dark);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--burgundy);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 14px 20px;
  background: var(--burgundy);
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
  box-shadow: 0 4px 15px rgba(90, 15, 27, 0.25);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit:hover:not(:disabled) {
  background: #731423;
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-submit .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: btnSpin 0.8s linear infinite;
  margin-right: 10px;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── SUCCESS TOAST / MODAL ── */

.rsvp-success-toast {
  display: none;
  background: var(--bg-card);
  border: 2px solid var(--gold-dark);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}

.rsvp-success-toast.active {
  display: block;
}

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

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

/* ── FOOTER ── */

.footer-section {
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid var(--border-gold);
  margin-top: 50px;
}

.footer-signature {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--text-brown);
  text-transform: uppercase;
}

/* ── RESPONSIVE BREAKPOINTS ── */

@media (max-width: 768px) {
  .couple-names {
    font-size: 50px;
  }

  .section-title {
    font-size: 32px;
  }

  #countdownContainer {
    gap: 6px;
  }

  .time-block {
    min-width: 65px;
    padding: 10px 6px;
  }

  .number {
    font-size: 34px;
  }

  .label {
    font-size: 13px;
  }

  .timeline-content {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .couple-names {
    font-size: 40px;
  }

  .ampersand {
    font-size: 36px;
  }

  .event-date-display {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .welcome-box {
    padding: 20px 15px;
  }

  .rsvp-container {
    padding: 25px 18px;
  }
}

html,
body {
  background: #f9f0e0;
}

body {
  color: #6c513f;
    font-family: 'Vazir', Arial, serif;
}

.main-content {
  width: 100%;
  overflow: hidden;
}

.section,
.footer-section {
  min-height: 0;
  padding: 0;
  text-align: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0;
}

.section-title {
  position: absolute;
  z-index: 5;
  width: 560px;
  margin: 0;
  color: #a67d2b;
  font-family: 'HeroScript', 'Vazir', Georgia, serif;
  font-size: 41px;
  font-weight: 400;
  line-height: 64px;
  letter-spacing: 0;
  text-align: center;
}

.section-subtitle {
  margin: 0;
}

#weiOverlay {
  background: #f9f0e0;
  transition: opacity 1.4s ease;
}

#weiImg {
  width: 100%;
  max-width: 440px;
  filter: none;
}

#weiLoadingWrap,
#weiTapWrap {
  bottom: 30%;
  gap: 7px;
}

#weiTapLabel {
  font-size: 11px;
  letter-spacing: 0.26em;
  color: rgba(140, 100, 60, 0.75);
}

.wei-chevron {
  width: 10px;
  height: 10px;
  border-width: 1.5px;
  border-color: rgba(140, 100, 60, 0.6);
}

#weiVideoWrap {
  background: #f9f0e0;
}

#weiVideo {
  width: 100%;
  max-width: 440px;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}

#weiAudioBtn {
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#weiAudioBtn svg {
  width: 30px;
  height: 30px;
}

#weiIconPlay {
  display: none;
}

.hero-section {
  position: relative;
  display: block;
  height: 1240px;
  min-height: 1240px;
  overflow: hidden;
  background: #f9f0e0;
}

.hero-art,
.hero-content {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-art {
  z-index: 4;
}

.hero-art img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  z-index: 4;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
  aspect-ratio: 9 / 16;
  transform: translateX(-50%);
  object-fit: cover;
  pointer-events: none;
}

.hero-paper {
  top: 753px;
  left: calc(50% - 372px);
  width: 744px;
  height: 487px !important;
}

.hero-floral {
  top: 547px;
}

.hero-floral-left {
  left: calc(50% - 250px);
  width: 224px;
  height: 343px !important;
}

.hero-floral-right {
  left: calc(50% + 14px);
  width: 236px;
  height: 359px !important;
}

.hero-script {
  position: absolute;
  top: 800px;
  left: 50%;
  z-index: 4;
  width: 283px;
  height: 48px;
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
  font-family: 'HeroScript', 'Ovo', serif;
  font-size: 30px;
  line-height: 1.6;
  color: #7a6a58;
  white-space: nowrap;
}

.hero-content {
  z-index: 5;
  text-align: center;
}

.tagline,
.couple-names,
.event-date-display,
.hero-ampersand,
.hero-quote,
.welcome-box,
.scroll-indicator {
  position: absolute;
  z-index: 6;
  margin: 0;
  transform: translateX(-50%);
}

.tagline {
  top: 164px;
  left: 50%;
  width: 560px;
  color: #a67d2b;
  direction: rtl;
  font-family: 'IranNastaliq', 'Alex Brush', cursive;
  font-size: 50px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: none;
}

.couple-names {
  top: 264px;
  left: 50%;
  width: 560px;
  color: #a67d2b;
  direction: rtl;
  font-family: 'IranNastaliq', 'Alex Brush', cursive;
  font-size: 60px;
  font-weight: 400;
  line-height: 115px;
  letter-spacing: 0;
}

.couple-names .name-part {
  display: block;
}

.event-date-display {
  top: 206px;
  left: 50%;
  width: 560px;
  color: #a67d2b;
  direction: rtl;
  font-family: 'IranNastaliq', 'HeroScript', 'Vazir', Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 13px;
  letter-spacing: 0;
}

.hero-ampersand {
  top: 355px;
  left: 50%;
  width: 55px;
  color: #a07b33;
  font-family: 'HeroScript', 'Vazir', Georgia, serif;
  font-size: 40px;
  line-height: 44px;
}

.hero-quote {
  top: 880px;
  left: 50%;
  width: 560px;
  color: #a67d2b;
  font-family: 'Shekasteh', 'Ovo', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0;
  text-transform: none;
  direction: rtl;
  white-space: pre-line;
}

.welcome-box {
  top: 1120px;
  left: 50%;
  width: 307px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.welcome-title {
  margin: 0 0 8px;
  color: #a67d2b;
  font-family: 'HeroScript', 'Vazir', Georgia, serif;
  font-size: 41px;
  font-weight: 400;
  line-height: 43px;
}

.welcome-text {
  color: #7a6a58;
  font-family: 'HeroScript', 'Ovo', Georgia, serif;
  font-size: 28px;
  line-height: 42px;
  direction: rtl;
  padding: 0px 28px 28px 28px;
}

.scroll-indicator {
  top: 518px;
  left: 50%;
  width: 316px;
  gap: 8px;
  color: #a67d2b;
  font-family: 'Alex Brush', cursive;
  font-size: 32px;
  line-height: 35px;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

.scroll-arrow {
  width: 16px;
  height: 16px;
  border-width: 1px;
  border-color: #a67d2b;
  transform: rotate(45deg);
}

.timer-section {
  position: relative;
  height: 350px;
  background: #f9f0e0;
}

.timer-section .container,
.schedule-section .container,
.location-section .container,
.map-section .container,
.rsvp-section .container,
.footer-section .container {
  position: relative;
}

.timer-section .section-title {
  top: 145px;
  left: 50%;
  transform: translateX(-50%);
  direction: rtl;
  font-family: HeroScript, 'Segoe UI', Tahoma, sans-serif;
  font-size: 30px;
  line-height: 1.6;
}

.timer-section .welcome-box {
  top: 28px;
  left: 50%;
  width: min(560px, calc(100vw - 40px));
  transform: translateX(-50%);
}

#countdownHeader {
  display: none;
}

#countdownContainer {
  position: absolute;
  top: 185px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* direction: rtl; */
  gap: 6px;
  width: auto;
  margin: 0;
  transform: translateX(-50%);
}

.time-block {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.number-wrap {
  height: 56px;
}

.number {
  font-size: 45px;
    font-family: 'Vazir', Arial, serif;
  line-height: 1.2;
}

.label {
  margin-top: 8px;
  color: #b48c3d;
  font-size: 17px;
  font-family: 'HeroScript', Tahoma, sans-serif;
  direction: rtl;
  line-height: 1.5;
  opacity: 0.85;
}

.separator {
  margin-top: -40px;
  color: #b48c3d;
  font-size: 52px;
    font-family: 'Vazir', Arial, serif;
  line-height: 1;
  opacity: 0.9;
}

.schedule-section {
  position: relative;
  height: 570px;
  overflow: hidden;
  background: #f9f0e0;
}

.section-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.schedule-art img {
  position: absolute;
  display: block;
  max-width: none;
}

.schedule-paper {
  left: calc(50% - 372px);
  width: 744px;
}

.schedule-paper-top {
  top: -20px;
  height: 346px !important;
}

.schedule-paper-bottom {
  top: 321px;
  height: 259px !important;
}

.schedule-decor {
  top: 48px;
  height: auto !important;
}


.schedule-decor-left {
  left: calc(50% - 249px);
  width: 79px;
}

.schedule-decor-right {
  left: calc(50% + 170px);
  width: 78px;
}


@media (max-width: 720px) {
.schedule-decor-left {
  left: calc(50% - 149px);
  width: 79px;
}

.schedule-decor-right {
  left: calc(50% + 70px);
  width: 78px;
}

}
.schedule-section .section-title {
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline {
  position: absolute;
  inset: 0;
  z-index: 4;
  max-width: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50px;
  margin: 0;
  display: block;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #846f61;
  transform: translateX(-50%) rotate(45deg);
}

.timeline-item:nth-child(1) {
  top: 143px;
}

.timeline-item:nth-child(2) {
  top: 215px;
}

.timeline-item:nth-child(3) {
  top: 302px;
}

.timeline-item:nth-child(4) {
  top: 392px;
}

.timeline-item:nth-child(5) {
  top: 468px;
}

.timeline-item:nth-child(1)::before,
.timeline-item:nth-child(3)::before {
  top: 18px;
}

.timeline-item:nth-child(2)::before {
  top: 28px;
}

.timeline-item:nth-child(4)::before,
.timeline-item:nth-child(5)::before {
  top: 7px;
}

.timeline-content {
  position: static;
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.timeline-time,
.timeline-title {
  position: absolute;
  display: block;
  margin: 0;
  text-align: center;
}

.timeline-time {
  left: calc(50% - 165px);
  width: 120px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #846f61;
    font-family: 'Vazir', Arial, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 47px;
  letter-spacing: 0;
}

.timeline-title {
  top: 0;
  left: calc(50% + 40px);
  width: 190px;
  color: #6c513f;
    font-family: 'Vazir', Arial, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 22px;
}

.timeline-desc {
  display: none;
}

.timeline-item:nth-child(1) .timeline-time,
.timeline-item:nth-child(3) .timeline-time {
  top: -2px;
}

.timeline-item:nth-child(2) .timeline-time {
  top: 9px;
}

.timeline-item:nth-child(4) .timeline-time,
.timeline-item:nth-child(5) .timeline-time {
  top: -14px;
}

.location-section {
  position: relative;
  height: 457px;
  background: #f9f0e0;
}

.location-section .section-title {
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'HeroScript', 'Ovo', Georgia, serif;
  direction: rtl;
}

.location-content {
  position: absolute;
  inset: 0;
}

.venue-name,
.venue-address,
.venue-image {
  position: absolute;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}

.venue-name {
  top: 128px;
  width: 232px;
  color: #6c513f;
  font-family: 'HeroScript', 'Ovo', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 31px;
  direction: rtl;
}

.venue-address {
  top: 170px;
  width: 308px;
  color: #6c513f;
  font-family: 'HeroScript', 'Ovo', Georgia, serif;
  font-size: 22px;
  line-height: 21px;
  direction: rtl;
}

.venue-address::before {
  content: 'آدرس: ';
}

.venue-image {
  top: 246px;
  width: 380px;
  height: 253px;
  object-fit: cover;
}

.map-section {
  position: relative;
  height: 440px;
  background: #f9f0e0;
  margin-top: 38px;
}

.map-wrapper {
  position: relative;
  width: 335px;
  height: 335px;
  max-width: calc(100vw - 40px);
  margin: 20px auto;
  border: 3px solid #d4a46a;
  border-radius: 10px;
  overflow: visible;
  box-shadow: var(--shadow-card);
}

.map-wrapper::before,
.map-wrapper::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 50%;
  width: 190px;
  height: 72px;
  pointer-events: none;
}

.map-wrapper::before {
  top: 3px;
  background: url('media/noroot(2).webp') top center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.map-wrapper::after {
  bottom: 3px;
  background: url('media/noroot(3).webp') bottom center / contain no-repeat;
  transform: translate(-50%, 50%);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 7px;
}

.directions-buttons {
  gap: 10px;
}

.btn-directions {
  width: 44px;
  height: 44px;
}

.btn-directions img {
  width: 26px;
  height: 26px;
}

.rsvp-section {
  position: relative;
  height: 491px;
  max-width: 425px;
  margin: 0 auto;
  overflow: hidden;
  background: #f6f1e8;
}

.rsvp-section::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 50%;
  width: 744px;
  height: 453px;
  background: url('media/paper1.webp') center / 100% 100% no-repeat;
  transform: translateX(-50%);
}

.rsvp-section::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 15px;
  right: -7%;
  width: 210px;
  aspect-ratio: 385 / 482;
  pointer-events: none;
  background: url('media/noroot.webp') top right / contain no-repeat;
}


.rsvp-grid {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  margin: 0;
}

.rsvp-grid::before {
  content: '';
  position: absolute;
  z-index: 1;
  bottom: -3%;
  left: -47px;
  width: 210px;
  aspect-ratio: 385 / 482;
  pointer-events: none;
  background: url('media/noroot(1).webp') bottom left / contain no-repeat;
  transform: rotate(-90deg);
}

.rsvp-description {
  position: absolute;
  top: 86px;
  left: 50%;
  z-index: 4;
  width: 280px;
  margin: 0;
  color: #6c513f;
  direction: rtl;
  font-family: 'HeroScript', 'Ovo', Georgia, serif;
  line-height: 44px;
  font-size: 23px;
/* letter-spacing: .4em; */
  text-align: center;
  transform: translateX(-50%);
}

.wax-seal-btn-wrap {
  position: absolute;
  top: 180px;
  left: 50%;
  z-index: 5;
  width: 190px;
  height: 192px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
}

.wax-seal-img {
  display: block;
  width: 190px;
  height: 142px;
  object-fit: contain;
  filter: none;
}

.wax-seal-btn-wrap:hover .wax-seal-img {
  transform: none;
}

.wax-seal-btn-wrap .wei-chevron {
  position: absolute;
  top: 144px;
  left: 50%;
  margin-left: -6px;
}

.wax-seal-label {
  position: absolute;
  top: 148px;
  left: 50%;
  width: 224px;
  margin: 0;
  color: #a67d2b;
  font-family: 'HeroScript', 'Vazir', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: 0;
  text-transform: none;
  font-family: 'HeroScript', 'vazir', 'Ovo', Georgia, serif;
  transform: translateX(-50%);
}

.rsvp-closing {
  position: absolute;
  top: 390px;
  left: 50%;
  z-index: 5;
  width: 310px;
  margin: 0;
  color: #6c513f;
  direction: rtl;
  font-family: 'HeroScript', Arial, sans-serif;
  font-size: 30px;
  line-height: 22px;
  text-align: center;
  transform: translateX(-50%);
}

.footer-section {
  position: relative;
  height: 40px;
  margin-top: 0;
  overflow: hidden;
  border-top: 0;
  background: #e8ddcf;
}

.footer-art,
.footer-art::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: 450px;
  height: 673px;
  transform: translateX(-50%);
}

.footer-art {
  z-index: 1;
}

.footer-photo {
  display: none;
  width: 450px;
  height: 675px;
  object-fit: cover;
}

.footer-art::after {
  content: '';
  z-index: 2;
  background: linear-gradient(180deg, rgba(232, 221, 207, 0) 0%, rgba(249, 240, 224, 1) 100%);
}

.footer-section .container {
  z-index: 4;
}

.footer-signature {
  position: absolute;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}

.footer-signature {
  display: none;
  top: 73px;
  width: 360px;
  color: #a67d2b;
   font-family: 'Alex Brush', cursive;
  font-size: 28px;
  line-height: 45px;
}

.rsvp-dialog {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(44, 31, 24, 0.5);
}

.rsvp-dialog.is-open {
  display: flex;
}

.rsvp-dialog-panel {
  direction: rtl;
  font-family: 'Vazir', Arial, serif;
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 42px 38px 36px;
  background: #f9f0e0;
  box-shadow: 0 18px 60px rgba(90, 15, 27, 0.2);
}

.rsvp-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6c513f;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 30px;
}

.rsvp-dialog-subtitle {
  margin: 6px 0 26px;
  color: #6c513f;
    font-family: 'Vazir', Arial, serif;
  font-size: 18px;
  text-align: center;
}

.rsvp-form {
  display: block;
  margin: 0;
  text-align: right;
}

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

.form-label {
  
  display: block;
  margin: 0 0 7px;
  color: #6c513f;
    font-family: 'Vazir', Arial, serif;
  font-size: 16px;
  line-height: 1.3;
}

.attendance-fieldset {
  padding: 0;
  border: 0;
}

.attendance-fieldset .form-label {
  margin-bottom: 8px;
}

.form-subtext {
  margin: -2px 0 6px;
  color: #6c513f;
    font-family: 'Vazir', Arial, serif;
  font-size: 13px;
}

.form-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(108, 81, 63, 0.35);
  border-radius: 0;
  outline: none;
  background: rgba(255, 255, 255, 0.65);
  color: #4f4f4f;
    font-family: 'Vazir', Arial, serif;
  font-size: 15px;
}

.form-input:focus {
  border-color: #a67d2b;
  box-shadow: 0 0 0 2px rgba(166, 125, 43, 0.12);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-right: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6c513f;
    font-family: 'Vazir', Arial, serif;
  font-size: 15px;
}

.radio-label input[type='radio'] {
  width: 16px;
  height: 16px;
  accent-color: #5a0f1b;
}

.btn-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 20px;
  border: 0;
  border-radius: 20px;
  background: #5a0f1b;
  box-shadow: none;
  color: #f6f1e8;
  cursor: pointer;
    font-family: 'Vazir', Arial, serif;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.btn-submit:hover:not(:disabled) {
  background: #731423;
  transform: none;
}

.rsvp-success-toast {
  margin: 20px 0 0;
  padding: 22px;
  border: 1px solid #a67d2b;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rsvp-success-toast h3 {
  margin: 0 0 8px;
  color: #a67d2b;
  font-family: 'HeroScript', 'Vazir', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.success-text {
  color: #6c513f;
    font-family: 'Vazir', Arial, serif;
  font-size: 16px;
}

@media (max-width: 600px) {

  .section-title,
  .tagline,
  .couple-names,
  .event-date-display,
  .hero-ampersand,
  .hero-quote {
    font-size: 28px;
  }

  .couple-names {
    font-size: 64px;
  }

  .hero-quote {
    width: 90vw;
  }

  .welcome-box {
    width: 307px;
  }

  .rsvp-description {
    max-width: calc(100vw - 40px);
  }

  .rsvp-dialog-panel {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 424px) {
  .rsvp-description {
    font-size: 20px;
  }

  .rsvp-section::after {
    right: -12% !important;

  }
}