@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600&family=Dancing+Script:wght@400;700&display=swap');

/* Color Variables - Mandarin Oriental Inspired Palette */
:root {
  --primary-warm: #d3cdc4; /* Warm beige - primary */
  --secondary-taupe: #a7a49c; /* Sophisticated taupe */
  --light-cream: #ece8e5; /* Soft cream */
  --deep-charcoal: #010101; /* Deep black */
  --accent-gold: #c9a96e; /* Subtle gold accent */
  --soft-white: #fefefe;
  --shadow-light: rgba(1, 1, 1, 0.08);
  --shadow-medium: rgba(1, 1, 1, 0.12);
  --shadow-strong: rgba(1, 1, 1, 0.25);
  /* Additional colors for consistency */
  --error-red: #ff6b6b;
  --muted-gray: #666666;
  --dark-gray: #3a3a3a;
}

/* Base Styles - Mandarin Oriental Elegance */
* {
  box-sizing: border-box;
}

html {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--soft-white);
  color: var(--deep-charcoal);
  line-height: 1.6;
}

.has-vertically-aligned-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 75vh;
}

/* Header & Navigation - Minimalist Luxury */
.header-wrapper {
  padding: 0;
  background: var(--soft-white);
  box-shadow: 0 1px 0 var(--light-cream);
}

.navbar-item {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--deep-charcoal);
  padding: 1rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 2px solid transparent;
}

.navbar-item:hover,
.navbar-item.is-active {
  color: var(--secondary-taupe);
  border-bottom-color: var(--accent-gold);
}

/* Hero Section - Sophisticated Elegance */
.hero {
  background:
    linear-gradient(rgba(211, 205, 196, 0.15), rgba(167, 164, 156, 0.25)),
    var(--deep-charcoal) url('../image/hero2.jpg') no-repeat center center;
  background-size: cover;
  background-position: 38% center;
  color: var(--soft-white);
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 1024px) and (hover: hover) {
  .hero {
    background-attachment: fixed;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(211, 205, 196, 0.1) 0%,
    rgba(167, 164, 156, 0.2) 50%,
    rgba(1, 1, 1, 0.3) 100%
  );
  z-index: 1;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero .title {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--soft-white);
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 20px rgba(1, 1, 1, 0.3);
  transform: rotate(-1deg);
  will-change: transform;
}

.hero .subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--light-cream);
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.hero .venue-time {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--primary-warm);
  letter-spacing: 0.5px;
  margin-top: 5rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero .venue-time {
    margin-top: 1.5rem;
  }

  .hero {
    -webkit-overflow-scrolling: touch;
  }
}

/* Hero Footer Navigation */
.hero .hero-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(254, 254, 254, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--light-cream);
}

.hero .hero-foot .hero-foot--wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero .hero-foot .hero-menu-desktop ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.hero .hero-foot .hero-menu-desktop ul li a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--deep-charcoal);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.hero .hero-foot .hero-menu-desktop ul li a:hover,
.hero .hero-foot .hero-menu-desktop ul li.is-active a {
  color: var(--secondary-taupe);
  border-bottom-color: var(--accent-gold);
}

@media (max-width: 768px) {
  .hero .hero-foot {
    display: none;
  }
}

/* Main Content Sections */
.main-content {
  font-family: 'Inter', sans-serif;
  color: var(--deep-charcoal);
}

.section-light {
  background-color: var(--soft-white);
  padding: 5rem 2rem;
  position: relative;
}

.section-light.regular-section {
  background: linear-gradient(
    135deg,
    var(--soft-white) 0%,
    var(--light-cream) 100%
  );
}

.section-dark {
  background: linear-gradient(
    135deg,
    var(--light-cream) 0%,
    var(--primary-warm) 100%
  );
  padding: 5rem 2rem;
  color: var(--deep-charcoal);
}

.section-darker {
  background: linear-gradient(
    135deg,
    var(--primary-warm) 0%,
    var(--secondary-taupe) 100%
  );
  padding: 5rem 2rem;
  color: var(--soft-white);
}

