:root {
    --primary-color: #0056b3;      /* Azul Institucional */
    --primary-light: #e6f0fa;      /* Fundo suave azulado */
    --accent-color: #00f2fe;       /* Ciano vibrante para detalhes */
    --text-dark: #1a2b3c;          /* Azul quase preto para texto */
    --text-light: #5f6c7b;         /* Cinza azulado para subtítulos */
    --white: #ffffff;
    --success: #28a745;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 86, 179, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f4f7fa;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.quiz-header {
    background: var(--white);
    padding: 10px 0 0 0; /* Remove bottom padding to accommodate progress bar */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px; /* Space between content and progress bar */
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 60px;
    width: auto;
    display: block;
}

.medical-cross {
    color: var(--accent-color);
    font-weight: 900;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 500;
    background: #eefdf2;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Main */
.quiz-main {
    flex: 1;
    padding: 40px 0;
    display: flex;
    align-items: center;
}

/* Progress Bar in Header */
.progress-container {
    width: 100%;
    background: #fff;
}

.progress-bar {
    height: 6px; /* Thinner for topbar */
    background: #e0e7ef;
    border-radius: 0; /* Full width look */
    overflow: hidden;
    margin-bottom: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 20%;
    transition: width 0.4s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    padding: 4px 0;
    background: #f8f9fa; /* Slight background for text */
    border-bottom: 1px solid #eee;
}

/* Quiz Card */
.quiz-card {
    background: var(--white);
    padding: 30px; /* Reduzido de 40px para mobile first */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Steps */
.quiz-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.quiz-step.active {
    display: block;
}

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

.step-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-align: center;
}

.step-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Options Grid */
.options-grid {
    display: grid;
    gap: 15px;
}

.option-btn {
    background: var(--white);
    border: 2px solid #e0e7ef;
    padding: 18px 20px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.1);
}

.option-btn.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(0.98);
}

.option-btn.selected .option-label {
    color: var(--white);
}

/* Efeito de Ripple sutil ao clicar */
.option-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.option-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Form */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.input-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e7ef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.action-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.action-btn:hover {
    background: #004494;
}

/* Loading Step */
.loading-container {
    text-align: center;
    padding: 20px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e7ef;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.analysis-list {
    list-style: none;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.analysis-item {
    margin-bottom: 10px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.analysis-item.active {
    opacity: 1;
    color: var(--text-dark);
    font-weight: 500;
}

.analysis-item.active::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

/* Result Step (Vendas) */
.final-step {
    text-align: center;
}

.result-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #eefdf2;
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-badge {
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.result-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.highlight {
    color: var(--primary-color);
}

.result-desc {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Offer Box */
.offer-box {
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.offer-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.offer-body {
    padding: 25px;
}

.benefits-list {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
}

.benefits-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.pricing {
    margin-bottom: 25px;
}

.old-price {
    display: block;
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.price-value {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
    color: var(--primary-color);
    margin: 5px 0;
}

.price-value .currency {
    font-size: 1.2rem;
    font-weight: 600;
}

.price-value .amount {
    font-size: 2.5rem;
    font-weight: 800;
}

.cash-price {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cta-button {
    display: block;
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    color: white;
    text-decoration: none;
    padding: 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.cta-button:hover {
    transform: scale(1.02);
}

.cta-button small {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.9;
}

.guarantee {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Footer */
.quiz-footer {
    padding: 30px 0;
    text-align: center;
    color: #8898aa;
    font-size: 0.85rem;
}

.disclaimer {
    margin-top: 10px;
    font-size: 0.75rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsividade */
@media (max-width: 480px) {
    .quiz-card {
        padding: 20px;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .price-value .amount {
        font-size: 2rem;
    }
}
