:root {
  --bg: #fdf5f5;
  --burg: #6b1730;
  --burg2: #7a1d37;
  --wine: #4c0f22;
  --olive: #5d6434;
  --olive2: #8d935f;
  --pink: #f7d9df;
  --pink2: #e9b3be;
  --blue: #cfe3f2;
  --blue2: #7fa6c6;
  --radius: .5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #f3e4e6;
  color: var(--burg);
  font-family: 'Amiri', Georgia, serif;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

/* Main 430px mobile-first column on ALL viewports */
.app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(76, 15, 34, 0.08);
}

/* Watercolor washes */
.washes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wash {
  position: absolute;
  width: 115%;
  height: auto;
  opacity: 0.38;
  filter: saturate(1.1);
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.wash-1 { top: -40px; left: -8%; }
.wash-2 { top: 680px; right: -8%; transform: scaleX(-1); }
.wash-3 { top: 1500px; left: -8%; }
.wash-4 { top: 2250px; right: -8%; }
.wash-5 { top: 3000px; left: -8%; }
.wash-6 { top: 3750px; right: -8%; }

/* 1) Falling petals (whole page, always running, inside 430px column) */
#petals {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  pointer-events: none;
  overflow: hidden;
  z-index: 40;
}

.petal {
  position: absolute;
  top: -40px;
  width: var(--s);
  height: calc(var(--s) * 1.35);
  background: var(--c);
  opacity: var(--o);
  border-radius: 80% 0 80% 0;
  animation: ptFall var(--t) linear var(--d) infinite;
  will-change: transform;
}

@keyframes ptFall {
  0% { transform: translate3d(0, -40px, 0) rotate(0deg); }
  100% { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--r)); }
}

@media (prefers-reduced-motion: reduce) {
  #petals { display: none; }
}

/* 4) Cover -> opening sequence */
#cover {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 50;
  cursor: pointer;
  overflow: hidden;
  background: #f6dfe3;
  transition: opacity 0.8s ease-in-out;
  -webkit-tap-highlight-color: transparent;
}

#cover.fade {
  opacity: 0;
  pointer-events: none;
}

.cover-img,
#cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#cover video {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

#cover.play video {
  opacity: 1;
}

.cover-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 63%;
  padding: 0 24px;
  text-align: center;
  z-index: 2;
  transition: opacity 0.35s ease;
}

#cover.play .cover-text {
  opacity: 0;
  pointer-events: none;
}

.cover-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--burg);
  line-height: 1.45;
  margin-bottom: 2px;
}

.cover-en {
  font-family: 'Great Vibes', cursive;
  font-size: 24px;
  color: var(--burg);
  line-height: 1.3;
  margin-bottom: 14px;
}

.cover-hint {
  font-size: 13px;
  color: rgba(107, 23, 48, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: ptPulse 2.4s ease-in-out infinite;
}

.hint-ar {
  font-family: 'Amiri', serif;
  font-size: 13px;
}

.hint-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13.5px;
}

/* Shared Section & Typography Styles */
.sec {
  position: relative;
  z-index: 1;
  padding: 56px 22px;
  text-align: center;
  overflow: hidden;
}

.sec-inner {
  position: relative;
  z-index: 3;
}

.sec-title-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--burg);
  line-height: 1.25;
}

.sec-title-en {
  font-family: 'Great Vibes', cursive;
  font-size: 33px;
  color: var(--olive);
  line-height: 1.2;
  margin-top: 2px;
}

.sec-sub-ar {
  font-family: 'Amiri', serif;
  font-size: 19px;
  color: var(--burg);
  margin-top: 8px;
  line-height: 1.5;
}

.sec-sub-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16.5px;
  color: var(--olive);
  line-height: 1.4;
}

/* Bloom Divider & Pulse */
.bloom-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px auto;
}

.div-line {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink2));
}

.div-line-flip {
  background: linear-gradient(270deg, transparent, var(--pink2));
}

.div-bloom {
  width: 30px;
  height: auto;
  display: block;
}

.bloom {
  animation: ptPulse 3s ease-in-out infinite;
}