/* Typography - Mandarin Oriental Style */
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--deep-charcoal);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 1px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-gold),
    transparent
  );
}

.full-name {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--secondary-taupe);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.ampersand {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--accent-gold);
  display: inline-block;
  margin: 0 1rem;
  transform: rotate(-5deg);
}

.bodytext {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--deep-charcoal);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.event-time {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--secondary-taupe);
  text-align: center;
  margin: 1rem 0;
}

.date-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--accent-gold);
  text-align: center;
  line-height: 1;
  margin: 1rem 0;
}

.venue {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--deep-charcoal);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.5px;
}

/* Buttons - Elegant Mandarin Oriental Style */
.btn-cta {
  background: linear-gradient(
    135deg,
    var(--secondary-taupe),
    var(--primary-warm)
  );
  color: var(--soft-white);
  border: 2px solid var(--secondary-taupe);
  padding: 1rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(254, 254, 254, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  background: linear-gradient(
    135deg,
    var(--accent-gold),
    var(--secondary-taupe)
  );
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

/* Scroll to Top Button */
#toTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--secondary-taupe),
    var(--accent-gold)
  );
  color: var(--soft-white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px var(--shadow-medium);
}

#toTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--shadow-strong);
  background: linear-gradient(
    135deg,
    var(--accent-gold),
    var(--secondary-taupe)
  );
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  background-color: var(--light-cream);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--secondary-taupe),
    var(--primary-warm)
  );
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--accent-gold),
    var(--secondary-taupe)
  );
}

/* Preloader */
.preloader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-warm), var(--light-cream));
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader {
  width: 60px;
  height: 60px;
  border: 3px solid var(--light-cream);
  border-top: 3px solid var(--accent-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .section-light,
  .section-dark,
  .section-darker {
    padding: 3rem 1rem;
  }

  .hero .hero-content {
    padding: 1rem;
  }

  .photo-item {
    min-height: 20rem;
  }

  .btn-cta,
  .btn-whatsapp {
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* Utility Classes */
.space24px {
  height: 24px;
}
.no-padding-top {
  padding-top: 0;
}
.tile {
  border-radius: 8px;
  overflow: hidden;
}

/* Color Utility Classes */
.primary-warm {
  color: var(--primary-warm);
}
.secondary-taupe {
  color: var(--secondary-taupe);
}
.light-cream {
  color: var(--light-cream);
}
.deep-charcoal {
  color: var(--deep-charcoal);
}
.accent-gold {
  color: var(--accent-gold);
}
.soft-white {
  color: var(--soft-white);
}

/* Instagram Link Styling */
.instagram {
  color: var(--secondary-taupe);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-warm);
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 1rem 0;
}

.instagram:hover {
  background: var(--primary-warm);
  color: var(--soft-white);
  transform: translateY(-2px);
}

/* Section Background Decorations */
.section-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-warm),
    transparent
  );
}

/* Enhanced Visual Hierarchy */
.section-color.inquiry {
  background: linear-gradient(
    135deg,
    var(--secondary-taupe) 0%,
    var(--deep-charcoal) 100%
  );
  color: var(--soft-white);
  padding: 5rem 2rem;
}

.section-color.inquiry .title,
.section-color.inquiry .subtitle {
  color: var(--soft-white);
}

.section-color.inquiry i {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
}

#countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  flex-wrap: wrap;
  margin-top: -60px;
}

#countdown li {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 15px;
  color: var(--soft-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#countdown li p {
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  font-weight: 600;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#countdown .separator {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 5px;
  align-self: flex-start;
  margin-top: 10px;
}

.countdown-finished {
  font-size: 1.5rem;
  color: var(--secondary-taupe);
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  #countdown li p {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }

  #countdown li {
    margin: 5px 8px;
  }

  #countdown .separator {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  #countdown {
    margin-top: -45px;
  }
}

