/* style.css - Wedding invitation and Comic Flipbook */

:root {
  --primary-color: #7d633f; /* Deep Elegant Gold/Bronze */
  --accent-color: #d4af37;  /* Metallic Gold */
  --bg-color: #fbf9f5;      /* Warm Ivory/Cream Page background */
  --text-dark: #2c251e;     /* Warm Charcoal for text readability */
  --text-light: #6e6052;    /* Soft Muted Brown */
  --shadow-color: rgba(50, 40, 30, 0.15);
  --book-cover-bg: #3b2a1a; /* Rich Leather Walnut */
  --transition-speed: 0.8s;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-cursive: 'Marck Script', cursive;
}

/* Language Visibility Rules */
.lang-ru .kk {
  display: none !important;
}
.lang-kk .ru {
  display: none !important;
}

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

body {
  font-family: var(--font-sans);
  background-color: #1a120b; /* Deep shadow table color */
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

/* Ambient Background Aesthetics */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at center, #2e2014 0%, #110b06 100%);
  overflow: hidden;
}

.bokeh-ball {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.ball1 {
  width: 400px;
  height: 400px;
  background-color: var(--accent-color);
  top: -100px;
  left: -100px;
  animation: float-slow 20s infinite alternate;
}

.ball2 {
  width: 500px;
  height: 500px;
  background-color: #bfa17a;
  bottom: -150px;
  right: -100px;
  animation: float-slow 25s infinite alternate-reverse;
}

.ball3 {
  width: 300px;
  height: 300px;
  background-color: var(--primary-color);
  top: 40%;
  right: 20%;
  animation: float-slow 18s infinite alternate;
}

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Falling Rose Petals Animation */
.petals-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.petal {
  position: absolute;
  background: linear-gradient(135deg, #d33f49, #a02830); /* Warm red petals */
  border-radius: 150% 0 150% 150%;
  opacity: 0.7;
  pointer-events: none;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-20px) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(105vh) rotate(720deg) translateX(100px);
    opacity: 0;
  }
}

/* Header Styles */
.main-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 2px;
  border: 1px solid var(--accent-color);
  padding: 5px 15px;
  border-radius: 50% 50%;
  background: rgba(43, 30, 18, 0.4);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-switch-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 4px 12px;
  backdrop-filter: blur(5px);
}

.lang-toggle-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.lang-toggle-btn:hover {
  color: var(--accent-color);
}

.lang-toggle-btn.active {
  color: #1a120b;
  background: var(--accent-color);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.lang-divider {
  color: rgba(212, 175, 55, 0.4);
  margin: 0 4px;
  font-size: 12px;
  user-select: none;
}

.music-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 8px 16px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  user-select: none;
}

.music-control:hover {
  background: var(--accent-color);
  color: #1a120b;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.music-control.playing .music-icon {
  animation: rotate-music 2s linear infinite;
}

@keyframes rotate-music {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Album Container and Book Wrapper */
.album-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 10px;
  perspective: 2000px;
  z-index: 5;
}

.book-wrapper {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  height: 60vw; /* Fallback for older browsers */
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: 75vh;
  min-height: 460px;
  transition: transform 0.5s ease;
  /* Thick book cover shadow under the whole album */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}

/* The Book Leather Cover backplate */
.book-wrapper::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  background: var(--book-cover-bg);
  border-radius: 12px;
  box-shadow: 
    inset 0 0 20px rgba(0,0,0,0.8),
    0 10px 30px rgba(0,0,0,0.5);
  z-index: 1;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

/* The book pages stack effect on sides */
.book-wrapper::after {
  content: '';
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: -4px;
  right: -4px;
  background: linear-gradient(to right, #ddd 2px, #fff 4px, #eee 6px, #fff 8px, transparent 12px, transparent 98%, #fff 98%, #ddd 99%, #fff 100%);
  border-radius: 4px;
  z-index: 2;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.book {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  border-radius: 6px;
  z-index: 3;
  transform-style: preserve-3d;
  overflow: visible;
}

/* Center Binding Crease Line */
.book::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 15px);
  width: 30px;
  background: linear-gradient(to right, 
    rgba(0,0,0,0.15) 0%, 
    rgba(0,0,0,0.35) 40%, 
    rgba(0,0,0,0.45) 50%, 
    rgba(0,0,0,0.35) 60%, 
    rgba(0,0,0,0.15) 100%);
  z-index: 20;
  pointer-events: none;
}

