:root {
    --primary-color: #5D7066;
    --primary-dark: #4A5A52;
    --bg-color: #F9F9F7;
    --bg-white: #FFFFFF;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --accent-green: #A3C1A0;
    --accent-pink: #E0C6D9;
    --accent-blue: #C4D4E8;
    --accent-beige: #D6C6B0;
    --border-color: #E5E5E5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background: url('photos/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    padding: 40px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 0.9em;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero-date {
    font-size: 1.8em;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 40px;
    letter-spacing: 5px;
}

/* ===== BUTTONS ===== */
.btn-main {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-main:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-map {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-beige);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9em;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-map:hover {
    background-color: var(--primary-color);
    color: white;
}

.gallery {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.gallery-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.intro {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--bg-color);
}

.intro h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.intro-text {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1em;
    color: var(--text-light);
    line-height: 1.8;
}

.schedule {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.schedule h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-time {
    width: 80px;
    font-weight: 600;
    font-size: 1.2em;
    color: var(--primary-color);
    text-align: right;
    padding-right: 25px;
    position: relative;
}

.timeline-time::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 8px;
    width: 14px;
    height: 14px;
    background-color: var(--bg-white);
    border: 3px solid var(--accent-green);
    border-radius: 50%;
}

.timeline-item.highlight .timeline-time::after {
    border-color: var(--accent-pink);
    background-color: var(--accent-pink);
}

.timeline-content {
    padding-left: 25px;
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
    text-align: left;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.95em;
}

.timeline-location {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--primary-color);
    background-color: rgba(93, 112, 102, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
}

/* ===== DRESS CODE ===== */
.dress-code {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--bg-color);
}

.dress-code h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.dress-code > .container > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.color-palette {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex-shrink: 0;
}

.color-circle:hover {
    transform: scale(1.1);
}

.location {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.location h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.location-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.location-info h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: left;
}

.address {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 10px;
}

.location-note {
    color: var(--text-light);
    margin-bottom: 25px;
}

.rsvp-link {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.rsvp-link h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.rsvp-link p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.rsvp-link .btn-main {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.rsvp-link .btn-main:hover {
    background-color: transparent;
    color: white;
}

.footer {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--bg-color);
}

.footer p {
    color: var(--text-light);
}

.footer-date {
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--text-lighter);
}

.rsvp-page {
    background-color: var(--bg-color);
    min-height: 100vh;
}

.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.back-link {
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 0.95em;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-color);
}

.rsvp-header {
    text-align: center;
    margin-bottom: 40px;
}

.rsvp-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.rsvp-subtitle {
    color: var(--text-light);
    line-height: 1.7;
}

.rsvp-subtitle strong {
    color: var(--primary-color);
}

/* Form Styles */
.rsvp-form {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.form-label-title {
    font-size: 1em;
    margin-bottom: 15px !important;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="tel"],
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    transition: var(--transition);
    background-color: var(--bg-color);
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    background-color: var(--bg-white);
}

.rsvp-form textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 10px;
    transition: var(--transition);
    background-color: var(--bg-color);
}

.radio-item:hover,
.checkbox-item:hover {
    background-color: rgba(163, 193, 160, 0.1);
}

.radio-item input,
.checkbox-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom,
.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    margin-right: 12px;
    transition: var(--transition);
    flex-shrink: 0;
}

.radio-custom {
    border-radius: 50%;
}

.checkbox-custom {
    border-radius: 5px;
}

.radio-item input:checked ~ .radio-custom {
    border-color: var(--accent-green);
    background-color: var(--accent-green);
    box-shadow: inset 0 0 0 3px var(--bg-white);
}

.checkbox-item input:checked ~ .checkbox-custom {
    border-color: var(--accent-green);
    background-color: var(--accent-green);
    position: relative;
}

.checkbox-item input:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-text,
.checkbox-item span:last-child {
    font-size: 0.95em;
    color: var(--text-color);
}

/* Conditional fields */
.conditional {
    display: none;
    animation: fadeIn 0.3s ease;
}

.conditional.visible {
    display: block;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 18px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 25px;
}

.success-message h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.success-message p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }
    
    .hero-date {
        font-size: 1.3em;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
        height: 300px;
    }
    
    .gallery-item:not(.large) {
        height: 200px;
    }
    
    .timeline::before {
        left: 60px;
    }
    
    .timeline-time {
        width: 60px;
        padding-right: 20px;
    }
    
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .rsvp-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large {
        grid-column: span 1;
    }
    
    .color-palette {
        gap: 10px;
    }
    
    .color-circle {
        width: 45px;
        height: 45px;
    }
}