/*
 * Refined Landing Page CSS - Quero Esse Carro
 * 
 * Estilos modernos, responsivos e acessíveis, com foco em Mobile-First.
 * Segue padrões WCAG 2.1 AA.
 * Atualizado com cores do novo logo (Azul), ícones SVG profissionais e sem modo escuro.
 * Versão ultra-refinada - Botões assimétricos (Voltar menor, Continuar maior)
 */

/* ============================================
   1. VARIÁVEIS DE DESIGN
   ============================================ */

:root {
    /* Cores Primárias - Azul do Logo */
    --primary: #0084d4;
    --primary-dark: #0066a1;
    --primary-light: #e6f2ff;
    --primary-lighter: #f0f8ff;

    /* Cores Secundárias */
    --secondary: #1a1a1a;
    --secondary-light: #2d2d2d;
    --secondary-lighter: #4a4a4a;

    /* Cores Neutras */
    --muted: #666666;
    --muted-light: #999999;
    --muted-lighter: #cccccc;

    /* Cores de Fundo */
    --background: #f5f7fa;
    --background-light: #eff2f7;
    --white: #ffffff;

    /* Cores de Borda */
    --border: #d4dce6;
    --border-light: #e8ecf3;

    /* Cores de Status */
    --danger: #d32f2f;
    --danger-light: #ffebee;
    --success: #388e3c;
    --success-light: #e8f5e9;
    --warning: #f57c00;
    --warning-light: #fff3e0;

    /* Espaçamento */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Border Radius */
    --radius: 18px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 132, 212, 0.08);
    --shadow-md: 0 8px 16px rgba(0, 132, 212, 0.1);
    --shadow-lg: 0 12px 32px rgba(0, 132, 212, 0.12);
    --shadow-xl: 0 20px 48px rgba(0, 132, 212, 0.15);

    /* Transições */
    --transition-fast: 0.12s ease;
    --transition-base: 0.18s ease;
    --transition-slow: 0.3s ease;

    /* Z-Index */
    --z-dropdown: 10;
    --z-modal: 100;
    --z-tooltip: 1000;

    /* Tipografia */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
}

/* ============================================
   2. RESET E ESTILOS GLOBAIS
   ============================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--secondary);
    background: radial-gradient(circle at top right, rgba(0, 132, 212, 0.06), transparent 40%),
                linear-gradient(135deg, var(--background) 0%, var(--background-light) 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Remover estilos padrão */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    border: none;
    background: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   3. CONTAINER PRINCIPAL
   ============================================ */

.app {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .app {
        max-width: 600px;
        padding: var(--spacing-xl);
    }
}

/* ============================================
   4. SEÇÃO HERO
   ============================================ */

.hero {
    padding: var(--spacing-md) var(--spacing-xs) var(--spacing-lg);
    text-align: left;
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-weight: 800;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong {
    font-size: var(--font-size-sm);
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.brand-text span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted-light);
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.8px;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: var(--font-size-4xl);
    }
}

.hero p {
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 0;
}

.trust {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--secondary-lighter);
}

.trust span {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.trust-icon {
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   5. CARD PRINCIPAL
   ============================================ */

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg);
    border: 1px solid rgba(212, 220, 230, 0.6);
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease 0.1s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .card {
        padding: var(--spacing-xl);
        border-radius: var(--radius-lg);
    }
}

/* ============================================
   6. BARRA DE PROGRESSO
   ============================================ */

.progress-wrapper {
    margin-bottom: var(--spacing-lg);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--muted);
    margin-bottom: var(--spacing-sm);
}

.progress-label {
    color: var(--secondary-lighter);
}

.progress-percent {
    color: var(--primary);
    font-weight: 700;
}

.progress {
    height: 8px;
    background: var(--primary-light);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--primary), #0099ff);
    border-radius: 999px;
    transition: width var(--transition-base);
    box-shadow: 0 0 12px rgba(0, 132, 212, 0.4);
}

/* ============================================
   7. ETAPAS DO FORMULÁRIO
   ============================================ */

