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

body {
  font-family: 'Spectral', serif;
  background: url("floral-background.jpg") no-repeat center top fixed;
  background-size: cover;
  color: #0a2214;
  min-height: 100vh;
}

/* Typography */
h1 {
  font-family: 'Spectral', serif;
  font-weight: 300;
}

p {
  font-family: 'Spectral', serif;
  font-weight: 150;
}

/* Hero / Header Section */
.hero-header {
  margin-top: 30vh;
  position: relative;
  text-align: center;
  padding: 4rem 1rem 2rem;
}

.hero-title {
  font-size: 3rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.hero-countdown {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 1rem;
}

/* Navigation Bar (Desktop Only) */
.main-nav {
  background: transparent;
  text-align: center;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0 1rem;
}

.main-nav a {
  text-decoration: none;
  color: #38483F;
  font-size: 1rem;
}

/* Info Section */
.info-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 1rem;
  gap: 2rem;
}

.info-box {
  text-align: center;
  flex: 1 1 200px;
}

.info-box h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* Radio Group */
.radio-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: #38483F;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.5rem;
}

/* RSVP Button */
.rsvp-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #38483F;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
}

/* Wedding Day Schedule */
.wedding-day {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  text-align: center;
  font-family: 'Spectral', serif;
}

.wedding-day h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.wedding-day p {
  margin: 0.5rem 0;
}

.wedding-day hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1rem 0;
}

.schedule-item p {
  margin: 0.25rem 0;
}

.wedding-footer p {
  font-weight: bold;
  margin: 0.25rem 0;
}

/* Order of Service */
.order-of-service {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
}

.order-of-service ul {
  list-style: none;
  margin-top: 1rem;
}

.order-of-service li {
  margin: 0.5rem 0;
}

/* Responsive Adjustments for Hero Section */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Q&A Section */
.qa-container {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  padding: 0 1rem;
}

.qa-item {
  margin: 1rem 0;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
}

.qa-question {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: 'Spectral', serif;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1rem;
  width: 100%;
  text-align: center;
}

.qa-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  font-size: 1rem;
  padding: 0 1rem;
}

.qa-answer.open {
  max-height: 500px;
  margin-top: 1rem;
}

/* Accommodation & Things To Do Items */
.accommodation-container,
.things-container {
max-width: 600px;
margin: 2rem auto;
padding: 1rem;
background: rgba(255, 255, 255, 0.9);
border-radius: 8px;
text-align: center;
font-family: 'Spectral', serif;
}

.accommodation-intro,
.things-intro {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.5;
}

.accommodation-item,
.things-item {
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.accommodation-item h2,
.things-item h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #38483F;
}

.accommodation-item p,
.things-item p {
  margin: 0.25rem 0;
  font-size: 1rem;
  color: #38483F;
}

.accommodation-item a,
.things-item a {
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: none;
  color: #38483F;
  border: 1px solid #38483F;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.accommodation-item a:hover,
.things-item a:hover {
  background-color: #38483F;
  color: #fff;
}

/* RSVP Form Styles */
.rsvp-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Spectral', serif;
}

form fieldset {
  border: none;
  padding: 1rem 0;
  display: none;
}

form fieldset.active {
  display: block;
}

form legend {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

form p {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

form input,
form textarea {
  font-family: sans-serif;
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Form Navigation Buttons */
.form-navigation {
  text-align: center;
  margin-top: 1rem;
}

.form-navigation button {
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  border: none;
  background-color: #38483F;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Ensure our new button classes inherit these styles */
.next-btn,
.prev-btn {
  /* They use the same styling as the form-navigation button */
}

/* Hover state */
.form-navigation button:hover {
  background-color: #2a3b33;
}

/* Fade-in Transition */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.25s ease forwards;
}

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

/* Additional Responsive Adjustments for Mobile */
@media (max-width: 600px) {
  .hero-header {
    margin-top: 15vh;
    padding: 2rem 1rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-subtitle,
  .hero-countdown {
    font-size: 0.9rem;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .form-navigation button {
    width: 100%;
    margin: 0.25rem 0;
  }
  .accommodation-item,
  .things-item {
    padding: 0.75rem;
  }
  .accommodation-item h2,
  .things-item h2 {
    font-size: 1.2rem;
  }
  .accommodation-item p,
  .things-item p {
    font-size: 0.9rem;
  }
  .accommodation-item a,
  .things-item a {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
  }
  .qa-question {
    font-size: 1rem;
    padding: 0.75rem;
  }
  .qa-answer {
    font-size: 0.9rem;
  }
  .rsvp-container,
  .qa-container,
  .accommodation-container,
  .things-container {
    padding: 0 0.5rem;
  }
}

/* Mobile-only Bottom Navigation */



/* Bottom Navigation Bar Styling */
.bottom-nav {
  display: none; /* Hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.bottom-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5em 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav li {
  flex: 1;
  text-align: center;
}

.bottom-nav a {
  text-decoration: none;
  color: #38483F;
  font-size: 0.9rem;
}

/* Show Bottom Navigation on Mobile and Hide Desktop Nav */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .bottom-nav {
    display: block;
  }
}
