/* ============================================
   HELENA BIRTHDAY - BLUEY THEME
   Aniversário de 9 Anos
   ============================================ */

:root {
    /* Cores do Bluey */
    --bluey-blue: #3b9edb;
    --bluey-light-blue: #5abcf0;
    --bluey-orange: #f89540;
    --bluey-red: #ea5455;
    --bluey-yellow: #feca57;
    
    /* Cores de fundo */
    --bg-primary: #f0f8ff;
    --bg-white: #ffffff;
    
    /* Cores de texto */
    --text-primary: #1e3a5f;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    /* Bordas */
    --border-color: #d1e3f0;
    --border-radius: 16px;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(59, 158, 219, 0.1);
    --shadow-md: 0 4px 16px rgba(59, 158, 219, 0.15);
    --shadow-lg: 0 8px 32px rgba(59, 158, 219, 0.25);
    --shadow-playful: 0 8px 32px -8px rgba(59, 158, 219, 0.3);
}

/* ============================================
   RESET E BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bluey-blue) 0%, var(--bluey-light-blue) 100%);
    padding: 60px 20px 80px;
    text-align: center;
    color: white;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 150px;
    opacity: 0.3;
}

.header-image-container {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto 30px;
    animation: bounceIn 1s ease-out;
}

.header-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.8s ease-out 0.3s both;
}

.header p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.8s ease-out 0.5s both;
}

/* ============================================
   CONTAINER E LAYOUT
   ============================================ */

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

