/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


html{
    scroll-behavior:smooth;
}



body{

    font-family:'Poppins', sans-serif;

    color:#444;

    background:#faf8f5;

}



/* ===========================
   HERO
=========================== */


.hero{

    height:100vh;

    min-height:700px;

    position:relative;

    overflow:hidden;

    display:flex;

    align-items:center;

    justify-content:center;

}



.hero-background{

    position:absolute;

    inset:-5%;

    background-image:url("assets/DSC_9562.jpg");

    background-size:cover;

    background-position:center;

    transform:scale(1.1);

    animation:zoomImage 18s infinite alternate;

    z-index:1;

}



@keyframes zoomImage{


    from{

        transform:scale(1.05);

    }


    to{

        transform:scale(1.15);

    }


}





.hero-overlay{

    position:absolute;

    inset:0;

    background:

    linear-gradient(

        rgba(0,0,0,.45),

        rgba(0,0,0,.25)

    );


    z-index:2;

}




.hero-content{

    position:relative;

    z-index:3;

    text-align:center;

    color:white;

    padding:20px;

    animation:fadeUp 1.5s ease;

}



@keyframes fadeUp{


    from{

        opacity:0;

        transform:translateY(40px);

    }


    to{

        opacity:1;

        transform:translateY(0);

    }


}





.hero-subtitle{

    font-family:'Cormorant Garamond', serif;

    font-size:28px;

    letter-spacing:2px;

    margin-bottom:20px;

}



.hero h1{


    font-family:'Great Vibes', cursive;

    font-size:110px;

    font-weight:400;

    line-height:1;


}




.hero h1 span{

    color:#d8bd88;

}





/* ===========================
   TIMER
=========================== */



.countdown{


    display:flex;

    justify-content:center;

    gap:20px;

    margin-top:50px;

    flex-wrap:wrap;

}



.time-card{


    width:110px;

    height:110px;


    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;



    background:rgba(255,255,255,.15);


    border:1px solid rgba(255,255,255,.35);


    backdrop-filter:blur(10px);


    border-radius:20px;


    box-shadow:

    0 10px 30px rgba(0,0,0,.15);


}





.time-card strong{


    font-family:'Cormorant Garamond', serif;

    font-size:45px;

    font-weight:600;


}





.time-card span{


    font-size:13px;

    text-transform:uppercase;

    letter-spacing:2px;


}




.wedding-date{


    margin-top:40px;


    font-family:'Cormorant Garamond', serif;


    font-size:28px;


    letter-spacing:3px;


}




/* ===========================
   SCROLL
=========================== */


.scroll-down{


    position:absolute;

    bottom:40px;

    left:50%;

    transform:translateX(-50%);


    width:30px;

    height:50px;


    border:2px solid white;

    border-radius:20px;


}



.scroll-down span{


    display:block;


    width:6px;

    height:6px;


    background:white;


    border-radius:50%;


    margin:10px auto;


    animation:scrollMove 1.5s infinite;


}



@keyframes scrollMove{


    0%{

        transform:translateY(0);

        opacity:0;

    }


    50%{

        opacity:1;

    }


    100%{

        transform:translateY(20px);

        opacity:0;

    }


}






/* ===========================
   CONTEÚDO
=========================== */



main{


    position:relative;

    margin-top:-80px;

    background:#faf8f5;

    border-radius:60px 60px 0 0;

    z-index:5;

    padding-top:100px;


}





.section{


    max-width:900px;

    margin:auto;

    padding:80px 25px;

    text-align:center;


}





.section h2{


    font-family:'Cormorant Garamond', serif;

    font-size:55px;

    font-weight:500;


    margin-bottom:25px;


}





.section p{


    font-size:18px;

    line-height:1.8;


}





.info-card{


    background:white;

    padding:35px;

    border-radius:25px;


    box-shadow:

    0 15px 40px rgba(0,0,0,.08);


}





.primary-button{


    margin-top:20px;


    padding:15px 40px;


    border:none;


    border-radius:40px;


    background:#b99862;


    color:white;


    font-size:16px;


    cursor:pointer;


    transition:.3s;


}



