/* INSTRUÇÃO IMPORTANTE:
    Para as novas animações funcionarem, adicione a linha abaixo dentro da tag <head> do seu arquivo index.html:
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
*/

:root {
    --primary-color: #588157;
    --secondary-color: #DAD7CD;
    --dark-green: #344E41;
    --accent-color: #A3B18A;
    --background-light: #F2F4E5;
    --text-dark: #2C3A2D;
    --font-display: 'Pacifico', cursive;
    --font-body: 'Inter', sans-serif;
    --toast-success: #4CAF50;
    --toast-error: #F44336;
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--background-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-green);
}

.button {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(0);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.primary-button {
    background: linear-gradient(45deg, var(--primary-color), var(--dark-green));
    color: white;
}

.secondary-button {
    background-color: var(--glass-bg);
    color: var(--dark-green);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--dark-green);
}

section {
    padding: 5rem 1rem;
    max-width: 900px;
    margin: 0 auto;
}

/* EFEITO AURORA NO HERO */
@keyframes aurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section {
    background: linear-gradient(-45deg, #A3B18A, #8a9a7a, #588157, #344E41);
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
    color: white;
    text-align: center;
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 2rem);
    margin-top: 0;
    font-family: var(--font-body);
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.hero-details {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 600px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ANIMAÇÕES ATUALIZADAS */
@keyframes random-float-1 {
    0% { transform: translate(5vw, 5vh) rotate(0deg); }
    25% { transform: translate(80vw, -10vh) rotate(10deg); }
    50% { transform: translate(40vw, 80vh) rotate(-5deg); }
    75% { transform: translate(-10vw, 50vh) rotate(5deg); }
    100% { transform: translate(5vw, 5vh) rotate(0deg); }
}

@keyframes random-float-2 {
    0% { transform: translate(80vw, 80vh) rotate(0deg); }
    25% { transform: translate(10vw, 60vh) rotate(-10deg); }
    50% { transform: translate(50vw, 5vh) rotate(5deg); }
    75% { transform: translate(90vw, 40vh) rotate(-5deg); }
    100% { transform: translate(80vw, 80vh) rotate(0deg); }
}

@keyframes dance {
    0%, 100% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(0) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

.character {
    position: absolute;
    z-index: 5;
    user-select: none;
    pointer-events: none;
    opacity: 0.7;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.character .emoji {
    display: inline-block; /* Necessário para a animação de dança funcionar */
}

.lion {
    font-size: 5rem;
    top: 0;
    left: 0;
    animation: random-float-1 25s ease-in-out infinite;
}
.monkey {
    font-size: 4rem;
    top: 0;
    left: 0;
    animation: random-float-2 30s ease-in-out infinite;
}

/* ANIMAÇÃO DE DANÇA CORRIGIDA */
.character .emoji.dancing {
    animation: dance 1.5s infinite ease-in-out;
}

.animation-leaf {
    position: absolute;
    font-size: 3rem;
    animation: sway 5s infinite ease-in-out;
    opacity: 0.5;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.leaf-1 { top: 20%; right: 10%; }
.leaf-2 { top: 50%; left: 15%; animation-delay: 1s; }
.leaf-3 { bottom: 10%; left: 5%; animation-delay: 2s; }

.details-section .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

/* EFEITO GLASSMORPHISM NOS CARDS */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

.card-icon-circle {
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-icon-circle .icon {
    width: 30px;
    height: 30px;
}

.card-title {
    font-size: 1.8rem;
    margin-top: 0;
}

/* NOVA SEÇÃO: Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-item {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

.map-section {
    text-align: center;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.rsvp-section {
    text-align: center;
}

.counters-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.counter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary-color);
}

.counter-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.rsvp-form, .message-form {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ATUALIZADO: Desativa zoom em celulares */
.form-group input:not([type="radio"]),
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background-color: rgba(255,255,255,0.7);
    font-size: 16px; /* Impede o zoom automático em iOS */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.3);
}

.status-group {
    margin-bottom: 1.5rem;
}

.status-group .status-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.status-group .radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.status-group input[type="radio"] {
    margin-right: 0.5rem;
}

.status-group label {
    margin: 0;
    font-weight: normal;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group label {
    font-size: 0.9rem;
    font-weight: normal;
}

.confirmed-list-container, .messages-list-container {
    margin-top: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.confirmed-list-container h3, .messages-list-container h3 {
    font-size: 2rem;
    text-align: center;
}

.confirmed-list, .messages-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.confirmed-list li {
    background-color: var(--secondary-color);
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.confirmed-list-icon {
    font-size: 1.5rem;
}

.profile-icon-selector {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.profile-icon-selector input[type="radio"] {
    display: none;
}
.profile-icon-selector label {
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: grayscale(80%);
    opacity: 0.6;
}
.profile-icon-selector label:hover {
    transform: scale(1.2);
    filter: grayscale(0%);
    opacity: 1;
}
.profile-icon-selector input[type="radio"]:checked + label {
    transform: scale(1.2) rotate(5deg);
    filter: grayscale(0%);
    opacity: 1;
}

.message-card {
    background-color: #f7f7e8;
    border: 1px solid #dcdcdc;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.message-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.message-icon {
    font-size: 2rem;
}
.message-card .message-author {
    color: var(--dark-green);
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 0;
}

.message-card .message-text {
    margin-top: 0.5rem;
    white-space: pre-wrap;
    padding-left: 3rem;
}

.faq-section {
    background-color: var(--accent-color);
    border-radius: 20px;
    padding: 2.5rem;
}

.faq-item {
    background-color: rgba(255,255,255,0.7);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-question {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* FOOTER REDESENHADO */
.footer-section {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--dark-green);
    color: var(--background-light);
    border-top: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23588157" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-text {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
}

.share-button {
    margin-top: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.share-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.toast-message {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    padding: 16px;
    position: fixed;
    z-index: 1001;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: all 0.5s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.toast-message.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.toast-message.success {
    background-color: var(--toast-success);
}

.toast-message.error {
    background-color: var(--toast-error);
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.animate-on-scroll.in-view {
    opacity: 1;
}
.animate-on-scroll.fade-in-up {
    transform: translateY(50px);
}
.animate-on-scroll.fade-in-up.in-view {
    transform: translateY(0);
}

.countdown-container {
    background-color: var(--dark-green);
    color: var(--background-light);
    text-align: center;
    padding: 1.5rem 1rem;
}

.countdown-text {
    font-size: 1.25rem;
    margin: 0;
    font-family: var(--font-body);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    color: var(--secondary-color);
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.music-player-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.music-player-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}
.modal-content {
    background-color: #fefefe;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}
.modal-badge-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0;
}
.modal-badge-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}
.modal-share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-message-content {
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.modal-message-content .message-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: transparent;
    border-radius: 50%;
    z-index: 999;
    pointer-events: none;
    animation: fall linear forwards;
}
@keyframes fall {
    from { transform: translateY(0) rotate(0); opacity: 1; }
    to { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/*
  1. Correção de Alinhamento na Lista de Confirmados
  ====================================================
  Isso fará com que o nome fique à esquerda e o botão à direita,
  sempre na mesma posição, independente do tamanho do nome.
*/
.confirmed-list li {
    display: flex;
    justify-content: space-between; /* ESSA É A MUDANÇA PRINCIPAL */
    align-items: center;
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.5rem;
    background-color: var(--secondary-color);
    border-radius: 12px;
    font-weight: 500;
}

/*
  2. Ajuste de Cores do Botão para o Tema Verde
  ====================================================
  Isso faz o botão usar as cores --primary-color e --dark-green
  que você definiu, em vez do roxo/azul anterior.
*/
.badge-button {
    background: linear-gradient(45deg, var(--primary-color), var(--dark-green));
    color: white;
    box-shadow: 0 4px 15px rgba(88, 129, 87, 0.35); /* Sombra com tom de verde */
    
    /* Demais propriedades que você já tinha */
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    outline: none;
    background-size: 200% auto;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-position 0.4s ease;
}

.badge-button:hover {
    transform: translateY(-4px) scale(1.05);
    background-position: right center;
    box-shadow: 0 6px 25px rgba(52, 78, 65, 0.4); /* Sombra com tom de verde escuro */
}

.badge-button:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 2px 8px rgba(52, 78, 65, 0.5);
}

/* 3. Estilo Específico para o Botão de Ícone (Troféu)
  ====================================================
  Necessário para que o botão de troféu fique redondo e bem formatado.
*/
.badge-icon-button {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--primary-color); /* Fundo sólido para destaque */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.badge-icon-button:hover {
    background: var(--dark-green);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