.hero-body .container.has-text-centered {
  margin-top: -280px;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-body .container.has-text-centered {
    margin-top: -160px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-body .container.has-text-centered {
    margin-top: -50px;
  }
}

[data-aos] {
  will-change: transform, opacity;
}

.fade-up-smooth {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up-smooth.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos-delay] {
  transition-delay: calc(var(--aos-delay) * 1ms) !important;
}

@media (max-width: 768px) {
  [data-aos] {
    transition-duration: 0.6s !important;
  }

  .fade-up-smooth {
    transform: translateY(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Smooth transitions for interactive elements */
.button,
a {
  transition: all 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-light);
}

.mandarin-logo {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .mandarin-logo {
    max-width: 100%;
    max-height: 150px;
  }
}

@media (max-width: 480px) {
  .mandarin-logo {
    max-width: 100%;
    max-height: 120px;
  }
}

/* Countdown animation enhancement */
#countdown li {
  transition: all 0.3s ease;
}

#countdown li:hover {
  transform: scale(1.05);
}

/* Preloader optimization */
.preloader-wrapper {
  transition: opacity 0.5s ease-out;
}

/* Hero content animation */
.hero-body > * {
  animation: fadeInUp 1s ease-out;
}

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

/* Stagger hero content animations */
.hero-body .subtitle:first-child {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.hero-body .title {
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

.hero-body .venue-time {
  animation-delay: 0.6s;
  animation-fill-mode: both;
}

#countdown {
  animation-delay: 0.8s;
  animation-fill-mode: both;
}

/* RSVP Section Styling */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.rsvp-section {
  background: linear-gradient(
    135deg,
    var(--soft-white) 0%,
    var(--light-cream) 100%
  );
  border: 1px solid var(--primary-warm);
  border-radius: 0;
  box-shadow: 0 10px 30px var(--shadow-medium);
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.rsvp-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--accent-gold);
}

/* Decorative Ornaments */
.corner-ornament {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0.1;
}

/* Note: CSS variables cannot be used inside a URL-encoded SVG. 
 The fill color hex code has been updated to match --accent-gold. */
.corner-ornament.top-left {
  top: 20px;
  left: 20px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L60 30 L80 30 L65 45 L70 65 L50 50 L30 65 L35 45 L20 30 L40 30 Z" fill="%23c9a96e"/></svg>');
}

.corner-ornament.bottom-right {
  bottom: 20px;
  right: 20px;
  transform: rotate(180deg);
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L60 30 L80 30 L65 45 L70 65 L50 50 L30 65 L35 45 L20 30 L40 30 Z" fill="%23c9a96e"/></svg>');
}

/* Typography */
h1 {
  text-align: center;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 10px;
  color: var(--deep-charcoal);
}

.subtitle {
  text-align: center;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 40px;
}

.divider {
  width: 100px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-gold),
    transparent
  );
  margin: 30px auto;
}

/* Buttons */
.rsvp-button {
  display: block;
  margin: 0 auto;
  padding: 15px 40px;
  background: var(--accent-gold);
  color: var(--soft-white);
  border: none;
  border-radius: 30px;
  font-size: 18px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rsvp-button:hover {
  background: var(--secondary-taupe);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 169, 110, 0.3);
}

.form-container {
  display: none;
  margin-top: 40px;
  animation: fadeIn 0.5s ease;
}

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

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--deep-charcoal);
  font-weight: 500;
}

input[type='text'],
input[type='email'],
input[type='number'],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--soft-white);
  border: 2px solid var(--primary-warm);
  border-radius: 4px;
  color: var(--deep-charcoal);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
  background: var(--light-cream);
}

.radio-group,
.checkbox-group {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--deep-charcoal);
}

input[type='radio'],
input[type='checkbox'] {
  margin-right: 8px;
  accent-color: var(--accent-gold);
}

.dietary-section {
  background: var(--light-cream);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--primary-warm);
}

.dietary-section h3 {
  color: var(--deep-charcoal);
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 500;
}

.dietary-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.dietary-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dietary-item label {
  margin-bottom: 0;
  flex: 1;
  color: var(--deep-charcoal);
}

.dietary-item input[type='number'] {
  width: 80px;
}

.total-info {
  margin-top: 15px;
  padding: 15px;
  background: var(--soft-white);
  border-radius: 4px;
  border: 1px solid var(--primary-warm);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--secondary-taupe);
}

