/* ========================================
   CANAL DE DENÚNCIAS - LPX
   Stylesheet Principal
   ======================================== */

/* Reset e Variáveis Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #E96538;
    --primary-dark: #d14a24;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-900: #111827;
    --success: #10b981;
    --error: #ef4444;
}

/* ========================================
   ESTILOS BASE
   ======================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================================
   HEADER E LOGO
   ======================================== */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0 20px;
    border-bottom: 3px solid var(--primary);
}

.logo {
    width: 140px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

h1 {
    font-size: 28px;
    color: var(--gray-900);
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.info-banner {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 4px;
    font-size: 13px;
    color: #92400e;
    margin-top: 15px;
}

/* ========================================
   PROGRESS BAR E STEPS
   ======================================== */
.progress-container {
    margin-bottom: 40px;
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.steps-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--gray-300);
    z-index: -1;
}

.step.active:not(:last-child)::after,
.step.completed:not(:last-child)::after {
    background: var(--primary);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-700);
    z-index: 1;
    transition: all 0.3s ease;
    line-height: 1;
}

.step-circle [data-feather] {
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
}

.step.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step.active .step-circle [data-feather] {
    color: white;
    stroke: white;
}

.step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step.completed .step-circle [data-feather] {
    color: white;
    stroke: white;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
    max-width: 80px;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step.completed .step-label {
    color: var(--success);
}

.step.disabled .step-circle {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-300);
    opacity: 0.5;
}

.step.disabled .step-label {
    color: var(--gray-300);
    opacity: 0.5;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    width: 0%;
    transition: width 0.3s ease;
}

/* ========================================
   CONTAINER DE FORMULÁRIO
   ======================================== */
.form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary);
    padding: 30px 20px;
    display: block;
    margin-bottom: 20px;
    min-height: 300px;
}

/* BS Stepper - Gerenciamento de visibilidade dos steps */
.bs-stepper .content.active {
    display: block !important;
    visibility: visible !important;
}

.bs-stepper .content:not(.active) {
    display: none !important;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    font-size: 28px;
}

/* ========================================
   ELEMENTOS DE FORMULÁRIO
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 14px;
}

.label-info {
    font-weight: normal;
    color: var(--gray-700);
    font-size: 13px;
}

.required {
    color: var(--error);
    margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 101, 56, 0.1);
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    color: var(--error);
    font-size: 12px;
    margin-top: 6px;
}

.invalid-feedback.d-block {
    display: block;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   OPÇÕES DE RÁDIO
   ======================================== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--gray-50);
}

.radio-option:hover {
    border-color: var(--primary);
    background: rgba(233, 101, 56, 0.02);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.radio-option.selected {
    border-color: var(--primary);
    background: rgba(233, 101, 56, 0.05);
}

.radio-label {
    flex: 1;
}

.radio-label strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 6px;
    font-size: 16px;
}

.radio-label small {
    color: var(--gray-700);
    font-size: 13px;
    display: block;
    line-height: 1.5;
}

.conditional-fields {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.conditional-fields.show {
    display: block;
}

/* ========================================
   UPLOAD DE ARQUIVOS
   ======================================== */
.file-upload {
    position: relative;
    display: block;
    border: 2px dashed var(--gray-300);
    border-radius: 6px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(233, 101, 56, 0.02);
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-text {
    font-size: 14px;
    color: var(--gray-700);
    pointer-events: none;
}

.file-upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.file-list {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-tag {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-tag button {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
}

.review-file {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--gray-900);
}

/* ========================================
   CHECKLIST E MENSAGENS
   ======================================== */
.checklist {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 15px;
    font-size: 13px;
    line-height: 1.8;
}

.checklist strong {
    display: block;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.error-message {
    color: var(--error);
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.form-errors {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.form-errors h3 {
    color: var(--error);
    margin-bottom: 10px;
    font-size: 14px;
}

.form-errors ul {
    list-style: none;
    font-size: 13px;
}

.form-errors li {
    color: var(--gray-900);
    margin-bottom: 6px;
}

.form-errors li:before {
    content: "⚠ ";
    color: var(--error);
    margin-right: 6px;
}

/* ========================================
   BOTÕES E NAVEGAÇÃO
   ======================================== */
.button-group {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 101, 56, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-900);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-300);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-counter {
    text-align: center;
    color: var(--gray-700);
    font-size: 12px;
    margin-top: 15px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 640px) {
    .container {
        padding: 15px;
    }

    header {
        margin-bottom: 25px;
        padding: 20px 0 15px;
    }

    h1 {
        font-size: 22px;
    }

    .logo {
        width: 110px;
    }

    .progress-container {
        padding: 20px 15px;
    }

    .steps-list {
        gap: 5px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .step-label {
        font-size: 10px;
        max-width: 60px;
    }

    .form-container {
        padding: 20px 15px;
        min-height: auto;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}

/* ========================================
   JQUERY STEPS CUSTOMIZATION
   ======================================== */
.steps {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary);
    padding: 30px 20px;
    margin-bottom: 20px;
}

.steps .current-info {
    display: none;
}

.steps .step {
    border: none;
    background: transparent;
    text-align: center;
    padding: 20px;
    position: relative;
}

.steps .step a {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.steps .step:not(:last-child) {
    display: inline-block;
    width: 19%;
    min-width: 80px;
}

.steps .step:last-child {
    display: inline-block;
    width: 19%;
    min-width: 80px;
}

.steps .step.current a {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.steps .step.done a {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.steps .step.disabled a {
    opacity: 0.5;
    color: var(--gray-300);
    border-color: var(--gray-300);
    cursor: not-allowed;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--gray-300);
    z-index: -1;
}

.step.done:not(:last-child)::after,
.step.current:not(:last-child)::after {
    background: var(--primary);
}

.steps .content {
    padding: 20px 0;
}

.steps .actions {
    margin-top: 30px;
    text-align: center;
}

.steps .actions a {
    background: var(--gray-200);
    color: var(--gray-900);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 0 6px;
    display: inline-block;
}

.steps .actions a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.steps .actions a:not(.disabled):hover {
    background: var(--gray-300);
}

.steps .actions a.finish {
    background: var(--primary);
    color: white;
}

.steps .actions a.finish:not(.disabled):hover {
    background: var(--primary-dark);
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

fieldset legend {
    width: 100%;
    padding: 0;
    margin-bottom: 25px;
}

.hidden-step {
    display: none !important;
}

/* Feather Icons */
[data-feather] {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: inline-block;
}

.bs-stepper-circle [data-feather] {
    width: 20px;
    height: 20px;
    display: block;
}

h4 [data-feather] {
    color: var(--primary);
}

button [data-feather],
a.btn [data-feather] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 8px;
}

ul li [data-feather] {
    color: var(--success);
}
