@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --super-blue: #2B5BA8;
    --super-dark-blue: #1B3A6B;
    --super-yellow: #FFD700;
    --super-light-blue: #E3F2FD;
    --white: #FFFFFF;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--super-light-blue) 0%, #ffffff 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header {
    position: relative;
    background: linear-gradient(135deg, var(--super-dark-blue) 0%, var(--super-blue) 100%);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
}

/* Logo com fundo branco e sombra */
.logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
    padding: 20px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.title {
    color: var(--white);
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.subtitle {
    color: var(--super-yellow);
    font-size: 1.3em;
    font-weight: 400;
    margin-bottom: 15px;
}

/* ========== MUSIC TOGGLE ========== */
.music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--super-blue) 0%, var(--super-dark-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(43, 91, 168, 0.4);
    z-index: 200;
    transition: all 0.3s ease;
    border: 3px solid var(--super-yellow);
}

.music-toggle:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(43, 91, 168, 0.6);
}

.music-toggle.muted {
    opacity: 0.5;
}

.music-toggle.muted .music-icon::before {
    content: "✕";
    position: absolute;
    font-size: 1.2em;
    color: #E31E24;
}

/* ========== CTA SORTEIO MARKETING ========== */
.cta-sorteio {
    margin-top: 25px;
    animation: slideUp 0.8s ease-out;
}

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

.cta-urgency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--super-yellow) 0%, #FFC700 100%);
    color: #333;
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho no background */
.cta-urgency::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.cta-icon {
    font-size: 3em;
    animation: bounce-icon 1s ease-in-out infinite;
    flex-shrink: 0;
    z-index: 1;
}

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

.cta-text {
    flex: 1;
    text-align: center;
    z-index: 1;
}

.cta-main {
    font-size: 1.6em;
    font-weight: 800;
    color: #1B3A6B;
    margin-bottom: 8px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-date {
    font-size: 1.2em;
    font-weight: 700;
    color: #E31E24;
    margin: 0;
}

.cta-pulse {
    font-size: 2em;
    animation: pulse-star 1s ease-in-out infinite;
    flex-shrink: 0;
    z-index: 1;
}

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

/* ========== RESPONSIVIDADE CTA ========== */
@media (max-width: 768px) {
    .cta-urgency {
        padding: 15px 20px;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .cta-main {
        font-size: 1.2em;
        margin-bottom: 5px;
    }

    .cta-date {
        font-size: 1em;
    }

    .cta-icon {
        font-size: 2.5em;
    }

    .cta-pulse {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .cta-urgency {
        flex-direction: column;
        padding: 12px 15px;
        gap: 8px;
        align-items: center;
    }

    .cta-icon {
        font-size: 2em;
    }

    .cta-main {
        font-size: 1em;
        margin-bottom: 3px;
        line-height: 1.1;
    }

    .cta-date {
        font-size: 0.9em;
    }

    .cta-text {
        text-align: center;
        width: 100%;
    }

    .cta-pulse {
        font-size: 1.5em;
    }
}

/* Ondas sonoras animadas */
.sound-waves {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    padding: 0 20px;
    opacity: 0.3;
}

.wave {
    width: 4px;
    background: var(--super-yellow);
    border-radius: 2px;
    animation: soundWave 1s ease-in-out infinite;
}

.wave:nth-child(1) {
    height: 20px;
    animation-delay: 0s;
}

.wave:nth-child(2) {
    height: 35px;
    animation-delay: 0.1s;
}

.wave:nth-child(3) {
    height: 50px;
    animation-delay: 0.2s;
}

.wave:nth-child(4) {
    height: 35px;
    animation-delay: 0.3s;
}

.wave:nth-child(5) {
    height: 20px;
    animation-delay: 0.4s;
}

@keyframes soundWave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.5);
    }
}

/* Barra de progresso */
.progress-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--super-blue) 0%, var(--super-yellow) 100%);
    transition: width 0.5s ease;
    width: 9.09%;
}

.progress-text {
    text-align: center;
    padding: 15px;
    font-weight: 600;
    color: var(--super-blue);
}

/* Container */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Seções */
.section {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.section.active {
    display: block;
}

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

/* Card da pergunta */
.question-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.question-number {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--super-blue) 0%, var(--super-dark-blue) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(43, 91, 168, 0.3);
}

.question-title {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    padding-right: 70px;
    line-height: 1.4;
}

.question-title small {
    font-size: 0.6em;
    color: var(--gray);
    font-weight: 400;
}

/* Opções */
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: var(--light-gray);
    border: 3px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option:hover {
    background: var(--super-light-blue);
    border-color: var(--super-blue);
    transform: translateX(10px);
}

.option input[type="radio"],
.option input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: var(--super-blue);
}

.option input:checked ~ .option-text {
    font-weight: 600;
    color: var(--super-blue);
}