.total-count {
  color: var(--accent-gold);
  font-weight: bold;
}

.error-message {
  color: var(--error-red);
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

.submit-button {
  width: 100%;
  padding: 16px;
  background: var(--accent-gold);
  color: var(--soft-white);
  border: none;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  margin-top: 30px;
  border-radius: 4px;
}

.submit-button:hover {
  background: var(--secondary-taupe);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px var(--shadow-medium);
}

.submit-button:disabled {
  background: var(--primary-warm);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Message Box */
.message {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  background: var(--light-cream);
  border: 1px solid var(--accent-gold);
  color: var(--deep-charcoal);
  display: none;
  border-radius: 4px;
}

.message.success {
  background: linear-gradient(135deg, var(--light-cream), var(--primary-warm));
  border-color: var(--accent-gold);
}

.message.error {
  background: rgba(255, 107, 107, 0.1);
  border-color: var(--error-red);
  color: var(--error-red);
}

.message.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rsvp-section {
    padding: 40px 20px;
  }

  h1 {
    font-size: 28px;
  }

  .dietary-inputs {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

.invitation-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.mo-pattern {
  position: absolute;
  opacity: 0.05;
  z-index: 0;
}

.mo-pattern-left {
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 400px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200'%3E%3Cpath d='M50 20 Q20 50 50 80 Q80 50 50 20' fill='%23c9a96e' /%3E%3C/svg%3E")
    repeat-y;
}

.mo-pattern-right {
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 400px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200'%3E%3Cpath d='M50 20 Q20 50 50 80 Q80 50 50 20' fill='%23c9a96e' /%3E%3C/svg%3E")
    repeat-y;
}

.container {
  max-width: 900px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.mandarin-logo {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeIn 1s ease-out;
}

.mandarin-logo img {
  width: 180px;
  height: auto;
}

.invitation-text {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeIn 1s ease-out 0.3s both;
}

.invitation-text h1 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 8px;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.invitation-text p {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 1px;
}

.couple-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  margin-bottom: 60px;
  animation: fadeIn 1s ease-out 0.6s both;
}

.groom-side,
.bride-side {
  flex: 1;
  text-align: center;
  position: relative;
}

.side-decoration {
  position: absolute;
  top: -20px;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-gold),
    transparent
  );
}

.parent-names {
  font-size: 14px;
  color: var(--muted-gray);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.couple-name {
  margin: 20px 0;
}

.ampersand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: var(--accent-gold);
  font-weight: 300;
  animation: zoomIn 0.8s ease-out 0.9s both;
}

.divider img {
  width: 150px;
  opacity: 0.6;
}

.closing-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 1s ease-out 1.5s both;
}

.closing-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted-gray);
  letter-spacing: 1px;
}

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

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 768px) {
  .couple-section {
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
    align-items: center;
    width: 100%;
  }

  .ampersand {
    position: sticky;
    transform: none;
    display: block;
    margin: 20px 0;
    text-align: center;
  }

  .invitation-text h1 {
    font-size: 24px;
    letter-spacing: 4px;
  }
}
/* Table Lookup Icon - REPOSITIONED: Move to bottom */
.table-lookup {
  text-align: center;
  margin-top: 0; /* REMOVED: Top margin */
  margin-bottom: 2rem; /* ADDED: Bottom margin */
  position: relative;
  z-index: 10;
  /* MOVED: This will now be positioned at the bottom of the page */
}

.table-lookup .button {
  background: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
  color: var(--soft-white) !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 11;
}

.table-lookup .button:hover {
  background: var(--secondary-taupe);
  border-color: var(--secondary-taupe);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-medium);
}

/* Table Lookup Button - Enhanced for bottom positioning */
#tableLookupBtn {
  border-radius: 4px;
  background: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--soft-white);
  padding: 16px 40px; /* INCREASED: More prominent padding */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.25); /* ADDED: Subtle shadow */
}

#tableLookupBtn:hover {
  background: #b8984f;
  border-color: #b8984f;
  transform: translateY(-3px); /* INCREASED: More pronounced hover effect */
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
}

#tableLookupBtn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(201, 169, 110, 0.2);
}

