@charset "UTF-8";

/* ==========================================================================
   فونت‌های بومی (محلی) - بدون وابستگی به CDN
   ========================================================================== */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("../fonts/NotoNaskhArabic-subset.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Nastaliq Urdu";
  src: url("../fonts/NotoNastaliqUrdu-subset.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   متغیرها و پایه‌های طراحی (قالب نور / Emerald Noor)
   ========================================================================== */
:root {
  --emerald: #123f35;
  --emerald-deep: #082c26;
  --ivory: #fbf6ea;
  --paper: #f3ead9;
  --gold: #d5b875;
  --gold-deep: #aa8742;
  --ink: #17312c;
  --muted: #6b746f;

  --font-arabic: "Noto Naskh Arabic", "Vazirmatn", serif;
  --font-names: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
  --font-display: "Noto Naskh Arabic", "Vazirmatn", serif;
  --font-body: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 30px 80px rgba(8, 44, 38, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ivory);
  direction: rtl;
  text-align: right;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.scroll-locked {
  overflow: hidden;
  height: 100vh;
}

img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  display: block;
  max-width: 100%;
}

video {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   بخش پردهٔ آغازین و کارت روی جلد (Hero & Opening Gate)
   ========================================================================== */
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--emerald-deep);
  color: var(--ivory);
}

.hero__video,
.hero__poster-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__video {
  z-index: 0;
}

.hero__poster-frame {
  z-index: 1;
  pointer-events: none;
  user-select: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 160ms linear, visibility 0s linear 160ms;
}

.hero__poster-frame.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.hero__ornament {
  position: absolute;
  width: 48vw;
  aspect-ratio: 1;
  border: 1px solid rgba(213, 184, 117, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.hero__ornament::before,
.hero__ornament::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: inherit;
  border-radius: inherit;
}

.hero__ornament::after {
  inset: 20%;
}

.hero__ornament--one {
  left: -25vw;
  top: -15vw;
}

.hero__ornament--two {
  right: -25vw;
  bottom: -15vw;
}

/* کلیک برای باز کردن پاکت */
.opening-gate {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  color: inherit;
  cursor: pointer;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: max(36px, env(safe-area-inset-bottom));
  z-index: 8;
  transition: opacity 250ms linear;
}

.opening-gate.is-opening {
  opacity: 0;
  pointer-events: none;
}

.opening-gate__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 36, 30, 0.72);
  border: 1px solid rgba(213, 184, 117, 0.45);
  color: var(--gold);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  animation: pulse-hint 2s infinite ease-in-out;
}

@keyframes pulse-hint {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}

/* دکمه پخش موسیقی */
.music-control {
  position: fixed;
  z-index: 20;
  top: max(18px, env(safe-area-inset-top));
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ivory);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(5, 36, 30, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transition: background 0.25s ease, transform 0.25s ease;
  font-size: 12px;
}

.music-control:hover {
  transform: translateY(-2px);
  background: rgba(5, 36, 30, 0.82);
}

.music-control__icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--emerald-deep);
  font-weight: 800;
  font-size: 13px;
}

.music-control.is-muted .music-control__icon {
  background: rgba(255, 255, 255, 0.16);
  color: var(--ivory);
}

