/* ========================================================
   SAGE DESIGN — áp dụng từ Thông tin lễ cưới trở xuống.
   Không đặt font-family tại đây để giữ nguyên hệ chữ hiện có.
   ======================================================== */
:root {
  --red-primary: #5f765f;
  --red-dark: #3f5542;
  --red-light: #82977f;
  --red-card: #5f765f;
  --red-card-inner: #4e654f;
  --border-red: rgba(88, 114, 90, .2);
  --sage-900: #2f4936;
  --sage-800: #3f5b45;
  --sage-700: #58725a;
  --sage-600: #70896f;
  --sage-300: #bdcbb8;
  --sage-200: #d7e0d2;
  --sage-100: #e9eee5;
  --sage-50: #f6f8f2;
  --sage-paper: #fbfcf7;
  --sage-gold: #b49a58;
  --sage-line: rgba(85, 111, 86, .24);
  --sage-shadow: 0 14px 38px rgba(47, 73, 54, .11);
}

/* Nhịp trang và khung nội dung chung */
#couple-portraits,
#wedding-info,
#gallery,
#reception,
#venue,
#timeline,
#countdown,
#dresscode,
#guestbook,
#gift {
  position: relative;
  width: calc(100% - 24px);
  max-width: 560px;
  margin: 0 auto 18px;
  color: var(--sage-900);
}

/* Chân dung cô dâu & chú rể */
#couple-portraits .couple-portraits-card {
  position: relative;
  padding: 36px 24px 32px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(155deg, #fbfcf7, #f2f5ee);
  border: 1px solid var(--sage-line);
  border-radius: 20px;
  box-shadow: var(--sage-shadow);
}

#couple-portraits .couple-portraits-card::before,
#couple-portraits .couple-portraits-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 140px;
  height: 210px;
  opacity: .11;
  pointer-events: none;
  background: url("../assets/9cb7d07e-f1fd-4e5b-9477-069ed64e8c43.webp") center / contain no-repeat;
  mix-blend-mode: multiply;
}

#couple-portraits .couple-portraits-card::before { left: -54px; bottom: -76px; transform: rotate(8deg); }
#couple-portraits .couple-portraits-card::after { right: -54px; bottom: -76px; transform: scaleX(-1) rotate(8deg); }

.couple-portraits-heading {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: var(--sage-900);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: .13em;
}

.couple-portraits-heading::after {
  content: "♥";
  display: block;
  margin-top: 7px;
  color: var(--sage-700);
  font-size: .55rem;
  line-height: 1;
}

.couple-portraits-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 470px;
  margin: 0 auto;
}

.couple-portrait {
  min-width: 0;
  padding: 10px 10px 18px;
  background: rgba(255,255,255,.58);
  border: 1px solid var(--sage-line);
  border-radius: 14px;
}

.couple-portrait-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--sage-100);
  border-radius: 10px;
}

.couple-portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.couple-portrait-photo[hidden] { display: none; }
.couple-portrait-role { display: none; }
.couple-portrait-name { margin: 2px 0 8px; color: var(--sage-900); font-size: 1rem; line-height: 1.35; }
.couple-portrait-quote { color: var(--sage-800); font-size: 1rem; font-style: italic; line-height: 1.55; }

#wedding-info::after,
#reception::after,
#timeline::after,
#countdown::after,
#dresscode::after,
#guestbook::after,
#gift::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 120px;
  height: 190px;
  pointer-events: none;
  opacity: .11;
  background: url("../assets/9cb7d07e-f1fd-4e5b-9477-069ed64e8c43.webp") center / contain no-repeat;
  mix-blend-mode: multiply;
}

.card-heading,
.section-header h2,
.reception-header h3,
.venue-heading,
.guestbook-heading,
.gift-heading {
  color: var(--sage-900);
}

/* 1. Thông tin lễ cưới */
#wedding-info .red-card {
  min-height: auto;
  padding: 38px 24px 32px;
  overflow: hidden;
  color: var(--sage-900);
  background: linear-gradient(155deg, rgba(255,255,255,.9), rgba(244,247,239,.96));
  border: 1px solid var(--sage-line);
  border-radius: 20px;
  box-shadow: var(--sage-shadow);
}

#wedding-info .red-card::before {
  content: "";
  position: absolute;
  left: -54px;
  bottom: -76px;
  width: 220px;
  height: 350px;
  opacity: .13;
  background: url("../assets/e96fa768-37e5-4fa7-84de-1ac08733c3d3.webp") left bottom / contain no-repeat;
  pointer-events: none;
  mix-blend-mode: multiply;
}