@keyframes ptPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* 2) Corner Bouquets Sway + Edge Fade */
.bouquet-wrap {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.bouquet {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.sway {
  transform-origin: var(--origin, top right);
  animation: ptSway 9s ease-in-out var(--sd, 0s) infinite alternate;
}

@keyframes ptSway {
  0% { transform: rotate(-0.45deg) scale(1.02); }
  100% { transform: rotate(0.75deg) scale(1.02); }
}

/* Inner edge fade on bouquet images */
.mask-rb {
  -webkit-mask-image: linear-gradient(to left, transparent 11px, #000 48px),
                      linear-gradient(to top, transparent 11px, #000 48px);
  mask-image: linear-gradient(to left, transparent 11px, #000 48px),
              linear-gradient(to top, transparent 11px, #000 48px);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.mask-lb {
  -webkit-mask-image: linear-gradient(to right, transparent 11px, #000 48px),
                      linear-gradient(to top, transparent 11px, #000 48px);
  mask-image: linear-gradient(to right, transparent 11px, #000 48px),
              linear-gradient(to top, transparent 11px, #000 48px);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.mask-lt {
  -webkit-mask-image: linear-gradient(to right, transparent 11px, #000 48px),
                      linear-gradient(to bottom, transparent 11px, #000 48px);
  mask-image: linear-gradient(to right, transparent 11px, #000 48px),
              linear-gradient(to bottom, transparent 11px, #000 48px);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Corner bouquet wrappers + outer edge fade masks */
.bq-hero-tr {
  top: -8px;
  right: -8px;
  width: 258px;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 11px, #000 48px);
  mask-image: linear-gradient(to bottom, transparent 11px, #000 48px);
}

.bq-hero-bl {
  bottom: -14px;
  left: -10px;
  width: 235px;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to top, transparent 11px, #000 48px);
  mask-image: linear-gradient(to top, transparent 11px, #000 48px);
}

.bq-names-tr {
  top: -12px;
  right: -10px;
  width: 225px;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 11px, #000 48px);
  mask-image: linear-gradient(to bottom, transparent 11px, #000 48px);
}

.bq-names-bl {
  bottom: -14px;
  left: -12px;
  width: 240px;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to top, transparent 11px, #000 48px);
  mask-image: linear-gradient(to top, transparent 11px, #000 48px);
}

.bq-det-tr {
  top: -8px;
  right: -10px;
  width: 205px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 11px, #000 48px);
  mask-image: linear-gradient(to bottom, transparent 11px, #000 48px);
}

/* 3) Reveal on scroll */
.rv {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.rvs {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.rvx {
  opacity: 0;
  transform: translate3d(20px, 0, 0);
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.rv.in,
.rvs.in,
.rvx.in {
  opacity: 1;
  transform: none;
}

/* 4) Hero sequence (#hero.go .ha) */
#hero .ha {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}

#hero .ha.ha-fade {
  transform: scaleX(-1);
}

#hero.go .ha {
  opacity: 1;
  transform: none;
}

#hero.go .ha.ha-fade {
  transform: scaleX(-1);
}

/* 5) Calligraphy SVG soft draw-in */
.calli {
  opacity: 0;
  filter: blur(4px);
  transform: scale(0.97);
  transition: opacity 1.2s ease var(--d, 0s),
              filter 1.2s ease var(--d, 0s),
              transform 1.2s ease var(--d, 0s);
}

.calli.in {
  opacity: 1;
  filter: none;
  transform: none;
}

/* 2. Bismillah / Verse (#hero) */
.sec-hero {
  padding-top: 138px;
  padding-bottom: 145px;
}

.family-title {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--burg);
  line-height: 1.4;
  margin-bottom: 14px;
}

.basmala-wrap {
  width: min(68vw, 290px);
  margin: 0 auto 12px;
}

.basmala-svg {
  width: 100%;
  height: auto;
  display: block;
  color: #6b1730;
  fill: #6b1730;
  fill-rule: nonzero;
}

.bismillah-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 19px;
  color: var(--olive);
  line-height: 1.45;
  max-width: 310px;
  margin: 0 auto;
}

.verse-ar {
  font-family: 'Amiri', serif;
  font-size: 22px;
  color: var(--burg);
  line-height: 2;
  max-width: 340px;
  margin: 6px auto 6px;
}

.surah-ar {
  font-family: 'Amiri', serif;
  font-size: 17px;
  color: var(--burg2);
  margin-bottom: 14px;
}

.verse-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--olive);
  line-height: 1.65;
  max-width: 330px;
  margin: 0 auto 6px;
  direction: ltr;
}

.surah-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15.5px;
  color: var(--olive2);
  direction: ltr;
}

/* 3. Names (#ptNames) */
.sec-names {
  padding-top: 120px;
  padding-bottom: 155px;
}

.verse-cal-wrap {
  width: min(56vw, 220px);
  margin: 0 auto 6px;
}

.verse-cal-svg {
  width: 100%;
  height: auto;
  display: block;
  color: #6b1730;
  fill: #6b1730;
  fill-rule: nonzero;
}

.monogram {
  font-family: 'Italianno', cursive;
  font-size: 54px;
  line-height: 0.9;
  color: var(--burg);
  margin: 2px 0 8px;
  direction: ltr;
}

.celebrate-ar {
  font-family: 'Amiri', serif;
  font-size: 20px;
  color: var(--burg);
  line-height: 1.4;
}

.celebrate-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 19px;
  color: var(--olive);
  margin-bottom: 14px;
}

.couple-names {
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 4px 0 6px;
}

.name-ar {
  font-family: 'Gulzar', serif;
  font-size: 64px;
  line-height: 1.25;
  color: var(--burg);
  font-weight: 400;
}

.name-ring {
  width: 68px;
  height: auto;
  display: block;
  margin: 2px auto 4px;
  filter: drop-shadow(0 4px 10px rgba(107, 23, 48, 0.14));
}

.couple-en {
  font-family: 'Great Vibes', cursive;
  font-size: 37px;
  color: var(--olive);
  line-height: 1.25;
  margin-top: 6px;
}

.date-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 27px;
  color: var(--burg);
  line-height: 1.25;
}

.date-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--olive);
  line-height: 1.25;
  margin-top: -6px;
  margin-bottom: 16px;
}

.time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--pink2);
  border-radius: 9999px;
  padding: 7px 20px;
  font-family: 'Amiri', serif;
  font-size: 17px;
  color: var(--burg);
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(107, 23, 48, 0.06);
}

.time-pill-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--olive);
  direction: ltr;
  unicode-bidi: isolate;
}

.pill-dot {
  color: var(--pink2);
}

.venue-short {
  font-family: 'Amiri', serif;
  font-size: 18px;
  color: var(--burg);
  margin-bottom: 22px;
}

/* Primary & Outline Pill Buttons */
.btn-burg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--burg2), var(--wine));
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 13px 32px;
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(76, 15, 34, 0.25);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.2s,
              box-shadow 0.2s;
}

.btn-burg:active {
  transform: scale(0.97);
  transition-delay: 0s;
}

.btn-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: 0.02em;
}

.btn-dot {
  opacity: 0.7;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--burg);
  border: 1.5px solid var(--pink2);
  border-radius: 9999px;
  padding: 12px 28px;
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.2s ease,
              transform 0.2s,
              box-shadow 0.2s;
}

.btn-outline:active {
  transform: scale(0.97);
  background: var(--bg);
  transition-delay: 0s;
}

.btn-full {
  width: 100%;
}

/* 4. Countdown Section (#countdown) */
#countdown {
  position: relative;
  overflow: hidden;
}

#countdown > *:not(.cd-float):not(.cd-wash) {
  position: relative;
  z-index: 2;
}