.option:has(input:checked) {
    background: linear-gradient(135deg, var(--super-light-blue) 0%, #BBDEFB 100%);
    border-color: var(--super-blue);
    box-shadow: 0 5px 20px rgba(43, 91, 168, 0.2);
}

.option-text {
    font-size: 1.05em;
    color: var(--dark);
    flex: 1;
}

/* Inputs de texto */
.input-text {
    width: 100%;
    padding: 10px 15px;
    border: 3px solid var(--light-gray);
    border-radius: 12px;
    font-size: 0.95em;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.input-text:focus {
    outline: none;
    border-color: var(--super-blue);
    box-shadow: 0 5px 20px rgba(43, 91, 168, 0.2);
}

.input-text:required {
    border-color: #FFD700;
}

/* Form groups */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    font-size: 0.95em;
}

.obrigatorio {
    color: #E31E24;
    font-weight: 700;
}

/* Alerta */
.alert {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 100%);
    border-left: 5px solid var(--super-yellow);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #F57F17;
}

/* ========== SEÇÃO 11 - SORTEIO ========== */

/* Canvas para confetti */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

/* Header motivador da seção 11 */
.sorteio-header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sorteio-icon {
    font-size: 4em;
    margin-bottom: 15px;
    display: block;
    animation: bounce 1s ease-in-out infinite;
}

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

.sorteio-title {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--super-blue);
    margin-bottom: 15px;
    line-height: 1.2;
}

.sorteio-subtitle {
    font-size: 1.15em;
    color: var(--gray);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.sorteio-subtitle strong {
    color: var(--super-yellow);
    font-size: 1.1em;
}

/* Card especial da seção 11 */
.sorteio-card {
    background: linear-gradient(135deg, var(--super-light-blue) 0%, #ffffff 100%);
    border: 3px solid var(--super-yellow);
    box-shadow: 0 15px 50px rgba(43, 91, 168, 0.15);
}

.sorteio-card .question-number {
    display: none;
}

.sorteio-card .question-title {
    padding-right: 0;
    color: var(--super-blue);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.sorteio-descricao {
    font-size: 1em;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 30px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--super-yellow);
}

/* Botão de sorteio especial */
.btn-sorteio {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    font-size: 1.15em;
    padding: 18px 50px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-sorteio:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
}

/* Navegação */
.navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-prev {
    background: white;
    color: var(--super-blue);
    border: 3px solid var(--super-blue);
}

.btn-prev:hover {
    background: var(--super-blue);
    color: white;
}

.btn-next {
    background: linear-gradient(135deg, var(--super-blue) 0%, var(--super-dark-blue) 100%);
    color: white;
}

.btn-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(43, 91, 168, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-primary {
    background: linear-gradient(135deg, var(--super-blue) 0%, var(--super-dark-blue) 100%);
    color: white;
}

/* Mensagem de sucesso */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.success-content h2 {
    color: var(--super-blue);
    font-size: 2em;
    margin-bottom: 15px;
}

.success-content p {
    color: var(--gray);
    font-size: 1.2em;
    margin-bottom: 20px;
}

.success-alexa {
    background: linear-gradient(135deg, var(--super-light-blue) 0%, #BBDEFB 100%);
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--super-blue);
    margin-bottom: 30px;
    font-size: 1.15em;
}

/* ========== MODAL DE VALIDAÇÃO ========== */
.validacao-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

.validacao-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.validacao-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    display: block;
}

.validacao-content h3 {
    color: var(--super-blue);
    font-size: 1.6em;
    margin-bottom: 10px;
}

.validacao-content p {
    color: var(--gray);
    font-size: 1em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-modal-close {
    background: linear-gradient(135deg, var(--super-blue) 0%, var(--super-dark-blue) 100%);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-close:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(43, 91, 168, 0.4);
}
.duplicado-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.duplicado-info {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    color: #C62828;
    margin-bottom: 30px;
    font-size: 1em !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .header {
        padding: 30px 15px;
    }

    .logo {
        max-width: 220px;
        padding: 15px 20px;
    }

    .title {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .sorteio-badge {
        font-size: 0.95em;
        padding: 10px 20px;
    }

    .question-card {
        padding: 25px 20px;
    }

    .question-title {
        font-size: 1.3em;
        padding-right: 60px;
    }

    .question-number {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
        top: 15px;
        right: 15px;
    }

    .sorteio-title {
        font-size: 1.8em;
    }

    .sorteio-subtitle {
        font-size: 1em;
    }

    .navigation {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .success-content {
        margin: 20px;
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 180px;
    }

    .title {
        font-size: 1.6em;
    }

    .subtitle {
        font-size: 1em;
    }

    .sorteio-badge {
        font-size: 0.85em;
        padding: 8px 15px;
    }

    .question-title {
        font-size: 1.2em;
    }

    .sorteio-title {
        font-size: 1.5em;
    }

    .option-text {
        font-size: 0.95em;
    }
}
