@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=El+Messiri:wght@600;700&family=Reem+Kufi:wght@500;600;700&display=swap');

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

:root {
  --background: #f6f0e6;
  --foreground: #3a3027;
  --card: #fbf7f0;
  --card-foreground: #3a3027;
  --primary: #1f3b5c;
  --primary-foreground: #fbf7f0;
  --secondary: #ece3d4;
  --secondary-foreground: #3a3027;
  --muted: #ece3d4;
  --muted-foreground: #7a6a58;
  --accent: #b5603f;
  --accent-foreground: #fbf7f0;
  --sand: #a8875a;
  --terracotta: #b5603f;
  --border: #d8c7a8;
  --radius: 0.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  font-family: 'Amiri', serif;
  background-color: var(--background);
  color: var(--foreground);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

.font-arabic {
  font-family: 'Amiri', serif;
}

.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Marble Texture Background */
.marble-bg {
  background-color: var(--background);
  background-image: url('images/marble.png');
  background-repeat: repeat;
  background-size: 700px;
}

/* Base Layout Container */
.invitation-wrapper {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
}

.main-card {
  margin-left: auto;
  margin-right: auto;
  max-width: 28rem; /* 448px (max-w-md) */
  background-color: rgba(246, 240, 230, 0.85);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  min-height: 100vh;
}

/* ENVELOPE (الشاشة الأولى) */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  perspective: 1400px;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  transition-delay: 0.7s;
}

.envelope-screen.envelope-opened {
  pointer-events: none;
  transform: translateY(-100%);
  opacity: 0;
}

.envelope-flap-bottom {
  position: absolute;
  inset: 0;
  background-color: rgba(236, 227, 212, 0.6);
  clip-path: polygon(0 100%, 50% 52%, 100% 100%);
}

.envelope-flap-left {
  position: absolute;
  inset: 0;
  background-color: rgba(236, 227, 212, 0.3);
  clip-path: polygon(0 0, 50% 52%, 0 100%);
}

.envelope-flap-right {
  position: absolute;
  inset: 0;
  background-color: rgba(236, 227, 212, 0.3);
  clip-path: polygon(100% 0, 50% 52%, 100% 100%);
}

.envelope-flap-top-container {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 52%;
  transform-origin: top;
  transition: transform 1s ease-in-out;
  transform-style: preserve-3d;
  filter: drop-shadow(0 10px 14px rgba(58, 48, 39, 0.18));
}

.envelope-screen.envelope-flap-open .envelope-flap-top-container {
  transform: rotateX(180deg);
}

.envelope-flap-top {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  backface-visibility: hidden;
  border-bottom: 1px solid rgba(168, 135, 90, 0.4);
}

.envelope-venue-title {
  position: absolute;
  inset-inline: 0;
  top: 1.5rem;
  display: flex;
  justify-content: center;
  backface-visibility: hidden;
}

.envelope-venue-title p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--sand);
}

/* Envelope Trigger Button & Wax Seal */
.envelope-btn {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

.seal-container {
  position: relative;
  margin-top: 4%;
  width: 9rem;
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.animate-seal-pulse {
  animation: seal-pulse 2.4s ease-in-out infinite;
}

@keyframes seal-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.seal-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(40, 20, 10, 0.35));
  pointer-events: none;
}

.seal-logo-img {
  position: relative;
  z-index: 2;
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(80, 20, 10, 0.7));
  pointer-events: none;
}