.sec-countdown {
  background: linear-gradient(165deg, var(--burg), var(--wine));
  padding: 64px 24px;
  color: #fff5f6;
}

.cd-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 20% 20%, rgba(247, 217, 223, 0.14), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(207, 227, 242, 0.12), transparent 55%);
  pointer-events: none;
}

.cd-title-ar {
  color: #fdeaed;
}

.cd-title-en {
  color: var(--blue);
}

.cd-sub-ar {
  color: #fbe0e5;
}

.cd-sub-en {
  color: var(--blue);
}

.cd-grid {
  display: flex;
  flex-direction: column;
  direction: ltr;
  margin-top: 28px;
}

.cd-heart {
  position: relative;
  min-width: 0;
  width: 146px;
  aspect-ratio: 100 / 92;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
  filter: drop-shadow(0 10px 18px rgba(40, 5, 15, 0.35));
}

.cd-heart[data-u="d"] {
  margin-left: 0;
}

.cd-heart[data-u="h"] {
  margin-left: calc((100% - 146px) * 0.3333);
  margin-top: -36px;
}

.cd-heart[data-u="m"] {
  margin-left: calc((100% - 146px) * 0.6667);
  margin-top: -36px;
}

.cd-heart[data-u="s"] {
  margin-left: calc(100% - 146px);
  margin-top: -36px;
}

