/* Font Face Declarations */
@font-face {
  font-family: "The Seasons";
  src: url("Fontspring-DEMO-theseasons-reg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("Fontspring-DEMO-theseasons-bd.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("Fontspring-DEMO-theseasons-it.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("Fontspring-DEMO-theseasons-bdit.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("Fontspring-DEMO-theseasons-ltit.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Burgues Script";
  src: url("Burgues Script W00 Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Slight";
  src: url("Slight-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* CSS Custom Properties */
:root {
  /* Colors */
  --primary-color: #2c2c2c;
  --secondary-color: #666666;
  --accent-color: #8b4513;
  --background-color: #fff9f1;
  --card-background: #fefefe;
  --text-light: #888888;
  --border-color: #e0e0e0;

  /* Typography */
  --font-main: "Open Sans", sans-serif;
  --font-serif: "The Seasons", "Playfair Display", serif;
  --font-script: "Dancing Script", cursive;
  --font-burgues: "Burgues Script", cursive;
  --font-slight: "Slight", sans-serif;
  --font-crimson: "Crimson Pro", serif;

  /* Shadows */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 25px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: #ffffff;
  color: var(--primary-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Music */
#weddingMusic {
  display: none;
  position: fixed;
  top: -9999px;
  left: -9999px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary-color);
}
.text-secondary {
  color: var(--secondary-color);
}
.text-light {
  color: var(--text-light);
}

.font-serif {
  font-family: var(--font-serif);
}
.font-main {
  font-family: var(--font-main);
}
.font-script {
  font-family: var(--font-script);
}
.font-burgues {
  font-family: var(--font-burgues);
}
.font-slight {
  font-family: var(--font-slight);
}
.font-crimson {
  font-family: var(--font-crimson);
}

.bg-primary {
  background-color: var(--primary-color);
}
.bg-secondary {
  background-color: var(--secondary-color);
}
.bg-card {
  background-color: var(--card-background);
}
.bg-background {
  background-color: var(--background-color);
}

.shadow {
  box-shadow: var(--shadow);
}
.shadow-hover {
  box-shadow: var(--shadow-hover);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}
.rounded-md {
  border-radius: var(--radius-md);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.transition {
  transition: all 0.3s ease;
}
.transition-transform {
  transition: transform 0.3s ease;
}
.transition-shadow {
  transition: box-shadow 0.3s ease;
}

.cursor-pointer {
  cursor: pointer;
}
.pointer-events-none {
  pointer-events: none;
}

.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.bold {
  font-weight: 700;
}
.semibold {
  font-weight: 600;
}

/* Invitation Page Layout - Mobile First */
.invitation-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  box-sizing: border-box;
  background: #ffffff;
}

/* Mobile-specific optimizations */
@media (max-width: 480px) {
  .invitation-page {
    padding: 0.5rem;
    min-height: 100vh;
    box-sizing: border-box;
  }
}

/* Page-specific styling */
#page2 .invitation-card,
#page3 .invitation-card,
#page4 .invitation-card,
#page5 .invitation-card {
  background: var(--background-color);
}

.invitation-card {
  background: var(--background-color);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  background-image: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  min-height: 750px;
  height: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Mobile card optimizations */
@media (max-width: 480px) {
  .invitation-card {
    padding: 1.5rem 1rem;
    border-radius: 12px;
    max-width: 100%;
    min-height: 700px;
    height: auto;
  }

  /* Page 2 mobile */
  .you-are {
    font-size: 2rem;
  }

  .invited-title {
    font-size: 2.5rem;
    letter-spacing: 0.2rem;
  }

  .photo-gallery {
    max-width: 100%;
  }

  .photo-grid {
    gap: 0.6rem;
  }
}

.invitation-card.clickable-card {
  cursor: pointer;
}

.invitation-card.clickable-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.invitation-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Invitation Gallery */
.invitation-gallery {
  background: var(--card-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--spacing-md);
  max-width: 500px;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.invitation-gallery.clickable-card {
  cursor: pointer;
}

.invitation-gallery.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.invitation-item {
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.invitation-item:hover {
  transform: scale(1.02);
}

.invitation-item:last-child {
  margin-bottom: 0;
}

/* Single Invitation Layout */
.invitation-content {
  position: relative;
  max-width: 100%;
  width: 100%;
  color: var(--primary-color);
  padding: 2rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  gap: 1.5rem;
}

/* Names Section - Mobile First */
.names-section {
  margin-bottom: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.name {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 4px;
  margin: 0.3rem 0;
  display: block;
  line-height: 1.2;
}

/* Mobile name optimizations */
@media (max-width: 480px) {
  .names-section {
    margin-bottom: 1.2rem;
  }

  .name {
    font-size: 2.8rem;
    letter-spacing: 2px;
    margin: 0.15rem 0;
  }

  .names-row .name {
    font-size: 3rem;
  }

  .and {
    font-size: 1.5rem;
  }
}

/* iPhone 13 Pro Max and larger mobile screens */
@media (max-width: 480px) and (min-height: 800px) {
  .names-section {
    text-align: right;
    padding-right: 1.5rem;
    position: absolute;
    top: 2rem;
    right: 0;
    width: auto;
    margin-bottom: 0;
  }

  .name {
    font-size: 4.5rem;
    letter-spacing: 2.5px;
    text-align: right;
    margin: -1rem 0;
  }

  .names-row {
    justify-content: flex-end;
    margin: 0.05rem 0;
  }

  .names-row .name {
    font-size: 4rem;
    text-align: right;
    margin: 0;
  }

  .names-row .name:last-child {
    padding-right: 0rem;
    margin-right: -0.2rem;
  }

  .and {
    font-size: 3rem;
    margin-bottom: -0.8rem;
  }

  .invitation-content {
    position: relative;
  }

  .date {
    font-size: 2.8rem;
    letter-spacing: 2.5px;
  }

  .time {
    font-size: 1rem;
    letter-spacing: 0.8px;
    text-align: right;
    margin-right: 0.5rem;
  }

  .venue {
    font-size: 0.8rem !important;
    letter-spacing: 6px !important;
    position: relative;
    top: 4rem;
    left: -3.2rem;
  }

  .location {
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    top: 3.8rem;
    left: -3.3rem;
  }

  .request-text p {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
  }

  .floral-decoration {
    bottom: 1.5rem;
    margin-right: 2rem;
    margin-bottom: 1.5rem;
  }

  .floral-decoration .flower-image {
    width: 100px;
    height: 150px;
  }

  /* Page 3 iPhone 13 Pro Max optimizations */
  .the-text {
    font-size: 2.8rem;
    color: var(--primary-color);
  }

  .details-title {
    font-size: 3.2rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-content {
    font-size: 1rem;
  }
}

.names-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.5rem 0;
}

.and {
  font-size: 3rem;
  color: var(--primary-color);
  margin-right: 2rem;
  margin-bottom: -1.1rem;
  font-weight: 400;
  font-style: normal;
}

.names-row .name {
  margin: 0;
  font-size: 4.5rem;
}

/* Request Text - Mobile First */
.request-text {
  margin-right: -1.7rem;
  margin-top: 15rem;
  text-align: right;
  flex-shrink: 0;
}

.request-text p {
  font-size: 2rem;
  color: var(--secondary-color);
  letter-spacing: 1.5px;
  line-height: 1.6;
  text-transform: uppercase;
  margin: 0.5rem 0;
  font-weight: 400;
  margin-top: -0.6rem;
}

/* Date and Venue Section - Mobile First */
.date-venue-section {
  margin-top: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.date-time-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin: 0;
  line-height: 1.2;
}

.time {
  font-size: 0.75rem;
  color: var(--secondary-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
}

/* Mobile date/time optimizations */
@media (max-width: 480px) {
  .date {
    font-size: 3.6rem;
    letter-spacing: 2px;
    margin-top: -3rem;
    text-align: right;
  }

  .time {
    font-size: 1rem;
    letter-spacing: 1.5px;
  }

  .request-text p {
    font-size: 0.8rem;
    letter-spacing: 1.2px;
  }

  .date-venue-section {
    gap: 0.8rem;
    margin-top: 1.2rem;
  }
}

.venue-group {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.venue {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.location {
  font-size: 0.75rem;
  color: var(--secondary-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
}

/* Floral Decoration - Mobile First */
.floral-decoration {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 10;
  pointer-events: none;
}

.flower-image {
  width: 100px;
  height: auto;
  opacity: 0.9;
  display: block;
}

/* Mobile venue optimizations */
@media (max-width: 480px) and (max-height: 799px) {
  .venue {
    font-size: 0.95rem;
    letter-spacing: 0.8px;
  }

  .location {
    font-size: 0.7rem;
    letter-spacing: 0.8px;
  }

  .floral-decoration {
    bottom: 0.8rem;
    right: 0.8rem;
  }

  .flower-image {
    width: 80px;
  }
}

/* Photo Gallery */
.photo-gallery {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1.2rem;
  flex-shrink: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: 100%;
}

.photo-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

/* Page 2 Content Container */
.page2-content {
  position: relative;
  max-width: 100%;
  width: 100%;
  color: var(--primary-color);
  padding: 2rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  gap: 1.5rem;
}

/* You are Invited header */
.invited-header {
  text-align: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.you-are {
  font-style: normal;
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 400;
  text-align: center;
  margin: 0;
  line-height: 1;
}

.invited-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.3rem;
  margin: 0.2rem 0 0.5rem 0;
  color: var(--primary-color);
  line-height: 1;
}

.invited-rule {
  margin: 0.8rem auto 0;
  width: 50%;
  border: none;
  border-top: 1px solid var(--primary-color);
  opacity: 0.6;
}

.rsvp-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  flex-shrink: 0;
}

.rsvp-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  color: var(--primary-color);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.rsvp-cta:hover {
  background: var(--primary-color);
  color: var(--background-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rsvp-cta:hover .rsvp-btn-icon {
  color: var(--background-color);
}

.rsvp-cta:active {
  transform: translateY(0);
}

.rsvp-btn-icon {
  font-size: 1.3rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.rsvp-cta span {
  letter-spacing: 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* RSVP Overlay */
.clickable-rsvp {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.clickable-rsvp .photo {
  transition: transform 0.3s ease;
}

.clickable-rsvp:hover .photo {
  transform: scale(1.05);
}

.rsvp-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.clickable-rsvp:hover .rsvp-overlay {
  opacity: 1;
}

.envelope-icon {
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.clickable-rsvp:hover .envelope-icon {
  transform: scale(1.1);
}

.envelope-svg {
  width: 40px;
  height: 32px;
}

.envelope-svg rect,
.envelope-svg path {
  stroke: white;
  stroke-width: 2;
}

.rsvp-text {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
}

/* Navigation */
.navigation-hint {
  margin-top: var(--spacing-lg);
}

.back-btn {
  background: var(--primary-color);
  color: var(--card-background);
  border: none;
  padding: 0.8rem var(--spacing-lg);
  font-family: var(--font-main);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow);
}

.back-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--card-background);
  border-radius: var(--radius-md);
  padding: 0;
  max-width: 500px;
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  margin: var(--spacing-md);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
  background: var(--background-color);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Mobile modal adjustments */
@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    max-height: 98vh;
    margin: 0.5rem;
    border-radius: 12px;
  }

  .modal-header {
    padding: 1rem 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .rsvp-welcome-message {
    padding: 1rem 1.5rem 0.8rem 1.5rem;
  }

  .rsvp-welcome-message p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .rsvp-form {
    padding: 1.5rem;
  }

  .form-group {
    margin-bottom: 1.2rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .cancel-btn,
  .submit-btn {
    width: 100%;
    padding: 0.9rem;
  }
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-color);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background-color: var(--border-color);
  color: var(--primary-color);
}

.rsvp-welcome-message {
  padding: 1.5rem 2rem 1rem 2rem;
  background: var(--background-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.rsvp-welcome-message p {
  font-family: "The Seasons", var(--font-serif);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.rsvp-welcome-message p:last-child {
  margin-bottom: 0;
}

.rsvp-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.cancel-btn,
.submit-btn {
  padding: 0.8rem var(--spacing-lg);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cancel-btn {
  background-color: var(--border-color);
  color: var(--secondary-color);
}

.cancel-btn:hover {
  background-color: var(--secondary-color);
  color: var(--card-background);
}

.submit-btn {
  background-color: var(--primary-color);
  color: var(--card-background);
}

.submit-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.submit-btn:disabled {
  background-color: var(--border-color);
  color: var(--text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success Message */
.success-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.success-message.active {
  opacity: 1;
  visibility: visible;
}

.success-content {
  background: var(--card-background);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-hover);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.success-message.active .success-content {
  transform: scale(1);
}

.success-content h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.success-content p {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-lg);
}

.success-content button {
  background-color: var(--primary-color);
  color: var(--card-background);
  border: none;
  padding: 0.8rem var(--spacing-lg);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-content button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Tablet and up - Scale up from mobile */
@media (min-width: 481px) {
  .invitation-page {
    padding: 1.5rem;
  }

  .invitation-card {
    padding: 2.5rem 2rem;
    max-width: 600px;
    min-height: 800px;
    height: auto;
  }

  .invitation-content {
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }

  .page2-content {
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }

  .details-content {
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }

  .names-section {
    margin-bottom: 2rem;
  }

  .name {
    font-size: 4.5rem;
    letter-spacing: 5px;
  }

  .names-row .name {
    font-size: 4.5rem;
  }

  .and {
    font-size: 1.6rem;
  }

  .the-text {
    font-size: 1.4rem;
  }

  .request-text p {
    font-size: 1rem;
  }

  /* Page 2 - Tablet */
  .you-are {
    font-size: 2.8rem;
  }

  .invited-title {
    font-size: 3.5rem;
    letter-spacing: 0.35rem;
  }

  .photo-gallery {
    max-width: 380px;
  }

  .photo-grid {
    gap: 0.8rem;
  }

  .rsvp-btn-icon {
    font-size: 1.4rem;
  }

  .rsvp-cta span {
    font-size: 1rem;
    letter-spacing: 0.18rem;
  }

  .date-venue-section {
    /* Stack date above venue even on wider screens so the date appears above the venue text
     Keep the content center-aligned */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2.5rem;
  }

  .date-time-group {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .venue-group {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: auto;
    margin-top: 1rem;
  }

  .date {
    font-size: 5rem;
    letter-spacing: 3px;
    margin-bottom: 0;
  }

  .time {
    font-size: 0.9rem;
    margin-top: 0;
  }

  .venue {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0;
  }

  .location {
    font-size: 0.85rem;
    display: block;
    margin-top: 0;
  }

  .floral-decoration {
    bottom: 0.8rem;
    /* move the flower closer to centered venue text on larger screens */
    left: calc(50% + 80px);
    right: auto;
  }

  .flower-image {
    width: 100px;
    height: auto;
  }

  .the-text {
    font-size: 2.8rem;
  }

  .details-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .section-content {
    font-size: 0.8rem;
  }

  .palette-image {
    width: 120px;
  }

  .flower-decoration .flower-image {
    width: 90px;
    transform: scaleX(-1);
  }

  .wedding-party-section .flower-decoration .flower-image {
    width: 90px;
  }

  /* Maintain alternating alignment on tablet for page 3 */
  .attire-section {
    text-align: left;
  }

  .attire-section .section-title {
    text-align: left;
  }

  .ceremony-section {
    text-align: right;
  }

  .ceremony-section .section-title {
    text-align: right;
  }

  .gifts-section {
    text-align: left;
  }

  .gifts-section .section-title {
    text-align: left;
  }

  .important-section {
    text-align: right;
  }

  .important-section .section-title {
    text-align: right;
  }
}

/* Desktop - Scale up further */
@media (min-width: 769px) {
  .invitation-page {
    padding: 2rem;
  }

  .invitation-card {
    padding: 4rem 3rem;
    max-width: 700px;
    min-height: 900px;
    height: auto;
  }

  .invitation-content {
    padding: 4rem 2.5rem;
    gap: 3.5rem;
  }

  .page2-content {
    padding: 4rem 2.5rem;
    gap: 3.5rem;
  }

  .details-content {
    padding: 4rem 2.5rem;
    gap: 3.5rem;
  }

  .names-section {
    margin-bottom: 3.5rem;
  }

  .name {
    font-size: 6rem;
    letter-spacing: 7px;
    line-height: 1.2;
  }

  .names-row .name {
    font-size: 6rem;
  }

  .and {
    font-size: 2.5rem;
    margin: 1rem 0;
  }

  .the-text {
    font-size: 3rem;
  }

  .request-text {
    margin: 2rem 0;
  }

  .request-text p {
    font-size: 1.2rem;
    line-height: 2;
    margin: 0.8rem 0;
  }

  /* Page 2 - Desktop */
  .you-are {
    font-size: 3rem;
  }

  .invited-title {
    font-size: 4rem;
    letter-spacing: 0.4rem;
  }

  .photo-gallery {
    max-width: 420px;
  }

  .photo-grid {
    gap: 0.9rem;
  }

  .rsvp-btn-icon {
    font-size: 1.5rem;
  }

  .rsvp-cta span {
    font-size: 1.05rem;
    letter-spacing: 0.2rem;
  }

  .date-venue-section {
    gap: 3rem;
    /* ensure stacked, center-aligned layout on desktop */
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
  }

  .date-time-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    position: relative;
  }

  .venue-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: auto;
    margin-top: 1.5rem;
  }

  .date {
    font-size: 4rem;
    letter-spacing: 6px;
    line-height: 1.4;
    margin-bottom: 0;
  }

  .time {
    font-size: 1.15rem;
    margin-top: 0;
    letter-spacing: 0.5px;
  }

  .venue {
    font-size: 1.4rem;
    letter-spacing: 1.5px;
    margin-bottom: 0;
  }

  .location {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 0;
  }

  .floral-decoration {
    bottom: 1rem;
    left: calc(50% + 100px);
    right: auto;
  }

  .flower-image {
    width: 140px;
    height: auto;
  }

  .the-text {
    font-size: 3rem;
  }

  .details-title {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .section-content {
    font-size: 0.85rem;
  }

  .palette-image {
    width: 130px;
  }

  .flower-decoration .flower-image {
    width: 100px;
  }

  /* Maintain alternating alignment on desktop for page 3 */
  .attire-section {
    text-align: left;
  }

  .attire-section .section-title {
    text-align: left;
  }

  .ceremony-section {
    text-align: right;
  }

  .ceremony-section .section-title {
    text-align: right;
  }

  .gifts-section {
    text-align: left;
  }

  .gifts-section .section-title {
    text-align: left;
  }

  .important-section {
    text-align: right;
  }

  .important-section .section-title {
    text-align: right;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Page 3 - The Details Styles */
.details-content {
  position: relative;
  max-width: 100%;
  width: 100%;
  color: var(--primary-color);
  padding: 2rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  gap: 1.5rem;
}

/* Mobile details content optimizations */
@media (max-width: 480px) {
  .details-content {
    padding: 0.4rem 0.2rem;
  }

  .the-text {
    font-size: 2rem;
    color: var(--primary-color);
  }

  .details-title {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .section-content {
    font-size: 0.9rem;
  }
}

/* Details Header */
.details-header {
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
  flex-shrink: 0;
}

/* Mobile details header optimizations */
@media (max-width: 480px) {
  .details-header {
    margin-bottom: 0.3rem;
  }
}

.the-text {
  font-family: var(--font-slight);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.1rem;
  position: relative;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  line-height: 1;
}

.details-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
}

.details-rule {
  width: 60%;
  margin: 0.5rem auto 0;
  border: none;
  border-top: 1px solid var(--secondary-color);
  opacity: 0.4;
}

/* Details Sections */
.details-section {
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0.5rem 0;
  flex-shrink: 0;
  width: 100%;
  max-width: 90%;
}

/* Mobile details sections optimizations */
@media (max-width: 480px) {
  .details-section {
    margin-bottom: 0.3rem;
    padding: 0.1rem 0;
    max-width: 95%;
  }
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.section-content {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--primary-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.section-content p {
  margin-bottom: 0.15rem;
  hyphens: auto;
}

.section-content strong {
  font-weight: 700;
}

/* Attire Section - Left Aligned */
.attire-section {
  text-align: left;
  position: relative;
  margin-bottom: 0.3rem;
}

.attire-section .section-title {
  text-align: left;
}

/* Color Palette Logo - Right side of Attire */
.color-palette-logo {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.palette-image {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

/* Ceremony & Reception Section - Right Aligned */
.ceremony-section {
  text-align: right;
  margin: 0.3rem 0;
  position: relative;
}

.ceremony-section .section-title {
  text-align: right;
}

/* Gifts Section - Left Aligned */
.gifts-section {
  text-align: left;
  position: relative;
  margin-bottom: 0.3rem;
}

.gifts-section .section-title {
  text-align: left;
}

/* Flower Decoration - Left side of Important Note */
.flower-decoration {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  z-index: 10;
  pointer-events: none;
}

.flower-decoration .flower-image {
  width: 80px;
  height: auto;
  opacity: 0.9;
  transform: scaleX(-1);
}

/* Important Note Section - Right Aligned */
.important-section {
  text-align: right;
  margin-top: 0.3rem;
  position: relative;
}

.important-section .section-title {
  text-align: right;
}

/* Flower Decoration for Page 4 - Wedding Party Section */
.wedding-party-section .flower-decoration {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  z-index: 10;
  pointer-events: none;
}

.wedding-party-section .flower-decoration .flower-image {
  width: 80px;
  height: auto;
  opacity: 0.9;
}

/* Ultra-wide screens */
@media (min-width: 1200px) {
  .invitation-card {
    max-width: 700px;
    padding: 3.5rem 3rem;
    min-height: 900px;
    height: auto;
  }

  .the-text {
    font-size: 3rem;
  }

  .details-title {
    font-size: 4rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-content {
    font-size: 0.9rem;
  }

  .palette-image {
    width: 140px;
  }

  .flower-decoration .flower-image {
    width: 110px;
    transform: scaleX(-1);
  }

  .wedding-party-section .flower-decoration .flower-image {
    width: 110px;
  }
}

/* Page 5 - Wedding Program Details Styles */

/* Principal Sponsors Section */
.principal-sponsors-section {
  margin-bottom: 0.3rem;
  text-align: center;
}

.sponsor-group {
  margin-bottom: 0.4rem;
}

.sponsor-category {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.8px;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  font-family: var(--font-serif);
}

.sponsor-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.sponsor-name {
  font-size: 0.65rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  margin: 0.15rem 0;
  font-family: var(--font-crimson);
  font-weight: 400;
  line-height: 1.2;
}

/* Bearers Section */
.bearers-section {
  margin-bottom: 0.3rem;
  text-align: center;
}

.bearers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto 0.3rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.bearer-column {
  text-align: center;
}

.bearer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.8px;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  font-family: var(--font-serif);
}

.bearer-name {
  font-size: 0.65rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  margin: 0.15rem 0;
  font-family: var(--font-crimson);
  font-weight: 400;
  line-height: 1.2;
}

.bible-bearer {
  text-align: center;
  margin-top: 0.3rem;
}

/* Flower Girls Section */
.flower-girls-section {
  margin-bottom: 0.3rem;
  text-align: center;
  position: relative;
}

.flower-girl-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.8px;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  font-family: var(--font-serif);
  text-align: center;
}

.flower-girls-names {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  gap: 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

.flower-girl-name {
  font-size: 0.65rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  margin: 0.15rem 0;
  font-family: var(--font-crimson);
  font-weight: 400;
  line-height: 1.2;
}

.flower-girl-left {
  text-align: left;
  flex: 1;
}

.flower-girl-right {
  text-align: right;
  flex: 1;
}

/* Flower Decoration for Page 5 - Flower Girls Section */
.flower-girls-section .flower-decoration {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  z-index: 10;
  pointer-events: none;
}

.flower-girls-section .flower-decoration .flower-image {
  width: 80px;
  height: auto;
  opacity: 0.9;
}

/* Responsive design for Page 5 */
@media (min-width: 481px) {
  .sponsor-category,
  .bearer-title,
  .flower-girl-title {
    font-size: 1.1rem;
  }

  .sponsor-name,
  .bearer-name,
  .flower-girl-name {
    font-size: 0.8rem;
    font-family: var(--font-crimson);
  }

  .sponsor-names,
  .bearers-grid,
  .flower-girls-names {
    max-width: 450px;
  }

  .flower-girls-section .flower-decoration .flower-image {
    width: 90px;
  }
}

@media (min-width: 769px) {
  .sponsor-category,
  .bearer-title,
  .flower-girl-title {
    font-size: 1.2rem;
  }

  .sponsor-name,
  .bearer-name,
  .flower-girl-name {
    font-size: 0.85rem;
    font-family: var(--font-crimson);
  }

  .sponsor-names,
  .bearers-grid,
  .flower-girls-names {
    max-width: 500px;
  }

  .flower-girls-section .flower-decoration .flower-image {
    width: 100px;
  }
}

@media (min-width: 1200px) {
  .flower-girls-section .flower-decoration .flower-image {
    width: 110px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --border-color: #000000;
  }
}

/* Page 4 - Formal Invitation Styles */
.formal-invitation-content {
  text-align: center;
  color: #666666;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}

/* Formal Names Section */
.formal-names-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.formal-name {
  font-size: 3.5rem;
  font-weight: 700;
  color: #666666;
  letter-spacing: 3px;
  margin: 0;
  line-height: 1.1;
  font-family: var(--font-serif);
}

/* Formal Request Text */
.formal-request-text {
  text-align: center;
  margin-bottom: 1rem;
}

.formal-request-text p {
  font-size: 0.9rem;
  color: #666666;
  letter-spacing: 1px;
  line-height: 1.4;
  text-transform: uppercase;
  margin: 0.3rem 0;
  font-weight: 400;
  font-family: var(--font-serif);
}

/* Formal Date and Time */
.formal-date-time {
  text-align: center;
  margin-bottom: 1rem;
}

.formal-date {
  font-size: 2.5rem;
  font-weight: 700;
  color: #666666;
  letter-spacing: 2px;
  margin: 0 0 0.5rem 0;
  line-height: 1.1;
  font-family: var(--font-serif);
}

.formal-time {
  font-size: 0.8rem;
  color: #666666;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
  font-family: var(--font-serif);
}

/* Formal Location */
.formal-location {
  text-align: center;
  margin-top: 1rem;
}

.formal-location p {
  font-size: 0.9rem;
  color: #666666;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0.2rem 0;
  font-family: var(--font-serif);
}

/* Responsive design for Page 4 */
@media (min-width: 481px) {
  .formal-name {
    font-size: 4rem;
    letter-spacing: 4px;
  }

  .formal-request-text p {
    font-size: 1rem;
  }

  .formal-date {
    font-size: 3rem;
    letter-spacing: 3px;
  }

  .formal-time {
    font-size: 0.9rem;
  }

  .formal-location p {
    font-size: 1rem;
  }
}

@media (min-width: 769px) {
  .formal-name {
    font-size: 4.5rem;
    letter-spacing: 5px;
  }

  .formal-request-text p {
    font-size: 1.1rem;
  }

  .formal-date {
    font-size: 3.5rem;
    letter-spacing: 4px;
  }

  .formal-time {
    font-size: 1rem;
  }

  .formal-location p {
    font-size: 1.1rem;
  }
}

/* Page 4 - Wedding Program Styles */
.wedding-program-content {
  position: relative;
  max-width: 100%;
  width: 100%;
  color: var(--primary-color);
  padding: 2rem 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  gap: 1.5rem;
}

/* Mobile wedding program optimizations */
@media (max-width: 480px) {
  .wedding-program-content {
    padding: 1.5rem 0.3rem;
    gap: 1rem;
  }
}

/* Program Title Section */
.program-title-section {
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.program-surname {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.1;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

.program-surname.font-script {
  font-family: var(--font-script);
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 0.1rem;
  text-align: left;
  font-weight: 400;
}

.program-surname.font-burgues {
  font-family: var(--font-burgues);
  font-size: 3rem;
  font-style: normal;
  margin-bottom: -0.5rem;
  text-align: left;
  font-weight: 400;
  letter-spacing: -1px;
  padding-left: 5%;
  line-height: 0.85;
}

.program-surname.font-serif {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  text-align: right;
  letter-spacing: 7px;
  padding-right: 5%;
  margin-top: -0.5rem;
  line-height: 0.85;
}

.program-title-rule {
  width: 60%;
  margin: 0.2rem auto 0;
  border: none;
  border-top: 1px solid var(--primary-color);
  opacity: 0.6;
}

/* Program Sections */
.program-section {
  width: 100%;
  margin-bottom: 0.2rem;
  position: relative;
  padding: 0.1rem 0;
  flex-shrink: 0;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.8px;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  font-family: var(--font-serif);
}

/* Parents Section */
.parents-section {
  margin-bottom: 0.3rem;
  text-align: center;
}

.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.parent-column {
  text-align: center;
}

.parent-name {
  font-size: 0.65rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  margin: 0.15rem 0;
  font-family: var(--font-crimson);
  font-weight: 400;
  line-height: 1.2;
}

/* Ninongs & Ninangs Section */
.ninongs-section {
  margin-bottom: 0.3rem;
  text-align: center;
}

.ninongs-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  max-width: 350px;
  margin: 0 auto;
}

.ninong-name {
  font-size: 0.65rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  margin: 0.15rem 0;
  font-family: var(--font-crimson);
  font-weight: 400;
  line-height: 1.2;
}

/* Wedding Party Section */
.wedding-party-section {
  margin-bottom: 0.3rem;
  position: relative;
}

.wedding-party-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.wedding-party-column {
  text-align: center;
}

.party-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.8px;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  font-family: var(--font-serif);
}

.party-name {
  font-size: 0.65rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  margin: 0.15rem 0;
  font-family: var(--font-crimson);
  font-weight: 400;
  line-height: 1.2;
}

/* Responsive design for Wedding Program */
@media (min-width: 481px) {
  .program-surname.font-script {
    font-size: 2.2rem;
  }

  .wedding-program-content {
    padding: 2.5rem 1rem;
    gap: 2rem;
  }

  .program-surname.font-burgues {
    font-size: 4.5rem;
    letter-spacing: -1px;
    padding-left: 7%;
    margin-bottom: -0.4rem;
    line-height: 0.85;
  }

  .program-surname.font-serif {
    font-size: 4.5rem;
    letter-spacing: 9px;
    padding-right: 7%;
    margin-top: -0.4rem;
    line-height: 0.85;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .parent-name,
  .ninong-name,
  .party-name {
    font-size: 0.8rem;
    font-family: var(--font-crimson);
  }

  .party-title {
    font-size: 1.1rem;
  }

  .parents-grid {
    max-width: 450px;
  }

  .ninongs-list {
    max-width: 400px;
  }

  .wedding-party-grid {
    max-width: 450px;
  }
}

@media (min-width: 769px) {
  .wedding-program-content {
    padding: 4rem 2rem;
    gap: 3.5rem;
  }

  .program-title-section {
    padding: 0 1rem;
  }

  .program-surname.font-script {
    font-size: 2.5rem;
  }

  .program-surname.font-burgues {
    font-size: 5.5rem;
    letter-spacing: -1px;
    padding-left: 8%;
    margin-bottom: -0.3rem;
    line-height: 0.9;
  }

  .program-surname.font-serif {
    font-size: 5.5rem;
    letter-spacing: 11px;
    padding-right: 8%;
    margin-top: -0.3rem;
    line-height: 0.9;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .parent-name,
  .ninong-name,
  .party-name {
    font-size: 0.85rem;
    font-family: var(--font-crimson);
  }

  .party-title {
    font-size: 1.2rem;
  }

  .parents-grid {
    max-width: 500px;
  }

  .ninongs-list {
    max-width: 450px;
  }

  .wedding-party-grid {
    max-width: 500px;
  }
}

/* ============================================================
   MUSIC TOGGLE BUTTON
   ============================================================ */

.music-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b4513, #654321);
  border: 3px solid #fff;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  outline: none;
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(139, 69, 19, 0.5);
  background: linear-gradient(135deg, #a0522d, #8b4513);
}

.music-toggle:active {
  transform: scale(0.95);
}

.music-toggle i {
  pointer-events: none;
}

/* Pulse animation for when autoplay is blocked */
.music-toggle.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(139, 69, 19, 0.6);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .music-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* Ensure button doesn't interfere with other content */
@media (max-width: 480px) {
  .music-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    bottom: 1rem;
    right: 1rem;
  }
}
