/* Import elegant fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

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

:root {
  --cream: #f8f5f0;
  --dark-cream: #f0ebe0;
  --burgundy: #8c2f39;
  --dark-burgundy: #6b1d28;
  --text-color: #333;
}

body {
  font-family: 'Libre Baskerville', serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--cream);
  font-size: 18px; /* Larger base font size */
  padding-top: 0; /* Remove top padding since the navbar is floating */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.section {
  scroll-margin-top: -25px !important;
  padding: 120px 0 60px; /* Increased top padding from 60px to 120px */
  position: relative;
}

.hero.section {
  padding: 0;
  height: 100vh;
}

.section-title {
  margin-bottom: 40px;
  font-size: 3rem; /* Larger section titles */
  color: var(--burgundy);
  letter-spacing: 1px;
}

/* Navigation styles */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 30px;
  padding: 0 25px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px; /* Fixed typo: changed 'a0px' to '20px' */
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-links a.active {
  color: var(--burgundy);
  font-weight: bold;
  border-bottom: 2px solid var(--burgundy);
  padding-bottom: 3px;
}

.nav-links a:hover {
  color: var(--burgundy);
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
  .navbar {
    top: 10px;
    padding: 0 15px;
  }
  
  .nav-links {
    gap: 10px;
  }
  
  .nav-links li {
    margin: 0 8px;
  }
  
  .nav-links a {
    font-size: 16px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .navbar {
    width: 90%;
  }
  
  .nav-links {
    gap: 5px;
  }
  
  .nav-links li {
    margin: 0 5px;
  }
  
  .nav-links a {
    font-size: 14px;
  }
}

.schedule-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.schedule-items {
  padding: 20px 0;
}

.schedule-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--dark-cream);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-icon {
  flex: 0 0 80px;
  text-align: center;
}

.schedule-icon i {
  font-size: 28px;
  color: var(--burgundy);
}

.schedule-time {
  flex: 0 0 100px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--burgundy);
}

.schedule-content {
  flex: 1;
  padding: 15px 20px;
  background-color: var(--cream);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.schedule-content p {
  font-size: 20px;
  margin: 0;
}

/* Mobile schedule */
@media (max-width: 768px) {
  .schedule-item {
    /* Change from column to row layout */
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* Allow wrapping if absolutely needed */
  }
  
  .schedule-icon {
    flex: 0 0 40px; /* Make icon smaller on mobile */
    margin-bottom: 0; /* Remove bottom margin */
  }
  
  .schedule-time {
    flex: 0 0 70px; /* Make time width smaller */
    margin-bottom: 0; /* Remove bottom margin */
    font-size: 24px; /* Reduce font size on mobile */
  }
  
  .schedule-content {
    flex: 1 1 calc(100% - 130px); /* Take remaining space but allow min width */
    min-width: 150px; /* Ensure minimum readable width */
  }
  
  .schedule-content p {
    font-size: 16px; /* Smaller text on mobile */
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .schedule-icon {
    flex: 0 0 30px;
  }
  
  .schedule-time {
    flex: 0 0 60px;
    font-size: 20px;
  }
}

/* Full-screen hero section */
.hero {
  background-image: url(../images/retreat-east.jpg);
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 12.5vh 0;
}

.hero img {
  max-width: 100%;
  height: auto;
  margin-bottom: 30px;
  margin-top: 40px;
}

.btn {
  display: inline-block;
  padding: 14px 28px; /* Larger button */
  background-color: var(--burgundy);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
  letter-spacing: 0.5px;
  font-size: 18px; /* Larger button text */
  font-family: 'Libre Baskerville', serif;
}

.btn:hover {
  background-color: var(--dark-burgundy);
}

.event-info {
  background-color: white;
  padding: 40px; /* More padding */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: inline-block;
  margin: 0 auto;
  max-width: 600px;
  border: 1px solid var(--dark-cream);
}

.event-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.event-details {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.detail-item {
  margin: 0 20px 20px 20px;
  text-align: center;
}

.detail-item i {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--burgundy);
}

.detail-item p {
  font-size: 18px;
}

.map-container {
  margin-top: 30px;
}

.map-container iframe {
  max-width: 100%;
  border-radius: 30px;
  border: 1px solid var(--dark-cream);
}

.gifts-info {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--dark-cream);
}

.gifts-info p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.gift-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .gift-options {
    flex-direction: column;
    align-items: center;
  }
  
  .gift-options .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Updated lighter form container */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 40px; /* More padding */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  position: relative;
  border: 1px solid var(--dark-cream);
}

.form-group {
  margin-bottom: 25px; /* More spacing */
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 20px; /* Larger form labels */
}

.form-control {
  width: 100%;
  padding: 12px; /* Larger input fields */
  border-radius: 5px;
  border: 1px solid #ddd;
  background-color: var(--cream);
  color: var(--text-color);
  font-size: 18px; /* Larger input text */
  font-family: 'Libre Baskerville', serif;
}

.form-control:focus {
  outline: none;
  border-color: var(--burgundy);
}

.radio-group {
  display: flex;
  gap: 20px; /* More spacing */
  margin-top: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-option input[type="radio"] {
  accent-color: var(--burgundy);
  width: 18px; /* Larger radio buttons */
  height: 18px;
}

.radio-option label {
  font-size: 18px; /* Larger radio labels */
}

.faq-section {
  background-color: var(--dark-cream);
}

.faq-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px; /* More spacing */
  margin: 0 auto;
  max-width: 1000px;
}

