/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: transparent;
    min-height: 100vh;
    padding: 10px;
    position: relative;
    overflow-x: hidden;
    color: #2c3e50;
    font-size: 14px;
}

@media (min-width: 768px) {
    body {
        padding: 20px;
        font-size: 16px;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('garden-background.jpg') center center / cover no-repeat;
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
    filter: blur(5px);
    z-index: -2;
    transform: scale(1);
}

@media (min-width: 768px) {
    body::before {
        background-attachment: fixed;
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    z-index: -1;
}

/* Decorações minimalistas */
.leaf-decoration {
    position: fixed;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 C35 15, 25 35, 35 55 C45 75, 55 75, 65 55 C75 35, 65 15, 50 10 Z" fill="%23e8f5e8" opacity="0.3"/><path d="M50 10 L50 80" stroke="%23c8e6c9" stroke-width="1" opacity="0.4"/></svg>') no-repeat center;
    background-size: contain;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.leaf-decoration.top-left {
    top: 8%;
    left: 3%;
    transform: rotate(-10deg);
    animation-delay: 0s;
}

.leaf-decoration.top-right {
    top: 12%;
    right: 5%;
    transform: rotate(15deg);
    animation-delay: 3s;
}

.leaf-decoration.bottom-left {
    bottom: 15%;
    left: 2%;
    transform: rotate(20deg);
    animation-delay: 6s;
}

.leaf-decoration.bottom-right {
    bottom: 8%;
    right: 3%;
    transform: rotate(-15deg);
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); opacity: 0.3; }
    50% { transform: translateY(-8px) rotate(var(--rotation, 0deg)); opacity: 0.5; }
}

/* Animações */
@keyframes fallDown {
    0% {
        transform: translateY(-80px) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.9;
    }
    20% {
        transform: translateY(20vh) translateX(15px) rotate(72deg);
    }
    40% {
        transform: translateY(40vh) translateX(-10px) rotate(144deg);
    }
    60% {
        transform: translateY(60vh) translateX(12px) rotate(216deg);
    }
    80% {
        transform: translateY(80vh) translateX(-8px) rotate(288deg);
        opacity: 0.8;
    }
    95% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(105vh) translateX(5px) rotate(360deg);
        opacity: 0;
    }
}

.falling-leaf {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    will-change: transform, opacity;
}

/* Container principal */
.container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Cartão do convite */
.invitation-card {
    background: rgba(255, 255, 255, 0.0);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(232, 245, 232, 0.4);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .invitation-card {
        padding: 50px;
    }
}

.invitation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(200, 230, 201, 0.3), transparent);
    z-index: 1;
}

.invitation-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(200, 230, 201, 0.3), transparent);
    z-index: 1;
}

/* Cabeçalho */
.header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

@media (min-width: 768px) {
    .header {
        margin-bottom: 50px;
    }
}

.floral-border {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 230, 201, 0.6), rgba(169, 169, 169, 0.3), rgba(200, 230, 201, 0.6), transparent);
    margin: 20px auto;
    width: 150px;
    border-radius: 1px;
}

.couple-names {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #fffbc6;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 15px 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.473);
}

@media (min-width: 768px) {
    .couple-names {
        font-size: 3rem;
        letter-spacing: 2px;
        margin: 25px 0;
    }
}

/* Conteúdo */
.content {
    line-height: 1.7;
}

.greeting {
    text-align: center;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .greeting {
        margin-bottom: 40px;
    }
}

.guest-name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #242424;
    font-weight: 500;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .guest-name {
        font-size: 2.2rem;
    }
}

.invitation-text {
    background: rgba(248, 249, 250, 0.8);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 2px solid rgba(200, 230, 201, 0.5);
    font-size: 0.9rem;
    color: #1a252f;
    text-align: center;
    line-height: 1.5;
    font-weight: 400;
}

