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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    position: relative;
    background-color: #f0f5ff;
    overflow-x: hidden;
}

/* Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/queenstown.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(65, 88, 208, 0.5) 0%, rgba(200, 80, 192, 0.5) 50%, rgba(255, 204, 112, 0.5) 100%);
    z-index: -1;
}

/* Header */
header {
    text-align: center;
    padding: 6rem 1rem 4rem;
    animation: fadeInDown 1.2s ease-out;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

h1.flames-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 5rem;
    color: #ed5a2d;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 149, 0, 0.5);
    transform: rotate(-3deg);
    letter-spacing: 6px;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card-content h2 {
    color: #1a365d;
    text-shadow: none;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.invitation-header {
    text-align: center;
    margin-bottom: 4rem;
}

.invitation-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.invitation-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.when-where {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.invitation-header .tagline {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.invitation-header .note {
    font-size: 1rem;
    font-style: italic;
    color: #718096;
    margin-bottom: 0;
    line-height: 1.5;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: left;
}

.section-icon {
    font-size: 1.8rem;
    margin-right: 0.5rem;
    display: inline-block;
}

header h3 {
    color: #fff;
    font-weight: 300;
    font-size: 1.6rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.info-card {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 50, 0.15), 0 0 30px rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 50, 0.2), 0 0 40px rgba(255, 255, 255, 0.3);
}

.card-content {
    padding: 3.5rem;
}

/* Vertically center content for landing pages */
.card-content:has(.invitation-header:only-child) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 2rem 3.5rem;
}

.card-content:has(.invitation-header:only-child) .invitation-header {
    margin-bottom: 0;
}



.note {
    font-style: italic;
    margin: 1.5rem 0;
    color: #4a5568;
    line-height: 1.6;
}

/* Activities Section */
.activities-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px dashed #e2e8f0;
}

.activity-categories {
    display: grid;
    gap: 2.5rem;
    margin: 3rem 0;
}

.activity-category {
    padding: 0;
    margin-bottom: 2rem;
}

.category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.activities-list {
    list-style: none;
    margin: 0;
}

.activities-list li {
    padding: 0.6rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, color 0.2s ease;
    color: #4a5568;
}

.activities-list li:hover {
    transform: translateX(8px);
    color: #2d3748;
}

.activity-icon {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.3rem;
    min-width: 1.8rem;
}

/* RSVP Section */
.rsvp-container {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px dashed #e2e8f0;
    animation: fadeIn 1s ease-out 1s both;
}

.form-container {
    width: 100%;
    margin-top: 1rem;
}

.form-container iframe {
    width: 100% !important;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1.flames-title {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.7rem;
    }
    
    .card-content {
        padding: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
        line-height: 1.5;
    }
    
    .activity-categories {
        gap: 1.5rem;
    }
    
    .activity-category {
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .activities-list li {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    .text {
        font-size: 1.1rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 4rem 1rem 3rem;
    }
    
    h1.flames-title {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .card-content {
        padding: 2rem;
    }
    
    .details {
        padding: 0;
    }
    
    .highlight-date,
    .highlight-rsvp {
        margin: 0.8rem 0;
    }
    
    .detail-item {
        flex-direction: row;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .icon {
        margin-right: 1rem;
        font-size: 1.5rem;
    }
    
    .text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .activity-category {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .activities-list li {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .activity-icon {
        font-size: 1.2rem;
        margin-right: 0.8rem;
    }
}