#wedding-info::after { display: none; }

#wedding-info .card-flower-lotus-wrap {
  top: -54px;
  right: -48px;
  width: 190px;
  opacity: .14;
  z-index: 0;
}

#wedding-info .card-flower-lotus-right {
  filter: none;
  animation: none;
}

/* ========================================================
   UNIFIED BLOCK TITLES (100% IDENTICAL ACROSS ALL SECTIONS)
   ======================================================== */
.block-title,
.couple-portraits-heading,
.card-heading,
#wedding-info .card-heading,
.section-header h2,
#gallery .section-header h2,
.gallery-heading,
.reception-header h3,
#reception .reception-header h3,
.reception-heading,
.venue-heading,
#venue .venue-heading,
.timeline-card .card-heading,
#timeline .card-heading,
.countdown-card .card-heading,
#countdown .card-heading,
.dresscode-card .card-heading,
#dresscode .card-heading,
.guestbook-heading,
#guestbook .guestbook-heading,
.gift-heading,
#gift .gift-heading {
  font-family: var(--font-title, "Cinzel", "Playfair Display", Georgia, serif) !important;
  font-size: 1.16rem !important;
  font-weight: 700 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
  color: var(--sage-900, #203a2a) !important;
  text-align: center !important;
  line-height: 1.35 !important;
  margin: 0 auto 24px !important;
  padding: 0 !important;
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
}

.block-title::after,
.couple-portraits-heading::after,
.card-heading::after,
#wedding-info .card-heading::after,
.section-header h2::after,
#gallery .section-header h2::after,
.gallery-heading::after,
.reception-header h3::after,
#reception .reception-header h3::after,
.reception-heading::after,
.venue-heading::after,
#venue .venue-heading::after,
.timeline-card .card-heading::after,
#timeline .card-heading::after,
.countdown-card .card-heading::after,
#countdown .card-heading::after,
.dresscode-card .card-heading::after,
#dresscode .card-heading::after,
.guestbook-heading::after,
#guestbook .guestbook-heading::after,
.gift-heading::after,
#gift .gift-heading::after {
  content: "♥" !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 7px auto 0 !important;
  color: var(--sage-700, #586c55) !important;
  background: none !important;
  font-size: .55rem !important;
  line-height: 1 !important;
  text-align: center !important;
  letter-spacing: normal !important;
}

#wedding-info .parents-grid {
  gap: 10px;
  min-height: 0;
  margin: 0 0 24px;
  padding: 0;
}

#wedding-info .parents-grid::after { display: none; }

#wedding-info .family-side {
  min-width: 0;
  padding: 16px 10px;
  border: 1px solid var(--sage-line);
  border-radius: 12px;
  background: rgba(255,255,255,.48);
}

#wedding-info .family-side small,
#wedding-info .family-side h4,
#wedding-info .family-side p,
#wedding-info .announcement-text,
#wedding-info .ceremony-note,
#wedding-info .role-badge,
#wedding-info .couple-highlight-names .amp,
#wedding-info .ceremony-time-badge .time,
#wedding-info .ceremony-time-badge .date-big,
#wedding-info .ceremony-time-badge .lunar {
  color: var(--sage-900);
}

#wedding-info .family-side small { color: var(--sage-700); }
#wedding-info .announcement-text { margin-bottom: 22px; }

#wedding-info .couple-highlight-names {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 5px 6px;
  min-height: 0;
  margin: 0 auto 24px;
  padding: 18px 8px;
  border-block: none;
}

#wedding-info .groom-name { grid-column: 1; grid-row: 1; }
#wedding-info .groom-name + .role-badge { grid-column: 1; grid-row: 2; }
#wedding-info .couple-highlight-names .amp { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
#wedding-info .bride-name { grid-column: 3; grid-row: 1; }
#wedding-info .bride-name + .role-badge { grid-column: 3; grid-row: 2; }
#wedding-info .groom-name,
#wedding-info .bride-name { color: var(--sage-800); font-size: clamp(1.55rem, 6vw, 2.25rem); }

#wedding-info .ceremony-time-badge {
  max-width: 340px;
  margin: 18px auto 0;
  padding: 16px;
  gap: 4px;
  border: 1px solid var(--sage-line);
  border-radius: 12px;
  background: rgba(255,255,255,.55);
}