#tableLookupBtn .icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

#tableLookupBtn:hover .icon {
  transform: translateX(2px);
}

/* Modal Base Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.is-active {
  display: flex !important;
}

.modal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 1, 1, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal-card {
  position: relative;
  z-index: 10;
  max-width: 90vw;
  max-height: 90vh;
  width: 480px;
  background: var(--soft-white);
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(1, 1, 1, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: auto;
  overflow: hidden;
}

.modal-card-body {
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  padding: 2rem;
  background: var(--soft-white);
}

.modal-card-head {
  background: var(--light-cream);
}

.modal-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--deep-charcoal);
}

/* Result Modal - Fixed Layout */
#resultModal .modal-card {
  width: 800px;
  max-width: 95vw;
  min-height: 400px;
  border-radius: 12px;
  overflow: hidden;
}

#resultModal .modal-card-body {
  max-height: calc(90vh - 80px);
  overflow-y: auto;
  padding: 0;
}

/* Modal Header - Clean styling */
.mo-modal-header {
  background: var(--light-cream);
  border-bottom: 1px solid #e0e0e0;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mo-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--deep-charcoal);
  margin: 0;
}

.mo-modal-close {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.mo-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Result Modal Success State - COMPACT: Reduced spacing */
.mo-result-success {
  padding: 0;
  height: 100%;
}

.mo-result-card {
  background: var(--soft-white);
  border-radius: 12px;
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: stretch;
  animation: cardSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Left side - COMPACT: Reduced width and padding */
.mo-result-image {
  width: 280px;
  min-width: 280px;
  background: var(--soft-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Image container - COMPACT: Reduced padding */
.mo-result-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-left: 10px;
}

.mo-cake-illustration {
  width: calc(100% - 10px);
  height: 100%;
  object-fit: cover;
}

/* Right side - COMPACT: Reduced padding */
.mo-result-content {
  flex: 1;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background: var(--soft-white);
}

/* Welcome Text - Center-aligned */
.mo-welcome-text {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 2.75rem;
  color: var(--deep-charcoal);
  margin-bottom: 1rem;
  line-height: 1.2;
  text-align: center;
}

/* Table Number Announcement - Center-aligned */
.mo-table-announcement {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.75rem;
  color: #d32f2f;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-align: center;
}

.mo-table-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  color: #c9a96e;
}

/* Event Details - Center-aligned */
.mo-event-details {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--deep-charcoal);
  line-height: 1.5;
  margin-bottom: 0;
  text-align: center;
}

.mo-event-details p {
  margin: 0.25rem 0;
  text-align: center;
}

.mo-venue-name {
  font-weight: 600;
  color: var(--accent-gold);
}

/* Modal Body */
.mo-modal-body {
  background: var(--soft-white);
  padding: 2.5rem;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

/* Form Elements */
.mo-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--deep-charcoal);
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.mo-input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--deep-charcoal);
  background: var(--soft-white);
  border: 1px solid var(--primary-warm);
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mo-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(236, 232, 229, 0.3);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.mo-modal-button {
  width: 100%;
  border-radius: 4px;
  background: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--soft-white);
  padding: 14px 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.mo-modal-button:hover {
  background: #b8984f;
  border-color: #b8984f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.3);
}

/* Error States */
.mo-result-error {
  text-align: center;
  padding: 2rem;
}

.mo-error-icon {
  margin-bottom: 1.5rem;
}

.mo-error-icon svg {
  color: var(--secondary-taupe);
  opacity: 0.6;
}

.mo-error-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--deep-charcoal);
  margin-bottom: 1rem;
}

.mo-error-message {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--secondary-taupe);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.mo-contact-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.mo-contact-link:hover {
  border-bottom-color: var(--accent-gold);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
  #resultModal .modal-card {
    width: 90vw;
    max-width: 700px;
  }

  .mo-result-image {
    width: 220px;
    min-width: 220px;
  }

  .mo-result-image-container {
    padding-left: 8px;
  }

  .mo-cake-illustration {
    width: calc(100% - 8px);
  }

  .mo-result-content {
    padding: 1.5rem 1.25rem;
  }

  .mo-welcome-text {
    font-size: 2.25rem;
  }

  .mo-table-announcement {
    font-size: 1.5rem;
  }

  .mo-table-number {
    font-size: 1.75rem;
  }
}

