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

body {
    background-color: #F0F4FF;
    overflow-x: hidden;
    background-image: url('assets/template-bg.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
}

.template-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section Desktop */
.hero-section {
    width: 100%;
    padding-top: 60px;
    display: flex;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    width: 1231px;
}

.hero-title {
    font-family: 'Noto Sans Armenian';
    font-style: normal;
    font-weight: 600;
    font-size: 80px;
    line-height: 109px;
    text-align: center;
    color: #4150D8;
    width: 100%;
}

.hero-images-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 143px;
    width: 100%;
    height: 550px;
    position: relative;
}

.ellipse-image {
    width: 550px;
    height: 550px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.ellipse-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tooth-illustration {
    width: 538px;
    height: 464px;
    flex-shrink: 0;
}

.tooth-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile Styles */
@media (max-width: 480px) {
    /* Container adjustments if needed */

    .hero-section {
        min-height: 450px;
        padding-top: 30px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .hero-content {
        width: 100%;
        gap: 0;
        position: relative;
    }

    .hero-title {
        position: relative;
        width: 318px;
        height: auto;
        margin: 0 auto;
        top: 0;
        left: 0;
        font-size: 28px;
        line-height: 38px;
        z-index: 2;
    }

    .hero-images-container {
        position: relative;
        width: 350px;
        /* Centered container */
        height: 300px;
        margin: 30px auto 0;
        display: block;
        z-index: 1;
    }

    .ellipse-image {
        position: absolute;
        width: 230px;
        height: 230px;
        left: 10px;
        top: 10px;
    }

    .tooth-illustration {
        position: absolute;
        width: 180px;
        height: 155px;
        left: 160px;
        top: 70px;
        z-index: 2;
    }
}

/* Info & Calendar Section Desktop */
.info-section {
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 0;
    margin-top: 60px;
}

.invitation-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    width: 100%;
}

.info-title {
    font-family: 'Noto Sans Armenian';
    font-style: normal;
    font-weight: 500;
    font-size: 50px;
    line-height: 68px;
    text-align: center;
    color: #4150D8;
    width: 100%;
}

.info-description {
    font-family: 'Noto Sans Armenian';
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 33px;
    text-align: center;
    color: #393939;
    max-width: 1280px;
}

.separator-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.separator-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.calendar-container {
    width: 563px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.month-name {
    font-family: 'Noto Sans Armenian';
    font-style: italic;
    font-weight: 400;
    font-size: 36px;
    line-height: 37px;
    text-align: center;
    color: #393939;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
    gap: 24px 0;
}

.day-name {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    color: #393939;
}

.day {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    color: #393939;
    position: relative;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.day.highlighted {
    color: #FFFFFF;
    z-index: 1;
}

.highlight-icon {
    position: absolute;
    width: 63px;
    height: 71px;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.day-number {
    position: relative;
    z-index: 1;
}

.bottom-info {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* Preserve space for tooth illustration */
}

.bottom-tooth {
    position: absolute;
    right: 0;
    bottom: 0;
    /* User preferred position */
    width: 250px;
}

.bottom-tooth img {
    width: 100%;
    height: auto;
}

/* Event Details Section Desktop */
.details-section {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    padding-bottom: 60px;
}

.details-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 920px;
}

.event-time-large,
.restaurant-name {
    font-family: 'Noto Sans Armenian';
    font-style: normal;
    font-weight: 500;
    font-size: 50px;
    line-height: 68px;
    text-align: center;
    color: #4150D8;
    width: 100%;
}

.venue-photo {
    width: 920px;
    height: 473px;
    border-radius: 4px;
    overflow: hidden;
}

.venue-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RSVP Section Desktop */
.rsvp-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 100px;
    position: relative;
    /* For absolute tooth */
    overflow: hidden;
}

.rsvp-top-illustrations-mobile {
    display: none;
}

.rsvp-container {
    width: 100%;
    max-width: 968px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.rsvp-title {
    font-family: 'Noto Sans Armenian';
    font-style: normal;
    font-weight: 500;
    font-size: 50px;
    line-height: 1.36;
    text-align: center;
    color: #4150D8;
    max-width: 968px;
}

.rsvp-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    width: 100%;
    max-width: 840px;
    position: relative;
    z-index: 1;
}

.rsvp-desktop-tooth {
    position: absolute;
    left: 20px;
    bottom: 40px;
    width: 240px;
    height: auto;
    z-index: 0;
}

.rsvp-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.form-question {
    font-family: 'Noto Sans Armenian';
    font-size: 20px;
    color: #393939;
    margin-bottom: 24px;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 43px;
    cursor: pointer;
    font-family: 'Noto Sans Armenian';
    font-size: 20px;
    color: #393939;
    user-select: none;
    min-height: 29px;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 29px;
    width: 29px;
    background-color: transparent;
    border: 2px solid #4150D8;
    border-radius: 50%;
}

.radio-container:hover input~.checkmark {
    background-color: #f0f1ff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked~.checkmark:after {
    display: block;
}

.radio-container .checkmark:after {
    left: 4px;
    top: 4px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #4150D8;
}

.form-inputs {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.rsvp-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #393939;
    background: transparent;
    padding: 10px 0;
    font-family: 'Noto Sans Armenian';
    font-size: 20px;
    color: #393939;
    outline: none;
}

.rsvp-input::placeholder {
    color: #393939;
}

.rsvp-submit {
    width: 100%;
    height: 61px;
    background: #7A85E4;
    border-radius: 84px;
    border: none;
    color: #FFFFFF;
    font-family: 'Noto Sans Armenian';
    font-size: 22px;
    cursor: pointer;
    transition: background 0.3s;
}

.rsvp-submit:hover {
    background: #4150D8;
}

/* Mobile Styles Addition */
@media (max-width: 480px) {
    .info-section {
        margin-top: 30px;
    }

    .info-title {
        font-size: 28px;
        line-height: 38px;
        padding: 0 10px;
    }

    .info-description {
        font-size: 18px;
        line-height: 25px;
        padding: 0 20px;
        margin-top: 10px;
    }

    .separator-arrow {
        width: 15px;
        height: auto;
        margin: 5px 0;
    }


    .calendar-container {
        width: 333px;
    }

    .month-name {
        font-size: 26px;
    }

    .calendar-grid {
        gap: 15px 0;
    }

    .day-name {
        font-size: 18px;
    }

    .day {
        font-size: 16px;
        height: 40px;
    }

    .highlight-icon {
        width: 40px;
        height: 45px;
    }

    .bottom-tooth {
        position: relative;
        right: auto;
        bottom: 100px;
        /* Adjusted for mobile */
        margin-left: auto;
        width: 100px;
        margin-top: 10px;
    }

    .details-content {
        width: 100%;
        padding: 0 20px;
        gap: 20px;
    }

    .event-time-large,
    .restaurant-name {
        font-size: 28px;
        line-height: 38px;
    }

    .venue-photo {
        width: 100%;
        height: 250px;
    }

    .rsvp-section {
        padding-bottom: 60px;
    }

    .rsvp-top-illustrations-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        margin-bottom: 10px;
        width: 100%;
        min-height: 80px;
    }

    .rsvp-mobile-tooth {
        position: absolute;
        left: 20px;
        top: 0;
        width: 60px;
        height: auto;
    }

    .rsvp-mobile-arrow {
        width: 20px;
        height: auto;
    }

    .rsvp-desktop-tooth {
        display: none;
    }

    .rsvp-container {
        width: 100%;
        padding: 0 20px;
        gap: 30px;
    }

    .rsvp-title {
        font-size: 20px;
        line-height: 27px;
        max-width: 335px;
    }

    .rsvp-content {
        flex-direction: column;
        gap: 30px;
        max-width: 335px;
    }

    .form-question {
        font-size: 18px;
        line-height: 25px;
    }

    .radio-container,
    .rsvp-input {
        font-size: 16px;
    }

    .checkmark {
        width: 26px;
        height: 26px;
    }

    .radio-container .checkmark:after {
        width: 14px;
        height: 14px;
    }

    .rsvp-submit {
        height: 50px;
        font-size: 18px;
    }
}