.faq-item {
  background-color: white;
  padding: 25px; /* More padding */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
  color: var(--burgundy);
  margin-bottom: 15px;
  font-weight: bold;
  font-size: 22px;
}

.faq-item p {
  font-size: 16px !important;
  margin-bottom: 10px;
}

/* Taxi company styling for FAQ */
.taxi-company {
  margin-bottom: 5px;
}

.taxi-company small {
  font-style: italic;
  opacity: 0.8;
}

/* Countdown timer styles */
.countdown-timer {
  background-color: rgba(255, 255, 255, 0.85) !important;
  border-radius: 10px !important;
  padding: 20px 40px !important;
  margin: 0 !important;
  display: inline-block !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
  color: var(--burgundy) !important;
  font-family: 'Cormorant Garamond', serif !important;
  text-align: center !important;
}

.countdown-display {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.countdown-label {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive adjustments for countdown */
@media (max-width: 768px) {
  .countdown-display {
    gap: 15px;
  }
  
  .countdown-number {
    font-size: 32px;
  }
  
  .countdown-label {
    font-size: 14px;
  }
}

.error {
  color: #ff6b6b;
  font-size: 16px; /* Larger error messages */
  display: block;
  margin-bottom: 5px;
}

/* Success message styling */
.success-message {
  display: none;
  background-color: rgba(76, 175, 80, 0.9); /* Green with opacity */
  border-radius: 10px;
  padding: 40px; /* More padding */
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.success-message.show {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 80px; /* Larger success icon */
  height: 80px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px; /* Larger checkmark */
  color: #4CAF50; /* Green color for the checkmark */
  margin-bottom: 20px;
}

.success-message h3 {
  font-size: 28px; /* Larger heading */
  margin-bottom: 15px;
  color: white;
}

.success-message p {
  font-size: 20px; /* Larger text */
  color: white;
}

/* Ensure responsiveness */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

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

  .event-info {
    padding: 30px;
  }

  .form-label {
    font-size: 18px;
  }

  .form-control {
    font-size: 16px;
  }

  .success-icon {
    width: 70px;
    height: 70px;
    font-size: 40px;
  }

  .success-message h3 {
    font-size: 24px;
  }

  .success-message p {
    font-size: 18px;
  }
}

/* Increase FAQ text size */
.faq-item p {
  font-size: 20px; /* Increased from 18px */
}

/* Add countdown timer styles */
.countdown-timer {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 20px 40px;
  margin: 30px 0;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--burgundy);
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
}

.countdown-timer h3 {
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 600;
}

.countdown-display {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.countdown-label {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive adjustments for countdown */
@media (max-width: 768px) {
  .countdown-display {
    gap: 15px;
  }
  
  .countdown-number {
    font-size: 32px;
  }
  
  .countdown-label {
    font-size: 14px;
  }
}

/* Failure message styling */
.failure-message {
  display: none;
  background-color: rgba(220, 53, 69, 0.9); /* Red with opacity */
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.failure-message.show {
  opacity: 1;
  pointer-events: auto;
}

.failure-icon {
  width: 80px;
  height: 80px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  color: rgba(220, 53, 69, 1); /* Solid red for the icon */
  margin-bottom: 20px;
}

.failure-message h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: white;
}

.failure-message p {
  font-size: 20px;
  color: white;
}

/* Responsive adjustments for failure message */
@media (max-width: 768px) {
  .failure-icon {
    width: 70px;
    height: 70px;
    font-size: 40px;
  }

  .failure-message h3 {
    font-size: 24px;
  }

  .failure-message p {
    font-size: 18px;
  }
}

/* Scroll indicator styles */
.scroll-indicator {
  text-align: center;
  color: white;
  z-index: 3;
}

.scroll-indicator p {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

.scroll-arrow i {
  font-size: 24px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Mobile hero image adjustments */
@media (max-width: 768px) {
  .hero img {
    max-width: 90%;
    padding: 0 20px;
    margin-top: 80px;
  }
}

@media (max-width: 480px) {
  .hero img {
    max-width: 85%;
    padding: 0 15px;
    margin-top: 60px;
  }
}

@media (min-width: 1200px) {
  .hero-content {
    padding: 12vh 0 5vh 0; /* Move hero down more, reduce bottom padding */
    gap: 10px; /* Smaller gap between flex items */
  }
  
  .hero img {
    margin-bottom: 10px; /* Reduce gap to countdown */
    margin-top: 50px;
    max-width: 400px;
  }
  
  .countdown-timer {
    margin: 10px 0 !important; /* Reduce space around countdown */
  }
  
  .scroll-indicator {
    margin-top: 20px;
  }
}

.wedding-description {
  margin-top: 30px;
  text-align: left;
}

.wedding-description p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 40px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
}

.close:hover {
  color: var(--burgundy);
}

.modal-content h3 {
  color: var(--burgundy);
  margin-bottom: 30px;
  font-size: 28px;
}

.bank-details {
  background-color: var(--cream);
  padding: 25px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: left;
}

.bank-details p {
  margin: 10px 0;
  font-size: 18px;
}

.thank-you {
  font-style: italic;
  color: var(--burgundy);
  margin-top: 20px;
}

.wedding-description {
  margin-top: 30px;
  text-align: left;
  border-top: 1px solid var(--dark-cream);
  padding-top: 30px;
}