@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #35bd1d;          
    --primary-hover: #33a818;
    --bg-body: #f8fafc;          
    --bg-card: #ffffff;          
    --text-main: #030508;        
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    --radius: 16px;
    --success: #10b981;
    color-scheme: light;
}

[data-theme="dark"] {
    --primary: #35bd1d;
    --primary-hover: #33a818;
    --bg-body: #232323;        
    --bg-card: #171717;          
    --text-main: #f5f5f5;       
    --text-muted: #a3a3a3;       
    --border: #262626;          
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.8);
    color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container-principal {
    width: 100%;
    max-width: 550px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.topo-cabecalho {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: -20px;
}

.botao-tema {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.botao-tema:hover { background: var(--border); }

header h1 {
    font-family: 'Impact', sans-serif; 
    font-style: italic;                
    font-size: 4rem;    
    color: var(--primary);               
    align-items: center;
    justify-content: center;           
    gap: 10px;
    letter-spacing: 1px;             
}
header h1 i { color: var(--primary); }
header h2 {            
    font-size: 1rem;                   
    align-items: center;
    justify-content: center;           
    gap: 10px;
    letter-spacing: 1px; 
}

header p { color: var(--primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-top: 5px; }

.container-progresso {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}
.container-progresso::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0;
    height: 2px; background: var(--border); z-index: 0; transform: translateY(-50%);
}
.passo-progresso {
    width: 32px; 
    height: 32px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1rem; 
    font-weight: 700; 
    color: var(--text-muted);
    position: relative; 
    z-index: 1;
}
.passo-progresso.ativo { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--bg-body); }
.passo-progresso.concluido { background: var(--primary); border-color: var(--primary); color: white; }

.grade-opcoes { display: flex; flex-direction: column; gap: 12px; }

.item-selecao {
    background: var(--bg-body);
    border: 1px solid var(--border);
    padding: 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 600;
}
.item-selecao:hover { border-color: var(--primary);}
.item-selecao span { color: var(--text-main); }

.container-flexivel {
    display: flex;             
    flex-wrap: wrap;           
    justify-content: center;   
    gap: 12px;                 
    margin-top: 10px;
}

.container-flexivel .item-selecao {
    justify-content: center;
    padding: 0.8rem 1.5rem;    
    font-size: 0.95rem;
    width: auto;               
    min-width: 90px;           
    flex-grow: 0;              
    transition: all 0.2s ease;
    text-align: center;
}

.container-flexivel .item-selecao:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); /* sombrinha suave */
}

.campo-formulario { position: relative; margin-bottom: 1.2rem; }
.campo-formulario i {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 1.1rem;
}
.campo-formulario textarea + i { top: 1.2rem; }
.campo-formulario input, .campo-formulario textarea {
    width: 100%;
    background: var(--bg-body);
    border: 1px solid var(--border);
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 12px;
    font-size: 1rem; color: var(--text-main);
    font-family: inherit; outline: none;
}
.campo-formulario input:focus, .campo-formulario textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.botao-primario, .botao-confirmar {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    display: flex; justify-content: center; align-items: center; gap: 10px;
}
.botao-primario:hover, .botao-confirmar:hover { background-color: var(--primary-hover); transform: translateY(-2px); }

.cabecalho-etapa { display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; position: relative; }
.cabecalho-etapa h2 { font-size: 1.3rem; color: var(--text-main); }
.botao-voltar-icone {
    position: absolute; left: 0;
    background: var(--bg-body); border: 1px solid var(--border); color: var(--text-main);
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.botao-voltar-icone:hover { border-color: var(--primary); color: var(--primary); }

.cartao-resumo {
    background: var(--bg-body);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.item-resumo { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; }
.item-resumo span { color: var(--text-muted); }
.item-resumo strong { color: var(--text-main); }

.status-sucesso { background: #dcfce7; color: #166534; padding: 15px; border-radius: 8px; text-align: center; margin-top: 20px; border: 1px solid #bbf7d0; display: block; }
.status-erro { background: #fee2e2; color: #991b1b; padding: 15px; border-radius: 8px; text-align: center; margin-top: 20px; border: 1px solid #fecaca; display: block; }

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    font-size: 1.3rem;
    padding: 8px;          
    border-radius: 50%;    
    transition: all 0.2s ease;
    opacity: 0.5;          
    margin-left: 10px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: var(--border); 
    opacity: 1;
    transform: scale(1.1); 
}

[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../background.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; 
    opacity: 1; 
    mix-blend-mode: overlay;
    z-index: -1;   
    pointer-events: none; 
}

/* responsividade */
@media (max-width: 480px) {
    body {
        align-items: center;
        padding: 15px;
    }

    .container-principal {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        height: auto; 
        min-height: auto; 
        border-radius: var(--radius); 
        border: 1px solid var(--border);
    }

    .botao-tema {
        width: 32px;     
        height: 32px;
        font-size: 0.9rem; 
    }

    header h1 { font-size: 3rem; line-height: 1.1; }
    header h2 { font-size: 0.9rem; margin-top: 5px; }
    header p { font-size: 0.75rem; letter-spacing: 1px; }
    
    .botao-primario, .botao-confirmar { margin-top: 20px; }
}