:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --border-color: #cccccc;
    --form-bg: #f5f5f5;
    --warning-color: #ff0000;
    --header-bg: #f8f8f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.4;
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.page {
    /*max-width: 1200px;*/
    margin: 0 auto;
    /*padding: 20px;*/
    background-color: var(--secondary-color);
    padding-top: 0;
}

/* Header Styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    height: 80px;
    object-fit: contain;
}

.form-number {
    background-color: var(--warning-color);
    color: var(--secondary-color);
    padding: 5px 10px;
    font-weight: bold;
}

/* Form Title */
.form-title h1 {
    text-align: center;
    border: 1px solid var(--primary-color);
    padding: 10px;
    font-size: 18px;
    margin: 20px 0;
}

/* Instructions */
.form-instructions {
    margin: 20px 0;
}

.address-info {
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.6;
}

.warning-text {
    text-align: center;
    margin: 15px 0;
}

/* Notes Box */
.notes-box {
    background-color: var(--form-bg);
    padding: 15px;
    margin: 20px 0;
}

.notes-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.notes-content p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Form Sections */
.section-header {
    background-color: var(--form-bg);
    padding: 15px;
    margin: 20px 0;
}

.section-header h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.form-warning {
    color: var(--warning-color);
    font-size: 14px;
}

/* Form Layout */
.form-section {
    margin: 20px 0;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.three-columns > .form-group {
    flex: 1;
    min-width: 250px;
}

.four-columns > .form-group {
    flex: 1;
    min-width: 200px;
}

/* Form Elements */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

input[type="text"],
input[type="date"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--form-bg);
    font-size: 14px;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .three-columns > .form-group,
    .four-columns > .form-group {
        min-width: 100%;
    }

    .page {
        padding: 10px;
    }
}

/* Title Styles */
.form-title h1 {
    text-align: center;
    border: 1px solid var(--primary-color);
    padding: 10px;
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
}

/* Instructions Styles */
.form-instructions {
    margin-bottom: 30px;
}

.address-info {
    text-align: center;
    margin-bottom: 10px;
}

.warning-text {
    text-align: center;
    margin-bottom: 15px;
}

.notes-section {
    background-color: var(--form-bg);
    padding: 10px;
    margin-bottom: 20px;
}

.notes-title {
    font-weight: bold;
}

/* Form Styles */
.section-header {
    background-color: var(--form-bg);
    padding: 10px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: bold;
}

.form-warning {
    font-size: 14px;
    color: var(--warning-color);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.col-3 { width: calc(25% - 15px); }
.col-4 { width: calc(33.333% - 15px); }
.col-12 { width: 100%; }

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--form-bg);
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    gap: 20px;
}

.checkbox-group.inline {
    display: inline-flex;
    margin-right: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Address Grid */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.address-item {
    flex: 1;
}

/* Dependants Table Styles */
.dependants-table {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
}

.dependants-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--form-bg);
}

.dependants-table th,
.dependants-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    font-size: 14px;
}

.dependants-table th {
    background-color: var(--secondary-color);
    font-weight: bold;
    text-align: left;
}

.dependants-table input[type="text"],
.dependants-table input[type="date"] {
    width: 100%;
    padding: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--secondary-color);
}

.dependants-table .checkbox-cell {
    text-align: center;
    width: 60px;
}

.dependants-table .checkbox-label {
    justify-content: center;
}

/* Textarea Styles */
textarea.full-width {
    width: 100%;
    min-height: 100px;
    padding: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--form-bg);
    resize: vertical;
    margin-top: 10px;
    font-family: inherit;
    font-size: 14px;
}

/* Deportation Grid Styles */
.deportation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 15px 0;
    background-color: var(--form-bg);
    padding: 15px;
}

.deportation-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deportation-details,
.bankruptcy-details {
    margin-top: 15px;
}

/* Question Styles */
.form-group label {
    font-weight: normal;
    line-height: 1.4;
}

