:root {
    --gold: #d4af37;
    --gold-light: #f5deb3;
    --red-pink: #b84160;
    --red-pink-light: #d16b86;
    --bg-color: #fcf4eb;
    --text-dark: #3e322a;
    
    --font-cursive: 'Dancing Script', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-color: #ebdcd0;
    font-family: var(--font-sans);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    position: relative;
}

/* Flores e Folhas de Fundo */
.bg-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.top-left-flowers {
    top: 30px;
    left: -40px;
    width: 230px;
    height: 230px;
    transform: rotate(10deg);
}

.top-right-flowers {
    top: 120px;
    right: -40px;
    width: 180px;
    height: 180px;
}

.mid-left-flowers {
    top: 40%;
    left: -30px;
    width: 160px;
    height: 160px;
}

.bottom-left-flowers {
    bottom: 22%;
    left: -50px;
    width: 280px;
    height: 280px;
}

.bottom-right-flowers {
    bottom: 8%;
    right: -30px;
    width: 230px;
    height: 230px;
}

/* Pétalas Flutuando */
.petal {
    position: fixed;
    width: 30px;
    height: 30px;
    z-index: 5;
}

.petal.p-1 {
    top: 15%;
    left: 12%;
    animation: floatPetal1 12s ease-in-out infinite alternate;
}

.petal.p-2 {
    top: 55%;
    right: 10%;
    animation: floatPetal2 16s ease-in-out infinite alternate;
}

.petal.p-3 {
    top: 80%;
    left: 8%;
    animation: floatPetal1 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatPetal1 {
    0% { transform: translateY(0) rotate(0deg) scale(0.9); }
    100% { transform: translateY(-40px) translateX(25px) rotate(45deg) scale(1.1); }
}

@keyframes floatPetal2 {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(-50px) translateX(-30px) rotate(-60deg) scale(0.9); }
}

/* O Flyer do Convite */
.invitation-container {
    background: var(--bg-color);
    background-image: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at bottom left, rgba(184, 65, 96, 0.05) 0%, transparent 40%);
    width: 100%;
    max-width: 850px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    border-radius: 20px;
    padding-bottom: 40px;
    z-index: 2;
}

/* Textos Globais */
.text-red { color: var(--red-pink); }
.cursive-title { font-family: var(--font-cursive); font-size: 3.8rem; line-height: 1.2; text-shadow: 1px 1px 3px rgba(0,0,0,0.05); }
.cursive-title.sm { font-size: 2.2rem; }

/* Header */
.invite-header {
    position: relative;
    padding: 45px 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 35px;
}

.text-left { width: 100%; text-align: center; }
.intro-text { font-size: 1.1rem; line-height: 1.6; margin-top: 15px; font-weight: 400; color: #5a4b41; }
.age-highlight { font-family: var(--font-cursive); font-size: 3.5rem; color: var(--red-pink); display: block; margin-top: 10px; text-shadow: 1px 1px 2px rgba(184, 65, 96, 0.15); }

/* FOTO PRINCIPAL */
.main-photo-fade-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.main-photo-faded {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    box-shadow: none;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

.text-right {
    width: 100%;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 400;
    color: #5a4b41;
    line-height: 1.7;
    padding: 0 25px;
    font-style: italic;
    border-left: 3px solid var(--gold);
    border-right: 3px solid var(--gold);
}

/* CARROSSEL DE FOTOS LADO A LADO */
.photo-slider-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    margin-top: 40px;
}

.photo-slider-container::before,
.photo-slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}
.photo-slider-container::before { left: 0; background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%); }
.photo-slider-container::after { right: 0; background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%); }

.photo-slider-track {
    display: flex;
    width: calc(220px * 12);
    gap: 20px;
    animation: autoScroll 35s linear infinite;
    will-change: transform;
}

.slider-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    opacity: 1;
    transition: transform 0.5s ease;
}

.slider-img:hover {
    transform: scale(1.05);
}

@keyframes autoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-220px * 6)); }
}

/* Corpo Central */
.invite-body {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px 20px;
}

.main-invite-text { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; color: var(--gold); line-height: 1.5; }
.big-71 { font-size: 4.5rem; font-weight: 700; color: var(--red-pink); display: inline-block; margin: 10px 0; letter-spacing: 2px; text-shadow: 2px 2px 5px rgba(0,0,0,0.05); }
.cursive-subtitle { font-family: var(--font-cursive); font-size: 3.5rem; color: var(--gold); }

