/* ========================================
   RESET E CONFIGURAÇÕES BÁSICAS
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores do Tema Princesas */
    --color-primary: #ff9ed2;
    --color-secondary: #c494ff;
    --color-accent: #ffd700;
    --color-light-pink: #ffe4f3;
    --color-lavender: #e5d4ff;
    --color-white: #ffffff;
    --color-dark: #5a4570;
    --color-text: #6b5b7a;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #ff9ed2 0%, #ffc4e8 100%);
    --gradient-secondary: linear-gradient(135deg, #c494ff 0%, #e5d4ff 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    --gradient-bg: linear-gradient(180deg, #ffe4f3 0%, #e5d4ff 50%, #ffc4e8 100%);
    
    /* Fontes */
    --font-title: 'Pacifico', cursive;
    --font-body: 'Poppins', sans-serif;
    
    /* Sombras */
    --shadow-soft: 0 4px 15px rgba(255, 158, 210, 0.2);
    --shadow-medium: 0 8px 25px rgba(196, 148, 255, 0.3);
    --shadow-strong: 0 12px 35px rgba(255, 158, 210, 0.4);
}

body {
    font-family: var(--font-body);
    background: var(--gradient-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ELEMENTOS DECORATIVOS DE FUNDO
   ======================================== */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    font-size: 20px;
    animation: float 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

.crown-decoration {
    font-size: 80px;
    animation: bounce 2s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: var(--shadow-strong);
    max-width: 600px;
    border: 3px solid var(--color-accent);
    position: relative;
}

.hero-content::before,
.hero-content::after {
    content: '✨';
    position: absolute;
    font-size: 40px;
    animation: twinkle 1.5s ease-in-out infinite;
}

.hero-content::before {
    top: -20px;
    left: -20px;
}

.hero-content::after {
    bottom: -20px;
    right: -20px;
    animation-delay: 0.75s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.title-wrapper {
    margin-bottom: 30px;
}

.main-title {
    font-family: var(--font-title);
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 158, 210, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--color-secondary);
    font-weight: 300;
    margin-bottom: 20px;
}

.age-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--gradient-gold);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    border: 5px solid var(--color-white);
    margin: 20px auto;
}

.age-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1;
}

.age-text {
    font-size: 1.2rem;
    color: var(--color-dark);
    font-weight: 600;
}

.divider {
    font-size: 2rem;
    margin: 30px 0;
}

.invitation-text {
    font-size: 1.3rem;
    color: var(--color-dark);
    font-weight: 400;
}

.castle-decoration {
    font-size: 60px;
    margin-top: 30px;
    animation: sway 3s ease-in-out infinite;
}

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

/* ========================================
   EVENT DETAILS SECTION
   ======================================== */
.event-details {
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-dark);
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.detail-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: var(--color-primary);
}

.detail-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.detail-card h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-card p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 5px;
}

.detail-sub {
    font-size: 0.9rem;
    color: var(--color-secondary);
    font-style: italic;
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-bottom: 30px;
    border: 4px solid var(--color-white);
}

.map-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--gradient-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-map:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.btn-waze {
    background: var(--gradient-secondary);
}

/* ========================================
   RSVP SECTION
   ======================================== */
.rsvp-section {
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.rsvp-card {
    background: var(--color-white);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-strong);
    border: 3px solid var(--color-primary);
}

.rsvp-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 40px;
    line-height: 1.8;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px 20px;
    border: 2px solid var(--color-light-pink);
    border-radius: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 158, 210, 0.1);
}

.form-group small {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-style: italic;
}

.companion-field {
    margin-bottom: 15px;
}

.companion-name-input {
    width: 100%;
}

#companionsNamesContainer {
    animation: fadeIn 0.5s ease;
}

#companionsNamesContainer .form-group label {
    color: var(--color-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.btn-submit {
    padding: 18px 40px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-submit:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.btn-submit:active {
    transform: scale(0.98);
}

.success-message,
.error-message {
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    margin-top: 20px;
}

.success-message {
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
    border: 2px solid #5fa777;
}

.success-message i {
    font-size: 3rem;
    color: #2d6a4f;
    margin-bottom: 15px;
}

.success-message h3 {
    color: #2d6a4f;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.success-message p {
    color: #52796f;
    margin-bottom: 20px;
}

.btn-new-guest {
    padding: 15px 35px;
    background: var(--gradient-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-new-guest:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.btn-new-guest:active {
    transform: scale(0.98);
}

.error-message {
    background: linear-gradient(135deg, #ffcccb 0%, #ffb3ba 100%);
    border: 2px solid #d9534f;
}

.error-message i {
    font-size: 3rem;
    color: #c0392b;
    margin-bottom: 15px;
}

.error-message h3 {
    color: #c0392b;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.error-message p {
    color: #e74c3c;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 2;
}

.footer-text {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-decoration {
    font-size: 1.5rem;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .age-badge {
        width: 120px;
        height: 120px;
    }
    
    .age-number {
        font-size: 3rem;
    }
    
    .age-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 40px 25px;
    }
    
    .rsvp-card {
        padding: 30px 20px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .map-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-map {
        justify-content: center;
    }
    
    .crown-decoration {
        font-size: 60px;
    }
    
    .castle-decoration {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .invitation-text {
        font-size: 1.1rem;
    }
    
    .detail-card {
        padding: 30px 20px;
    }
}