/* RESET E BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

:root {
    --azul-serenity: #6A8CAF;
    --lavanda-suave: #B8A8D9;
    --dourado-acolhedor: #D8B26E;
    --branco: #FFFFFF;
    --cinza-claro: #F8F9FA;
    --cinza-texto: #7f8c9a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, 
        #5a8bb5 0%, 
        #8f7fb3 50%, 
        #c8a85e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(184, 168, 217, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(216, 178, 110, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(106, 140, 175, 0.3) 0%, transparent 60%);
    animation: backgroundPulse 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.quiz-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    text-align: center;
}

@media (max-width: 768px) {
    .quiz-container {
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .quiz-container {
        max-width: 100%;
        width: 100%;
    }
}

.background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: glow 6s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

/* LOGO */
.logo-container {
    margin-bottom: 48px;
    animation: fadeInDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    background: var(--branco);
    padding: 32px;
    border-radius: 50%;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 8px rgba(255, 255, 255, 0.2),
        0 0 0 16px rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05) rotate(5deg);
}

.logo-container::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(184, 168, 217, 0.3),
        transparent
    );
    animation: rotate 4s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.logo {
    max-width: 120px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* BARRA DE PROGRESSO */
.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--branco), 
        rgba(255, 255, 255, 0.95),
        var(--branco));
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 10%;
    box-shadow: 
        0 0 16px rgba(255, 255, 255, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    color: var(--branco);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 32px;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* CARD DO QUIZ */
.quiz-card {
    background: var(--branco);
    border-radius: 32px;
    padding: 60px 50px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, 
        var(--azul-serenity), 
        var(--lavanda-suave), 
        var(--dourado-acolhedor));
    box-shadow: 0 2px 12px rgba(184, 168, 217, 0.4);
}

.quiz-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, 
        rgba(184, 168, 217, 0.03), 
        transparent);
    pointer-events: none;
}

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

/* QUESTÕES */
.question-container {
    animation: fadeIn 0.6s ease;
    position: relative;
}

.question-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: #2c5f7f;
    margin-bottom: 44px;
    line-height: 1.35;
    position: relative;
    padding-bottom: 20px;
}

.question-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--lavanda-suave), 
        var(--dourado-acolhedor));
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(184, 168, 217, 0.3);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-button {
    background: var(--cinza-claro);
    border: 2px solid rgba(184, 168, 217, 0.1);
    border-radius: 20px;
    padding: 22px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.option-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
        transparent, 
        rgba(184, 168, 217, 0.15), 
        transparent);
    transition: left 0.6s ease;
}

.option-button::after {
    content: '→';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
    font-size: 1.5rem;
    color: var(--lavanda-suave);
    transition: all 0.3s ease;
}