/* Sheet styles representing single physical sheet of paper */
.sheet {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 50%;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform var(--transition-speed) cubic-bezier(0.645, 0.045, 0.355, 1), z-index var(--transition-speed) ease;
  pointer-events: none;
  z-index: 1;
}

/* Enable pointer events ONLY on top/visible pages to prevent overlap clicks */
.sheet.active-right,
.sheet.active-left {
  pointer-events: auto;
}

.sheet.flipped {
  transform: rotateY(-180deg);
}

/* Page faces inside sheet */
.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background-color: var(--bg-color);
  padding: 4cqw 5cqw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 3px 0 10px rgba(0,0,0,0.05);
  overflow: hidden;
  container-type: inline-size; /* Enable container query sizing */
}

.page.front {
  z-index: 2;
  border-radius: 0 8px 8px 0;
  box-shadow: inset 10px 0 20px rgba(0,0,0,0.05), 5px 0 10px rgba(0,0,0,0.05);
}

.page.back {
  z-index: 1;
  transform: rotateY(180deg);
  border-radius: 8px 0 0 8px;
  box-shadow: inset -10px 0 20px rgba(0,0,0,0.05), -5px 0 10px rgba(0,0,0,0.05);
}

/* Paper Texture overlay */
.paper-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 0);
  background-size: 8px 8px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.page-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

/* Page Headers & Footers */
.page-header {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 15px;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
  padding-bottom: 5px;
  width: 100%;
}

.page-footer {
  display: none !important;
}

/* Cover Page (Page 1 Front) */
.cover-page {
  background: var(--bg-color);
}

.floral-frame {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  pointer-events: none;
}

.floral-frame::before,
.floral-frame::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-color);
}

.floral-frame::before {
  top: -5px;
  left: -5px;
  border-right: none;
  border-bottom: none;
}

.floral-frame::after {
  bottom: -5px;
  right: -5px;
  border-left: none;
  border-top: none;
}

.cover-image-container {
  width: 100%;
  height: 55%;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  margin-top: 10px;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cover-image-container:hover .cover-image {
  transform: scale(1.05);
}

.image-placeholder-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

.cover-text {
  text-align: center;
  padding: 2cqw 0;
}

.cover-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 10cqw, 42px);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.cover-text .amp {
  font-family: var(--font-cursive);
  font-size: clamp(30px, 11cqw, 52px);
  color: var(--accent-color);
}

.tagline {
  font-family: var(--font-sans);
  font-size: clamp(11px, 3.5cqw, 15px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.divider {
  height: 1px;
  width: 80px;
  margin: 0 auto 12px auto;
  background-color: var(--accent-color);
}

.gold-line {
  position: relative;
}

.gold-line::after {
  content: '♦';
  position: absolute;
  top: -7px;
  left: calc(50% - 5px);
  font-size: 10px;
  color: var(--accent-color);
  background: var(--bg-color);
  padding: 0 4px;
}

.date {
  font-size: clamp(16px, 4cqw, 20px);
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary-color);
}

.swipe-hint {
  font-size: 11px;
  text-align: center;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  animation: pulse 2s infinite;
}

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

.arrow-swipe {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent-color);
  border-right: 2px solid var(--accent-color);
  transform: rotate(45deg);
}

/* Formal Text Page (Page 1 Back) */
.text-page {
  justify-content: center;
}

.wedding-message {
  text-align: center;
  line-height: 1.8;
  padding: 0 10px;
}

.accent-cursive {
  font-family: var(--font-cursive);
  font-size: clamp(24px, 8cqw, 36px);
  color: var(--accent-color);
  margin-bottom: 20px;
}

.wedding-message p {
  margin-bottom: 15px;
  font-size: clamp(14px, 4cqw, 18px);
  color: var(--text-dark);
  font-weight: 400;
}

.heart-separator {
  color: var(--accent-color);
  font-size: 20px;
  margin: 15px 0;
  animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

.invitation-call {
  font-family: var(--font-serif);
  font-size: clamp(15px, 4.2cqw, 20px);
  font-style: italic;
  font-weight: 600;
  color: var(--primary-color);
}

/* Timer Page (Page 2 Front) */
.timer-page {
  background: var(--bg-color);
}

.timer-container {
  display: flex;
  justify-content: space-around;
  margin: 25px 0;
  gap: 10px;
}

.timer-item {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 6px;
  padding: 15px 5px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.timer-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color);
}