.music-control__label {
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* متن باز شدهٔ پرده (Hero Content) */
.hero__content {
  position: relative;
  z-index: 3;
  width: min(760px, 88vw);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(90px, env(safe-area-inset-top)) 0 max(110px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__content:not(.is-visible) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero__content.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.hero__bismillah {
  margin: 0 0 16px;
  font-family: var(--font-arabic);
  font-size: clamp(14px, 3.8vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero__intro {
  margin-bottom: 22px;
}

.hero__intro p {
  margin: 4px 0;
  font-family: var(--font-display);
  font-size: clamp(13px, 2.2vw, 16px);
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--emerald-deep);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.hero__names {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
}

.hero__person {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__name {
  display: block;
  font-family: var(--font-names);
  font-size: clamp(42px, 10vw, 76px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--emerald);
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
  padding: 4px 0;
}

.hero__parents {
  display: block;
  max-width: 520px;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: clamp(11px, 1.8vw, 13.5px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--emerald-deep);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero__ampersand {
  display: block;
  margin: 8px 0;
  font-family: var(--font-arabic);
  font-size: clamp(22px, 4.5vw, 34px);
  font-weight: 400;
  line-height: 1;
  color: var(--gold-deep);
}

.hero__closing-line {
  max-width: 560px;
  margin: 22px auto 0;
  font-family: var(--font-display);
  font-size: clamp(12px, 2vw, 15px);
  line-height: 1.7;
  color: var(--emerald-deep);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  color: var(--ivory);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: 1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-cue.is-visible {
  opacity: 0.85;
  transform: translate(-50%, 0);
}

.scroll-cue i {
  height: 28px;
  width: 1px;
  background: linear-gradient(var(--gold), transparent);
  animation: drift 1.8s infinite;
}

@keyframes drift {
  0% { transform: scaleY(0.2); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0.2); transform-origin: bottom; }
}

/* ==========================================================================
   بخش‌های اصلی صفحه (Sections Shared)
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(64px, 8vw, 100px) 22px;
  overflow: hidden;
  font-size: 14.5px;
}

.section__inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  text-align: center;
}

.section__inner--narrow {
  width: min(740px, 100%);
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.8vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--emerald);
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 700;
  color: var(--ink);
}

.section-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.85;
  color: #4b5854;
  margin: 18px auto 0;
  max-width: 680px;
}

/* ==========================================================================
   بخش خوش‌آمدگویی (Welcome - کاملاً وسط‌چین)
   ========================================================================== */
.welcome {
  display: grid;
  place-items: center;
  background: var(--ivory);
  text-align: center;
}

.welcome .section__inner {
  text-align: center;
}

.welcome h2,
.welcome .lead {
  text-align: center;
  margin-inline: auto;
}

.flourish {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: var(--gold-deep);
  margin-top: 28px;
}

.flourish span {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.flourish span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ==========================================================================
   کارت رونمایی از تاریخ با خراشیدن (Scratch Reveal)
   ========================================================================== */
.date-reveal {
  background: var(--emerald);
  color: var(--ivory);
  display: grid;
  place-items: center;
}

.date-reveal h2 {
  color: var(--gold);
}

.date-reveal .section-kicker {
  color: rgba(251, 246, 234, 0.7);
}

.date-reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 1px 1px, var(--gold) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle, black, transparent 75%);
}

.gesture-hint {
  margin: 10px 0 24px;
  color: rgba(251, 246, 234, 0.7);
  font-size: 12px;
}

.scratch-wrap {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1.58;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  touch-action: none;
}

.scratch-wrap.is-revealed {
  animation: date-celebrate 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes date-celebrate {
  50% { transform: scale(1.02); }
}

.date-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 0, #fffdf7, var(--paper));
  color: var(--ink);
  border: 1px solid rgba(213, 184, 117, 0.65);
  text-align: center;
  padding: 20px;
}

.date-card::before,
.date-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(170, 135, 66, 0.35);
  border-radius: 10px;
  pointer-events: none;
}

.date-card::after {
  inset: 22px;
  border-style: dotted;
}

.date-card__eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 3.5vw, 22px);
  color: var(--gold-deep);
  font-weight: 700;
}

.date-card__date {
  margin: 12px 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 6.5vw, 52px);
  line-height: 1.1;
  color: var(--emerald);
  font-weight: 800;
}

.date-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.date-card__meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-deep);
}

.date-card__venue {
  margin: 16px 0 0;
  font-family: var(--font-display);
  color: #65716d;
  font-size: 14px;
}

#scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

#scratch-canvas:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: -5px;
}

/* لایه باران گلبرگ‌های طلایی */
.petal-layer {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  overflow: hidden;
}

.petal-layer i {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  transform-origin: center;
  box-shadow: 0 2px 5px rgba(8, 44, 38, 0.12), inset 1px 1px 2px rgba(255, 255, 255, 0.42);
  will-change: transform, opacity;
}

.petal-layer i::after {
  content: "";
  position: absolute;
  inset: 14% 46%;
  border-radius: 999px;
  background: rgba(170, 135, 66, 0.2);
  transform: rotate(-8deg);
}

/* ==========================================================================
   بخش نگارخانه (Gallery)
   ========================================================================== */
.gallery-section {
  background: #eee5d6;
}

.gallery {
  position: relative;
  margin-top: 34px;
  width: min(860px, 100%);
  height: min(60vh, 580px);
  margin-inline: auto;
}

.gallery__track {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 24px;
}

.gallery__track:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 5px;
}

.gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd;
}

.gallery__slide.is-active {
  opacity: 1;
  transform: none;
  z-index: 2;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.gallery__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(18, 63, 53, 0.25);
  cursor: pointer;
  transition: 0.3s ease;
}

.gallery__dots button.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--emerald);
}

/* ==========================================================================
   بخش شمارش معکوس (Countdown)
   ========================================================================== */
.countdown-section {
  background: var(--ivory);
}

.countdown {
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 800px;
  border-top: 1px solid rgba(170, 135, 66, 0.35);
  border-bottom: 1px solid rgba(170, 135, 66, 0.35);
  direction: rtl;
}