.option-button:hover {
    border-color: var(--lavanda-suave);
    background: var(--branco);
    transform: translateX(12px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(106, 140, 175, 0.2),
        0 0 0 1px rgba(184, 168, 217, 0.3);
    color: var(--azul-serenity);
}

.option-button:hover::before {
    left: 100%;
}

.option-button:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.option-button:active {
    transform: translateX(12px) scale(0.98);
}

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

/* TELA DE RESULTADO */
.result-screen {
    display: none;
    animation: fadeInUp 0.8s ease;
}

.result-screen.show {
    display: block;
}

.result-icon {
    margin-bottom: 36px;
    animation: scaleInBounce 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.result-icon svg {
    filter: drop-shadow(0 8px 24px rgba(184, 168, 217, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes scaleInBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.1) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

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

.result-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 24px;
    line-height: 1.25;
    animation: fadeInScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.result-subtitle {
    font-size: 1.35rem;
    color: #2d3748;
    margin-bottom: 44px;
    line-height: 1.65;
    animation: fadeIn 0.8s ease 0.5s backwards;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-button {
    background: linear-gradient(135deg, #B8A8D9 0%, #9B87C4 100%);
    color: var(--branco);
    border: none;
    border-radius: 50px;
    padding: 22px 56px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 
        0 12px 40px rgba(184, 168, 217, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s backwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.result-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.result-button::after {
    content: '→';
    position: absolute;
    right: 32px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.result-button:hover::before {
    width: 500px;
    height: 500px;
}

.result-button:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.result-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 20px 60px rgba(184, 168, 217, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.result-button:active {
    transform: translateY(-3px) scale(1.01);
}

.result-price {
    margin-top: 24px;
    font-size: 1.05rem;
    color: #7f8c9a;
    font-weight: 600;
    animation: fadeIn 0.8s ease 0.9s backwards;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* TRANSIÇÃO ENTRE QUESTÕES */
.question-container.fade-out {
    animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* RESPONSIVO TABLET */
@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }
    
    .quiz-container {
        max-width: 100%;
    }
    
    .logo-container {
        margin-bottom: 36px;
        padding: 28px;
    }
    
    .logo {
        max-width: 110px;
    }
    
    .quiz-card {
        padding: 44px 32px;
        border-radius: 28px;
    }
    
    .question-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }
    
    .question-title::after {
        width: 50px;
        height: 3px;
    }
    
    .options-container {
        gap: 14px;
    }
    
    .option-button {
        padding: 20px 24px;
        padding-right: 55px;
        font-size: 1.05rem;
    }
    
    .option-button::after {
        right: 20px;
        font-size: 1.3rem;
    }
    
    .result-title {
        font-size: 2.2rem;
    }
    
    .result-subtitle {
        font-size: 1.2rem;
        margin-bottom: 36px;
    }
    
    .result-button {
        padding: 20px 44px;
        font-size: 1.15rem;
    }
    
    .result-button::after {
        right: 28px;
    }
}

/* RESPONSIVO MOBILE */
@media (max-width: 480px) {
    body {
        padding: 12px;
        align-items: flex-start;
        padding-top: 24px;
    }
    
    .quiz-container {
        width: 100%;
        max-width: 100%;
    }
    
    .logo-container {
        padding: 20px;
        margin-bottom: 28px;
    }
    
    .logo-container::after {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
    }
    
    .logo {
        max-width: 80px;
    }
    
    .progress-bar {
        height: 8px;
        margin-bottom: 10px;
    }
    
    .progress-text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .quiz-card {
        padding: 32px 20px;
        border-radius: 20px;
    }
    
    .quiz-card::before {
        height: 6px;
    }
    
    .quiz-card::after {
        height: 150px;
    }
    
    .question-title {
        font-size: 1.4rem;
        margin-bottom: 24px;
        line-height: 1.3;
        padding-bottom: 16px;
    }
    
    .question-title::after {
        width: 40px;
        height: 3px;
    }
    
    .options-container {
        gap: 12px;
    }
    
    .option-button {
        padding: 16px 18px;
        padding-right: 48px;
        font-size: 0.95rem;
        border-radius: 14px;
        text-align: left;
    }
    
    .option-button:hover,
    .option-button:active {
        transform: translateX(6px) scale(1.01);
    }
    
    .option-button::after {
        right: 16px;
        font-size: 1.1rem;
    }
    
    .result-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .result-icon {
        margin-bottom: 20px;
    }
    
    .result-title {
        font-size: 1.6rem;
        margin-bottom: 14px;
        line-height: 1.25;
        padding: 0 8px;
    }
    
    .result-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
        line-height: 1.5;
        padding: 0 8px;
    }
    
    .result-button {
        padding: 17px 28px;
        font-size: 1rem;
        border-radius: 40px;
        width: 100%;
        max-width: 100%;
        letter-spacing: 0.2px;
    }
    
    .result-button::after {
        display: none;
    }
    
    .result-button:hover {
        transform: translateY(-3px) scale(1.01);
    }
    
    .result-button:active {
        transform: translateY(-1px) scale(0.99);
    }
    
    .result-price {
        font-size: 0.9rem;
        margin-top: 14px;
    }
    
    .background-glow {
        width: 300px;
        height: 300px;
    }
}

/* RESPONSIVO MOBILE MUITO PEQUENO */
@media (max-width: 360px) {
    body {
        padding: 10px;
        padding-top: 20px;
    }
    
    .logo-container {
        padding: 18px;
        margin-bottom: 24px;
    }
    
    .logo {
        max-width: 70px;
    }
    
    .quiz-card {
        padding: 28px 18px;
        border-radius: 18px;
    }
    
    .question-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
    
    .question-title::after {
        width: 35px;
    }
    
    .option-button {
        padding: 15px 16px;
        padding-right: 45px;
        font-size: 0.9rem;
    }
    
    .result-title {
        font-size: 1.4rem;
        padding: 0 6px;
    }
    
    .result-subtitle {
        font-size: 0.95rem;
        padding: 0 6px;
    }
    
    .result-button {
        padding: 16px 24px;
        font-size: 0.95rem;
    }
    
    .result-price {
        font-size: 0.85rem;
    }
}