.section {
    margin: 60px 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 32px;
    margin-bottom: 24px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon {
    font-size: 1.75rem;
}

/* ============================================
   INFORMAÇÕES DA FESTA
   ============================================ */

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.info-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.info-content p {
    color: var(--text-secondary);
}

.highlight-box {
    background: linear-gradient(135deg, rgba(254, 202, 87, 0.2) 0%, rgba(248, 149, 64, 0.2) 100%);
    border-left: 4px solid var(--bluey-yellow);
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
}

.highlight-box p {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.program-list {
    list-style: none;
}

.program-list li {
    padding: 8px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.program-time {
    font-weight: 700;
    color: var(--bluey-blue);
    min-width: 80px;
}

.features-grid {
    background: linear-gradient(135deg, rgba(59, 158, 219, 0.1) 0%, rgba(90, 188, 240, 0.1) 100%);
    padding: 24px;
    border-radius: 12px;
    border: 2px solid rgba(59, 158, 219, 0.2);
    margin-top: 24px;
}

.features-grid h3 {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    list-style: none;
}

.features-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ============================================
   REGRAS DO PARQUE
   ============================================ */

.rules-card {
    border: 2px solid rgba(234, 84, 85, 0.3);
}

.rules-card .card-header {
    background: rgba(234, 84, 85, 0.1);
    margin: -32px -32px 24px -32px;
    padding: 24px 32px;
    border-bottom: 2px solid rgba(234, 84, 85, 0.3);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.rule-item {
    background: white;
    border-left: 4px solid;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.rule-item.baby {
    border-color: var(--bluey-red);
    background: rgba(234, 84, 85, 0.05);
}

.rule-item.kid {
    border-color: var(--bluey-orange);
    background: rgba(248, 149, 64, 0.05);
}

.rule-item.teen {
    border-color: var(--bluey-blue);
    background: rgba(59, 158, 219, 0.05);
}

.rule-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rule-item ul {
    list-style: none;
    padding-left: 20px;
}

.rule-item ul li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.rule-item ul li::before {
    content: '•';
    margin-right: 8px;
    font-weight: bold;
}

.important-notes {
    background: rgba(254, 202, 87, 0.1);
    border: 2px solid rgba(254, 202, 87, 0.3);
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
}

.important-notes h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.important-notes ul {
    list-style: none;
}

.important-notes ul li {
    padding: 6px 0;
    color: var(--text-secondary);
}

/* ============================================
   FORMULÁRIO
   ============================================ */

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--bluey-blue);
    box-shadow: 0 0 0 3px rgba(59, 158, 219, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.radio-group {
    display: flex;
    gap: 24px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option label {
    cursor: pointer;
    font-weight: 500;
}

/* ============================================
   CHILDREN SECTION
   ============================================ */

.child-item {
    background: rgba(59, 158, 219, 0.05);
    border: 2px solid rgba(59, 158, 219, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
}

.child-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.child-header h4 {
    font-weight: 700;
    color: var(--text-primary);
}

.btn-remove {
    background: none;
    border: none;
    color: var(--bluey-red);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 1.25rem;
}

.btn-remove:hover {
    background: rgba(234, 84, 85, 0.1);
}

.age-rule {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.age-rule.baby-rule {
    background: rgba(234, 84, 85, 0.1);
    color: var(--bluey-red);
}

.age-rule.kid-rule {
    background: rgba(248, 149, 64, 0.1);
    color: var(--bluey-orange);
}

.age-rule.teen-rule {
    background: rgba(59, 158, 219, 0.1);
    color: var(--bluey-blue);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bluey-orange) 0%, var(--bluey-yellow) 100%);
    color: white;
    box-shadow: var(--shadow-playful);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -8px rgba(248, 149, 64, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: white;
    border: 2px solid var(--bluey-blue);
    color: var(--bluey-blue);
}

.btn-outline:hover {
    background: rgba(59, 158, 219, 0.1);
}

.btn-add {
    width: 100%;
    background: white;
    border: 2px dashed var(--bluey-blue);
    color: var(--bluey-blue);
    padding: 12px;
}

.btn-add:hover {
    background: rgba(59, 158, 219, 0.05);
    border-style: solid;
}

.btn-full {
    width: 100%;
    padding: 18px;
    font-size: 1.125rem;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.success-card {
    background: linear-gradient(135deg, rgba(59, 158, 219, 0.1) 0%, rgba(90, 188, 240, 0.1) 50%, rgba(254, 202, 87, 0.1) 100%);
    border: 3px solid var(--bluey-blue);
    text-align: center;
    padding: 48px 32px;
    animation: slideIn 0.5s ease-out;
}

.success-icon {
    font-size: 4rem;
    animation: bounce 1s infinite;
}

.success-card h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 20px 0;
}

.success-card p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.success-details {
    background: rgba(255, 255, 255, 0.8);
    padding: 24px;
    border-radius: 12px;
    text-align: left;
    margin-top: 24px;
}

.success-details p {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1rem;
}

.success-details ul {
    list-style: none;
}

.success-details ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   CALL TO ACTIONS
   ============================================ */

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.cta-buttons .btn {
    flex: 1;
    min-width: 200px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    position: relative;
    background: white;
    border-top: 4px solid rgba(59, 158, 219, 0.2);
    padding: 60px 20px;
    margin-top: 80px;
    overflow: hidden;
}

.footer-image-container {
    text-align: center;
    margin-bottom: 40px;
}

.footer-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.footer-address {
    background: linear-gradient(135deg, rgba(59, 158, 219, 0.05) 0%, transparent 100%);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.footer-address h4 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.footer-address p {
    color: var(--text-secondary);
    margin: 4px 0;
}

.footer-credits {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Animação float para imagem do footer */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: slideIn 0.5s ease-out;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .header {
        padding: 40px 20px 60px;
    }
    
    .header-image {
        max-width: 280px;
    }
    
    .footer-image {
        max-width: 220px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 20px 50px;
    }
    
    .header-image {
        max-width: 240px;
    }
    
    .footer-image {
        max-width: 180px;
    }
    
    .card {
        padding: 20px;
    }
    
    .section {
        margin: 40px 0;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden {
    display: none !important;
}

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

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.error-message {
    background: rgba(234, 84, 85, 0.1);
    color: var(--bluey-red);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid var(--bluey-red);
    margin-bottom: 20px;
    font-size: 0.95rem;
}