/* 2. Album ảnh */
#gallery {
  min-height: 0;
  padding: 34px 20px 28px;
  overflow: hidden;
  background: var(--sage-paper);
  border: 1px solid var(--sage-line);
  border-radius: 20px;
  box-shadow: var(--sage-shadow);
}

#gallery::before,
#gallery::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 150px;
  height: 210px;
  opacity: .1;
  pointer-events: none;
  background: url("../assets/c70ceaa0-c97f-4f46-88db-5eff6287404e.webp") center / contain no-repeat;
  mix-blend-mode: multiply;
}

#gallery::before { right: -52px; top: -70px; }
#gallery::after { left: -58px; bottom: -90px; transform: rotate(180deg); }
#gallery .section-header { margin-bottom: 20px; }
#gallery .section-header p { display: none !important; }
#gallery .gallery-carousel {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.35;
  min-height: 480px;
  margin: 0 0 14px;
  overflow: hidden;
  perspective: none;
  border-radius: 16px;
}

#gallery .carousel-track { position: relative; width: 100%; height: 100%; transform: none; }
#gallery .carousel-slide {
  position: absolute;
  inset: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 5px solid #fff;
  box-shadow: 0 12px 30px rgba(47,73,54,.18);
  transition: opacity .38s ease;
}
#gallery .carousel-slide img {
  border-radius: 9px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}
#gallery .carousel-btn {
  width: 34px;
  height: 34px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--sage-900, #203325);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: background 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

#gallery .carousel-btn:hover {
  background: rgba(255, 255, 255, 0.82);
  color: var(--sage-900, #142419);
  border-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

#gallery .carousel-btn:active {
  background: rgba(255, 255, 255, 0.65);
  color: var(--sage-900, #142419);
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#gallery .carousel-btn.prev { left: 8px; }
#gallery .carousel-btn.next { right: 8px; }

#gallery .carousel-dots {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0;
  padding: 2px 0 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

#gallery .carousel-dots::-webkit-scrollbar { display: none; }

#gallery .carousel-dot {
  flex: 0 0 calc((100% - 32px) / 5);
  width: auto;
  height: auto;
  aspect-ratio: .82 / 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--sage-100);
  opacity: .68;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

#gallery .carousel-dot img { width: 100%; height: 100%; object-fit: cover; }
#gallery .carousel-dot.active { width: auto; background: transparent; border-color: var(--sage-700); opacity: 1; transform: translateY(-1px); }

/* 3. Thông tin tiệc cưới */
#reception::before { display: none; }
#reception::after { right: -24px; top: -34px; }

#reception .reception-card {
  min-height: 0;
  padding: 38px 24px 32px;
  overflow: hidden;
  color: var(--sage-900);
  background: linear-gradient(155deg, #fbfcf7, #f1f5ed);
  border: 1px solid var(--sage-line);
  border-radius: 20px;
  box-shadow: var(--sage-shadow);
}

#reception .reception-header h3,
#reception .reception-lead,
#reception .reception-day-time,
#reception .reception-date-num,
#reception .reception-date-month-year span,
#reception .reception-date-month-year strong,
#reception .reception-lunar,
#reception .reception-time-col small,
#reception .reception-time-col strong {
  color: var(--sage-900);
}

#reception .reception-lead,
#reception .reception-day-time,
#reception .reception-lunar,
#reception .reception-time-col small { color: var(--sage-700); }
#reception .reception-date-divider { background: var(--sage-line); }

#reception .reception-times {
  max-width: 350px;
  margin: 0 auto 22px;
  padding: 14px 0;
  border-block: 1px solid var(--sage-line);
}

#reception .calendar-paper {
  max-width: 340px;
  padding: 18px;
  background: rgba(255,255,255,.72);
  background-image: none;
  border: 1px solid var(--sage-line);
  box-shadow: 0 8px 22px rgba(47,73,54,.08);
}

#reception .calendar-paper-title,
#reception .calendar-grid-header,
#reception .calendar-grid-days span { color: var(--sage-900); }
#reception .calendar-paper-title { border-color: var(--sage-line); }
#reception .calendar-grid-days .wedding-day { background: var(--sage-700); }
#reception .btn-gold-outline { color: var(--sage-700); }
#reception .btn-gold-outline:hover { color: var(--sage-900); }
#reception .btn-cream-solid { background: var(--sage-700) !important; color: #fff !important; box-shadow: 0 5px 14px rgba(47,73,54,.2); }

