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

@font-face {
	font-family: 'Alta';
	src: url('resources/fonts/alta-regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
    font-family: 'Bodoni FLF', serif;
    src: url('resources/fonts/BodoniflfRoman.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Great Vibes';
    src: url('resources/fonts/GreatVibes-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Bodoni FLF';
    font-size: 1.2em;
    line-height: 1.6;
    color: #333;
    background-color: #FFF9E5;
}

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

.hidden {
    display: none !important;
}

/* Typography */
h2, h3, h4  {
    font-family: 'Alta', serif;
    text-transform: uppercase;
    font-weight: 400;
    text-align: center;
}

h1 {
    font-family: 'Great Vibes';
    font-weight: 400;
    text-align: center;
    font-size: 3.5rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #004030;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

h4 {
    font-size: 1.7rem; /* 30% increase from default ~1.5rem */
}

h5 {
    font-size: 1.4rem; /* 30% increase from default ~1.2rem */
    padding-bottom: inherit;
}

p {
    text-align: center;
}

/* Password Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, #004030 0%, #256C59 50%, #004030 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.password-container h2 {
    color: #004030;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.password-container p {
    margin-bottom: 2rem;
    color: #666;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-form input {
    padding: 1rem;
    border: 2px solid #e1d7d3;
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
}

.password-form input:focus {
    outline: none;
    border-color: #004030;
}

.password-form button {
    padding: 1rem;
    background: #427a5e;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.password-form button:hover {
    transform: translateY(-2px);
}

.error-message {
    color: #e74c3c;
    margin-top: 1rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: #427a5e url('resources/images/JS-Website-Banner-image-sept-8.jpg') center no-repeat;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 2rem 0;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before { content: none; }

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.couple-names {
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-size: 3.4rem;
}

.wedding-date {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 300;
}

.wedding-date-detail {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-decoration {
    font-size: 1.5rem;
    animation: sparkle 3s ease-in-out infinite;
}

.hero-text-overlay {
    background: url('resources/images/Jessica-Shail-words-only-sept-8.png') center no-repeat;
    background-size: contain;
    width: 100%;
    max-width: 1200px;
    height: 400px;
    position: relative;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 1; }
}

/* Navigation */
.navigation {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.navigation li {
    margin: 0 1.5rem;
}

.navigation a {
    text-decoration: none;
    color: #004030;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navigation a:hover,
.navigation a.active {
    background: #8F8D91;
    color: white;
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    display: none;
    padding: 4rem 0;
    min-height: 80vh;
    background: white;
}

.content-section.active {
    display: block;
}

/* Events Overview Section */

/* Individual Event Sections */
.event-details {
    max-width: 1000px;
    margin: 0 auto;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-detail-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.event-detail-card:hover {
    transform: translateY(-5px);
}

.event-detail-card i {
    font-size: 2.5rem;
    color: #004030;
    margin-bottom: 1rem;
}

.event-detail-card h3 {
    color: #004030;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.event-detail-card p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Event Table Styles */
.event-table {
    width: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    margin: 1rem 0;
    border-collapse: collapse;
}

.event-table tr {
    border-bottom: none;
}

.event-table tr:last-child {
    border-bottom: none;
}

.event-table td {
    padding: 1rem;
    vertical-align: top;
    text-align: center;
    border: none;
    font-size: 1.2rem;
}

.table-icon {
    width: auto;
    text-align: center;
}

.table-icon i {
    font-size: 1.8rem;
    color: #004030;
}

.event-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.table-label {
    width: auto;
    font-weight: 600;
    color: #004030;
    font-size: 1.3rem;
    padding-top: 0.5rem;
}

.table-value {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.6;
    padding-top: 0.5rem;
}

/* Two-column table styling for better centering */
.event-table.two-column {
    max-width: 70%;
    margin: 1rem auto;
}

.event-table.two-column td {
    padding: 1rem 2rem;
}

.event-description {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.event-description h3 {
    color: #004030;
    margin-bottom: 1.5rem;
    text-align: center;
}

.event-description > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
    margin-bottom: 2rem;
}

.event-highlights {
    margin: 2rem 0;
}

.event-highlights h4 {
    color: #8b4d5c;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.event-highlights ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.event-highlights li {
    background: #ffffff;
    border: 1px solid #DCD0A8;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.event-highlights li:hover {
    background: #FFF9E5;
    border-color: #DCD0A8;
}

.event-highlights li i {
    color: #004030;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.event-note {
    background: #427a5e;
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
}

.event-note i {
    margin-right: 0.5rem;
}

.event-note strong {
    font-weight: 600;
}

/* Section Headers with Icons */
.content-section h2 i {
    margin-right: 1rem;
    color: #004030;
}

/* Details Section (keeping existing styles) */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-card i {
    font-size: 2.5rem;
    color: #004030;
    margin-bottom: 1rem;
}

.detail-card h3 {
    color: #004030;
    margin-bottom: 1rem;
}

.detail-card p {
    font-size: 1.1rem;
    font-weight: 500;
}

.detail-sub {
    color: #666;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
}

.wedding-story {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-spacing {
    margin-bottom: 3rem;
}

/* Section Dividers */
.section-divider {
    border: none;
    height: 1px;
    background-color: #427A5E;
    margin: 2rem 0;
    width: 100%;
}


.wedding-story h3 {
    color: #004030;
    margin-bottom: 1.5rem;
}

/* Collapsible Events */
.collapsible-events {
    margin-top: 2rem;
}

.event-collapsible {
    margin-bottom: 1rem;
}

.collapsible-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem 0;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: inherit;
}

.collapsible-header:hover { background: transparent; }

.chevron-icon {
    font-size: 1.2rem;
    color: #427A5E;
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.collapsible-header.active .chevron-icon { transform: rotate(90deg); }

.header-content {
    flex: 1;
    text-align: center;
}

/* New: support span-based titles/subtitles inside buttons */
.header-content .header-title {
    display: block;
    margin: 0;
    font-family: 'Alta', serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.8rem;
    color: #004030;
}

.header-content .header-subtitle {
    display: block;
    margin: 0.3rem 0 0 0;
    font-size: 1.1rem;
    color: #666;
}

/* Backward compatibility for existing h3/p inside header-content */
.header-content h3 { margin: 0; font-size: 1.8rem; color: #004030; }
.header-content p { margin: 0.3rem 0 0 0; font-size: 1.1rem; color: #666; }

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
    margin-left: 2rem;
}

.collapsible-content.active {
    max-height: 1000px;
    padding: 1rem 0;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.event-detail-card {
    background: #FFF9E5;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #DCD0A8;
}

.event-detail-card i {
    font-size: 2rem;
    color: #427A5E;
    margin-bottom: 1rem;
}

.event-detail-card h4 {
    color: #004030;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.detail-sub {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.attire-info p {
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.wedding-story p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Timeline Section */
.timeline {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
}

.timeline::before {
    content: '';
    flex: 0 0 100%;    /* Each slide takes full container width */
    width: 100%;
    top: 0;
    object-fit: contain;     /* Show full image */
    object-position: center; /* Keep image centered */
    width: 2px;
    background: #DCD0A8;
    transform: translateX(-50%);
/* Sliding is controlled by JS to support any number of slides */
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-time {
    flex: 0 0 100px;
    background: #004030;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    height: fit-content;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 0 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: #004030;
    margin-bottom: 0.5rem;
}

/* Location Section */
.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-card,
.travel-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.location-card h3,
.travel-info h3 {
    color: #004030;
    margin-bottom: 1.5rem;
}

.btn-link {
    display: block;
    margin: 1rem auto 0 auto;
    padding: 0.8rem 1.5rem;
    background: #004030;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s ease;
    width: fit-content;
}

.btn-link:hover {
    transform: translateY(-2px);
}

.travel-options {
    display: grid;
    gap: 1.5rem;
}

.travel-option h4 {
    color: #004030;
    margin-bottom: 0.5rem;
}

/* Attire Section */
.attire-info {
    max-width: 800px;
    margin: 0 auto;
}

.attire-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.attire-card i {
    font-size: 3rem;
    color: #004030;
    margin-bottom: 1rem;
}

.dress-code {
    font-size: 1.3rem;
    font-weight: 600;
    color: #004030;
    margin-bottom: 1rem;
}

.attire-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.attire-suggestion {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.attire-suggestion h4 {
    color: #004030;
    margin-bottom: 1rem;
}

.weather-note {
    background: #FFF9E5;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #DCD0A8;
}

.weather-note i {
    color: #004030;
    margin-right: 0.5rem;
}

/* RSVP Section */
.rsvp-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.rsvp-intro p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.rsvp-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #DCD0A8;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.form-section h3 {
    color: #004030;
    margin-bottom: 1.5rem;
    font-size: 1.85rem;
    border-left: 4px solid #004030;
    padding-left: 1rem;
}

.adults-only-note {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin: 1rem 0 1.5rem 0;
    font-size: 0.95rem;
    color: #495057;
}

.adults-only-note strong {
    color: #004030;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.inline {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #004030;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #666666;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #004030;
    box-shadow: 0 0 0 3px rgba(74, 151, 130, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0 !important;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #4A9782;
    border-radius: 4px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #4A9782;
    border-color: #4A9782;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.checkbox-label:hover .checkmark {
    border-color: #427a5e;
    box-shadow: 0 0 0 3px rgba(74, 151, 130, 0.1);
}

/* Attendee Name Styles */
.attendee-name {
    font-weight: 500;
    color: #333;
    font-size: 1.25rem;
}

/* Two-column layout for attendee sections */
.attendee-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.name-column {
    flex: 1;
    text-align: left;
    padding-right: 1rem;
}

.radio-column {
    flex: 1;
    text-align: right;
    padding-left: 1rem;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.radio-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0 !important;
    font-weight: normal !important;
    font-size: 1rem;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #4A9782;
    border-radius: 50%;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    background-color: #4A9782;
    border-color: #4A9782;
}

.radio-label input[type="radio"]:checked + .radio-custom:after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
}

.radio-label:hover .radio-custom {
    border-color: #427a5e;
    box-shadow: 0 0 0 3px rgba(74, 151, 130, 0.1);
}

/* Autocomplete Styles */
.autocomplete-container {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #DCD0A8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #F5F2E8;
    font-family: 'Playfair Display', serif;
    transition: background-color 0.2s ease;
}

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

.suggestion-item:hover,
.suggestion-item.highlighted {
    background-color: #F5F2E8;
    color: #004030;
}

.suggestion-item.highlighted {
    background-color: #004030;
    color: white;
}

.suggestion-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.suggestion-details {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.suggestion-item.highlighted .suggestion-details {
    color: rgba(255, 255, 255, 0.8);
}

.no-suggestions {
    padding: 0.75rem;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Event RSVP Styling */
.event-rsvp {
    background: #ffffff;
    border: 1px solid #DCD0A8;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.event-rsvp:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-family: 'Alta', serif;
}

.event-header i {
    font-size: 1.5rem;
    color: #004030;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.event-info h4 {
    margin: 0 0 0.25rem 0;
    color: #004030;
    font-size: 1.2rem;
}

.event-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.attendance-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.guest-count-group {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guest-count-group.show {
    opacity: 1;
}

/* Partner Section Styling */
.partner-section {
    border: 2px solid #666666;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.partner-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.partner-info i {
    color: #d2691e;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.partner-info p {
    margin: 0;
    color: #4a4a4a;
}

.partner-info strong {
    color: #004030;
    font-weight: 600;
}

.partner-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Tier Information Styling */
.tier-info {
    background: white;
    border: 2px solid #ffb74d;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.tier-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tier-message i {
    color: #f57c00;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tier-message p {
    margin: 0;
    color: #4a4a4a;
    font-weight: 500;
}

/* Attendee Sections */
.attendee-section {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.attendee-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #333;
}

.attendee-header i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
    color: #004030;
}

/* Partner attendee sections now have same styling as main attendee */

.partner-attendee .attendee-header i {
    color: #d2691e;
}

.help-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    display: block;
    text-align: left;
}

.rsvp-submit {
    background: #004030;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Alta', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rsvp-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,64,48,0.3);
}

.success-message {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    margin: 2rem auto;
}

.success-message i {
    font-size: 3rem;
    color: #004030;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: #004030;
    margin-bottom: 1rem;
}

/* Slideshow styles */
.photo-slideshow {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 1.25rem auto 2rem auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    aspect-ratio: 16 / 9;
    background: #000;
}

/* Slideshow Controls */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 3;
}

.slide-btn:hover { background: rgba(0,0,0,0.6); transform: translateY(-50%) scale(1.05); }
.slide-btn.prev { left: 8px; }
.slide-btn.next { right: 8px; }

.photo-slides {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
}

.photo-slides img {
    flex: 0 0 100%;    /* Each slide takes full container width */
    width: 100%;
    height: 100%;
    object-fit: contain;     /* Show full image */
    object-position: center; /* Keep image centered */
    background-color: #000;  /* Letterbox */
}

/* Sliding is controlled via JS to support any number of images */

@media (max-width: 640px) {
    .photo-slideshow { aspect-ratio: 4 / 3; } /* Taller on mobile for better visibility */
}

/* Footer */
.footer {
    background: #004030;
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 0rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    .couple-names { font-size: 2.6rem; }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 1rem 0;
        height: 50vh;
        min-height: 300px;
        max-height: 450px;
        background-size: cover;
    }
    
    .hero-text-overlay {
        width: 90%;
        height: 150px;
    }
    
    .navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .navigation li {
        margin: 0.25rem 0;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: 40px;
    }
    
    .timeline-time {
        position: absolute;
        left: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0;
    }
    
    .timeline-content {
        margin: 0;
        margin-top: 1rem;
    }
    
    .location-info {
        grid-template-columns: 1fr;
    }
    
    .attire-details {
        grid-template-columns: 1fr;
    }
    
    .events-overview {
        grid-template-columns: 1fr;
    }
    
    .event-info-grid {
        grid-template-columns: 1fr;
    }
    
    .event-table td {
        padding: 0.75rem;
    }
    
    .event-table.two-column {
        max-width: 85%;
    }
    
    .event-table.two-column td {
        padding: 0.75rem 1.5rem;
    }
    
    .event-icon {
        width: 40px;
        height: 40px;
    }
    
    .table-label {
        font-size: 1.2rem;
    }
    
    .table-value {
        font-size: 1.1rem;
    }
    
    .event-highlights ul {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 2rem;
    }
    
    .rsvp-form {
        padding: 2rem;
    }
    
    .attendance-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group.inline {
        margin-bottom: 1rem;
    }
    
    .event-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        font-family: 'Alta', serif;
    }
    
    .event-header i {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 2rem 0;
    }
    
    .detail-card,
    .location-card,
    .travel-info,
    .attire-card,
    .attire-suggestion,
    .event-preview,
    .event-detail-card,
    .event-description {
        padding: 1.5rem;
    }
    
    .event-table td {
        padding: 0.5rem;
    }
    
    .event-table.two-column {
        max-width: 95%;
    }
    
    .event-table.two-column td {
        padding: 0.5rem 1rem;
    }
    
    .event-icon {
        width: 36px;
        height: 36px;
    }
    
    .table-label {
        font-size: 1.1rem;
    }
    
    .table-value {
        font-size: 1.05rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .rsvp-form {
        padding: 1.5rem;
    }
}

/* Registry Section Styles */
.registry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #4A9782;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.coming-soon h3 {
    color: #004030;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.coming-soon p {
    color: #333;
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.coming-soon i {
    display: block;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .coming-soon {
        padding: 3rem 1.5rem;
    }
    
    .coming-soon h3 {
        font-size: 1.8rem;
    }
    
    .coming-soon p {
        font-size: 1.1rem;
    }
    
    .coming-soon i {
        font-size: 2.5rem !important;
    }
}

/* Input Tooltip Styles */
.input-tooltip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.input-tooltip i {
    color: #4A9782;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .input-tooltip {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}