@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Great+Vibes&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {
    background: #f7f4ec;

    background-image: repeating-linear-gradient(45deg,
            #f7f4ec,
            #f7f4ec 10px,
            #f5f0e4 10px,
            #f5f0e4 11px);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.vivah-body,
#vivah-body {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;

}

.wedding-invitition {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: transparent;

}

.wedding-invitition-video {
    width: 100%;
    height: 100%;

    object-fit: fill;
    display: block;

}

.wedding-invition-content {
    position: absolute;

    top: 40%;
    left: 0;

    width: 100%;

    transform: translateY(-50%);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    line-height: 1.8;
    z-index: 10;

    text-align: center;
}

.wedding-invition-name1 {
    margin: 0;
    padding: 0 20px 0px 0px;

    color: #C8A062;


    font-family: "Great Vibes", cursive;
    font-size: clamp(35px, 6vw, 55px);
    letter-spacing: 3px;
    font-weight: 500;
    white-space: nowrap;
    display: block;

    visibility: visible;
    opacity: 2;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.wedding-invition-content p {
    font-family: "Great Vibes", cursive;
    font-size: clamp(20px, 6vw, 35px);
    letter-spacing: 3px;
    font-weight: 500;
    color: #000000;
    text-align: center;
}

/* family-section */
.family {
    width: 100%;
    min-height: 100dvh;
    margin: 0 auto;

    background-image: url("../1.png");
    background-size: 100% 100%;
    background-position: center top;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.all-people-content {
    width: 90%;
    max-width: 450px;

    color: #FBC683;

    font-family: "Cormorant Garamond", serif;

    line-height: 1.4;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.all-people-icon {
    width: 100px;
    height: 100px;
    padding-right: 10px;
}


.name-text1 {
    margin: 0;
    padding: 0;

    font-size: 20px;
    font-weight: 600;

    line-height: 1.5;
}


.name-subha {
    margin: 25px 0 35px 0;
    padding: 0;

    font-family: "Great Vibes", cursive;

    font-size: 55px;
    font-weight: 400;

    line-height: 0.95;

    color: #FBC683;
}

.name-subha span {
    font-family: "Cormorant Garamond", serif;

    font-size: 35px;
    font-weight: 600;
}

.son-of {
    margin: 0 0 15px 0;
    padding: 0;

    font-size: 18px;
    font-weight: 500;

    letter-spacing: 1px;
}

.wedding-date {
    margin: 25px 0 10px 0;
    padding: 0;

    font-size: 18px;
    font-weight: 600;

    letter-spacing: 0.5px;
}

.wedding-place {
    margin: 0;
    padding: 0;

    font-size: 17px;
    font-weight: 500;

    letter-spacing: 0.5px;
}

@media (max-width: 500px) {

    .all-people-content {
        width: 88%;
    }

    .name-text1 {
        font-size: 17px;
    }

    .name-subha {
        font-size: 45px;
        margin: 20px 0 30px;
    }

    .name-subha span {
        font-size: 30px;
    }

    .son-of {
        font-size: 16px;
    }

    .wedding-date {
        font-size: 16px;
        margin-top: 20px;
    }

    .wedding-place {
        font-size: 15px;
    }
}


/* heldi--section */
.haldi-section {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    overflow: hidden;
}

.haldi-video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.haldi-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
    text-align: center;

    display: block;
    position: absolute;
    top: 180px;
    left: 0px;
    line-height: 1.8;

}

.haldi-name {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 50px;
    font-weight: bold;
    color: #D7A91A;

}

.haldi-date {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 30px;
    font-weight: 300;
    color: #0ca544;

}

.haldi-address,
.haldi-place {
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    font-weight: 200;


}

/* mehendi-section */
.mehendi {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    position: relative;
    overflow: hidden;

}

.mehendi-video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;

}

.mehendi-content {
    position: absolute;
    top: 200px;
    left: 50px;
    line-height: 1.7;
    display: block;
    color: #677E43;
}

.mehendi-name {
    font-size: clamp(30px, 10vw, 50px);
    font-weight: 500;
    font-family: system-ui, BlinkMacSystemFont, 'Open Sans', 'Helvetica Neue', sans-serif;
    padding-left: 90px;
}

.mehendi-date,
#mehndiDate {
    padding-left: 65px;
    font-size: clamp(20px, 6vw, 30px);
    font-weight: 200;
    font-family: 'Gill Sans', Calibri, 'Trebuchet MS', sans-serif;
}

.mehendi-address,
#mehndiPlace {
    padding-left: 20px;
    font-size: clamp(18px, 5vw, 25px);
    font-weight: 300;
    font-family: Georgia, Times, 'Times New Roman', serif;
}