.form-group > label:first-child {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Education and Experience Tables */
.education-table,
.experience-table {
    margin-top: 15px;
    width: 100%;
    overflow-x: auto;
}

.education-table table,
.experience-table table {
    width: 100%;
    border-collapse: collapse;
}

.education-table th,
.education-table td,
.experience-table th,
.experience-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
}

.education-table th,
.experience-table th {
    background-color: var(--form-bg);
    font-weight: bold;
    text-align: left;
}

/* References Styles */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.reference-box {
    background-color: var(--form-bg);
    padding: 15px;
    border: 1px solid var(--border-color);
}

.reference-box h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.reference-fields {
    display: grid;
    gap: 10px;
}

/* Declaration Styles */
.declaration-box {
    background-color: var(--form-bg);
    padding: 20px;
    margin-top: 15px;
    border: 1px solid var(--border-color);
}

.declaration-box p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.signature-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.signature-box {
    height: 100px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    margin-top: 5px;
}

/* Estilos para a seção do empregador */
.business-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
    background-color: var(--form-bg);
    padding: 15px;
}

.col-6 { 
    width: calc(50% - 15px); 
}

/* Ajustes específicos para campos do empregador */
.section-header h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* Ajustes responsivos para página 2 */
@media (max-width: 768px) {
    .education-table,
    .experience-table {
        display: block;
        overflow-x: auto;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para questões com subitens */
.question-group {
    margin-bottom: 15px;
}

.question-group label {
    display: block;
    margin-bottom: 5px;
}

.full-width {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--form-bg);
}

/* Estilo para input curto com sufixo */
.years-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.short-input {
    width: 100px;
    padding: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--form-bg);
}

.input-suffix {
    color: var(--primary-color);
}

/* Rodapé da página */
.page-footer {
    margin-top: 40px;
    margin-bottom: 20px;
}

.footer-line {
    height: 1px;
    background-color: var(--primary-color);
    margin-bottom: 8px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    padding: 0 2px;
}

.form-reference {
    color: var(--primary-color);
    font-family: Arial, sans-serif;
}

.page-number {
    font-weight: bold;
}

/* Estilos para subquestões */
.sub-questions {
    margin: 15px 0;
    padding: 15px;
    background-color: var(--form-bg);
}

.sub-question {
    margin-top: 20px;
    margin-bottom: 20px;
}

.sub-question label {
    display: block;
    margin-bottom: 10px;
}

.detail-prompt {
    display: block;
    font-size: 13px;
    margin: 5px 0;
    color: var(--primary-color);
}

/* Seção de detalhes */
.details-section {
    margin-top: 10px;
}

.details-section label {
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Ajustes para referências */
.references-grid {
    margin-top: 20px;
}

.reference-box {
    padding: 20px;
}

.reference-fields .form-group {
    margin-bottom: 12px;
}

.reference-fields input[type="number"] {
    width: 100px;
}

/* Estilos para tabela de ofensas */
.additional-info {
    display: block;
    margin: 10px 0;
    font-size: 14px;
}

.offences-table {
    margin-top: 15px;
    width: 100%;
    overflow-x: auto;
}

.offences-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--form-bg);
}

.offences-table th,
.offences-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
}

.offences-table th {
    background-color: var(--form-bg);
    font-weight: bold;
    text-align: left;
    font-size: 14px;
}

.offences-table input[type="text"] {
    width: 100%;
    padding: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--secondary-color);
}

/* Ajustes para larguras das colunas */
.offences-table th:nth-child(1) { width: 25%; } /* Nature of offence */
.offences-table th:nth-child(2) { width: 15%; } /* Date */
.offences-table th:nth-child(3) { width: 35%; } /* Location */
.offences-table th:nth-child(4) { width: 25%; } /* Verdict and Sentence */

/* Estilos para opções de deportação */
.deportation-options {
    margin: 15px 0;
}

.option-item {
    margin-bottom: 15px;
    padding-left: 20px;
}

/* Estilos para tabela de multas */
.fines-table {
    margin-top: 15px;
    width: 100%;
    overflow-x: auto;
}

.fines-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--form-bg);
}

.fines-table th,
.fines-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
}