.divider {
    font-size: 1.8rem;
    color: var(--gold);
    margin: 25px 0;
    position: relative;
}
.divider::before, .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
}
.divider::before { left: 10%; transform: translateY(-50%); }
.divider::after { right: 10%; background: linear-gradient(to left, transparent, var(--gold)); transform: translateY(-50%); }

.important-presence { font-size: 1.1rem; font-weight: 500; margin: 15px 0 35px; color: #4a3b32; }

/* Info Boxes */
.info-boxes { 
    display: flex; 
    flex-direction: row; 
    justify-content: center; 
    gap: 10px; 
    margin-bottom: 30px; 
    width: 100%;
}
.info-box { 
    text-align: center; 
    padding: 12px 8px; 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.04); 
    flex: 1;
    max-width: 180px; 
    min-width: 0;
    transition: transform 0.3s; 
    text-decoration: none;
    display: block;
}
.info-box:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.info-box .icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 6px; }
.info-label { font-weight: 600; font-size: 0.75rem; color: #8a7a6f; letter-spacing: 0.5px; }
.info-value { color: var(--red-pink); font-weight: 700; margin-top: 5px; font-size: 0.95rem; line-height: 1.2; }
.message-slider-container {
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
    position: relative;
    margin: 15px 0 30px;
}
.message-slider-container::before,
.message-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 3;
    pointer-events: none;
}
.message-slider-container::before { left: 0; background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%); }
.message-slider-container::after { right: 0; background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%); }

.message-slider-track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: messageScroll 15s linear infinite;
    padding: 5px 15px;
    will-change: transform;
}

.message-slider-track.paused {
    animation-play-state: paused !important;
}

.message-slide-card {
    width: 170px;
    height: 170px;
    background: #fffdea;
    border: 1px solid #f2eacc;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    padding: 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    transform: rotate(var(--rotation, -1.5deg));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    user-select: none;
}
.message-slide-card:hover {
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 5;
}
.message-slide-card:nth-child(even) {
    background: #f0fdf4;
    border-color: #dcfce7;
}
.message-slide-card:nth-child(3n) {
    background: #fef2f2;
    border-color: #fee2e2;
}
.message-slide-card h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a3b32;
    margin: 0 0 6px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    padding-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.message-slide-card p {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    line-height: 1.4;
    color: #555;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    word-break: break-word;
}
.message-slide-card .card-date {
    font-size: 0.65rem;
    color: #a09085;
    text-align: right;
    margin-top: 4px;
}

@keyframes messageScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* RSVP Notice Box */
.rsvp-notice-box {
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
    width: 95%;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.06);
}
.rsvp-notice-box .check-icon { 
    font-size: 1.8rem; 
    color: var(--red-pink); 
    flex-shrink: 0;
}
.rsvp-notice-box p { 
    font-size: 0.95rem; 
    line-height: 1.4; 
    margin: 0;
}
.rsvp-notice-box strong { color: var(--red-pink); font-weight: 700; }

/* Rodapé */
.invite-footer { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 30px 20px; position: relative; z-index: 2; }
.signature-area { text-align: center; }
.signature { font-family: var(--font-cursive); font-size: 4.8rem; margin-top: 0; color: var(--red-pink); text-shadow: 1px 1px 3px rgba(0,0,0,0.05); }

.sticky-note {
    background: #fffdea;
    padding: 25px;
    width: 100%;
    max-width: 280px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    position: relative;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid #f2eacc;
    transform: rotate(-2deg);
}
.sticky-note::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 80px;
    height: 25px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
}
.sticky-note .cursive-title { display: block; margin-top: 15px; font-size: 2.2rem; color: var(--red-pink); }


