/* Reset e estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
h1 {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin: 0;
    font-size: 2.2em;
    font-weight: 300;
}

.description {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 1.1em;
    background: #f8f9fa;
    margin: 0;
}

/* Steps indicator */
.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: #f8f9fa;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

.step-title {
    font-size: 0.9em;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.step.active .step-title {
    color: #007bff;
    font-weight: 600;
}

.step-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
    transform: translateY(-50%);
}

/* Step content */
.step-content {
    padding: 40px;
}

.step-content h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 400;
}

/* Form elements */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.flex-row {
    display: flex;
    gap: 15px;
}

.flex-row input {
    flex: 1;
}

/* Checkboxes */
input[type="checkbox"] {
    width: auto !important;
    margin-right: 10px;
    transform: scale(1.2);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-success {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

/* Detrações */
.detracao-item {
    margin-bottom: 20px;
}

.detracao-item > div {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.detracao-item h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.detracao-item .flex-row {
    margin-bottom: 15px;
}

.detracao-item label {
    font-size: 0.9em;
    margin-bottom: 5px;
}

/* Results */
.result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.result p {
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result strong {
    color: #495057;
}

.result span {
    color: #007bff;
    font-weight: 600;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: #2c3e50;
    color: white;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .steps {
        padding: 20px 15px;
    }
    
    .step-title {
        font-size: 0.8em;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .flex-row {
        flex-direction: column;
        gap: 10px;
    }
    
    h1 {
        font-size: 1.8em;
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .steps {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .step {
        flex: 1;
        min-width: 120px;
    }
    
    .step-line {
        display: none;
    }
}

/* === Barra Superior (Navbar) === */
.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: bold;
  color: #007bff;
}

.navbar-nav {
  display: flex;
  gap: 15px;
}

.nav-link {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #0056b3;
}