.envelope-btn-text {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.gold-line {
  height: 1px;
  width: 10rem;
  background: linear-gradient(to right, transparent, var(--sand), transparent);
}

.open-text {
  font-family: 'Amiri', serif;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* HERO SECTION */
.hero-header {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
}

.animate-slow-zoom {
  animation: slow-zoom 9s ease-out forwards;
}

@keyframes slow-zoom {
  0% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.hero-overlay-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(31, 59, 92, 0.6), rgba(31, 59, 92, 0.15) 40%, transparent 70%);
  pointer-events: none;
}

.hero-overlay-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(to top, var(--background), rgba(246, 240, 230, 0.75) 50%, transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding-top: 13svh;
  text-align: center;
  color: #fbf7f0;
  transition: all 1.5s ease-out;
  transition-delay: 0.7s;
  transform: translateY(1.5rem);
  opacity: 0;
}

.hero-content.hero-visible {
  transform: translateY(0);
  opacity: 1;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-title {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.25;
  filter: drop-shadow(0 3px 12px rgba(10, 25, 45, 0.75));
}

.hero-title .name {
  font-size: 3rem;
  letter-spacing: 0.05em;
}

.hero-title .ampersand {
  margin-block: 0.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.875rem;
  font-weight: 400;
  font-style: italic;
  color: #f3d9c8;
}

/* التاريخ بشكل شيك وفاخر وواضح تماماً */
.hero-date-badge {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 1.85rem;
  border-radius: 9999px;
  background: rgba(18, 35, 58, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(168, 135, 90, 0.8);
  box-shadow: 0 8px 24px rgba(10, 20, 35, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-date-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 20, 35, 0.55);
}

.badge-date-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #fbf7f0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.badge-star {
  color: var(--sand);
  font-size: 0.85rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}

/* مؤشر السكرول الشيك */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #fbf7f0;
  text-decoration: none;
  cursor: pointer;
  animation: float-scroll 2.2s ease-in-out infinite;
  opacity: 0.92;
  transition: opacity 0.3s ease, transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.hero-scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(3px);
}

.scroll-text {
  font-family: 'Amiri', serif;
  font-size: 0.95rem;
  color: #f3d9c8;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.scroll-icon-wrap {
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(31, 59, 92, 0.7);
  border: 1px solid rgba(168, 135, 90, 0.75);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  color: var(--sand);
}

@keyframes float-scroll {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(7px);
  }
}

/* SECTION 1: INVITATION TEXT CARD */
.section-invitation {
  padding-inline: 1.5rem;
  padding-bottom: 2rem;
  scroll-margin-top: 1rem;
}

.arch-card-outer {
  border-top-left-radius: 200px;
  border-top-right-radius: 200px;
  border: 1px solid rgba(168, 135, 90, 0.6);
  padding: 0.5rem;
  box-shadow: 0 20px 40px -20px rgba(58, 48, 39, 0.35);
}

.arch-card-inner {
  border-top-left-radius: 192px;
  border-top-right-radius: 192px;
  border: 1px solid rgba(168, 135, 90, 0.4);
  padding-inline: 1.5rem;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ionic-capital-img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.basmala {
  margin-top: 1rem;
  font-family: 'Amiri', serif;
  font-size: 1.875rem;
  color: var(--primary);
  font-weight: 700;
}

/* Star Ornament Divider */
.star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--sand);
  margin-block: 1.5rem;
}

.star-divider .line-l {
  height: 1px;
  width: 4rem;
  background: linear-gradient(to left, var(--sand), transparent);
}

.star-divider .line-r {
  height: 1px;
  width: 4rem;
  background: linear-gradient(to right, var(--sand), transparent);
}

.invitation-body-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: 'Amiri', serif;
  font-size: 1.125rem;
  line-height: 2;
  color: var(--foreground);
}

.invitation-body-text .couple-line {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 2.1;
}

.invitation-body-text .couple-line .couple-name-highlight {
  font-family: 'Arbaeen', 'El Messiri', 'Amiri', serif;
  font-size: 2.3rem;
  font-weight: normal;
  color: #89734e;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-inline: 0.4rem;
  text-shadow: 0 1px 2px rgba(137, 115, 78, 0.25);
  vertical-align: middle;
  line-height: 1.25;
}

.venue-arabic-line {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.2rem;
}

.venue-callout {
  margin-top: 0.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.35rem;
  font-style: italic;
  font-weight: 500;
  color: #89734e;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(137, 115, 78, 0.2);
}

/* Greek Meander Divider */
.meander-svg {
  display: block;
  width: 100%;
  height: 1rem;
  color: var(--sand);
}

/* SECTION 2: COUNTDOWN TIMER */
.section-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-inline: 1.5rem;
  padding-block: 3.5rem;
}

.timer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  direction: rtl;
}

.timer-box {
  display: flex;
  width: 4rem;
  flex-direction: column;
  align-items: center;
}

.timer-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  line-height: 1;
}