/* --- SEÇÃO INTERATIVA VERTICAL (NOVO) --- */
.interactive-container {
    max-width: 850px;
    width: 100%;
    margin-top: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.countdown-section {
    background: #fff;
    padding: 15px 12px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.countdown-section h3 { font-family: var(--font-serif); color: var(--gold); font-size: 1.15rem; margin-bottom: 12px; }
.countdown { display: flex; justify-content: center; gap: 6px; flex-wrap: nowrap; }
.time-box {
    background: linear-gradient(135deg, var(--red-pink) 0%, #942b45 100%);
    color: #fff;
    padding: 6px 4px;
    border-radius: 8px;
    min-width: 55px;
    flex: 1;
    max-width: 75px;
    box-shadow: 0 6px 15px rgba(184, 65, 96, 0.2);
}
.time-box span { font-size: 1.25rem; font-weight: 700; display: block; }
.time-box p { font-size: 0.6rem; text-transform: uppercase; margin-top: 3px; opacity: 0.9; }

/* Seções de Formulários */
.interactive-section {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.section-title {
    color: var(--red-pink);
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--gold-light);
    padding-bottom: 10px;
}

.custom-form .form-group { margin-bottom: 20px; }
.custom-form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; color: #555; }
.custom-form input, .custom-form textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 10px; font-family: var(--font-sans); font-size: 1rem; transition: border-color 0.3s;
    background: #fdfdfd;
}
.custom-form input:focus, .custom-form textarea:focus {
    border-color: var(--gold); outline: none; background: #fff;
}

/* Checkbox criança menor de 7 anos */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}
.checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--red-pink);
    cursor: pointer;
}
.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.btn {
    width: 100%; padding: 15px; background: linear-gradient(135deg, var(--gold) 0%, #b39023 100%); color: #fff; border: none; border-radius: 10px; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(212, 175, 55, 0.35); }
.success-msg { color: #2e7d32; text-align: center; margin-top: 15px; font-weight: bold; font-size: 1.1rem; }

/* Áreas de Resultados (Confirmados e Mensagens) */
.confirmed-guests-area, .messages-area {
    margin-top: 35px;
    border-top: 1px dashed var(--gold-light);
    padding-top: 25px;
}

.confirmed-guests-area h4, .messages-area h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-family: var(--font-serif);
    font-size: 1.3rem;
}

.rsvp-board {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.message-board {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

.guest-count-badge {
    background: var(--red-pink);
    color: #fff;
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
    font-family: var(--font-sans);
    font-weight: 600;
    display: inline-block;
}

/* Custom scrollbar para as listas */
.rsvp-board::-webkit-scrollbar, .message-board::-webkit-scrollbar {
    width: 6px;
}
.rsvp-board::-webkit-scrollbar-thumb, .message-board::-webkit-scrollbar-thumb {
    background-color: var(--gold-light);
    border-radius: 10px;
}

/* Items da Lista de Confirmados */
.rsvp-item {
    background: #fdfbf9;
    border: 1px solid #f0e6dd;
    border-left: 4px solid var(--gold);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.rsvp-guest-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.guest-icon {
    font-size: 1.1rem;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-details strong {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.guest-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.child-badge {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.companion-badge {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.presence-badge {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.rsvp-date, .message-time {
    font-size: 0.8rem;
    color: #a09085;
}

/* Removido mural estático */


/* --- ADAPTAÇÃO PARA DESKTOP --- */
@media (min-width: 768px) {
    body { padding: 30px; }
    
    .top-left-flowers { width: 300px; height: 300px; left: 20px; top: 20px; }
    .top-right-flowers { width: 250px; height: 250px; right: 20px; top: 100px; }
    .mid-left-flowers { width: 220px; height: 220px; left: 0; }
    .bottom-left-flowers { width: 350px; height: 350px; left: 10px; bottom: 15%; }
    .bottom-right-flowers { width: 320px; height: 320px; right: 20px; bottom: 8%; }

    .invite-header { flex-direction: column; align-items: center; padding: 50px 40px; }
    .header-content { flex-direction: row; align-items: center; width: 100%; gap: 30px; }
    .text-left { width: 30%; text-align: left; }
    .main-photo-fade-wrapper { width: 40%; max-width: 450px; }
    .text-right { width: 30%; text-align: right; padding: 20px 0; }

    .big-71 { font-size: 5rem; }
    .info-boxes { gap: 30px; }
    .info-box { 
        max-width: 220px; 
        padding: 20px 15px; 
    }
    .info-box .icon { font-size: 2rem; margin-bottom: 10px; }
    .info-label { font-size: 0.85rem; }
    .info-value { font-size: 1.15rem; }
    .invite-footer { flex-direction: row; justify-content: space-between; align-items: flex-end; padding: 20px 60px; }
    
    /* Layout interativo em Grid Lado a Lado no Desktop */
    .interactive-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
    }
    
    .countdown-section {
        grid-column: span 2;
    }
}

/* Efeito de zoom in-place nas fotos do carrossel */
.slider-img {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.slider-img.active-zoom {
    transform: scale(1.18) !important;
    z-index: 99;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    border: 2px solid var(--gold);
}

/* Créditos do Desenvolvedor no Fim do Site */
.developer-credits {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #8a7a6f;
    font-family: var(--font-sans);
    line-height: 1.5;
    opacity: 0.95;
}

.developer-credits p {
    margin: 0;
}

.developer-credits .subtitle {
    font-family: var(--font-cursive);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red-pink);
    margin-top: 4px;
}
