* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4a574;
    --secondary-color: #8b6f47;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #fafafa;
    --white: #ffffff;
    --gold: #c9a961;
    --rose-gold: #e8c5a0;
    --soft-pink: #f5e6d3;
    --elegant-gold: #d4af37;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.4), rgba(139, 111, 71, 0.4)),
                url('https://images.unsplash.com/photo-1519741497674-611481863552?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    animation: fadeInUp 1.2s ease-out;
    padding: 0 20px;
    max-width: 900px;
}

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 165, 116, 0.3);
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.name-first,
.name-second {
    display: inline-block;
    animation: nameFadeIn 1.5s ease-out;
}

.name-first {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.name-second {
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.ampersand {
    font-size: 4rem;
    font-weight: 400;
    color: var(--rose-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: ampersandFadeIn 1.5s ease-out 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
    font-style: italic;
}

.decorative-divider-top,
.decorative-divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--rose-gold), transparent);
    margin: 0 auto 2rem;
    position: relative;
    animation: dividerExpand 1s ease-out 0.8s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.decorative-divider-top {
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.decorative-divider::before,
.decorative-divider::after {
    content: '❦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rose-gold);
    font-size: 1.2rem;
}

.decorative-divider::before {
    left: -30px;
}

.decorative-divider::after {
    right: -30px;
}

.wedding-date {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeInUp 1.5s ease-out 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.date-icon {
    font-size: 1.4rem;
    opacity: 0.9;
}

.wedding-location {
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    line-height: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.5s ease-out 0.8s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.location-icon {
    font-size: 1.2rem;
    margin-right: 8px;
    opacity: 0.9;
}

.btn-confirm {
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--rose-gold));
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(212, 165, 116, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1.5s ease-out 1s, buttonPulse 2s ease-in-out infinite 2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.btn-confirm::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-confirm:hover::before {
    width: 300px;
    height: 300px;
}

.btn-confirm:hover {
    background: linear-gradient(135deg, var(--rose-gold), var(--primary-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(212, 165, 116, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-confirm:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-confirm span {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-confirm:hover .btn-arrow {
    transform: translateX(5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nameFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ampersandFadeIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes dividerExpand {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 120px;
        opacity: 1;
    }
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(212, 165, 116, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(212, 165, 116, 0);
    }
}


/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* RSVP Section */
.rsvp-section {
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    position: relative;
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 165, 116, 0.1);
    position: relative;
    overflow: hidden;
}

.rsvp-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--rose-gold), var(--primary-color));
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
    transform: translateY(-1px);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    padding: 10px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.15);
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-label input[type="radio"]:checked ~ span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-label input[type="radio"]:checked {
    accent-color: var(--primary-color);
}

/* Enhanced checked state styling */
.radio-label input[type="radio"]:checked {
    border-color: var(--primary-color);
}

.radio-group input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-label span {
    user-select: none;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.guest-name-field {
    margin-bottom: 15px;
}

.guest-name-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.guest-name-field input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.guest-name-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
    transform: translateY(-1px);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--rose-gold));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Lato', sans-serif;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 400px;
    height: 400px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--rose-gold), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.rsvp-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.rsvp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.rsvp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .couple-names {
        font-size: 3.5rem;
        gap: 10px;
        letter-spacing: 2px;
    }
    
    .ampersand {
        font-size: 2.5rem;
    }

    .wedding-date {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .wedding-location {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .btn-confirm {
        padding: 15px 35px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .rsvp-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 2.8rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .ampersand {
        font-size: 2rem;
        margin: 5px 0;
    }
    
    .name-first,
    .name-second {
        display: block;
    }

    .section {
        padding: 50px 0;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-confirm {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
}