.timer-lbl {
  margin-top: 0.25rem;
  font-family: 'Amiri', serif;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.timer-sep {
  padding-top: 0.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  color: var(--sand);
  line-height: 1;
}

.countdown-heading {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* SECTION 3: TIMELINE (PROGRAM) */
.section-program {
  padding-inline: 1.5rem;
  padding-block: 3.5rem;
}

.section-title {
  font-family: 'Amiri', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.timeline-list {
  position: relative;
  margin-top: 2.5rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  max-width: 20rem;
  flex-direction: column;
  gap: 2.5rem;
  list-style: none;
}

.timeline-line {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background-color: rgba(168, 135, 90, 0.6);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.timeline-label {
  text-align: center;
  font-family: 'Amiri', serif;
  font-size: 1.25rem;
  color: var(--foreground);
}

.timeline-diamond {
  position: relative;
  z-index: 10;
  width: 0.75rem;
  height: 0.75rem;
  transform: rotate(45deg);
  border: 1px solid var(--sand);
  background-color: var(--background);
}

.timeline-time {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.875rem;
  color: var(--primary);
}

/* SECTION 4: LOCATION (VENUE) */
.section-venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 1.5rem;
  padding-block: 3.5rem;
  text-align: center;
}

.map-pin-icon {
  margin-top: 1.5rem;
  width: 2rem;
  height: 2rem;
  color: var(--terracotta);
}

.venue-name {
  margin-top: 0.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--primary);
}

.venue-city {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.venue-arch-container {
  position: relative;
  margin-top: 2rem;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-top-left-radius: 9999px;
  border-top-right-radius: 9999px;
  border: 1px solid rgba(168, 135, 90, 0.6);
  padding: 0.375rem;
}

.venue-arch-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-top-left-radius: 9999px;
  border-top-right-radius: 9999px;
}

.venue-arch-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-grid {
  margin-top: 0.75rem;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.venue-grid-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.125rem;
  border: 1px solid rgba(168, 135, 90, 0.6);
}

.venue-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SECTION 5: RSVP SYSTEM (DUAL MODE: STANDARD RSVP + EDIT STATUS MODE) */
.section-rsvp {
  padding-inline: 1.5rem;
  padding-block: 3.5rem;
}

.rsvp-notice-box {
  max-width: 25rem;
  margin: 1.25rem auto 0;
  padding: 0.75rem 1.25rem;
  background: rgba(251, 247, 240, 0.85);
  border: 1px solid rgba(168, 135, 90, 0.45);
  border-radius: 0.6rem;
  box-shadow: 0 4px 14px rgba(58, 48, 39, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
}

.rsvp-notice-box .notice-icon {
  color: #89734e;
  font-size: 0.85rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.rsvp-notice-box .notice-text {
  margin: 0;
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #554433;
  line-height: 1.6;
}

.rsvp-card-container {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rsvp-view-block {
  animation: fadeIn 0.35s ease-out;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: none;
}

.form-label, .form-legend {
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  color: var(--muted-foreground);
}

.form-input {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid rgba(168, 135, 90, 0.7);
  background-color: rgba(251, 247, 240, 0.85);
  padding: 0.75rem 1rem;
  font-family: 'Amiri', serif;
  font-size: 1.1rem;
  color: var(--foreground);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(31, 59, 92, 0.2);
}

/* شريط البحث المدمج والفاخر للموبايل والكمبيوتر */
.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 0.6rem;
  border: 1.5px solid rgba(168, 135, 90, 0.75);
  background-color: rgba(251, 247, 240, 0.95);
  box-shadow: 0 2px 8px rgba(58, 48, 39, 0.05);
  transition: all 0.25s ease;
  padding: 0.25rem 0.3rem 0.25rem 0.25rem;
}

.search-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 59, 92, 0.16), 0 4px 14px rgba(31, 59, 92, 0.08);
  background-color: #ffffff;
}

.search-input-field {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.65rem 0.85rem;
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  color: var(--foreground);
  outline: none;
}

.search-input-field::placeholder {
  color: #9c8974;
  font-size: 0.95rem;
}

.search-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, #24446a, #1f3b5c);
  color: #fbf7f0;
  border: 1px solid rgba(168, 135, 90, 0.4);
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(31, 59, 92, 0.25);
  -webkit-tap-highlight-color: transparent;
}

.search-submit-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.search-submit-btn:active {
  transform: translateY(0);
}

.search-icon {
  flex-shrink: 0;
}

.search-hint {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* زر التحويل لوضع التعديل وزر الرجوع */
.switch-mode-container {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(168, 135, 90, 0.4);
}

.switch-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(168, 135, 90, 0.8);
  border-radius: 9999px;
  padding: 0.55rem 1.4rem;
  font-family: 'Amiri', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.switch-mode-btn:hover {
  background-color: rgba(31, 59, 92, 0.08);
  border-color: var(--primary);
}

.back-link-btn {
  background: transparent;
  border: none;
  font-family: 'Amiri', serif;
  font-size: 0.95rem;
  color: var(--muted-foreground);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.back-link-btn:hover {
  color: var(--primary);
}

.edit-view-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.edit-view-title {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.edit-view-subtitle {
  font-family: 'Amiri', serif;
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Spinner */
.rsvp-loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  color: var(--primary);
  font-size: 1rem;
}

.spinner-ring {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid rgba(31, 59, 92, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Results Box */
.rsvp-result-box {
  border-radius: 0.5rem;
  padding: 1.25rem;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rsvp-found-box {
  background-color: rgba(251, 247, 240, 0.95);
  border: 1px solid rgba(168, 135, 90, 0.6);
  box-shadow: 0 4px 15px rgba(58, 48, 39, 0.08);
}

.guest-welcome-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(168, 135, 90, 0.3);
  padding-bottom: 0.75rem;
}

.guest-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background-color: rgba(46, 125, 50, 0.15);
  color: #2e7d32;
  font-weight: bold;
  font-size: 1.1rem;
}

.guest-welcome-title {
  font-family: 'Amiri', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.matched-name {
  color: var(--terracotta);
}

.guest-current-status {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin-top: 0.2rem;
}

.guest-current-status strong {
  color: var(--foreground);
}

.rsvp-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.rsvp-option-btn {
  border-radius: 0.375rem;
  border: 1px solid rgba(168, 135, 90, 0.7);
  background-color: rgba(251, 247, 240, 0.8);
  padding: 0.75rem 0.5rem;
  font-family: 'Amiri', serif;
  font-size: 1rem;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rsvp-option-btn:hover {
  border-color: var(--primary);
}

.rsvp-option-btn.active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
}

.rsvp-submit-btn {
  width: 100%;
  border-radius: 0.375rem;
  background-color: var(--terracotta);
  border: none;
  padding: 0.85rem 1.5rem;
  font-family: 'Amiri', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-foreground);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rsvp-submit-btn:hover {
  filter: brightness(1.1);
}

.rsvp-status-msg {
  min-height: 1.5rem;
  text-align: center;
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

/* Not Found Box */
.rsvp-not-found-box {
  background-color: rgba(255, 245, 240, 0.95);
  border: 1px solid rgba(181, 96, 63, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.not-found-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(181, 96, 63, 0.15);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
}

.not-found-title {
  font-family: 'Amiri', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--terracotta);
}

.not-found-desc {
  font-family: 'Amiri', serif;
  font-size: 1rem;
  color: var(--foreground);
  line-height: 1.7;
}

.whatsapp-confirm-btn {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: 0.375rem;
  background-color: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Amiri', serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.whatsapp-confirm-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* SECTION 6: GOOGLE MAPS */
.section-map {
  padding-inline: 1.5rem;
  padding-block: 3.5rem;
}

.map-wrapper {
  margin-top: 2.5rem;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 2px solid rgba(168, 135, 90, 0.7);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

.map-btn-link {
  margin-top: 1.5rem;
  margin-inline: auto;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--primary);
  padding: 0.625rem 1.25rem;
  font-family: 'Amiri', serif;
  font-size: 1rem;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.map-btn-link:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* SECTION 7: CLOSING & FOOTER */
.section-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 6rem;
  text-align: center;
}

.fountain-circle {
  position: relative;
  width: 14rem;
  height: 14rem;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid rgba(168, 135, 90, 0.6);
  padding: 0.375rem;
}

.fountain-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 9999px;
}

.fountain-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 88%;
}

.footer-greeting {
  margin-top: 2.5rem;
  font-family: 'Amiri', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
}

.gold-logo {
  width: 8rem;
  height: auto;
  object-fit: contain;
}

.footer-venue {
  margin-top: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--muted-foreground);
}

/* FLOATING AUDIO CONTROLLER */
.floating-music-btn {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 40;
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  outline: none;
}

.floating-music-btn:hover {
  transform: scale(1.08);
}

.floating-music-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* SCROLL REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}

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

/* Gold Confetti Canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* Media Queries */
@media (max-width: 480px) {
  .hero-title .name {
    font-size: 2.5rem;
  }
  .basmala {
    font-size: 1.6rem;
  }
  .timer-val {
    font-size: 2.5rem;
  }
  .badge-date-text {
    font-size: 1.15rem;
    letter-spacing: 0.2em;
  }
  .search-input-group {
    padding: 0.2rem 0.25rem 0.2rem 0.2rem;
  }
  .search-input-field {
    font-size: 1rem;
    padding: 0.55rem 0.6rem;
  }
  .search-input-field::placeholder {
    font-size: 0.88rem;
  }
  .search-submit-btn {
    padding: 0.55rem 1rem;
    font-size: 1rem;
    gap: 0.3rem;
  }
}
