* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #91AE1E;
    --secondary-color: #E2F0A8;
    --accent-color: #f5e6d3;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --success-color: #4caf50;
    --error-color: #f44336;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(211, 233, 124,0.95) 0%, rgba(145, 174, 30, 0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f5e6d3" width="1200" height="600"/><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="%23d4a574" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.wedding-date {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 1px;
}

.wedding-location {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.decorative-line {
    width: 100px;
    height: 2px;
    background: var(--white);
    margin: 30px auto;
    position: relative;
}

.decorative-line::before,
.decorative-line::after {
    content: '❦';
    position: absolute;
    top: -10px;
    color: var(--white);
    font-size: 1.2rem;
}

.decorative-line::before {
    left: -30px;
}

.decorative-line::after {
    right: -30px;
}

/* RSVP Section */
.rsvp-section {
    padding: 80px 20px;
    background: var(--white);
}

.rsvp-container {
    max-width: 700px;
    margin: 0 auto;
}

.rsvp-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Form Styles */
.rsvp-form {
    background: var(--accent-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(212, 165, 116, 0.05);
}

.radio-label input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-label span {
    flex: 1;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
    background: var(--accent-color);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    font-weight: bold;
}

.success-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.success-message p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Details Section */
.details-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.details-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Details Header */
.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.details-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin: 0;
    color: var(--secondary-color);
    flex: 1;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.sidebar-toggle:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.toggle-icon {
    font-size: 1.2rem;
}

/* Details Layout */
.details-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar Navigation */
.details-sidebar {
    width: 280px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 20px 0;
    position: sticky;
    top: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-nav {
    width: 100%;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(145, 174, 30, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-link.active {
    background: rgba(145, 174, 30, 0.15);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

/* Details Content */
.details-content {
    flex: 1;
    min-width: 0;
}

.detail-section {
    display: block;
    margin-bottom: 60px;
    scroll-margin-top: 100px; /* Offset for sticky sidebar and header */
}

.detail-section:last-child {
    margin-bottom: 0;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-card-full {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.detail-card-full .detail-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.detail-card-full h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.detail-content {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.detail-content p {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.8;
}

.detail-main {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px !important;
}

.detail-time,
.detail-note {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 10px;
}

.detail-sub {
    font-style: italic;
    color: var(--text-light);
}

/* Map Section (within detail-section) */
.detail-section .map-container {
    margin-top: 0;
    text-align: center;
}

.detail-section .map-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.map-wrapper {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    position: relative;
    padding: 0;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

.map-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.map-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.map-link-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.map-note {
    margin-top: 20px;
    padding: 15px;
    background: var(--accent-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.map-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.map-note a:hover {
    text-decoration: underline;
}

/* Admin Link */
.admin-link-container {
    text-align: center;
    padding: 20px;
}

.admin-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.admin-link:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .couple-names {
        font-size: 2.5rem;
    }

    .wedding-date {
        font-size: 1.2rem;
    }

    .rsvp-section h2,
    .details-section h2 {
        font-size: 2rem;
    }

    .rsvp-form {
        padding: 25px;
    }

    .details-layout {
        flex-direction: column;
    }

    .details-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .details-sidebar.hidden {
        display: none;
    }

    .sidebar-toggle {
        width: 100%;
        justify-content: center;
    }

    .details-header {
        justify-content: center;
    }

    .map-wrapper iframe {
        height: 350px;
    }

    .map-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .map-link-btn {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 2rem;
    }

    .rsvp-form {
        padding: 20px;
    }

    .map-wrapper iframe {
        height: 300px;
    }

    .detail-card-full {
        padding: 25px;
    }

    .detail-card-full h3 {
        font-size: 1.5rem;
    }

    .nav-link {
        padding: 12px 20px;
    }
}