.cd-heart svg.shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cd-heart .num {
  position: relative;
  font-family: "Amiri", serif;
  font-size: 34px;
  line-height: 1;
  color: #fff5f6;
}

.cd-heart .ar {
  position: relative;
  font-family: "Amiri", serif;
  font-size: 15px;
  line-height: 1.2;
  color: #f7d9df;
  margin-top: 3px;
}

.cd-heart .en {
  position: relative;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.1;
  color: #cfe3f2;
}

/* ONLY the seconds heart beats, once each time the seconds change */
#cdSecHeart.beat {
  animation: hbBeat 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hbBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.08); }
  45% { transform: scale(0.97); }
  65% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* floating hearts behind the countdown */
.cd-float {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.fh {
  position: absolute;
  bottom: -30px;
  width: var(--s);
  height: var(--s);
  opacity: 0;
  animation: fhRise var(--t) ease-in var(--d) infinite;
}

.fh svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: fhSway calc(var(--t) / 3) ease-in-out infinite alternate;
}

@keyframes fhRise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  10% { opacity: var(--o); }
  80% { opacity: var(--o); }
  100% { transform: translateY(calc(-1 * var(--h))) scale(1); opacity: 0; }
}

@keyframes fhSway {
  from { transform: translateX(calc(-1 * var(--w))) rotate(-12deg); }
  to { transform: translateX(var(--w)) rotate(12deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cd-float { display: none; }
  #cdSecHeart.beat { animation: none; }
}

/* 5. Details of the Day */
.sec-details {
  padding-top: 90px;
  padding-bottom: 64px;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--pink);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(107, 23, 48, 0.08);
}

.det-card {
  margin-top: 28px;
}

.pin-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--burg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.det-loc-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 23px;
  color: var(--burg);
  line-height: 1.3;
}

.det-loc-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16.5px;
  color: var(--olive);
  margin-bottom: 10px;
}

.det-venue-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--burg);
  line-height: 1.3;
}

.det-city-ar {
  font-family: 'Amiri', serif;
  font-size: 20px;
  color: var(--wine);
  margin-bottom: 14px;
}

.det-time-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg);
  border-radius: 9999px;
  margin-bottom: 18px;
}

.det-clock-icon {
  color: var(--blue2);
  flex-shrink: 0;
}

.det-time-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  line-height: 1.25;
}

.det-time-ar {
  font-family: 'Amiri', serif;
  font-size: 16.5px;
  color: var(--burg);
}

.det-time-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14.5px;
  color: var(--olive);
}

.map-frame-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--pink2);
  height: 200px;
  margin-bottom: 18px;
  background: #f5eff0;
}

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

.det-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 7. Order of the Day */
.sec-order {
  padding-top: 32px;
  padding-bottom: 64px;
}

.sprig-img {
  width: 104px;
  height: 263px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
}

.timeline {
  list-style: none;
  position: relative;
  margin-top: 32px;
  text-align: right;
}

/* Vertical line behind the 46px badges on the right */
.timeline::before {
  content: '';
  position: absolute;
  top: 23px;
  bottom: 23px;
  right: 22px;
  width: 2px;
  background: linear-gradient(180deg, var(--pink2), var(--blue), var(--pink2));
}

.tl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding-bottom: 24px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(107, 23, 48, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.tl-badge img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
}

.tl-cream { background: #fdf3e6; }
.tl-pink { background: #f7d9df; }
.tl-blue { background: #cfe3f2; }

.tl-content {
  flex: 1;
  min-width: 0;
}

.tl-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--burg);
  line-height: 1.3;
}

.tl-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--olive);
  line-height: 1.25;
}

.tl-time {
  background: linear-gradient(135deg, var(--burg2), var(--wine));
  color: #ffffff;
  border-radius: 12px;
  padding: 5px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 68px;
  box-shadow: 0 4px 12px rgba(76, 15, 34, 0.16);
}

.tl-time-ar {
  font-family: 'Amiri', serif;
  font-size: 18px;
  line-height: 1.15;
}

.tl-time-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12.5px;
  color: var(--pink);
  line-height: 1.1;
  direction: ltr;
}

/* 8. RSVP (#rsvp) */
.sec-rsvp {
  padding-top: 32px;
  padding-bottom: 56px;
}