/* Responsive Design - Mobile IMPROVED: Better image scaling + Button repositioning */
@media (max-width: 768px) {
  .modal-card,
  .mo-modal-card {
    width: 95vw;
    margin: 1rem auto;
  }

  .modal-card-body,
  .mo-modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 100px);
  }

  #resultModal .modal-card {
    width: 95vw;
    min-height: auto;
  }

  .mo-result-card {
    flex-direction: column;
    min-height: auto;
  }

  /* MOBILE BUTTON: Position at bottom with safe area */
  .table-lookup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); /* ADDED: Safe area for iPhone */
    border-top: 1px solid rgba(201, 169, 110, 0.2);
    z-index: 1000;
    margin: 0;
  }

  #tableLookupBtn {
    width: 100%; /* FULL WIDTH: Better mobile UX */
    max-width: 400px; /* LIMIT: Prevent too wide on tablets */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 18px 24px; /* INCREASED: Better touch target */
    font-size: 0.9rem; /* SLIGHTLY LARGER: Better readability */
  }

  /* MOBILE IMAGE: Better scaling and positioning */
  .mo-result-image {
    width: 100%;
    min-width: auto;
    height: 280px; /* Increased height */
    padding: 1rem 0;
  }

  .mo-result-image-container {
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mo-cake-illustration {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    max-width: 250px; /* Increased max-width */
    max-height: 250px; /* Increased max-height */
  }

  .mo-result-content {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .mo-welcome-text {
    font-size: 2rem;
  }

  .mo-table-announcement {
    font-size: 1.5rem;
  }

  .mo-table-number {
    font-size: 1.75rem;
  }

  .mo-event-details {
    font-size: 1.125rem;
  }

  /* MOBILE: Add bottom padding to body to account for fixed button */
  body {
    padding-bottom: 100px; /* SPACE: For fixed button area */
  }
}

/* iPhone 12 Pro and similar devices (390px width) */
@media (max-width: 480px) {
  /* MOBILE BUTTON: Optimized for iPhone 12 Pro */
  .table-lookup {
    padding: 0.875rem 0.875rem calc(0.875rem + env(safe-area-inset-bottom));
  }

  #tableLookupBtn {
    padding: 16px 20px;
    font-size: 0.85rem;
  }

  /* MOBILE IMAGE: Optimized for iPhone 12 Pro */
  .mo-result-image {
    height: 250px; /* Increased height */
    padding: 0.75rem 0;
  }

  .mo-result-image-container {
    padding: 0 0.75rem;
  }

  .mo-cake-illustration {
    max-width: 220px; /* Increased max-width */
    max-height: 220px; /* Increased max-height */
    object-fit: contain;
  }

  .mo-result-content {
    padding: 1.25rem 0.75rem;
  }

  .mo-welcome-text {
    font-size: 1.75rem;
  }

  .mo-table-announcement {
    font-size: 1.25rem;
  }

  .mo-event-details {
    font-size: 1rem;
  }

  /* MOBILE: Adjust body padding for smaller screens */
  body {
    padding-bottom: 90px;
  }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
  .table-lookup {
    padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
  }

  #tableLookupBtn {
    padding: 14px 18px;
    font-size: 0.8rem;
  }

  .mo-result-image {
    height: 220px; /* Increased height */
    padding: 0.5rem 0;
  }

  .mo-result-image-container {
    padding: 0 0.5rem;
  }

  .mo-cake-illustration {
    max-width: 180px; /* Increased max-width */
    max-height: 180px; /* Increased max-height */
  }

  .mo-result-content {
    padding: 1rem 0.5rem;
  }

  .mo-welcome-text {
    font-size: 1.5rem;
  }

  .mo-table-announcement {
    font-size: 1.125rem;
  }

  .mo-event-details {
    font-size: 0.9rem;
  }

  body {
    padding-bottom: 85px;
  }
}
