/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@400;700&display=swap');

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8f8f8;
    color: #333;
}

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


/* Header */
header {
    background-color: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

/* Hero Section (Top) */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    min-height: 400px;
}

.wedding-info {
    background-color: #e6ffe6;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wedding-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #333;
    margin: 0;
}

.wedding-info p {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Slideshow */
.slideshow-container {
  /* Enforces a consistent box for all images */
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* Sets a 4:3 aspect ratio (3 / 4 * 100%) */
  height: 0; /* Ensures the height is controlled by padding-bottom */
  overflow: hidden;
  background-color: #f4f4f4;
  border-radius: 4px;
}

.slideshow-image {
  /* Makes the image fit inside the new box */
  object-fit: contain;
  background-color: rgba(0,0,0,0.1);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow-image.active {
  opacity: 1;
}

/* Welcome Text */
.welcome-text {
    background-color: #fff;
    padding: 30px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Separator */
.separator {
    border-top: 2px dashed #ccc;
    margin: 40px 0;
}

/* Three-Column Sections */
.seedual-section,
.bottom-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.seedual-item,
.bottom-info-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #eee;
}

.seedual-item h3,
.bottom-info-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Map */
.map-container {
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Schedule */
.schedule {
    text-align: left;
    padding: 30px;
}

.schedule h3 {
    text-align: center;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
}

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

.schedule-item .time {
    font-weight: bold;
    color: #555;
    flex-shrink: 0;
    margin-right: 15px;
}

.schedule-item .event {
    margin: 0;
}

/* Image Handling */
.seedual-item img,
.bottom-info-item img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Food Details */
.food-details {
    text-align: left;
}

.food-details p {
    font-size: 0.95rem;
    margin: 10px 0;
}

.hotel-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .hero-section,
    .seedual-section,
    .bottom-info-section {
        grid-template-columns: 1fr;
    }

    .wedding-info {
        text-align: center;
    }
}

.guest-form-section {
    background-color: #fff;
    padding: 40px;
    margin-top: 40px;
    border-radius: 8px;
    text-align: center;
}

.guest-form-section h2,
.guest-form-section p {
    text-align: center;
    margin-bottom: 20px;
}

#guest-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.checkbox-container input {
    width: auto;
    margin-right: 10px;
}

.hidden {
    display: none;
}

button[type="submit"] {
    background-color: #6a9c6a;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #558055;
}