.rings-img {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.rsvp-card {
  margin-top: 26px;
  text-align: right;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-lbl {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.lbl-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--burg);
}

.lbl-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15.5px;
  color: var(--olive);
  direction: ltr;
}

.req {
  color: var(--burg2);
}

.input-pill {
  width: 100%;
  border: 1px solid var(--pink2);
  border-radius: 9999px;
  padding: 12px 18px;
  font-family: 'Amiri', serif;
  font-size: 16.5px;
  color: var(--burg);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-pill::placeholder,
.textarea-box::placeholder {
  color: rgba(107, 23, 48, 0.45);
}

.input-pill:focus,
.textarea-box:focus {
  border-color: var(--burg2);
  box-shadow: 0 0 0 3px rgba(233, 179, 190, 0.35);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid var(--pink2);
  border-radius: 9999px;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

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

.radio-ui {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--pink2);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s ease;
}

.radio-ui::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--burg);
  transform: scale(0);
  transition: transform 0.2s ease;
}

.radio-opt input:checked + .radio-ui {
  border-color: var(--burg);
}

.radio-opt input:checked + .radio-ui::after {
  transform: scale(1);
}

.radio-opt:has(input:checked) {
  background: var(--bg);
  border-color: var(--burg2);
}

.radio-texts {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.radio-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--burg);
}

.radio-sep {
  color: var(--pink2);
}

.radio-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--olive);
}

.textarea-box {
  width: 100%;
  border: 1px solid var(--pink2);
  border-radius: 18px;
  padding: 12px 18px;
  font-family: 'Amiri', serif;
  font-size: 16.5px;
  color: var(--burg);
  background: #ffffff;
  resize: vertical;
  min-height: 92px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-err {
  font-family: 'Amiri', serif;
  font-size: 15px;
  color: #b42318;
  text-align: center;
}

/* Thank-you card state */
.rsvp-thanks {
  text-align: center;
  padding: 12px 6px;
}

.rsvp-thanks.show {
  animation: fcZoom 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fcZoom {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: none; }
}

.thanks-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--burg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.thanks-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--burg);
  line-height: 1.35;
}

.thanks-en {
  font-family: 'Great Vibes', cursive;
  font-size: 28px;
  color: var(--olive);
  margin-bottom: 10px;
}

.thanks-sub-ar {
  font-family: 'Amiri', serif;
  font-size: 18px;
  color: var(--burg);
  line-height: 1.6;
}

.thanks-sub-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16.5px;
  color: var(--olive);
  margin-bottom: 18px;
}

.thanks-reset {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--pink2);
  color: var(--burg2);
  font-family: 'Amiri', serif;
  font-size: 15px;
  cursor: pointer;
  padding-bottom: 2px;
}

/* 9. Dua + Footer (#ptDua) */
.sec-dua {
  padding-top: 24px;
  padding-bottom: 0;
}

.dua-inner {
  padding-bottom: 48px;
}

.dua-ar {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--burg);
  line-height: 1.8;
  margin-bottom: 12px;
}

.dua-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--olive);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.55;
  direction: ltr;
}

.dua-bouquets {
  position: relative;
  height: 175px;
  margin: 0 -22px;
  pointer-events: none;
}

.bq-dua-bl {
  bottom: -10px;
  left: -12px;
  width: 215px;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to top, transparent 11px, #000 48px);
  mask-image: linear-gradient(to top, transparent 11px, #000 48px);
}

.bq-dua-br {
  bottom: -10px;
  right: -12px;
  width: 215px;
  -webkit-mask-image: linear-gradient(to top, transparent 11px, #000 48px);
  mask-image: linear-gradient(to top, transparent 11px, #000 48px);
}

.site-footer {
  position: relative;
  z-index: 3;
  padding: 20px 16px 68px;
  text-align: center;
}

.footer-mono {
  font-family: 'Italianno', cursive;
  font-size: 88px;
  line-height: 0.9;
  color: var(--burg);
  direction: ltr;
}

.footer-ar {
  font-family: 'Gulzar', serif;
  font-size: 42px;
  line-height: 1.3;
  color: var(--burg);
  margin-top: 4px;
}

.footer-en {
  font-family: 'Great Vibes', cursive;
  font-size: 32px;
  color: var(--olive);
  line-height: 1.25;
  margin-top: 2px;
}

.footer-date {
  font-family: 'Amiri', serif;
  font-size: 16px;
  color: var(--burg2);
  margin-top: 10px;
}