/* sangeet-night-section */
.sangeet-night {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    display: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.8;
}

.sangeet-night-video {
    height: 100%;
    width: 100%;
    object-fit: fill;

}

.sangeet-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px;
}

.sangeet-name {
    font-weight: 400;
    font-size: clamp(30px, 10vw, 50px);
    color: #FAC62E;
    font-family: system-ui, BlinkMacSystemFont, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.sangeet-date {
    color: #F1E1F3;
    font-size: clamp(20px, 6vw, 30px);
    font-weight: 200;
    font-family: Arial, Helvetica, sans-serif;
}

.sangeet-address,
.sangeet-place {
    color: #F1E1F3;
    font-size: clamp(18px, 5vw, 25px);
    font-weight: 300;
    font-family: Arial, Helvetica, sans-serif;
}

/* marriage-section */
.marriage {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    height: 100dvh;
    margin: 0px auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;


}

.marriage-video {
    height: 100%;
    width: 100%;
    object-fit: fill;
    background-size: 100% 100%;
    display: block;

}

.marriage-content {
    display: flex;
    justify-content: center;
    display: block;
    position: absolute;
    top: 250px;
    line-height: 1.6;
    padding-left: 54px;


}

.marriage-name {
    padding-left: 90px;
    color: #846852;
    font-size: clamp(25px, 8vw, 40px);
    font-weight: 300;
    font-family: system-ui, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.marriage-date {
    color: #846852;
    padding-left: 21px;
    font-size: clamp(20px, 6vw, 30px);
    font-weight: 300;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.marriage-address,
.marriage-place {
    color: #846852;
    font-size: clamp(14px, 4vw, 20px);
    font-weight: 300;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* gallery */

.gallery-section {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 12px;
    background: #fff5f7;
}

.gallery-title {
    text-align: center;
    color: #a83258;
    font-size: 26px;
    margin-bottom: 20px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.gallery-item {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.08);
}




/* Venue Section */
* {
    box-sizing: border-box;
}

.venue-section {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    height: 100dvh;

    margin: 0 auto;
    padding: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
    background: #fff5f7;
    overflow: hidden;
}

/* Heading */
.venue-title {
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    padding: 8px 0;

    text-align: center;
    font-size: clamp(21px, 6vw, 30px);
    line-height: 1.2;
    color: #a83258;
}

/* Venue Card */
.venue-card {
    width: 100%;
    max-width: 470px;

    /* Remaining section height */
    flex: 1 1 auto;
    min-height: 0;
    height: auto;

    margin: 0 auto;
    padding: 0;

    display: flex;
    flex-direction: column;

    background: #fff;
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

/* Venue Image */
.venue-image {
    width: 100%;

    /* Image gets 45% of card height */
    flex: 0 1 55%;
    min-height: 0;

    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.venue-image img {
    display: block;
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;
    border: none;

    object-fit: fill;
    object-position: center;
}

/* Venue Content */
.venue-content {
    width: 100%;

    /* Content gets the remaining 55% */
    flex: 1 1 45%;
    min-height: 0;

    margin: 0;
    padding: clamp(8px, 2.5vh, 18px) 12px;

    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    gap: clamp(4px, 1vh, 9px);

    text-align: center;

    overflow-wrap: anywhere;
    overflow: hidden;
}

.venue-content h3 {
    margin: 0;
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.9;
    color: #a83258;
}

.venue-content h4 {
    margin: 0;
    font-size: clamp(15px, 4vw, 19px);
    line-height: 1.9;
    color: #663344;
}

.venue-content p {
    margin: 0;
    font-size: clamp(11px, 3.5vw, 14px);
    line-height: 1.9;
    color: #555;
}

/* Location Button */
.direction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: #9b1748;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.direction-btn:hover {
    background-color: #751035;
    color: #ffffff;
}



/* Small Mobile: 320px–374px */
@media (max-width: 374px) {
    .venue-section {
        padding: 8px;
        gap: 6px;
    }

    .venue-title {
        padding: 5px 0;
        font-size: 21px;
    }

    .venue-content {
        padding: 6px 8px;
        gap: 4px;
    }

    .venue-content h3 {
        font-size: 18px;
    }

    .venue-content h4 {
        font-size: 15px;
    }

    .venue-content p {
        font-size: 11px;
    }

    .venue-btn {
        padding: 7px 14px;
        font-size: 12px;
    }
}

/* Normal Mobile: 375px–424px */
@media (min-width: 375px) and (max-width: 424px) {
    .venue-section {
        padding: 10px;
        gap: 8px;
    }

    .venue-content {
        padding: 8px 10px;
        gap: 5px;
    }
}

/* Large Mobile: 425px–500px */
@media (min-width: 425px) and (max-width: 500px) {
    .venue-section {
        padding: 12px;
    }

    .venue-content {
        padding: 12px;
        gap: 7px;
    }
}





/* RSVP Section */
.rsvp-section {
    width: 100%;
    max-width: 500px;
    min-height: 85vh;
    min-height: 85dvh;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    line-height: 1.5;
    padding: 5px 15px 20px 15px;
    box-sizing: border-box;

    background: linear-gradient(135deg,
            #fff0f3,
            #fce0e8,
            #fff5e8);

    overflow: hidden;
}

/* Content */
.rsvp-content {
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding-top: 30px;
}

/* Subtitle */
.rsvp-subtitle {
    font-family: cursive;
    font-size: 22px;
    color: #a83258;
    margin: 0 0 8px;
}

/* Heading */
.rsvp-content h2 {
    font-family: Georgia, serif;
    font-size: 38px;
    color: #a83258;
    margin: 0 0 12px;
}

/* Description */
.rsvp-description {
    font-size: 15px;
    line-height: 1.6;
    color: #66434d;
    margin-bottom: 22px;
}

/* Form */
.rsvp-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 18px;
}

.rsvp-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
}

.rsvp-field label {
    color: #6f1837;
    font-size: 13px;
    font-weight: 700;
}

.rsvp-field label span {
    color: #8c6267;
    font-size: 12px;
    font-weight: 400;
}

/* Inputs */
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 13px 14px;
    box-sizing: border-box;

    border: 1px solid #e5b5c3;
    border-radius: 8px;
    background: #fff;
    color: #49313a;

    font-size: 15px;
    font-family: Arial, sans-serif;
    outline: none;
}

.rsvp-form textarea {
    resize: vertical;
    min-height: 75px;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-color: #a83258;
}

/* Button */
.rsvp-form button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 25px;
    margin-top: 10px;
    background: #a83258;
    color: #fff;

    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.rsvp-form button:hover {
    background: #7d203e;
}

.rsvp-form button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.form-success,
.form-error,
.rsvp-response {
    display: block;
    width: 100%;
    font-size: 13px;
    line-height: 1.5;
}

.form-success {
    margin: 0 18px 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #edf8ef;
    color: #236b35;
    font-weight: 700;
}

.form-error {
    color: #a83258;
    font-weight: 700;
}

.rsvp-response {
    min-height: 20px;
    color: #a83258;
    text-align: center;
}

/* Footer */
.rsvp-footer {
    margin-top: 23px;
    color: #a83258;
    font-family: cursive;
    font-size: 15px;
}

/* Small Mobile */
@media (max-width: 374px) {
    .rsvp-section {
        padding: 5px 12px;
    }

    .rsvp-content h2 {
        font-size: 30px;
    }

    .rsvp-subtitle {
        font-size: 19px;
    }

    .rsvp-description {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .rsvp-form {
        gap: 9px;
        padding: 0;
    }

    .rsvp-form input,
    .rsvp-form select,
    .rsvp-form textarea {
        padding: 10px 20px;
        font-size: 13px;
    }

    .rsvp-footer {
        font-size: 13px;
    }
}

/* Medium and Large Mobile */
@media (min-width: 375px) and (max-width: 500px) {
    .rsvp-content h2 {
        font-size: 34px;
    }
}


/* Thank You Section */
.thankyou-section {
    width: 100%;
    max-width: 500px;
    height: 55vh;
    height: 55dvh;

    margin: 0 auto;
    padding: 15px 20px 20px 20px;
    box-sizing: border-box;

    background: linear-gradient(135deg,
            #fff0f3,
            #fffaf0,
            #fce4ec);

    overflow: hidden;
}

/* Content Card */
.thankyou-content {
    width: 100%;
    padding: 20px 20px;
    box-sizing: border-box;

    text-align: center;
    background: rgba(255, 255, 255, 0.85);

    border: 2px solid #e8bd8b;
    border-radius: 180px 180px 20px 20px;

    box-shadow: 0 8px 25px rgba(128, 50, 70, 0.12);
}

/* Flower */
.thankyou-flower {
    font-size: 42px;
    margin-bottom: 15px;
}

/* Subtitle */
.thankyou-subtitle {
    font-size: 11px;
    letter-spacing: 3px;
    color: #9d6b58;
    margin: 0 0 12px;
}

/* Thank You Heading */
.thankyou-content h2 {
    font-family: Georgia, serif;
    font-size: clamp(38px, 10vw, 52px);
    font-weight: normal;
    font-style: italic;
    color: #a83258;
    margin: 0;
}

/* Divider */
.thankyou-divider {
    font-size: 32px;
    color: #c69b5b;
    margin: 12px 0;
}

/* Couple Names */
.thankyou-content h3 {
    font-family: Georgia, serif;
    font-size: 25px;
    color: #79364b;
    margin: 10px 0 20px;
}

.thankyou-content h3 span {
    font-size: 20px;
}

/* Message */
.thankyou-message {
    font-size: 15px;
    line-height: 1.8;
    color: #634c50;
    margin: 0 0 15px;
}

/* Blessing */
.thankyou-blessing {
    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic;
    line-height: 1.7;
    color: #8c6267;
    margin: 0 0 22px;
}

/* Footer */
.thankyou-footer {
    font-size: 20px;
    letter-spacing: 1px;
    color: #a83258;
    margin: 0;
}

.thankyou-footer a {
    text-decoration: none;
    color: red;
}

/* Hearts */
.thankyou-hearts {
    color: #c58b8b;
    font-size: 15px;
    letter-spacing: 8px;
    margin-top: 18px;
}

/* Small Mobile */
@media (max-width: 374px) {
    .thankyou-section {
        padding: 10px 12px 0px 12px;

        .thankyou-content {
            padding: 24px 15px;
        }

        .thankyou-flower {
            font-size: 32px;
        }

        .thankyou-subtitle {
            font-size: 9px;
            letter-spacing: 2px;
        }

        .thankyou-content h3 {
            font-size: 21px;
        }

        .thankyou-message {
            font-size: 13px;
        }

        .thankyou-blessing {
            font-size: 12px;
        }
    }
}

/* Mobile: replace fixed event offsets with bounded, content-sized overlays. */
@media (max-width: 768px) {
    #vivah-body {
        min-width: 0;
    }

    #vivah-body .wedding-invition-content {
        padding-inline: 20px;
    }

    #vivah-body .wedding-invition-name1 {
        max-width: 100%;
        padding: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: clamp(30px, 8vw, 48px);
        line-height: 1.25;
    }

    #vivah-body .family {
        padding-block: 48px;
    }

    #vivah-body .all-people-content>* {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    #vivah-body .name-subha {
        line-height: 1.15;
    }

    #vivah-body .haldi-section,
    #vivah-body .mehendi,
    #vivah-body .sangeet-night,
    #vivah-body .marriage {
        display: grid;
        align-content: start;
        height: auto;
        min-height: 100svh;
        padding: clamp(140px, 28svh, 200px) 20px 80px;
    }

    #vivah-body .haldi-video,
    #vivah-body .mehendi-video,
    #vivah-body .sangeet-night-video,
    #vivah-body .marriage-video {
        position: absolute;
        inset: 0;
        height: 100%;
        width: 100%;
    }

    #vivah-body .haldi-content,
    #vivah-body .mehendi-content,
    #vivah-body .sangeet-content,
    #vivah-body .marriage-content {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        min-width: 0;
        padding: 0;
        text-align: center;
        overflow-wrap: anywhere;
        line-height: 1.5;
    }

    #vivah-body .mehendi-name,
    #vivah-body #mehndiDate,
    #vivah-body #mehndiPlace,
    #vivah-body .marriage-name,
    #vivah-body .marriage-date {
        padding-left: 0;
    }

    #vivah-body .haldi-content>*,
    #vivah-body .sangeet-content>* {
        max-width: 100%;
    }

    #vivah-body .haldi-name {
        font-size: clamp(32px, 9vw, 48px);
    }

    #vivah-body .haldi-date {
        font-size: clamp(20px, 6vw, 28px);
    }

    #vivah-body .haldi-address {
        font-size: clamp(18px, 5vw, 24px);
    }

    #vivah-body .gallery-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #vivah-body .gallery-item {
        height: auto;
        aspect-ratio: 4 / 5;
        min-width: 0;
    }

    /* Let the venue details and map grow instead of squeezing into one viewport. */
    #vivah-body .venue-section {
        height: auto;
        min-height: 100svh;
        overflow: visible;
        padding: 24px 16px;
    }

    #vivah-body .venue-card,
    #vivah-body .venue-image,
    #vivah-body .venue-content {
        flex: none;
        min-height: auto;
    }

    #vivah-body .venue-image img {
        height: auto;
    }

    #vivah-body .venue-content {
        overflow: visible;
        padding: 20px 16px;
    }

    #vivah-body .venue-content h3,
    #vivah-body .venue-content p {
        line-height: 1.5;
    }

    #vivah-body .map-wrapper {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    #vivah-body .map-wrapper iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }

    #vivah-body .direction-btn {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    #vivah-body .rsvp-form {
        padding-inline: 0;
    }

    #vivah-body .rsvp-field {
        min-width: 0;
    }

    #vivah-body .rsvp-form input,
    #vivah-body .rsvp-form select,
    #vivah-body .rsvp-form textarea {
        min-width: 0;
        font-size: 16px;
    }

    #vivah-body .form-success {
        width: auto;
        margin-inline: 0;
    }

    #vivah-body .form-success,
    #vivah-body .form-error,
    #vivah-body .rsvp-response {
        overflow-wrap: anywhere;
    }

    #vivah-body .thankyou-section {
        height: auto;
        min-height: 55svh;
        padding: 24px 16px;
    }

    #vivah-body .thankyou-content {
        padding: 32px 16px;
        overflow-wrap: anywhere;
    }
}