/* 4. Địa điểm */
#venue {
  padding: 30px 22px;
  overflow: hidden;
  background: var(--sage-paper);
  border: 1px solid var(--sage-line);
  border-radius: 20px;
  box-shadow: var(--sage-shadow);
}

#venue::before {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -82px;
  width: 170px;
  height: 250px;
  opacity: .11;
  background: url("../assets/9cb7d07e-f1fd-4e5b-9477-069ed64e8c43.webp") center / contain no-repeat;
  pointer-events: none;
  mix-blend-mode: multiply;
}

#venue .venue-card { padding: 0; }
#venue .venue-heading,
#venue .venue-name,
#venue .venue-address { color: var(--sage-900); }
#venue .venue-address { font-family: var(--font-serif-sans-num, var(--font-serif)); font-size: 1.05rem; font-weight: 500; }
#venue .venue-address .num-sans { font-family: var(--font-sans); font-weight: 400; }
#venue .venue-location-icon { color: var(--sage-700); stroke: currentColor; }
#venue .map-embed-wrapper { border: 1px solid var(--sage-line); border-radius: 14px; box-shadow: 0 8px 22px rgba(47,73,54,.1); }
#venue .venue-direction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 38px;
  min-width: 175px;
  background: var(--sage-700) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(47, 73, 54, 0.2) !important;
  text-decoration: none !important;
  font-family: var(--font-title);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#venue .venue-direction-btn .direction-icon {
  width: 15px;
  height: 15px;
  color: #ffffff !important;
  stroke: currentColor !important;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

#venue .venue-direction-btn:hover {
  background: var(--sage-700) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(47, 73, 54, 0.28) !important;
  text-decoration: none !important;
}

#venue .venue-direction-btn:hover .direction-icon {
  color: #ffffff !important;
  stroke: currentColor !important;
  transform: translate(2px, -2px);
}

/* 5. Lịch trình */
#timeline::before { display: none; }
#timeline::after { left: -30px; bottom: -62px; transform: rotate(18deg); }

#timeline .timeline-card {
  min-height: 0;
  padding: 36px 24px 34px;
  overflow: hidden;
  color: var(--sage-900);
  background: linear-gradient(155deg, #fbfcf7, #f2f5ee);
  border: 1px solid var(--sage-line);
  border-radius: 20px;
  box-shadow: var(--sage-shadow);
}

#timeline .timeline-card .card-heading,
#timeline .timeline-time,
#timeline .timeline-text { color: var(--sage-900); }
#timeline .timeline-list::before { background: var(--sage-line); }
#timeline .timeline-dot { background: var(--sage-700); box-shadow: 0 0 0 4px rgba(88,114,90,.13); }

/* 6. Đếm ngược */
#countdown::before { display: none; }
#countdown::after { right: -28px; top: -42px; }

#countdown .countdown-card {
  padding: 36px 22px 32px;
  overflow: hidden;
  color: var(--sage-900);
  background: linear-gradient(155deg, #f9fbf5, #edf2e9);
  border: 1px solid var(--sage-line);
  border-radius: 20px;
  box-shadow: var(--sage-shadow);
}

#countdown .countdown-card::before { border-color: rgba(180,154,88,.35); }
#countdown .countdown-heart-icon { color: #fff; background: var(--sage-700); }
#countdown .countdown-card .card-heading,
#countdown .countdown-subtitle,
#countdown .countdown-card .count-box .num,
#countdown .countdown-card .count-box .lbl,
#countdown .countdown-quote { color: var(--sage-900); text-shadow: none; }
#countdown .countdown-subtitle,
#countdown .countdown-card .count-box .lbl { color: var(--sage-700); }
#countdown .countdown-card .count-box { background: rgba(255,255,255,.65); border-color: var(--sage-line); box-shadow: 0 4px 12px rgba(47,73,54,.07); }

/* 7. Dress code */
#dresscode {
  min-height: 0;
  padding: 0;
  overflow: visible;
}

#dresscode::before { display: none; }
#dresscode::after { left: -24px; bottom: -54px; transform: rotate(12deg); }

#dresscode .dresscode-card {
  position: relative;
  overflow: hidden;
  padding: 34px 22px 30px;
  background: var(--sage-paper);
  border: 1px solid var(--sage-line);
  border-radius: 20px;
  box-shadow: var(--sage-shadow);
}

