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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #4a4a4a;
    --accent-color: #0066cc;
    --success-color: #00a86b;
    --text-color: #2a2a2a;
    --text-light: #888888;
    --bg-color: #ffffff;
    --border-color: #e8e8e8;
    --border-dark: #333333;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    text-wrap: balance;
}

/* Header */
.quiz-header {
    background: var(--bg-color);
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.logo-img {
    width: auto;
    height: 60px;
    max-width: 200px;
    object-fit: contain;
}

/* Barra de Progresso */
.progress-container {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--success-color);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-color);
    min-width: 40px;
    text-align: right;
}

/* Container Principal */
.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Telas de Pergunta */
.question-screen {
    background: transparent;
    padding: 0;
    animation: fadeIn 0.4s ease;
}

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

.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    text-align: center;
    text-wrap: balance;
}

.question-example {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    text-align: center;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.option-btn {
    background: var(--bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-family: inherit;
    line-height: 1.6;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-wrap: balance;
    white-space: normal;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}

/* Garantir que nenhuma opção tenha destaque por padrão */
.option-btn:not(:hover):not(:active) {
    border-color: var(--border-color);
    border-width: 1.5px;
    background: var(--bg-color);
}

.option-btn:hover {
    border-color: var(--border-dark);
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.option-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Botões de Cidade com Imagens */
.option-btn.city-btn {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
}

.city-image {
    width: 100%;
    max-width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-btn.city-btn:hover .city-image {
    transform: scale(1.05);
}

.option-btn.city-btn span {
    font-weight: 500;
    font-size: 0.9375rem;
    text-wrap: balance;
    text-align: center;
}

/* Formulário */
.form-screen {
    background: transparent;
    padding: 0;
    animation: fadeIn 0.4s ease;
    max-width: 600px;
    margin: 0 auto;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    text-wrap: balance;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group .required {
    color: #e74c3c;
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--border-dark);
    background: #fafafa;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    font-family: inherit;
}

.submit-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Telas de Resultado */
.result-screen {
    background: transparent;
    padding: 0;
    text-align: center;
    animation: fadeIn 0.4s ease;
    max-width: 700px;
    margin: 0 auto;
}

.result-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.result-icon.premium {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.result-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-wrap: balance;
    text-align: center;
}

.result-description {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
    text-wrap: balance;
    text-align: center;
}

.result-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
    cursor: pointer;
    border: 1.5px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Rodapé */
.quiz-footer {
    background: var(--bg-color);
    padding: 2rem 2rem;
    margin-top: 540px;
    border-top: 1px solid var(--border-color);
    position: relative;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.footer-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.footer-contacts {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-color);
}

.contact-text {
    font-size: 0.9375rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .quiz-header {
        padding: 1.25rem 1rem 0.75rem;
    }

    .logo-img {
        height: 50px;
        max-width: 180px;
    }

    .progress-container {
        padding: 0 1rem;
        margin-bottom: 1.5rem;
        gap: 0.75rem;
    }

    .progress-bar {
        height: 5px;
    }

    .progress-text {
        font-size: 0.8125rem;
        min-width: 35px;
    }

    .quiz-container {
        margin: 0 auto;
        padding: 0 1rem 2.5rem;
    }

    .question-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .question-example {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .options-container {
        grid-template-columns: 1fr !important;
        gap: 0.875rem;
        max-width: 100%;
    }

    .option-btn {
        min-height: 75px;
        padding: 1rem 0.875rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }

    .form-screen {
        padding: 0;
    }

    .form-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .form-group input {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
    }

    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .result-screen {
        padding: 0;
    }

    .result-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .result-description {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }

    .result-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .quiz-footer {
        padding: 1.5rem 1rem;
        margin-top: 400px;
    }

    .footer-container {
        gap: 1.25rem;
    }

    .footer-title {
        font-size: 1.25rem;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-item {
        min-width: auto;
    }

    .contact-icon {
        width: 36px;
        height: 36px;
    }

    .contact-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .quiz-header {
        padding: 1rem 0.75rem 0.5rem;
    }

    .logo-img {
        height: 45px;
        max-width: 160px;
    }

    .progress-container {
        padding: 0 0.75rem;
        margin-bottom: 1.25rem;
    }

    .quiz-container {
        padding: 0 0.75rem 2rem;
    }

    .question-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .question-example {
        font-size: 0.6875rem;
        margin-bottom: 1.25rem;
    }

    .options-container {
        gap: 0.75rem;
    }

    .option-btn {
        min-height: 70px;
        padding: 0.875rem 0.75rem;
        font-size: 0.8125rem;
        border-radius: 8px;
    }

    .option-btn.city-btn {
        min-height: auto;
        padding: 0.875rem 0.625rem;
    }

    .city-image {
        height: 80px;
    }

    .option-btn.city-btn span {
        font-size: 0.8125rem;
    }

    .form-title {
        font-size: 1.125rem;
    }

    .result-title {
        font-size: 1.25rem;
    }

    .result-icon {
        font-size: 2.5rem;
    }

    .result-description {
        font-size: 0.875rem;
    }

    .quiz-footer {
        padding: 1.25rem 0.75rem;
        margin-top: 300px;
    }

    .footer-container {
        gap: 1rem;
    }

    .footer-title {
        font-size: 1.125rem;
    }

    .footer-subtitle {
        font-size: 0.6875rem;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 0.875rem;
    }

    .contact-item {
        gap: 0.75rem;
        min-width: auto;
    }

    .contact-icon {
        width: 32px;
        height: 32px;
    }

    .contact-icon svg {
        width: 16px;
        height: 16px;
    }

    .contact-text {
        font-size: 0.8125rem;
    }
}