.countdown__unit {
  min-width: 0;
  padding: 22px 10px;
  position: relative;
  text-align: center;
}

.countdown__unit:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 24%;
  bottom: 24%;
  width: 1px;
  background: rgba(170, 135, 66, 0.28);
}

.countdown__unit strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1;
  font-weight: 700;
  color: var(--emerald);
}

.countdown__unit span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* ==========================================================================
   بخش برنامهٔ جشن (Timeline - کاملاً وسط‌چین)
   ========================================================================== */
.timeline-section {
  background: #f2eadc;
  text-align: center;
}

.timeline {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 620px;
  margin-inline: auto;
}

.timeline__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  width: 100%;
  padding-bottom: 24px;
}

.timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.timeline__marker {
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
}

.timeline__marker span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(18, 63, 53, 0.18);
}

.timeline__content {
  text-align: center;
}

.timeline__content time {
  display: inline-block;
  color: var(--gold-deep);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.timeline__content h3 {
  margin: 4px 0 6px;
  font-size: clamp(19px, 2.8vw, 24px);
  color: var(--emerald);
}

.timeline__content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 480px;
}

/* ==========================================================================
   بخش مکان برگزاری (Venue Card)
   ========================================================================== */
.venue-section {
  padding: 0;
  background: var(--emerald-deep);
}

.venue-card {
  position: relative;
  display: grid;
  place-items: center;
  padding: 72px 24px;
  color: var(--ivory);
  overflow: hidden;
}

.venue-card__decor {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle at 50% 40%, rgba(213, 184, 117, 0.2), transparent 38%),
              repeating-radial-gradient(circle at 50% 50%, transparent 0 55px, rgba(213, 184, 117, 0.1) 56px 57px);
  transform: rotate(-8deg);
  pointer-events: none;
}

.venue-card__content {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
  text-align: center;
}

.venue-card .section-kicker {
  color: rgba(251, 246, 234, 0.75);
}

.venue-card h2 {
  color: var(--gold);
}

.venue-card h3 {
  font-size: clamp(26px, 5vw, 44px);
  margin: 20px 0 10px;
  color: var(--ivory);
}

.venue-card address {
  font-style: normal;
  max-width: 580px;
  margin: auto;
  color: rgba(251, 246, 234, 0.85);
  font-size: 15px;
  line-height: 1.7;
}

.venue-card p {
  color: rgba(251, 246, 234, 0.7);
  font-size: 13.5px;
  margin-top: 12px;
}

/* ==========================================================================
   بخش کد پوشش (Dress Code - کاملاً وسط‌چین)
   ========================================================================== */
.dress-section {
  background: var(--ivory);
  text-align: center;
}

.dress-section .section__inner {
  text-align: center;
}

.dress-section h2,
.dress-section h3,
.dress-section .lead {
  text-align: center;
  margin-inline: auto;
}

.dress-section h3 {
  color: var(--gold-deep);
  margin-top: 14px;
  margin-bottom: 8px;
}

.palette {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.palette span {
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.6), 0 8px 24px rgba(23, 49, 44, 0.15);
  transition: transform 0.25s ease;
}

.palette span:hover {
  transform: translateY(-4px) scale(1.08);
}

/* ==========================================================================
   بخش هدایا (Gifts)
   ========================================================================== */
.gifts-section {
  display: grid;
  place-items: center;
  background: var(--emerald);
  color: var(--ivory);
  text-align: center;
}

.gifts-section h2 {
  color: var(--gold);
}

.gifts-section .lead {
  color: rgba(251, 246, 234, 0.82);
  max-width: 640px;
}

.gift-icon {
  margin: 0 auto 22px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 184, 117, 0.5);
  border-radius: 50%;
  color: var(--gold);
  font-size: 28px;
}

/* ==========================================================================
   بخش ثبت حضور (RSVP - کاملاً وسط‌چین)
   ========================================================================== */
.rsvp-section {
  background: var(--ivory);
  text-align: center;
}

.rsvp-section .section__inner {
  text-align: center;
}

.rsvp-subtitle {
  color: var(--muted);
  margin: 14px auto 36px;
  max-width: 540px;
  font-size: 14.5px;
  text-align: center;
}

.rsvp-form {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.rsvp-form label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.rsvp-form label > span,
.rsvp-form legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.rsvp-form input[type="text"],
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 63, 53, 0.2);
  background: #ffffff;
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  text-align: center;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(213, 184, 117, 0.2);
}

.rsvp-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.choice {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0 !important;
  border: 1px solid rgba(18, 63, 53, 0.2);
  border-radius: 14px;
  text-align: center;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  background: #ffffff;
  color: var(--ink);
  transition: 0.2s ease;
}