.primary-button:hover{


    transform:translateY(-5px);


}




/* ===========================
   MOBILE
=========================== */


@media(max-width:768px){


.hero h1{

    font-size:75px;

}


.hero-subtitle{

    font-size:22px;

}



.time-card{

    width:75px;

    height:75px;

}



.time-card strong{

    font-size:30px;

}



.time-card span{

    font-size:10px;

}



.wedding-date{

    font-size:20px;

}



.section h2{

    font-size:42px;

}


}

/* MODAL */

/* ===========================
   MODAL
=========================== */

.modal-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .65);

    backdrop-filter: blur(6px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 1000;

    opacity: 0;

    visibility: hidden;

    transition: .3s;

}


.modal-overlay.active {

    opacity: 1;

    visibility: visible;

}


/* ===========================
   CAIXA DO MODAL
=========================== */

.confirmation-modal {

    position: relative;

    width: 100%;

    max-width: 450px;

    background: #faf8f5;

    border-radius: 30px;

    padding: 50px 40px;

    text-align: center;

    transform: translateY(30px) scale(.95);

    transition: .3s;

    box-shadow:
        0 30px 80px rgba(0,0,0,.25);

}


.modal-overlay.active .confirmation-modal {

    transform: translateY(0) scale(1);

}


/* ===========================
   FECHAR
=========================== */

.modal-close {

    position: absolute;

    top: 15px;

    right: 20px;

    width: 40px;

    height: 40px;

    border: none;

    background: transparent;

    font-size: 30px;

    color: #777;

    cursor: pointer;

}


/* ===========================
   CONTEÚDO
=========================== */

.modal-icon {

    display: block;

    font-size: 40px;

    margin-bottom: 15px;

}


.confirmation-modal h2 {

    font-family: 'Cormorant Garamond', serif;

    font-size: 40px;

    font-weight: 500;

    margin-bottom: 15px;

}


.confirmation-modal p {

    color: #666;

    line-height: 1.6;

    margin-bottom: 30px;

}


/* ===========================
   FORMULÁRIO
=========================== */

#phone-form {

    text-align: left;

}


#phone-form label {

    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 500;

}


#phone {

    width: 100%;

    padding: 15px 18px;

    border: 1px solid #ddd;

    border-radius: 12px;

    font-family: 'Poppins', sans-serif;

    font-size: 16px;

    outline: none;

    transition: .3s;

}


#phone:focus {

    border-color: #b99862;

    box-shadow:
        0 0 0 3px rgba(185,152,98,.12);

}


#phone-form .primary-button {

    width: 100%;

    margin-top: 20px;

}


.form-error {

    display: block;

    color: #b44;

    font-size: 13px;

    margin-top: 8px;

    min-height: 18px;

}

/* ===========================
   RESULTADO DO CONVIDADO
=========================== */

.guest-details {

    display: flex;

    justify-content: center;

    gap: 20px;

    margin: 30px 0;

}


.guest-detail {

    min-width: 110px;

    padding: 20px;

    background: white;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.06);

}


.guest-detail > span {

    font-size: 25px;

}


.guest-detail div {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.guest-detail strong {

    font-size: 24px;

    color: #444;

}


.guest-detail small {

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #888;

}


.confirmation-question {

    margin-top: 20px;

}


#confirm-presence {

    width: 100%;

}


@media(max-width: 500px) {

    .guest-details {

        gap: 10px;

    }


    .guest-detail {

        min-width: 100px;

        padding: 15px 10px;

    }

}

.quantity-control {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    margin-top: 8px;

}


.quantity-button {

    width: 34px;

    height: 34px;

    border: 1px solid #b99862;

    border-radius: 50%;

    background: transparent;

    color: #b99862;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.2s ease;

}


.quantity-button:hover {

    background: #b99862;

    color: white;

}


.quantity-button:active {

    transform: scale(0.92);

}


.quantity-control span {

    min-width: 25px;

    text-align: center;

    font-size: 18px;

    font-weight: 500;

}