@media (min-width: 768px) {
    .invitation-text {
        padding: 35px;
        margin-bottom: 40px;
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* Contador regressivo minimalista */
.countdown-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(200, 230, 201, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
}

@media (min-width: 768px) {
    .countdown-section {
        padding: 30px 25px;
        border-radius: 12px;
        margin-bottom: 35px;
    }
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(129, 199, 132, 0.4) 50%, 
        transparent 100%);
}

.countdown-title {
    font-size: 0.8rem;
    color: #1a252f;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    font-family: 'Poppins', sans-serif;
}

@media (min-width: 768px) {
    .countdown-title {
        font-size: 0.85rem;
        margin-bottom: 25px;
    }
}

.countdown-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

@media (min-width: 768px) {
    .countdown-timer {
        gap: 15px;
        margin-top: 10px;
    }
}

.countdown-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .countdown-row {
        gap: 30px;
    }
}

.countdown-item {
    text-align: center;
    width: 65px;
    height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@media (min-width: 768px) {
    .countdown-item {
        width: 80px;
        height: 80px;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.countdown-item:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5));
    border-color: rgba(129, 199, 132, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .countdown-item:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
}



.countdown-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a252f;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .countdown-number {
        font-size: 1.8rem;
        margin-bottom: 3px;
        font-weight: 700;
    }
}

.countdown-label {
    font-size: 0.55rem;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    opacity: 0.8;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .countdown-label {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
}

/* Detalhes do casamento */
.wedding-details {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(200, 230, 201, 0.3);
}

@media (min-width: 768px) {
    .wedding-details {
        padding: 30px;
        margin-bottom: 35px;
    }
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .detail-item {
        margin-bottom: 20px;
        font-size: 1rem;
    }
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item .icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
    margin-top: 2px;
    color: #7f8c8d;
}

.detail-item strong {
    color: #34495e;
    margin-right: 8px;
    font-weight: 500;
}

.detail-item div {
    line-height: 1.6;
}

/* Seção de resposta */
.response-section {
    background: rgba(248, 249, 250, 0.8);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(200, 230, 201, 0.3);
}

@media (min-width: 768px) {
    .response-section {
        padding: 35px;
    }
}

.response-section h3 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .response-section h3 {
        margin-bottom: 30px;
        font-size: 1.3rem;
    }
}

.response-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .response-buttons {
        gap: 20px;
        margin-bottom: 35px;
    }
}

.btn {
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    max-width: 250px;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .btn {
        padding: 14px 30px;
        font-size: 0.95rem;
        width: auto;
        min-width: 180px;
    }
}

.btn-confirm {
    background: #ffffff;
    color: #27ae60;
    border-color: #27ae60;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.15);
}

.btn-confirm:hover {
    background: #27ae60;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

.btn-decline {
    background: #ffffff;
    color: #7f8c8d;
    border-color: #bdc3c7;
    box-shadow: 0 2px 8px rgba(127, 140, 141, 0.1);
}

.btn-decline:hover {
    background: #ecf0f1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(127, 140, 141, 0.15);
}

.btn-send {
    background: #34495e;
    color: white;
    border-color: #34495e;
    box-shadow: 0 2px 8px rgba(52, 73, 94, 0.2);
    margin-top: 20px;
}

.btn-send:hover {
    background: #2c3e50;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.3);
}

/* Seção de mensagem */
.message-section {
    margin-top: 30px;
}

.message-section label {
    display: block;
    margin-bottom: 12px;
    color: #34495e;
    font-weight: 400;
    text-align: left;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

#guestMessage {
    width: 100%;
    min-height: 100px;
    padding: 18px;
    border: 1px solid rgba(200, 230, 201, 0.5);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    line-height: 1.6;
}

#guestMessage:focus {
    outline: none;
    border-color: rgba(200, 230, 201, 0.8);
    box-shadow: 0 0 0 3px rgba(200, 230, 201, 0.1);
}

/* Confirmação de resposta */
.response-confirmation {
    background: rgba(248, 249, 250, 0.9);
    padding: 25px;
    border-radius: 6px;
    margin-top: 25px;
    border: 1px solid rgba(200, 230, 201, 0.5);
}

.confirmation-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #34495e;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.confirmation-message .icon {
    font-size: 1.5rem;
    color: #27ae60;
}

/* Responsividade */
.response-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

@media (min-width: 768px) {
    .response-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}