* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #FFFBE5;
    font-family: 'Montserrat', sans-serif;
    color: #2e241f;
    scroll-behavior: smooth;
}

h1, h2, h3, .script {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    padding: 2rem;
}

.hero-sub {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 400;
    color: #949E77;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 600;
    color: #3d2a1f;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-names {
    font-size: 2.8rem;
    font-style: italic;
    border-top: 2px solid #949E77;
    border-bottom: 2px solid #949E77;
    display: inline-block;
    padding: 0.8rem 2rem;
    margin: 1.5rem 0;
}

.hero-date {
    font-size: 1.8rem;
    font-family: 'Cormorant Garamond', serif;
}

.fa-calendar-alt {
    color: #949E77;
}

.btn-rsvp {
    display: inline-block;
    margin-top: 2.5rem;
    background: #949E77;
    color: white;
    padding: 14px 40px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-rsvp:hover {
    background: #828d5f;
    transform: translateY(-2px);
}

.child-photo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
    max-width: 100%;
    padding: 0 10px;
}

.child-quote-left,
.child-quote-right {
    font-style: italic;
    font-size: 1rem;
    white-space: normal;
    max-width: 140px;
    min-width: 80px;
    text-align: center;
    line-height: 1.3;
}

.child-photo {
    max-height: 400px;
    width: auto;
    max-width: 45%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-names { font-size: 1.8rem; }
    .section-title { font-size: 2.2rem; }
    .container { padding: 0 20px; }

    .child-photo-section {
        gap: 0.5rem;
        padding: 0 5px;
    }

    .child-quote-left,
    .child-quote-right {
        font-size: 0.85rem;
        max-width: 100px;
        min-width: 65px;
    }

    .child-quote-left br {
        display: none;
    }

    .child-photo {
        max-height: 220px;
        max-width: 40%;
    }

    .timeline-item { flex-direction: column; gap: 5px; }
    .timeline-time { min-width: auto; }
    .modal-content { margin: 15% auto; width: 95%; }
    .map-icons { flex-direction: column; align-items: center; }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .radio-group label,
    .checkbox-group label {
        width: 100%;
    }

    .color-dot {
        width: 50px;
        height: 50px;
    }

    .color-palette {
        gap: 10px;
    }

    .color-dot::after {
        font-size: 0.6rem;
        padding: 3px 8px;
        white-space: nowrap;
    }

    .color-dot:active::after {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .child-quote-left,
    .child-quote-right {
        font-size: 0.7rem;
        max-width: 80px;
        min-width: 55px;
    }

    .child-photo {
        max-height: 180px;
    }

    .color-dot {
        width: 45px;
        height: 45px;
    }

    .color-palette {
        gap: 8px;
    }
}

section {
    padding: 80px 0;
    border-bottom: 1px solid #f0e2d0;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #3d2a1f;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: #949E77;
    margin: 1rem auto 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.2s;
    text-align: center;
}

.card i {
    font-size: 2.5rem;
    color: #949E77;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #3d2a1f;
    margin-bottom: 0.8rem;
}

.timeline {
    background: #fff5ec;
    border-radius: 40px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px dashed #e7cfb5;
    font-size: 1.2rem;
    text-align: left;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-time {
    font-weight: 700;
    color: #949E77;
    min-width: 100px;
}

.timeline-event {
    text-align: left;
    flex: 1;
}

.dress-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.dress-card {
    background: #fff;
    border-radius: 32px;
    padding: 2rem;
    width: 280px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}

.color-palette {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 1.5rem 0;
    flex-direction: row;
    flex-wrap: wrap;
}

.color-dot {
    position: relative;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.color-dot:hover {
    transform: scale(1.08);
}

.color-dot::after {
    content: attr(data-color);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #2e241f;
    color: #fef7e8;
    font-size: 0.7rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.color-dot::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border-width: 5px;
    border-style: solid;
    border-color: #2e241f transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.color-dot:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

.color-dot:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.map-card {
    background: #b3bb9c;
    border-radius: 28px;
    padding: 1.5rem;
    text-align: center;
}

.map-placeholder {
    background: #dee8c2;
    border-radius: 20px;
    padding: 2rem;
    color: #2e241f;
    font-weight: 500;
    margin-top: 1rem;
}

.map-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.map-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 1px solid #e1cfbb;
}

.fa-map, .fa-map-marked-alt {
    color: #949E77;
}

.map-icon:hover {
    background: #828d5f;
    color: white;
    transform: translateY(-2px);
    border-color: #828d5f;
}

.map-icon i {
    font-size: 1.2rem;
    margin: 0;
}

.hint-link {
    display: inline-block;
    margin-top: 1rem;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.hint-link:hover {
    color: #828d5f;
    transform: scale(1.05);
}

.address-coords {
    font-size: 0.8rem;
    color: #7a6048;
    margin-top: 8px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: #fef7e8;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #949E77;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: #3d2a1f;
    margin: 0;
}

.close-modal {
    color: #949E77;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: #828d5f;
}

.modal-body {
    text-align: center;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.rsvp-form {
    background: white;
    border-radius: 32px;
    padding: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

input, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e1cfbb;
    border-radius: 40px;
    font-family: inherit;
    background: #fefaf5;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
    width: auto;
}

.radio-group input,
.checkbox-group input {
    width: auto;
    margin: 0;
}

button[type="submit"] {
    background: #949E77;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
}

button[type="submit"]:hover {
    background: #828d5f;
}

.alert {
    margin-top: 1rem;
    padding: 12px;
    border-radius: 40px;
    text-align: center;
    font-weight: 500;
}

.alert-success {
    background: #e0f2e0;
    color: #2a6b2a;
}

.alert-error {
    background: #ffe0e0;
    color: #b33;
}

footer {
    background: #949E77;
    color: #FFFBE5;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

i.fa, i.far, i.fas {
    margin-right: 4px;
}

.small-note {
    font-size: 0.8rem;
    color: #7a6048;
    margin-top: 10px;
    font-style: italic;
}

.wishes-list {
    text-align: left;
    list-style: none;
    padding-left: 0;
}

.wishes-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wishes-list li i {
    margin-top: 4px;
    margin-bottom: 0;
    font-size: 1.2rem;
}

.gift-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.date-large {
    font-size: 2rem;
    font-weight: 700;
    color: #949E77;
    margin: 0.5rem 0;
}

.date-large strong {
    font-size: 2.2rem;
}

.date-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #3d2a1f;
    margin-bottom: 0.8rem;
    text-transform: capitalize;
}

.full-address {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0.5rem 0;
}

.location-details {
    margin-top: 0.5rem;
    line-height: 1.6;
}

.tg-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    background: #949E77;
    color: white;
    padding: 8px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tg-link i {
    margin: 0;
    font-size: 1.1rem;
}

.tg-link:hover {
    background: #828d5f;
    transform: translateY(-2px);
}