/* ===========================
   MODAL DE PRESENTES
=========================== */

.gifts-modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(35, 30, 25, 0.72);

    backdrop-filter: blur(4px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

}


.gifts-modal-overlay.active {

    opacity: 1;

    visibility: visible;

}


/* ===========================
   CAIXA
=========================== */

.gifts-modal {

    position: relative;

    width: min(1100px, 100%);

    max-height: 90vh;

    background: #faf8f5;

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.28);

    transform:
        translateY(25px)
        scale(0.98);

    transition:
        transform 0.3s ease;

}


.gifts-modal-overlay.active .gifts-modal {

    transform:
        translateY(0)
        scale(1);

}


/* ===========================
   BOTÃO FECHAR
=========================== */

.gifts-modal-close {

    position: absolute;

    top: 15px;

    right: 18px;

    z-index: 20;

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);

    color: #8d7655;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        background 0.2s ease;

}


.gifts-modal-close:hover {

    transform: rotate(90deg);

    background: white;

}


/* ===========================
   CONTEÚDO
=========================== */

#gifts-content {

    max-height: 90vh;

    overflow-y: auto;

    padding: 45px 30px 35px;

}


/* Barra de rolagem */

#gifts-content::-webkit-scrollbar {

    width: 7px;

}


#gifts-content::-webkit-scrollbar-thumb {

    background: #c8b18a;

    border-radius: 10px;

}


/* ===========================
   TÍTULO DO MODAL
=========================== */

.gifts-modal-title {

    text-align: center;

    margin-bottom: 30px;

}


.gifts-modal-title .script {

    font-family:
        'Great Vibes',
        cursive;

    font-size: 36px;

    color: #b99862;

}


.gifts-modal-title h2 {

    margin-top: 5px;

    font-family:
        'Cormorant Garamond',
        serif;

    font-size: 38px;

    font-weight: 500;

}


.gifts-modal-title p {

    max-width: 650px;

    margin:
        10px auto 0;

    color: #777;

    font-size: 14px;

    line-height: 1.7;

}


/* ===========================
   CELULAR
=========================== */

@media (max-width: 700px) {

    .gifts-modal-overlay {

        padding: 10px;

    }


    .gifts-modal {

        max-height: 94vh;

        border-radius: 18px;

    }


    #gifts-content {

        padding:
            40px 15px 25px;

    }


    .gifts-modal-title .script {

        font-size: 30px;

    }


    .gifts-modal-title h2 {

        font-size: 31px;

    }

}

/* ===========================
   MODAL DO PRESENTE
=========================== */

.gift-payment-modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(35, 30, 25, 0.72);

    backdrop-filter: blur(5px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

}


.gift-payment-modal-overlay.active {

    opacity: 1;

    visibility: visible;

}


.gift-payment-modal {

    position: relative;

    width: min(450px, 100%);

    background: #faf8f5;

    border-radius: 22px;

    padding: 45px 30px 35px;

    text-align: center;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.28);

    transform: translateY(20px) scale(0.97);

    transition:
        transform 0.3s ease;

}


.gift-payment-modal-overlay.active
.gift-payment-modal {

    transform: translateY(0) scale(1);

}


.gift-payment-close {

    position: absolute;

    top: 15px;

    right: 18px;

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 50%;

    background: white;

    color: #8d7655;

    font-size: 27px;

    cursor: pointer;

}


.gift-payment-icon {

    display: block;

    font-size: 42px;

    margin-bottom: 10px;

}


.gift-payment-content h2 {

    font-family:
        'Cormorant Garamond',
        serif;

    font-size: 32px;

    font-weight: 500;

    margin-bottom: 12px;

}


.gift-payment-content p {

    color: #777;

    line-height: 1.6;

    margin-bottom: 20px;

}


.gift-payment-price {

    display: block;

    font-family:
        'Cormorant Garamond',
        serif;

    font-size: 32px;

    color: #b99862;

    margin-bottom: 25px;

}

#pix-qrcode {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 15px auto;
}