.timer-val {
  font-family: var(--font-serif);
  font-size: clamp(20px, 7cqw, 32px);
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.timer-label {
  font-size: clamp(8px, 2.5cqw, 11px);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 5px;
  display: block;
}

.wedding-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0 15px 0;
}

.detail-block {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.6);
  padding: 8px 15px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.detail-icon {
  font-size: 20px;
}

.detail-title {
  font-size: clamp(8px, 2.5cqw, 11px);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  font-weight: 600;
  display: block;
}

.detail-text {
  font-family: var(--font-serif);
  font-size: clamp(11px, 3.2cqw, 15px);
  font-weight: 600;
  color: var(--primary-color);
}

.calendar-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(125, 99, 63, 0.3);
  transition: all 0.3s ease;
  width: 100%;
}

.calendar-btn:hover {
  background: var(--accent-color);
  color: #1a120b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Comic Pages styling */
.comic-page {
  padding: 20px 25px;
}

.comic-panel-container {
  width: 100%;
  height: 70%;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.comic-panel-container:hover .comic-img {
  transform: scale(1.03);
}

.comic-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(44, 37, 30, 0.85);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid var(--accent-color);
  backdrop-filter: blur(3px);
}

.comic-text {
  height: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 5px 0 5px;
  font-size: clamp(14px, 3.8cqw, 18px);
  line-height: 1.6;
  color: var(--text-dark);
  font-weight: 400;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* Back Cover Page (Page 5 Back) */
.back-cover {
  background: var(--bg-color);
  text-align: center;
}

.back-cover h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 8cqw, 36px);
  color: var(--primary-color);
  margin-top: 20px;
}

.rsvp-hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-light);
  margin: 15px 0;
}

.rsvp-form {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(125, 99, 63, 0.25);
  border-radius: 6px;
  background-color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-dark);
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.submit-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(125, 99, 63, 0.25);
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--accent-color);
  color: #1a120b;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.rsvp-success {
  display: none;
  color: #2e6f40;
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin: 10px 0;
}

.rsvp-success span {
  font-size: 14px;
}

.thanks-note {
  margin-top: 15px;
}

.script-font {
  font-family: var(--font-cursive);
  font-size: 26px;
  color: var(--accent-color);
}

/* Controls Panel Styling */
.controls-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px;
  z-index: 10;
  user-select: none;
}

.nav-btn {
  background: rgba(43, 30, 18, 0.7);
  color: #fff;
  border: 1px solid var(--accent-color);
  padding: 10px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.nav-btn:hover:not(:disabled) {
  background: var(--accent-color);
  color: #1a120b;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-indicator {
  color: #fff;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Responsiveness overrides for Tablet/Mobile */
@media (max-width: 992px) {
  /* Since the layout is fluid, we don't need fixed overrides, but we can adjust maximum sizes slightly if needed */
  .book-wrapper {
    width: 92vw;
  }
}

@media (max-width: 768px) {
  /* On small screens, we switch from double-page spread to single stacked page view */
  .book-wrapper {
    width: 88vw;
    max-width: 450px;
    height: 75vh;
    max-height: 650px;
    min-height: 480px;
    aspect-ratio: auto; /* Reset aspect ratio on mobile for single pages */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  }
  
  .book-wrapper::before {
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 8px;
  }

  .book-wrapper::after {
    display: none; /* Hide multi page edges on mobile */
  }

  .book {
    background: transparent;
  }

  .book::before {
    display: none; /* Hide middle crease on mobile */
  }

  .sheet {
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    position: absolute;
    top: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease;
  }

  /* Single-page stack model on mobile */
  .page {
    border-radius: 8px !important;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
  }

  /* We position front and back of sheets separately depending on active state.
     To support single pages, each sheet holds 2 pages. In mobile:
     We toggle classes in JS to make them slide or stack.
     JS will toggle active classes. */
  .sheet {
    opacity: 0;
    z-index: 0;
    transform: translateX(100%) scale(0.9);
  }

  .sheet.mobile-active-front {
    opacity: 1;
    z-index: 5;
    transform: translateX(0) scale(1);
  }

  .sheet.mobile-active-back {
    opacity: 1;
    z-index: 5;
    transform: rotateY(-180deg) scale(1);
  }

  /* Flipped animations for single page on mobile */
  .sheet.mobile-prev {
    opacity: 0;
    z-index: 0;
    transform: translateX(-100%) scale(0.9);
  }

  .sheet.mobile-next {
    opacity: 0;
    z-index: 0;
    transform: translateX(100%) scale(0.9);
  }

  /* Adjust cover and other details for small heights */
  .cover-image-container {
    height: 50%;
  }

  .cover-text h1 {
    font-size: 26px;
  }

  .accent-cursive {
    font-size: 22px;
  }

  .timer-val {
    font-size: 20px;
  }

  .timer-container {
    margin: 15px 0;
  }

  .comic-panel-container {
    height: 65%;
  }

  .wedding-details {
    gap: 8px;
    margin: 10px 0 15px 0;
  }

  .detail-block {
    padding: 8px 12px;
  }

  .controls-container {
    gap: 15px;
    padding: 10px;
  }

  .nav-btn {
    padding: 8px 16px;
    font-size: 11px;
  }
}

/* --- NEW STATIC FOOTER PANEL STYLES --- */

.static-panel {
  width: 100%;
  padding: 20px 0;
  z-index: 10;
  margin-top: 15px;
}

.static-panel-container {
  max-width: 1200px;
  width: 90vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.6fr;
  gap: 25px;
  background: rgba(30, 20, 12, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 22px 25px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.static-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.static-block:not(:last-child) {
  border-right: 1px dashed rgba(212, 175, 55, 0.2);
  padding-right: 25px;
}

.static-block h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--accent-color);
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 8px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.static-detail-item {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  line-height: 1.6;
}

.static-detail-item strong {
  color: var(--accent-color);
  font-weight: 500;
}

/* Static Timer Box Overrides */
.timer-block-static .timer-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
}

.timer-block-static .timer-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  padding: 8px 3px;
  text-align: center;
  flex: 1;
}

.timer-block-static .timer-val {
  color: #fff;
  font-size: clamp(24px, 2.5vw, 32px);
}

.timer-block-static .timer-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  margin-top: 1px;
}

