/* Estilo Independente para a Página Proponha sua Lei */
:root {
    --primary: #004a99;
    --accent: #f39c12;
    --bg: #f4f7f9;
    --text: #333;
    --border: #ccc;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
}

.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* Header unificado */
.download-hero {
    background: var(--primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.btn-back {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-back:hover { background: rgba(255,255,255,0.1); }
.hero-text h1 { margin-top: 20px; font-size: 2.5rem; }

/* Seções e Bloco do Formulário */
.form-section { margin: 50px 0; }
.section-label { margin-bottom: 30px; color: var(--primary); border-bottom: 2px solid #ddd; padding-bottom: 10px; }

.form-container-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Indicadores de Passos (Steps) */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.step {
    font-size: 0.95rem;
    font-weight: bold;
    color: #aaa;
    position: relative;
    width: 50%;
    text-align: center;
}

.step-active {
    color: var(--primary);
}

.step-active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

/* Visibilidade das Etapas */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

/* Inputs e Grupos */
.input-group {
    margin-bottom: 22px;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    outline: none;
}

textarea {
    resize: vertical;
}

/* Botões do Formulário */
.btn-next, .btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-submit {
    background: var(--success, #27ae60);
}

.btn-next:hover { background: #003573; }
.btn-submit:hover { background: #219653; }

.form-buttons {
    display: flex;
    gap: 15px;
}

.btn-prev {
    background: #e0e0e0;
    color: #555;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-prev:hover { background: #d5d5d5; }

/* Rodapé */
.main-footer { text-align: center; padding: 40px; color: #888; font-size: 0.9rem; }

/* Animação suave de troca de aba */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 🌟 OTIMIZAÇÃO RESPONSIVA */
@media screen and (max-width: 600px) {
    .form-container-box { padding: 20px; }
    .input-grid { grid-template-columns: 1fr; gap: 0; }
    .form-buttons { flex-direction: column-reverse; }
    .btn-prev { width: 100%; }
}