.step {
    display: none;
    animation: fadeIn var(--transition-base) ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step h2 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary);
}

@media (min-width: 768px) {
    .step h2 {
        font-size: var(--font-size-3xl);
    }
}

.subtitle {
    font-size: var(--font-size-sm);
    line-height: 1.45;
    color: var(--muted);
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   8. GRADES DE OPÇÕES COM ÍCONES SVG
   ============================================ */

.option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.option-grid.small {
    grid-template-columns: 1fr 1fr;
}

.option-grid.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 768px) {
    .option-grid.small {
        grid-template-columns: repeat(4, 1fr);
    }
}

.option-card {
    width: 100%;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--secondary);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    min-height: 100px;
    position: relative;
}

.option-card svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--secondary);
    transition: all var(--transition-base);
}

.option-card span {
    font-size: 14px;
    line-height: 1.2;
    flex-shrink: 0;
}

.option-card:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(0, 132, 212, 0.1);
    transform: translateY(-2px);
}

.option-card:hover svg {
    color: var(--primary);
    transform: scale(1.1);
}

.option-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.option-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 132, 212, 0.15);
    color: var(--primary-dark);
}

.option-card.selected svg {
    color: var(--primary);
}

.option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 132, 212, 0.3);
}

/* ============================================
   9. LISTA DE OPÇÕES COM ÍCONES
   ============================================ */

.option-list {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.choice {
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--secondary);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.choice-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--secondary);
    transition: all var(--transition-base);
}

.choice:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(0, 132, 212, 0.1);
    transform: translateY(-2px);
}

.choice:hover .choice-icon {
    color: var(--primary);
}

.choice:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.choice.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 132, 212, 0.15);
    color: var(--primary-dark);
}

.choice.selected .choice-icon {
    color: var(--primary);
}

.choice-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all var(--transition-base);
    background: var(--white);
}

.choice.selected .choice-radio {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px var(--white);
}

/* ============================================
   10. CAMPOS DE FORMULÁRIO
   ============================================ */

