/* style.css */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --dark-green: #1b2c2a;
    --gold: #c9a96e;
    --cream: #f7f5f1;
    --white: #ffffff;
    --text-gray: #3d4a48;
    --gold-gradient: linear-gradient(135deg, #d4b483, #b8925c);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero */
.hero {
    background: var(--dark-green);
    padding: 20px 0;
    text-align: center;
}
.hero__image {
    max-width: 500px;
    margin: 0 auto;
}
.hero__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Invitation */
.invitation {
    background: var(--dark-green);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.invitation__title {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: normal;
}
.invitation__text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Wishes */
.wishes {
    background: var(--dark-green);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.wishes__title {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.wishes__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.wish-item {
    flex: 1 1 250px;
    max-width: 350px;
    line-height: 1.8;
    font-size: 1rem;
}

/* Program */
.program {
    background: var(--cream);
    color: var(--text-gray);
    padding: 60px 0;
}
.program__title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark-green);
}
.program__timeline {
    max-width: 700px;
    margin: 0 auto 40px;
}
.program-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #d4c9b8;
}
.program-item:last-child {
    border-bottom: none;
}
.program-time {
    font-weight: bold;
    min-width: 80px;
    color: var(--gold);
    font-size: 1.1rem;
}
.program-desc {
    font-size: 1rem;
    line-height: 1.5;
}
.program__dresscode,
.program__deadline {
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
    font-size: 1.1rem;
    line-height: 1.6;
}
.program__deadline {
    margin-top: 30px;
    font-style: italic;
}

/* RSVP */
.rsvp {
    background: var(--cream);
    color: var(--text-gray);
    padding: 60px 0 80px;
    position: relative;
    text-align: center;
}
.rsvp__container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}
.rsvp__decor {
    position: absolute;
    pointer-events: none;
}
.rsvp__decor.left {
    top: -20px;
    left: -40px;
    width: 150px;
}
.rsvp__decor.right {
    bottom: -20px;
    right: -40px;
    width: 150px;
    transform: scaleX(-1);
}
.rsvp__decor img {
    width: 100%;
    opacity: 0.6;
}
.rsvp__subtitle {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 10px;
}
.rsvp__question {
    font-size: 2.2rem;
    font-weight: normal;
    margin-bottom: 15px;
    color: #1b2c2a;
}
.rsvp__date {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--text-gray);
}
.rsvp__btn {
    background: var(--gold-gradient);
    color: var(--white);
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
}
.rsvp__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(185, 146, 92, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal.open {
    display: flex;
}
.modal__content {
    background: var(--cream);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    color: var(--text-gray);
}
.modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
}
.modal__content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-green);
}
#rsvp-form .form-group {
    margin-bottom: 20px;
}
#rsvp-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-gray);
}
#rsvp-form input,
#rsvp-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d4c9b8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
}
#rsvp-form button {
    width: 100%;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .invitation__title { font-size: 1.5rem; }
    .rsvp__question { font-size: 1.7rem; }
    .rsvp__decor.left { width: 100px; left: -20px; }
    .rsvp__decor.right { width: 100px; right: -20px; }
    .wishes__grid { flex-direction: column; align-items: center; }
    .wish-item { max-width: 100%; }
    .program-item { flex-direction: column; gap: 5px; }
    .program-time { min-width: auto; }
}