/* ============================================= */
/* ===== GERAL E ESTRUTURA PRINCIPAL ===== */
/* ============================================= */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    color: #d5d5d5;
    background-color: #0a051d;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; font-weight: 600; margin: 0; padding: 0; }
p { font-size: 1.7rem; font-weight: 300; color: #d5d5d5; margin: 0; padding: 0; }
.gold-text { color: #ffdf00; text-shadow: 0 0 5px rgba(255, 223, 0, 0.5); }
.white-text { color: #ffffff; text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); }
.purple-text { color: #b388ff; text-shadow: 0 0 5px rgba(74, 20, 140, 0.5); }
.gold-glow { color: #FFD700 !important; font-weight: 900 !important; text-shadow: 0 2px 16px #ffb347, 0 0 8px #fff2; background: none !important; border: none !important; }

/* ALTERADO: Header estático, sem posição fixa */
#main-header {
    width: 100%;
    height: 85px; /* Altura de exemplo para o header */
    background-color: #0a051d; /* Fundo sólido para o header */
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    position: relative; 
    z-index: 1;
}

/* ALTERADO: Main flui normalmente abaixo do header */
main {
    position: relative; /* Cria um novo contexto de empilhamento */
}

/* ALTERADO: Vídeo se torna o fundo da 'main' */
.hero-video {
    position: absolute; /* Posicionado em relação à tag <main> */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Fica atrás do conteúdo de <main> */
}

.form-content-wrapper { 
    position: relative; 
    z-index: 1; 
    padding: 60px 15px !important; 
}

.reading-area { background: rgba(10, 5, 29, 0.8); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid rgba(255, 215, 0, 0.2); }
.config-jogo { background: rgba(10,5,29,0.65) !important; padding: 30px; border-radius: 24px; box-shadow: 0 8px 32px 0 #2d225a44; }

/* ============================================= */
/* ===== ESTILOS DAS CARTAS DE TARÔ ===== */
/* ============================================= */
.fan-container { position: relative; width: 100%; max-width: 800px; min-height: 450px; margin: 20px auto 0 auto; padding: 0 15px; box-sizing: border-box; }
.card { position: absolute; width: 80px; height: 128px; cursor: pointer; transform-origin: bottom center; transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.3); background-color: transparent !important; }
@media (min-width: 768px) { .card { width: 100px; height: 160px; } }
.card:not(.selected):hover { transform: translateY(-20px) scale(1.08) !important; z-index: 100 !important; box-shadow: 0 15px 30px rgba(255, 215, 0, 0.5); filter: brightness(1.2); }
.card.selected { transform: translateY(10px) !important; box-shadow: 0 0 25px rgba(255, 215, 0, 0.7), 0 0 15px rgba(255, 215, 0, 0.5); }
.card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s; transform-style: preserve-3d; background-color: transparent !important; }
.card.flipped .card-inner { transform: rotateY(180deg); }
.card.flipped { box-shadow: none !important; }
.card-front, .card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 15px; }
.card-front { background: linear-gradient(45deg, #0a051d, #1a1a4e); border: 1px solid rgba(255, 215, 0, 0.3); display: flex; align-items: center; justify-content: center; }
.card.selected .card-front { border: 2px solid #ffd700; }
.card-back { transform: rotateY(180deg); background-size: cover; background-position: center; }
.card-display-large { width: 192px; height: 288px; }

/* ============================================= */
/* ===== COMPONENTES DA INTERFACE (UI) ===== */
/* ============================================= */
label.gold-glow, h2.gold-glow { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 1.8rem; letter-spacing: 0.5px; margin-bottom: 0.5rem !important; display: block; }
.custom-textarea { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 215, 0, 0.2); color: white; }
.custom-textarea:focus { background: rgba(255, 255, 255, 0.15); border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); color: white; }
.custom-select { background-color: rgba(10, 5, 29, 0.8); border: 2px solid rgba(255, 215, 0, 0.4); color: white; font-size: 1.6rem; font-weight: 500; padding: 0.75rem 1.25rem; height: auto; width: 100%; transition: all 0.3s ease; -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffd700' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5%200%200%201%20.708%200L8%2010.293l5.646-5.647a.5.5%200%200%201%20.708.708l-6%206a.5.5%200%200%201-.708%200l-6-6a.5.5%200%200%201%200-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px 12px; border-radius: 0.5rem; }
.custom-select:focus { background-color: rgba(10, 5, 29, 1); border-color: #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 5px rgba(255, 215, 0, 0.4); }
select.custom-select option { background: #0a051d; color: white; font-weight: 500; }
.selection-counter { position: absolute; top: -15px; right: 20px; background: rgba(74, 20, 140, 0.8); color: white; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-weight: bold; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); border: 1px solid #ffd700; }
.btn-mystical, .btn-whatsapp { transition: all 0.3s; }
.btn-mystical:hover, .btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3); }
.btn-mystical { background: linear-gradient(45deg, #4a148c, #7b1fa2); border: 1px solid rgba(255, 215, 0, 0.3); }
.btn-mystical:hover { border-color: #ffd700; }
.btn-whatsapp { background: #25D366; }

/* ============================================= */
/* ===== MODAIS E ALERTAS ===== */
/* ============================================= */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(10, 5, 29, 0.85); display: none; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(5px); padding: 20px; }
.modal-content { width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto; padding: 0; background: transparent; border: none; }
.custom-alert { position: fixed; top: 100px; left: 50%; transform: translateX(-50%); padding: 15px 20px; border-radius: 10px; z-index: 1100; box-shadow: 0 5px 15px rgba(0,0,0,0.3); display: none; align-items: center; gap: 10px; opacity: 0; transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out; background: linear-gradient(45deg, #ff9800, #f57c00); color: white; }
.custom-alert.show { display: flex; opacity: 1; top: 100px; }
.whatsapp-modal-redesigned .modal-content { max-width: 600px; }
.whatsapp-modal-redesigned .reading-area { position: relative; }
.close-button { position: absolute; top: 15px; right: 20px; background: none; border: none; color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer; opacity: 0.7; transition: opacity 0.3s, transform 0.3s; z-index: 2; }
.close-button:hover { opacity: 1; transform: scale(1.1); }
.whatsapp-cards-display { display: flex; justify-content: center; align-items: center; min-height: 180px; perspective: 1000px; }
.whatsapp-cards-display .card { position: relative; box-shadow: 0 10px 20px rgba(0,0,0,0.4); transition: transform 0.5s ease; animation: float-cards 3s ease-in-out infinite; }
.whatsapp-cards-display .card:hover { transform: translateY(-15px) !important; animation-play-state: paused; }
.whatsapp-cards-display .card:not(:first-child) { margin-left: -50px; }
.whatsapp-cards-display .card:nth-child(2) { animation-delay: 0.2s; }
.whatsapp-cards-display .card:nth-child(3) { animation-delay: 0.4s; }

/* ============================================= */
/* ===== ANIMAÇÕES E EFEITOS ===== */
/* ============================================= */
@keyframes pulse-gold { 0% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); } 50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); } 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); } }
.gold-pulse { animation: pulse-gold 2s infinite; }
.glow-error { border-color: #ff4d4d !important; box-shadow: 0 0 15px rgba(255, 77, 77, 0.7) !important; animation: pulse-error 0.8s 2; }
@keyframes pulse-error { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
.question-error-message { color: #ff4d4d; font-size: 1.4rem; font-weight: 500; text-shadow: 0 0 5px rgba(0,0,0,0.5); opacity: 0; max-height: 0; overflow: hidden; transition: all 0.4s ease-in-out; margin-top: 0; }
.question-error-message.show { opacity: 1; max-height: 20px; margin-top: 8px; }
@keyframes float-cards { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

/* Estilo para a nova seção de CTA no modal de resultado */
.cta-section-modal {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* Garante que o modal de resultado seja o container para o botão X */
#reading-result .reading-area {
    position: relative;
}