.field {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@media (max-width: 480px) {
    .field-group {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    font-weight: 700;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
    color: var(--secondary);
}

input,
select,
textarea {
    width: 100%;
    min-height: 50px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 var(--spacing-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    outline: none;
    background: var(--white);
    color: var(--secondary);
    transition: all var(--transition-base);
}

input::placeholder {
    color: var(--muted-light);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 132, 212, 0.12);
}

input:disabled {
    background: var(--border-light);
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.6;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666666' d='M1 1l5 5 5-5'%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    padding-right: 40px;
}

textarea {
    min-height: 100px;
    padding: var(--spacing-md);
    resize: vertical;
}

/* ============================================
   11. BOTÕES PROFISSIONAIS - ASSIMÉTRICOS
   ============================================ */

.button-group {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    align-items: center;
}

.button-group.full {
    flex-direction: column;
}

button,
.btn {
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

button svg,
.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Botão Voltar - Menor */
.btn-back {
    flex: 0 0 auto;
    min-width: 50px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.75rem;
    background: var(--white);
    color: var(--secondary);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-back:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-back:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-back svg {
    width: 18px;
    height: 18px;
}

/* Botão Continuar - Maior */
.btn-next {
    flex: 1;
    min-height: 48px;
    padding: 0 24px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary), #0099ff);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-next:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0084d4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-next:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-next:disabled {
    background: var(--muted-lighter);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0099ff);
    color: var(--white);
    box-shadow: var(--shadow-md);
    width: 100%;
    min-height: 50px;
    font-size: var(--font-size-base);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0084d4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary:disabled {
    background: var(--muted-lighter);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--secondary);
    border: 2px solid var(--border);
    width: 100%;
    min-height: 50px;
    font-size: var(--font-size-base);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
    color: var(--primary);
}

.btn-secondary:active {
    background: var(--primary-light);
}

.btn-secondary:disabled {
    border-color: var(--muted-lighter);
    color: var(--muted);
    cursor: not-allowed;
}

/* ============================================
   12. GRID DE DUAS COLUNAS
   ============================================ */

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 480px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   13. ALERTAS E MENSAGENS
   ============================================ */

.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.alert-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-icon svg {
    width: 100%;
    height: 100%;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: var(--font-size-sm);
}

.alert-message {
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

/* ============================================
   14. LOADING E ESTADOS
   ============================================ */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

/* ============================================
   15. RESPONSIVIDADE MOBILE-FIRST ULTRA-REFINADA
   ============================================ */

@media (max-width: 480px) {
    :root {
        --spacing-lg: 18px;
        --spacing-xl: 22px;
    }

    .app {
        padding: 14px 16px;
        gap: 16px;
    }

    .card {
        padding: 18px;
        border-radius: 14px;
        box-shadow: 0 8px 16px rgba(0, 132, 212, 0.08);
    }

    /* Hero refinado */
    .hero {
        padding: 12px 0 16px 0;
    }

    .brand {
        gap: 8px;
        margin-bottom: 12px;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand-text strong {
        font-size: 0.8rem;
    }

    .brand-text span {
        font-size: 0.6rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.1;
        margin-bottom: 8px;
        letter-spacing: -0.6px;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .trust {
        gap: 6px;
        margin-top: 12px;
        font-size: 0.8rem;
    }

    /* Progress refinado */
    .progress-wrapper {
        margin-bottom: 16px;
    }

    .progress-info {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }

    .progress {
        height: 6px;
    }

    /* Step refinado */
    .step h2 {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 8px;
        letter-spacing: -0.5px;
    }

    .subtitle {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 16px;
    }

    /* Grid de opções refinada */
    .option-grid {
        gap: 12px;
        margin-bottom: 16px;
    }

    .option-grid.small {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .option-grid.three-cols {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .option-card {
        min-height: 85px;
        padding: 12px;
        border-radius: 10px;
        gap: 6px;
        font-size: 0.85rem;
        border-width: 1.5px;
    }

    .option-card svg {
        width: 32px;
        height: 32px;
    }

    .option-card span {
        font-size: 12px;
        font-weight: 600;
    }

    .option-card.selected::after {
        width: 24px;
        height: 24px;
        top: 6px;
        right: 6px;
        font-size: 14px;
    }

    /* Lista de opções refinada */
    .option-list {
        gap: 10px;
        margin-bottom: 16px;
    }

    .choice {
        min-height: 52px;
        padding: 10px 12px;
        border-radius: 10px;
        gap: 10px;
        font-size: 0.9rem;
        border-width: 1.5px;
    }

    .choice-icon {
        width: 20px;
        height: 20px;
    }

    .choice-radio {
        width: 18px;
        height: 18px;
        border-width: 1.5px;
    }

    /* Campos refinados */
    .field {
        margin-bottom: 12px;
    }

    .field-group {
        gap: 10px;
        margin-bottom: 12px;
    }

    label {
        font-size: 0.8rem;
        margin-bottom: 4px;
        font-weight: 700;
    }

    input,
    select,
    textarea {
        min-height: 44px;
        font-size: 16px;
        padding: 0 12px;
        border-radius: 10px;
        border-width: 1.5px;
    }

    textarea {
        min-height: 90px;
        padding: 10px 12px;
    }

    /* BOTÕES ASSIMÉTRICOS REFINADOS */
    .button-group {
        gap: 10px;
        margin-top: 16px;
        flex-wrap: nowrap;
    }

    .btn-back {
        min-width: 48px;
        min-height: 44px;
        padding: 0 10px;
        font-size: 0.7rem;
        border-radius: 10px;
        border-width: 1.5px;
        flex-shrink: 0;
    }

    .btn-back svg {
        width: 16px;
        height: 16px;
    }

    .btn-next {
        flex: 1;
        min-height: 44px;
        padding: 0 16px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .btn-next svg {
        width: 16px;
        height: 16px;
    }

    /* Alertas refinados */
    .alert {
        padding: 10px 12px;
        border-radius: 10px;
        gap: 8px;
        margin-bottom: 12px;
    }

    .alert-icon {
        width: 20px;
        height: 20px;
        margin-top: 1px;
    }

    .alert-title {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    .alert-message {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .app {
        max-width: 540px;
        padding: 20px;
    }

    .card {
        padding: 20px;
        border-radius: 16px;
    }

    .option-card {
        min-height: 95px;
    }

    .option-card svg {
        width: 38px;
        height: 38px;
    }

    .button-group {
        gap: 12px;
    }

    .btn-back {
        min-height: 46px;
        padding: 0 14px;
        font-size: 0.8rem;
    }

    .btn-next {
        min-height: 46px;
        padding: 0 20px;
        font-size: 0.9rem;
    }

    input,
    select,
    textarea {
        min-height: 48px;
    }
}

@media (min-width: 768px) {
    .app {
        max-width: 600px;
    }

    .option-grid.small {
        grid-template-columns: repeat(4, 1fr);
    }

    .option-grid.three-cols {
        grid-template-columns: repeat(3, 1fr);
    }

    .option-card {
        min-height: 110px;
    }

    .option-card svg {
        width: 44px;
        height: 44px;
    }

    .choice {
        min-height: 64px;
    }

    .button-group {
        gap: 16px;
    }

    .btn-back {
        min-height: 50px;
        padding: 0 16px;
        font-size: 0.875rem;
    }

    .btn-next {
        min-height: 50px;
        padding: 0 28px;
        font-size: 1rem;
    }

    input,
    select,
    textarea {
        min-height: 50px;
    }
}

/* ============================================
   16. ACESSIBILIDADE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para navegação por teclado */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Melhorar contraste para links */
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* ============================================
   17. IMPRESSÃO
   ============================================ */

@media print {
    .hero,
    .button-group,
    .progress-wrapper {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid var(--border);
    }

    body {
        background: var(--white);
    }
}

/* ============================================
   18. UTILITÁRIOS
   ============================================ */

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* ============================================
   19. ANIMAÇÕES AVANÇADAS
   ============================================ */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   20. ESTILOS DE ÍCONES SVG
   ============================================ */

svg {
    display: inline-block;
    vertical-align: middle;
}

svg[class^="icon-"] {
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 40px; height: 40px; }
.icon-2xl { width: 48px; height: 48px; }

.icon-primary { color: var(--primary); }
.icon-secondary { color: var(--secondary); }
.icon-success { color: var(--success); }
.icon-warning { color: var(--warning); }
.icon-danger { color: var(--danger); }
.icon-muted { color: var(--muted); }
.icon-white { color: var(--white); }

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.icon-spin {
    animation: icon-spin 1s linear infinite;
}

.icon-bounce {
    animation: icon-bounce 1s ease-in-out infinite;
}


/* parte dos sugestoes */
/* Container do campo de input para posicionamento relativo */
.field {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Container principal das sugestões */
.suggestions {
    position: absolute;
    top: calc(100% + 4px); /* Fica logo abaixo do input com um pequeno espaço */
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: none; /* Oculto por padrão, o JS altera para block */
    
    /* Scrollbar customizada para navegadores Webkit */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

/* Scrollbar customizada (Chrome, Safari, Edge) */
.suggestions::-webkit-scrollbar {
    width: 6px;
}

.suggestions::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 8px;
}

.suggestions::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 8px;
}

/* Itens individuais da lista de sugestões */
.suggestion-item {
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}

/* Remove a borda do último item */
.suggestion-item:last-child {
    border-bottom: none;
}

/* Efeito de hover e foco (acessibilidade via teclado) */
.suggestion-item:hover,
.suggestion-item:focus {
    background-color: #f8fafc;
    color: #0f172a;
    outline: none; /* Remove o outline padrão do focus */
    padding-left: 20px; /* Leve animação de deslocamento */
}

/* Estilo para quando não houver resultados (opcional, caso você adicione via JS) */
.suggestion-empty {
    padding: 12px 16px;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
}

/* Animação de entrada suave */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestions[style*="display: block"] {
    animation: slideDown 0.2s ease-out forwards;
}