.choice input:checked + span {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--ivory);
  box-shadow: 0 10px 25px rgba(18, 63, 53, 0.16);
}

.form-note {
  text-align: center;
  color: #7b8581;
  font-size: 12px;
  margin: 4px 0 0;
  line-height: 1.6;
}

.form-status {
  min-height: 1.6em;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  margin-top: 6px;
}

.form-status.is-success {
  color: #0d6342;
  background: rgba(13, 99, 66, 0.08);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(13, 99, 66, 0.2);
}

.form-status.is-error {
  color: #9d3434;
  background: rgba(157, 52, 52, 0.08);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(157, 52, 52, 0.2);
}

/* ==========================================================================
   دکمه‌ها (Buttons)
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button--gold {
  background: var(--gold);
  color: var(--emerald-deep);
  box-shadow: 0 14px 35px rgba(170, 135, 66, 0.24);
}

.button--light {
  background: var(--ivory);
  color: var(--emerald-deep);
  margin-top: 24px;
}

.button--full {
  width: 100%;
}

/* ==========================================================================
   بخش پایانی (Closing Footer)
   ========================================================================== */
.closing {
  position: relative;
  display: grid;
  place-items: center;
  padding: 84px 22px;
  background: var(--emerald-deep);
  color: var(--ivory);
  overflow: hidden;
  font-size: 14.5px;
  text-align: center;
}

.closing__pattern {
  position: absolute;
  width: 900px;
  height: 900px;
  border: 1px solid rgba(213, 184, 117, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.closing__pattern::before,
.closing__pattern::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: inherit;
  border-radius: inherit;
  transform: rotate(35deg);
}

.closing__pattern::after {
  inset: 24%;
  transform: rotate(-20deg);
}

.closing__content {
  position: relative;
  z-index: 2;
  width: min(800px, 100%);
  text-align: center;
}

.closing__arabic {
  color: var(--gold);
  font-size: clamp(16px, 3.8vw, 24px);
  line-height: 1.8;
  margin-bottom: 12px;
}

.closing h2 {
  margin: 18px 0;
  color: var(--gold);
}

.closing__content > p:not(.closing__arabic) {
  color: rgba(251, 246, 234, 0.75);
  font-family: var(--font-display);
  font-size: 16.5px;
  max-width: 620px;
  margin: 0 auto;
}

.closing__names {
  margin-top: 32px;
  font-family: var(--font-names);
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.3;
}

.closing__names span {
  color: var(--gold);
  font-family: var(--font-arabic);
  font-size: 0.6em;
  display: inline-block;
  margin: 0 8px;
}

.closing time {
  display: block;
  margin-top: 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.back-to-top {
  display: inline-block;
  color: rgba(251, 246, 234, 0.7);
  margin-top: 44px;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--gold);
}

/* ==========================================================================
   انیمیشن‌های اسکرول (Reveal on Scroll)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

.text-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--text-reveal-delay, 0ms);
}
.text-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .text-reveal, .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   ریسپانسیو (Responsive Styles)
   ========================================================================== */
@media (max-width: 700px) {
  .music-control__label {
    display: none;
  }

  .music-control {
    padding: 9px;
  }

  .hero__content {
    width: 84vw;
  }

  .hero__name {
    font-size: clamp(38px, 12vw, 58px);
  }

  .scratch-wrap {
    aspect-ratio: 1.48;
  }

  .date-card__date {
    max-width: 280px;
    font-size: clamp(28px, 7.5vw, 40px);
  }

  .gallery {
    height: 52vh;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .countdown__unit {
    padding: 16px 4px;
  }

  .countdown__unit strong {
    font-size: clamp(24px, 7vw, 36px);
  }

  .countdown__unit span {
    font-size: 10px;
  }

  .choice-row {
    grid-template-columns: 1fr;
  }

  .palette {
    gap: 8px;
  }

  .palette span {
    width: 42px;
  }
}

@media (max-height: 760px) {
  .hero__content {
    padding-top: 60px;
    padding-bottom: 85px;
  }

  .hero__bismillah {
    margin-bottom: 10px;
    font-size: clamp(12px, 3vw, 16px);
  }

  .hero__intro {
    margin-bottom: 14px;
  }

  .hero__intro p {
    font-size: 11px;
    line-height: 1.4;
  }

  .hero__name {
    font-size: clamp(34px, 8vw, 52px);
  }

  .hero__parents {
    margin-top: 4px;
    font-size: 11px;
  }

  .hero__ampersand {
    margin: 6px 0;
  }

  .hero__closing-line {
    margin-top: 14px;
    font-size: 11px;
  }
}

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

.noor-awaiting{visibility:hidden}[hidden]{display:none!important}