#dresscode .dresscode-icon-wrap { color: #fff; background: var(--sage-700); }
#dresscode .card-heading,
#dresscode .dresscode-subtitle,
#dresscode .dresscode-note { color: var(--sage-900); }
#dresscode .dresscode-subtitle { color: var(--sage-700); }
#dresscode .swatch-circle { box-shadow: 0 3px 9px rgba(47,73,54,.15); }

/* 8. Sổ lưu bút */
#guestbook { padding: 0; }
#guestbook::before { display: none; }
#guestbook::after { right: -26px; top: -46px; }

#guestbook .guestbook-card {
  max-width: 400px;
  margin-bottom: 14px;
  padding: 32px 22px 24px;
  overflow: hidden;
  background: var(--sage-paper);
  border: 1px solid var(--sage-line);
  border-radius: 20px;
  box-shadow: var(--sage-shadow);
}

#guestbook .guestbook-heading { color: var(--sage-900); }
#guestbook .guestbook-form .form-input,
#guestbook .guestbook-form .form-textarea {
  color: var(--sage-900);
  background: rgba(255,255,255,.72);
  border-color: var(--sage-line);
}

#guestbook .guestbook-form .form-input::placeholder,
#guestbook .guestbook-form .form-textarea::placeholder { color: rgba(47,73,54,.5); }
#guestbook .guestbook-form .form-input:focus,
#guestbook .guestbook-form .form-textarea:focus { border-color: var(--sage-700); box-shadow: 0 0 0 3px rgba(88,114,90,.1); }
#guestbook .btn-wish-icon { color: var(--sage-700); background: var(--sage-100); border-color: var(--sage-line); }
#guestbook .btn-submit-wish { background: var(--sage-700); box-shadow: 0 4px 12px rgba(47,73,54,.2); }
#guestbook .btn-submit-wish:hover { background: var(--sage-900); }
#guestbook .wishes-list { max-width: none; }
#guestbook .wish-item { background: rgba(251,252,247,.9); border-color: var(--sage-line); box-shadow: 0 3px 10px rgba(47,73,54,.05); }
#guestbook .wish-author,
#guestbook .wish-message { color: var(--sage-900); }
#guestbook .wish-time { color: var(--sage-600); }

/* 9. Hộp quà */
#gift {
  min-height: 0;
  padding: 34px 22px 30px;
  overflow: hidden;
  background: var(--sage-paper);
  border: 1px solid var(--sage-line);
  border-radius: 20px;
  box-shadow: var(--sage-shadow);
}

#gift::after { right: -34px; bottom: -76px; }
#gift .gift-flower-right { top: -70px; right: -52px; width: 190px; opacity: .11; mask-image: none; -webkit-mask-image: none; }
#gift .gift-heading,
#gift .gift-hint-text { color: var(--sage-900); }
.gift-thankyou-text { color: var(--sage-900); }
.gift-brand-footer { color: var(--sage-600); }

#gift .gift-envelope-box {
  position: relative;
  display: inline-block;
  width: 190px;
  max-width: 65vw;
  height: auto;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

#gift .gift-envelope-box::before,
#gift .gift-envelope-box::after {
  display: none;
}

#gift .gift-envelope-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(47, 73, 54, 0.18));
  animation: giftEnvelopeFloat 3.8s ease-in-out infinite alternate;
  transform-origin: center bottom;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

#gift .gift-envelope-trigger:hover .gift-envelope-img {
  transform: translateY(-8px) scale(1.04) rotate(1.5deg);
  filter: drop-shadow(0 16px 30px rgba(47, 73, 54, 0.28));
}

#gift .gift-sparkle { z-index: 3; }

/* Popup, form và thông báo dùng cùng hệ màu, không đổi hệ chữ */
.modal-overlay,
.wish-suggestions-modal { background: rgba(31, 46, 35, .68); }

.modal-box,
.gift-modal-box,
.wish-modal-card { background: var(--sage-paper); color: var(--sage-900); border: 1px solid var(--sage-line); }

.modal-title,
.gift-modal-title,
.wish-modal-title h3 { color: var(--sage-900); }

.modal-subtitle,
.wish-modal-subtitle { color: var(--sage-700); }

.modal-close {
  color: var(--sage-700);
  background: rgba(88,114,90,.1);
}