.fines-table th {
    background-color: var(--form-bg);
    font-weight: bold;
    text-align: left;
    font-size: 14px;
}

.fines-table input[type="text"] {
    width: 100%;
    padding: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--secondary-color);
}

/* Estilos para tabela de sanções */
.sanctions-table {
    margin-top: 15px;
    width: 100%;
    overflow-x: auto;
}

.sanctions-table table,
.dependants-offences-table table,
.residence-history-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--form-bg);
}

.sanctions-table th,
.sanctions-table td,
.dependants-offences-table th,
.dependants-offences-table td,
.residence-history-table th,
.residence-history-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
}

.sanctions-table th,
.dependants-offences-table th,
.residence-history-table th {
    background-color: var(--form-bg);
    font-weight: bold;
    text-align: left;
    font-size: 14px;
}

.sanctions-table input[type="text"],
.dependants-offences-table input[type="text"],
.residence-history-table input[type="text"] {
    width: 100%;
    padding: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--secondary-color);
}

/* Ajustes específicos para tabela de residência */
.residence-history-table th:nth-child(1),
.residence-history-table th:nth-child(2) {
    width: 15%;
}

.residence-history-table th:nth-child(3) {
    width: 70%;
}

/* Nota Importante */
.important-note {
    background-color: var(--form-bg);
    padding: 15px;
    margin: 20px 0;
    font-size: 14px;
}

/* Habilidades de Idioma */
.language-details {
    margin-top: 15px;
}

.native-language {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.medium-input {
    width: 300px;
    padding: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--form-bg);
}

.skill-item {
    margin-bottom: 10px;
}

/* Tabela de Testes de Inglês */
.test-table {
    margin-top: 15px;
    width: 100%;
    overflow-x: auto;
}

.test-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--form-bg);
}

.test-table th,
.test-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    vertical-align: middle;
}

.test-table td:last-child {
    font-size: 12px;
    color: var(--primary-color);
}

