/* Classic Wedding/Retirement Invitation Styles */
:root {
  --primary-color: #8B4513;
  --secondary-color: #D4AF37;
  --accent-color: #C9A227;
  --bg-cream: #FDF5E6;
  --bg-gold: #F5E6C8;
  --text-dark: #2C1810;
  --text-light: #5C4033;
  --border-gold: #D4AF37;
  --shadow: rgba(139, 69, 19, 0.15);
}

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

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-gold) 100%);
  min-height: 100vh;
  color: var(--text-dark);
  overflow-x: hidden;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-flower {
  font-size: 4rem;
  color: var(--secondary-color);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.invitation-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.page {
  background: linear-gradient(145deg, #FFFEF5 0%, #FDF5E6 100%);
  border: 3px double var(--border-gold);
  border-radius: 8px;
  padding: 40px 30px;
  margin: 20px 0;
  box-shadow: 0 10px 40px var(--shadow);
  animation: fadeInUp 0.8s ease;
}

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

.page.hidden {
  display: none;
}

.ornament {
  color: var(--secondary-color);
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 10px;
  margin: 20px 0;
}

.cover-page {
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bismillah {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.main-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 8px;
}

.honoree-name h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: var(--primary-color);
  margin: 20px 0;
}

.open-btn, .nav-btn, .submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  background: linear-gradient(145deg, var(--secondary-color), var(--accent-color));
  border: none;
  border-radius: 50px;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}





.detail-item {
  margin: 25px 0;
  padding: 20px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 8px;
}

.detail-item .label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.detail-item .value {
  display: block;
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 600;
}

.detail-item .sublocation {
  display: block;
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 5px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.countdown-item {
  text-align: center;
  padding: 15px 20px;
  background: var(--primary-color);
  border-radius: 8px;
  color: white;
}

.countdown-item .number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.rsvp-form {
  max-width: 400px;
  margin: 30px auto;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group .required {
  color: #c0392b;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #E0D5C5;
  border-radius: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  background: white;
}

.radio-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 15px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 25px;
}

.success-message {
  text-align: center;
  padding: 40px;
}

.success-message.hidden {
  display: none;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin: 0 auto 20px;
}

.invitation-footer {
  text-align: center;
  padding: 30px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.floating-flowers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.flower {
  position: absolute;
  font-size: 2rem;
  color: var(--secondary-color);
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
}

.flower:nth-child(1) { left: 10%; animation-delay: 0s; }
.flower:nth-child(2) { left: 30%; animation-delay: 3s; }
.flower:nth-child(3) { left: 50%; animation-delay: 6s; }
.flower:nth-child(4) { left: 70%; animation-delay: 9s; }
.flower:nth-child(5) { left: 90%; animation-delay: 12s; }

@keyframes float {
  0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Photo Frame */
.photo-frame {
  margin: 20px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--secondary-color);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  overflow: hidden;
  background: var(--bg-cream);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder svg {
  width: 80%;
  height: 80%;
}

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





/* Retiree Photo */
.photo-frame img.retiree-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.photo-frame img.retiree-photo[src]:not([src=""]) {
  opacity: 1;
}

.photo-frame {
  margin: 20px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--secondary-color);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4), 0 0 0 8px rgba(212, 175, 55, 0.1);
  overflow: hidden;
  background: var(--bg-cream);
  animation: fadeInScale 1s ease;
}

@keyframes fadeInScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Music fallback button */
#musicBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 15px 28px;
  background: linear-gradient(145deg, var(--secondary-color), var(--accent-color));
  border: 2px solid var(--border-gold);
  border-radius: 50px;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 9999;
  animation: musicBtnPulse 2s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
  transition: all 0.3s ease;
}

#musicBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.7);
}

@keyframes musicBtnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5); }
  50% { box-shadow: 0 4px 30px rgba(212, 175, 55, 0.9); }
}

@media (max-width: 480px) {
  #musicBtn {
    bottom: 15px;
    right: 15px;
    padding: 12px 22px;
    font-size: 0.85rem;
  }
}

/* Button Centering - All buttons centered */
.open-btn, .nav-btn, .submit-btn, .map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 50px;
  background: linear-gradient(145deg, var(--secondary-color), var(--accent-color));
  border: 3px solid var(--border-gold);
  border-radius: 50px;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s ease;
  margin: 25px auto;
  text-align: center;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  text-transform: uppercase;
  min-width: 280px;
}

.open-btn:hover, .nav-btn:hover, .submit-btn:hover, .map-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6), inset 0 1px 0 rgba(255,255,255,0.4);
  background: linear-gradient(145deg, var(--accent-color), var(--secondary-color));
  border-color: var(--primary-color);
}

.open-btn:active, .nav-btn:active, .submit-btn:active, .map-btn:active {
  transform: translateY(-2px) scale(0.98);
}

.nav-btn.secondary {
  background: transparent;
  border: 3px solid var(--secondary-color);
  color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.nav-btn.secondary:hover {
  background: linear-gradient(145deg, var(--secondary-color), var(--accent-color));
  color: white;
  border-color: var(--border-gold);
}

/* Map links container centered */
.map-links {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  width: 100%;
}

.map-btn {
  text-decoration: none;
  min-width: 260px;
}

/* Button ornament enhancement */
.btn-ornament {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-left: 5px;
}

/* Cover content center alignment */
.cover-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Page inner center alignment */
.page-inner {
  text-align: center;
}

/* RSVP form buttons centered */
.rsvp-form .submit-btn {
  width: 100%;
  max-width: 320px;
}

/* Success message buttons */
.success-message .nav-btn {
  margin: 20px auto;
}

/* Wishes Section */
.wishes-section {
  margin: 40px 0;
  padding: 30px 20px;
  background: linear-gradient(145deg, rgba(253, 245, 230, 0.9), rgba(245, 230, 200, 0.8));
  border-radius: 15px;
  border: 2px solid var(--border-gold);
}

.wishes-header {
  text-align: center;
  margin-bottom: 25px;
}

.wishes-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wish-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 3px 10px rgba(139, 69, 19, 0.1);
  text-align: left;
}

.wish-message {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.wish-author {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: right;
}

.no-wishes {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: 20px;
}

/* Button consistency fixes */
.success-message {
  text-align: center;
  padding: 30px 20px;
}

.success-message .nav-btn {
  margin: 20px auto;
  display: flex;
}

/* Ensure all buttons are properly centered */
.page-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rsvp-form {
  width: 100%;
  max-width: 400px;
}

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