.modal-close:hover { color: #fff; background: var(--sage-700); }
.modal-box label { color: var(--sage-900) !important; }

.modal-box .form-input,
.modal-box .form-textarea,
.modal-box select {
  color: var(--sage-900);
  border-color: var(--sage-line) !important;
  background: rgba(255,255,255,.72);
}

.modal-box .form-input:focus,
.modal-box .form-textarea:focus,
.modal-box select:focus {
  border-color: var(--sage-700) !important;
  box-shadow: 0 0 0 3px rgba(88,114,90,.11);
}

.rsvp-radio-label {
  color: var(--sage-900);
  border-color: var(--sage-line);
  background: rgba(255,255,255,.72);
}

.rsvp-radio-label:has(input:checked),
.gift-modal-header { background: var(--sage-100); border-color: var(--sage-line); }

.rsvp-radio-label:has(input:checked) {
  color: var(--sage-900);
  border-color: var(--sage-600);
  background: rgba(215,224,210,.58);
}

.rsvp-radio-label input { accent-color: var(--sage-700); }

#rsvp-modal-form > .btn-cream-solid,
.modal-box .btn-primary,
.gift-modal-box .btn-copy-acc,
.gift-modal-box .btn-save-qr {
  background: var(--sage-700) !important;
  color: #fff !important;
  border-color: var(--sage-700) !important;
  box-shadow: 0 5px 14px rgba(47,73,54,.18);
}

.gift-modal-box { box-shadow: 0 20px 48px rgba(31,46,35,.3); }
.gift-modal-header { color: var(--sage-900); }
.gift-modal-close { color: var(--sage-700); }
.gift-modal-close:hover { color: var(--sage-900); background: rgba(88,114,90,.12); }
.gift-modal-body { background: var(--sage-paper); }
.gift-qr-card { border-color: var(--sage-line); box-shadow: 0 4px 14px rgba(47,73,54,.08); }
.gift-bank-name,
.gift-bank-number,
.gift-bank-owner { color: var(--sage-900); }

.wish-suggestion-item { color: var(--sage-900); border-color: var(--sage-line); background: #fff; }
.wish-suggestion-item:hover { color: var(--sage-900); border-color: var(--sage-700); background: var(--sage-50); box-shadow: 0 2px 8px rgba(47,73,54,.08); }
.btn-modal-refresh { color: var(--sage-900); border-color: var(--sage-line); }
.btn-modal-refresh:hover { color: var(--sage-900); border-color: var(--sage-700); background: var(--sage-50); }
.btn-modal-cancel { color: var(--sage-800); background: var(--sage-100); }

.toast {
  color: #fff;
  background: linear-gradient(135deg, var(--sage-700), var(--sage-900));
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 7px 22px rgba(31,46,35,.3);
}

.not-found-screen {
  background: radial-gradient(circle at 50% 30%, #82977f 0%, #3f5542 100%);
}

.not-found-card { background: var(--sage-paper); border-color: rgba(180,154,88,.55); }
.not-found-title { color: var(--sage-900); }
.not-found-desc { color: var(--sage-700); }

@media (max-width: 480px) {
  #couple-portraits,
  #wedding-info,
  #gallery,
  #reception,
  #venue,
  #timeline,
  #countdown,
  #dresscode,
  #guestbook,
  #gift { width: calc(100% - 20px); margin-bottom: 14px; }

  #couple-portraits .couple-portraits-card,
  #wedding-info .red-card,
  #reception .reception-card,
  #timeline .timeline-card,
  #countdown .countdown-card,
  #dresscode .dresscode-card,
  #guestbook .guestbook-card,
  #gift { border-radius: 16px; }

  #couple-portraits .couple-portraits-card { padding: 30px 12px 26px; }
  .couple-portraits-grid { gap: 8px; }
  .couple-portrait { padding: 7px 7px 14px; }
  .couple-portrait-name { font-size: .9rem; }
  .couple-portrait-quote { font-size: .88rem; }
  #wedding-info .red-card { padding: 32px 16px 28px; }
  #wedding-info .family-side { padding: 14px 7px; }
  #wedding-info .couple-highlight-names { padding-inline: 0; }
  #gallery { padding: 30px 14px 24px; }
  #gallery .gallery-carousel { height: auto; }
  #reception .reception-card { padding: 34px 16px 28px; }
  #venue { padding: 28px 16px; }
  #timeline .timeline-card { padding: 32px 16px 30px; }
  #countdown .countdown-card { padding: 32px 14px 28px; }
  #countdown .countdown-card .countdown-grid { gap: 6px; }
  #countdown .countdown-card .count-box { padding-inline: 2px; }
  #dresscode .dresscode-card,
  #guestbook .guestbook-card,
  #gift { padding-inline: 16px; }
}