/* Estilos para a seção de saúde */
.health-questions {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.health-item {
    background-color: var(--form-bg);
    padding: 15px;
    border-radius: 4px;
}

.question-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.question-line label {
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.details-field {
    margin-top: 10px;
}

.details-field label {
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Estilos para notas e declaração */
.note-box {
    background-color: #f8f9fa;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.note-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.note-content {
    font-size: 14px;
    line-height: 1.6;
}

.declaration-box {
    margin-top: 30px;
}

.declaration-box p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.signature-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.signature-field {
    display: flex;
    flex-direction: column;
}

.signature-box {
    height: 100px;
    border: 1px solid var(--border-color);
    margin: 10px 0;
    background-color: white;
}

.signature-note {
    font-size: 12px;
    color: var(--primary-color);
    text-align: center;
}

.date-field {
    display: flex;
    flex-direction: column;
}

.date-field input {
    margin-top: 10px;
}

/* Estilo para o container dos toggles */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle-label {
    font-size: 14px;
    color: var(--primary-color);
}

/* Estilos para o Template de Fotografia */
.photo-template {
    background-color: var(--secondary-color);
    padding: 30px;
}

.template-header {
    text-align: center;
    border: 1px solid var(--border-color);
    padding: 10px;
    margin-bottom: 30px;
    background-color: var(--form-bg);
}

.template-header h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.template-header h3 {
    font-size: 16px;
}

/* Grid de Informações Pessoais */
.personal-info-grid,
.file-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    position: relative;
}

.info-note {
    font-size: 12px;
    color: var(--primary-color);
    margin-top: 5px;
    display: block;
}

/* Área da Foto */
.photo-area {
    text-align: center;
    margin: 40px 0;
}

.photo-frame {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    border: 1px solid var(--border-color);
    padding: 20px;
}

.max-size-indicator {
    border: 1px dashed var(--border-color);
    padding: 20px;
    position: relative;
}

.min-size-indicator {
    border: 1px dashed var(--border-color);
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.photo-placeholder {
    width: 150px;
    height: 200px;
    margin: 0 auto;
    background-color: var(--form-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder img {
    width: 80%;
    height: auto;
    opacity: 0.5;
}

/* Avisos e Instruções */
.staples-warning {
    text-align: center;
    margin: 30px 0;
}

.staples-warning h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.photo-instructions {
    margin: 30px 0;
}

.photo-instructions ul {
    list-style-type: none;
    padding-left: 20px;
}

.photo-instructions ul ul {
    margin: 10px 0;
}

.photo-instructions li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Rodapé Específico */
.website {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
}

/* Barra de Ações */
.action-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-bar .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

.action-bar .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 14px;
}

.action-bar .btn i {
    font-size: 16px;
}

.form-status .badge {
    font-size: 12px;
    padding: 0.5em 1em;
}

/* Estilos para a página do empregador */
.employer-notes {
    background-color: var(--form-bg);
    padding: 15px;
    margin-bottom: 30px;
}

.employer-header {
    margin-bottom: 30px;
}

.header-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.header-warning {
    color: var(--warning-color);
    font-size: 14px;
}

.section-title {
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

/* Formulário da empresa */
.company-form,
.personal-employer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-row.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row label {
    font-size: 14px;
    color: var(--primary-color);
}

.form-control.full-width {
    width: 100%;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .form-row.two-columns {
        grid-template-columns: 1fr;
    }
}

/* Estilos para os novos elementos da página 4 */
.inline-form-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.inline-form-row label {
    min-width: 200px;
    padding-top: 8px;
}

.inline-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inline-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.inline-field label {
    min-width: unset;
    padding-top: 0;
    font-size: 12px;
    color: var(--primary-color);
}

/* Estilos para as opções de salário */
.salary-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.salary-options {
    display: flex;
    gap: 20px;
    align-items: center;
}

.currency-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.salary-amount {
    width: 150px;
}

.hours-input {
    width: 100px;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .inline-form-row {
        flex-direction: column;
    }
    
    .inline-form-row label {
        min-width: unset;
    }
    
    .salary-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Novo CSS para questões do empregador */
.employer-questions {
    margin-top: 30px;
}

.question-row {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.question-label {
    min-width: 300px;
    padding-right: 20px;
    font-size: 14px;
    line-height: 1.5;
    padding-top: 5px;
}

.question-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-question-row {
    margin-left: 300px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.checkbox-group.horizontal {
    display: flex;
    gap: 20px;
    align-items: center;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.conditional-field {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.conditional-field label {
    font-size: 13px;
    color: var(--primary-color);
}

.row-pair {
    display: flex;
    gap: 20px;
    width: 100%;
}

.field-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.employer-contact {
    width: 100%;
}

.date-input {
    width: 180px;
}

.salary-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.currency-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.amount-input {
    width: 150px;
}

.period-options {
    display: flex;
    gap: 20px;
}

.hours-input {
    width: 100px;
}

/* Responsividade */
@media (max-width: 768px) {
    .question-row {
        flex-direction: column;
    }
    
    .question-label {
        min-width: unset;
        margin-bottom: 10px;
        font-weight: bold;
    }
    
    .sub-question-row {
        margin-left: 0;
    }
    
    .row-pair {
        flex-direction: column;
    }
    
    .salary-group {
        gap: 10px;
    }
    
    .currency-options {
        flex-wrap: wrap;
    }
    
    .period-options {
        flex-wrap: wrap;
    }
}

/* Adicionando estilos para as novas questões */
.employment-details {
    margin-top: 15px;
}

textarea.full-width {
    width: 100%;
    min-height: 80px;
    resize: vertical;
}

.medium-width {
    width: 250px;
}

/* Ajustar altura do textarea em modo responsivo */
@media (max-width: 768px) {
    textarea.full-width {
        min-height: 120px;
    }
    
    .medium-width {
        width: 100%;
    }
}

/* Estilos para duração da permissão */
.permit-duration {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.permit-duration .checkbox-inline {
    background-color: var(--form-bg);
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.permit-duration .checkbox-inline:hover {
    background-color: #e9ecef;
}

/* Ajuste responsivo para duração da permissão */
@media (max-width: 768px) {
    .permit-duration {
        flex-direction: column;
        gap: 10px;
    }
    
    .permit-duration .checkbox-inline {
        width: 100%;
    }
}

/* Estilos para a seção de declaração */
.declaration-section {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--form-bg);
    border-radius: 4px;
}

.declaration-section h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.declaration-text {
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0;
}

/* Ajustes para área de assinatura */
.signature-section {
    margin-top: 30px;
}

.signature-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.signature-field {
    flex: 2;
}

.signature-box {
    height: 2px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.date-field {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
}

.date-field input {
    margin-bottom: 10px;
}

.note-text {
    font-size: 12px;
    color: var(--primary-color);
    font-style: italic;
    margin-top: 5px;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .signature-row {
        flex-direction: column;
        gap: 20px;
    }

    .signature-field, 
    .date-field {
        width: 100%;
    }
}

/* Estilos para o suplemento de pensão e seguro saúde */
.supplement-title h1 {
    font-size: 18px;
    padding: 15px;
    background-color: #e6f0ff;
    border: 1px solid #000;
    text-align: center;
    margin-bottom: 0;
}

.supplement-subtitle {
    border: 1px solid #000;
    border-top: none;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.supplement-subtitle h2 {
    font-size: 16px;
    margin: 0;
}

.warning-box {
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.warning-box h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.warning-text {
    font-size: 12px;
    color: #dc3545;
    max-width: 400px;
    text-align: right;
}

.section-container {
    border: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.section-explanation {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.4;
}

.form-questions {
    margin-top: 20px;
}

.question-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.question-number {
    flex: 0 0 30px;
    font-weight: bold;
}

.question-text {
    flex: 1;
}

.question-options {
    flex: 0 0 120px;
    text-align: right;
}

.conditional-question {
    margin-left: 30px;
    margin-bottom: 15px;
    padding-top: 5px;
}

.answer-field {
    margin-top: 5px;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .question-row {
        flex-direction: column;
    }
    
    .question-options {
        text-align: left;
        margin-top: 10px;
    }
    
    .warning-box {
        flex-direction: column;
    }
    
    .warning-text {
        margin-top: 10px;
        text-align: left;
    }
}

/* Estilos para as declarações do empregador e funcionário */
.declarations-section {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #000;
}

.declaration-container {
    padding: 10px;
    height: 100%;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.declaration-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.declaration-content p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.signature-note {
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
    color: #6c757d;
}

/* Responsivo para declarações */
@media (max-width: 768px) {
    .declarations-section > div:first-child {
        margin-bottom: 30px;
    }
    
    .declaration-container {
        border: 1px solid #dee2e6;
    }
}


/* Estilo para checkboxes - usando "tick" em vez de "bolinha" */
.form-check-input[type="checkbox"] {
    border-radius: 2px;
    border: 2px solid #6c757d;
    background-color: #fff;
    width: 18px;
    height: 18px;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    margin-top: 0;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px;
}

.form-check-input[type="checkbox"]:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Estilo para labels de checkbox */
.form-check-label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.4;
}

/* Estilo para grupos de checkbox */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Estilo para radio buttons - mantém o estilo circular */
.form-check-input[type="radio"] {
    border-radius: 50%;
    border: 2px solid #6c757d;
    background-color: #fff;
    width: 18px;
    height: 18px;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-check-input[type="radio"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3ccircle cx='10' cy='10' r='5' fill='%23fff'/%3e%3c/svg%3e");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px;
}

.form-check-input[type="radio"]:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.table-form {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

    .table-form th,
    .table-form td {
        border: 1px solid #ccc;
        padding: 8px;
        background-color: #f0f6ff;
    }

    .table-form input {
        width: 100%;
        border: none;
        background: transparent;
    }

.question-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0;
    border-left: 2px solid #c0dff5;
}

.sub-question {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.details-box {
    margin-top: 0.5rem;
    padding: 1rem;
    background-color: #f0f6ff;
    border: 1px solid #ccc;
}

.light-blue-bg {
    background-color: #f0f6ff;
}

.form-control {
    background-color: #f0f6ff;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: "Times New Roman", Times, serif;
}

/* Adicionando estilos para os botões com ícones */
.btn i.bi {
    font-size: 1rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
}

.btn-sm i.bi {
    font-size: 0.9rem;
}

table .btn {
    padding: 0.25rem 0.5rem;
    margin: 0.15rem;
    min-width: 36px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para a tabela compacta */
.table-sm th {
    font-weight: 600;
    white-space: nowrap;
}

.table-sm td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Status badges */
.badge {
    padding: 0.5em 0.6em;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Botões na tabela de ações */
.table .d-flex.justify-content-center {
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    table .btn {
        margin: 0.1rem;
        font-size: 0.8rem;
    }
}

/* Suporte a ícones do Bootstrap caso a CDN falhe */
.icon-pdf::before {
    content: "\f725";
    font-family: "bootstrap-icons";
}

.icon-pencil::before {
    content: "\f4cb";
    font-family: "bootstrap-icons";
}

.icon-trash::before {
    content: "\f5de";
    font-family: "bootstrap-icons";
}

.icon-download::before {
    content: "\f30a";
    font-family: "bootstrap-icons";
}

.icon-database::before {
    content: "\f60e";
    font-family: "bootstrap-icons";
}

/* Configuração para ícones inline */
.bi {
    display: inline-block;
    line-height: 1;
    vertical-align: -0.125em;
}

/* Área de PDF */
.pdf-area {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.pdf-button {
    margin-top: 1rem;
}

/* Estilos melhorados para formulários - Padrão W3 */

/* Estilo para inputs com labels centralizados */
.form-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-input-group label {
    min-width: 200px;
    margin-right: 1rem;
    font-weight: 500;
    text-align: right;
    color: #333;
}

.form-input-group .form-control {
    flex: 1;
    max-width: 300px;
}

/* Estilo para checkboxes e radio buttons */
.form-check-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-check-group label {
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
}

.form-check-input {
    margin-right: 0.5rem;
}

/* Estilo para tabelas de dados - Padrão W3 */
.table-responsive {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-responsive .table {
    margin-bottom: 0;
    background-color: #fff;
}

.table-responsive .table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 12px 8px;
    font-size: 14px;
}

.table-responsive .table td {
    padding: 8px;
    vertical-align: middle;
    border-color: #e9ecef;
}

.light-blue-bg {
    background-color: #f8f9fa;
}

.light-blue-bg .form-control {
    border: 1px solid #ced4da;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.light-blue-bg .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Estilo para inputs pequenos nas tabelas */
.form-control-sm {
    height: 32px;
    padding: 4px 8px;
    font-size: 14px;
}

/* Padronização da altura de todos os inputs para manter consistência */
.form-control {
    height: 32px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: top;
}

/* Estilo para labels - sempre acima dos inputs */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* Inputs de data devem ter a mesma altura */
input[type="date"].form-control {
    height: 32px;
    padding: 4px 8px;
}

/* Inputs de número devem ter a mesma altura */
input[type="number"].form-control {
    height: 32px;
    padding: 4px 8px;
}

/* Textarea deve ter altura mínima consistente */
textarea.form-control {
    min-height: 32px;
    resize: vertical;
}

/* Estilo para grupos de campos em linha */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

.form-row > .col,
.form-row > [class*="col-"] {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

/* Estilo para seções de formulário */
.form-section {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-section h5 {
    color: #495057;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Estilo para alertas e mensagens */
.alert-primary {
    background-color: #cce7ff;
    border-color: #99d6ff;
    color: #004085;
}

/* Estilo para botões */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: all 0.15s ease-in-out;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

/* Estilo para loading */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .form-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-input-group label {
        min-width: auto;
        text-align: left;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .form-input-group .form-control {
        max-width: none;
    }
    
    .table-responsive {
        font-size: 12px;
    }
    
    .table-responsive .table th,
    .table-responsive .table td {
        padding: 6px 4px;
    }
}