/* Static RSVP Box Overrides */
.rsvp-block-static .rsvp-form {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 8px 0 0 0;
  align-items: center;
  width: 100%;
}

.rsvp-block-static .form-group {
  flex: 1;
  min-width: 0;
}

.rsvp-block-static .form-group input,
.rsvp-block-static .form-group select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: #fff;
  font-size: 14px;
  border-radius: 6px;
  outline: none;
  height: 42px;
}

.rsvp-block-static .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.rsvp-block-static .form-group select option {
  background-color: #261b10;
  color: #fff;
}

.rsvp-block-static .submit-btn {
  background: var(--accent-color);
  color: #1a120b;
  padding: 0 20px;
  font-size: 13px;
  border-radius: 6px;
  height: 42px;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
}

.rsvp-block-static .submit-btn:hover {
  background: #fff;
  color: #1a120b;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.35);
}

.rsvp-block-static .rsvp-success {
  margin-top: 8px;
  padding: 8px;
  font-size: 12px;
  text-align: center;
}

.rsvp-block-static .calendar-btn {
  margin-top: 5px;
}

/* Quote Page internal layout rules */
.quote-page {
  background: var(--bg-color);
  justify-content: center;
}

.quote-container-inner {
  text-align: center;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  height: 100%;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: clamp(48px, 12cqw, 72px);
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: -15px;
}

.love-quote {
  font-family: var(--font-serif);
  font-size: clamp(15px, 4.5cqw, 20px);
  font-style: italic;
  line-height: 1.8;
  color: var(--text-dark);
  font-weight: 500;
}

.quote-author {
  font-family: var(--font-sans);
  font-size: clamp(11px, 3cqw, 14px);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 5px;
}

.quote-heart {
  font-size: 20px;
  color: var(--accent-color);
  animation: heartBeat 1.8s infinite;
  margin-top: 5px;
}

/* Back Cover layout inside rules */
.back-cover-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  height: 100%;
}

.closing-message {
  font-size: clamp(14px, 4cqw, 18px);
  line-height: 1.8;
  color: var(--text-dark);
  margin: 5px 0;
}

/* Mobile Media Queries for Static Panel */
@media (max-width: 768px) {
  .static-panel {
    margin-top: 15px;
    padding: 0 10px;
  }

  .static-panel-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 15px;
    width: 88vw;
    max-width: 450px;
  }

  .static-block:not(:last-child) {
    border-right: none;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.25);
    padding-right: 0;
    padding-bottom: 20px;
  }

  .rsvp-block-static .rsvp-form {
    flex-direction: column;
    align-items: stretch;
  }

  .rsvp-block-static .submit-btn {
    width: 100%;
  }
}
