@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #215086;
    --primary-light: #3269a6;
    --secondary-color: #c9a227;
    --secondary-hover: #b08d20;
    --secondary-light: #fffdf5;
    --text-color: #2b3a4a;
    --text-muted: #6b7c90;
    --bg-color: #f7f9fa;
    --card-bg: #ffffff;
    --border-color: #d1dbe5;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --radius-lg: 16px;
    --radius-md: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(13, 33, 55, 0.08);
    --shadow-lg: 0 20px 40px rgba(13, 33, 55, 0.12);
    --font-base: 'Inter', sans-serif;
    --font-title: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-base);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 18px; /* Maior legibilidade para idosos */
    padding-top: 100px; /* Espaço para a barra de progresso fixa */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- BARRA DE PROGRESSO FIXA NO TOPO --- */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 12px 24px;
    font-family: var(--font-title);
    border-bottom: 3px solid var(--secondary-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 8px auto;
    font-size: 15px;
    font-weight: 500;
}

.progress-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.progress-step-info {
    color: #cbd5e1;
}

.progress-status {
    color: var(--secondary-color);
    font-size: 13px;
}

.progress-track {
    width: 100%;
    height: 10px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 5px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), #f1c40f);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 5px;
}

/* --- LAYOUT DO PORTAL --- */
.container {
    flex: 1;
    width: 92%;
    max-width: 850px;
    margin: 30px auto;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(13, 33, 55, 0.05);
    overflow: visible !important;
    margin-bottom: 40px;
}

.card-header {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary-color);
    padding: 35px;
    text-align: center;
    border-bottom: 4px solid var(--secondary-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.logo-container img {
    max-width: 190px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.portal-title {
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.portal-subtitle {
    font-size: 16px;
    color: #475569;
    font-weight: 500;
}

.card-body {
    padding: 40px;
}

/* --- TÍTULOS --- */
h2 {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

h3 {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* --- FORMULÁRIOS E INPUTS --- */
.form-group {
    margin-bottom: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
    align-items: start;
}

.form-row.thirds {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-row.halves {
    grid-template-columns: 1fr 1fr;
}

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

.label-required::after {
    content: " *";
    color: var(--error-color);
    font-weight: 700;
}

/* Inputs, Selects e Textareas */
.form-control {
    width: 100%;
    height: 54px; /* Maior para facilitar cliques */
    padding: 10px 16px;
    font-size: 18px;
    font-family: var(--font-base);
    color: var(--text-color);
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23215086' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Opções de Radio e Checkbox grandes */
.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.option-box {
    flex: 1;
    min-width: 160px;
}

.option-box input[type="radio"],
.option-box input[type="checkbox"] {
    display: none;
}

.option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    user-select: none;
    min-height: 60px;
}

.option-box input[type="radio"]:checked + .option-label,
.option-box input[type="checkbox"]:checked + .option-label {
    border-color: var(--secondary-color);
    background-color: var(--secondary-light);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(201, 162, 39, 0.1);
}

/* Checkbox simples termos de uso */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.custom-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    transition: all 0.15s;
    margin-top: 2px;
}

.checkbox-container input:checked + .custom-checkbox {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
}

.checkbox-container input:checked + .custom-checkbox::after {
    content: "";
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.checkbox-text {
    font-size: 17px;
    line-height: 1.4;
    color: var(--text-color);
}

.checkbox-container input:disabled + .custom-checkbox {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    cursor: pointer;
    opacity: 0.7;
}

.checkbox-container input:disabled ~ .checkbox-text {
    opacity: 0.85;
}

/* --- AJUDA CONTEXTUAL E TOOLTIPS --- */
.help-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: #f1f5f9;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
    transition: all 0.15s;
    border: 1px solid var(--border-color);
}

.help-icon:hover {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

/* Balão explicativo */
.tooltip-box {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: -11px;
    left: auto;
    transform: none;
    width: 280px;
    padding: 14px 16px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border-bottom: 3px solid var(--secondary-color);
    pointer-events: none;
    text-align: left;
}

.tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 11px;
    left: auto;
    transform: none;
    border-width: 8px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}

.help-wrapper:hover .tooltip-box,
.help-wrapper:focus-within .tooltip-box,
.help-icon:hover + .tooltip-box,
.help-icon:focus + .tooltip-box,
.tooltip-box.active {
    display: block !important;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* --- BOTÕES --- */
.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-title);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
    height: 56px;
    user-select: none;
}

.btn:disabled {
    background-color: #cbd5e1 !important;
    color: #64748b !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #e2e8f0;
}

.btn-block {
    width: 100%;
}

/* --- SEÇÃO DINÂMICA DE DEPENDENTES --- */
.dependentes-wrapper {
    background-color: #f8fafc;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.dependente-row {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.btn-remove-dep {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background-color: var(--error-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-add-dep {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 10px;
    font-size: 16px;
    height: 48px;
}

.btn-add-dep:hover {
    background-color: #f1f5f9;
}

/* --- EXIBIÇÃO CONDICIONAL --- */
.conditional-field {
    display: none;
    background-color: var(--secondary-light);
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-top: 15px;
    margin-bottom: 15px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ALERTAS E FEEDBACK --- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-info {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.invalid-feedback {
    display: none;
    color: var(--error-color);
    font-size: 15px;
    font-weight: 500;
    margin-top: 5px;
}

.is-invalid {
    border-color: var(--error-color) !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

/* --- UPLOAD DE DOCUMENTOS --- */
.upload-zone {
    border: 3px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 15px;
}

.upload-zone:hover {
    border-color: var(--secondary-color);
    background-color: var(--secondary-light);
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.upload-text {
    font-size: 17px;
    color: var(--text-color);
    font-weight: 500;
}

.upload-tip {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.doc-list {
    margin-top: 20px;
}

.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-status-icon {
    color: var(--success-color);
    font-weight: bold;
}

.doc-name {
    font-size: 16px;
    font-weight: 500;
}

.btn-remove-doc {
    background-color: transparent;
    color: var(--error-color);
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.btn-remove-doc:hover {
    text-decoration: underline;
}

/* --- TELA DE REVISÃO --- */
.revisao-section {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    overflow: visible !important;
    box-shadow: var(--shadow-sm);
}

.revisao-section-header {
    background-color: #f8fafc;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.revisao-section-title {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-edit-section {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
}

.btn-edit-section:hover {
    color: var(--secondary-hover);
    text-decoration: underline;
}

.revisao-section-body {
    padding: 24px;
}

.revisao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.revisao-item {
    font-size: 16px;
}

.revisao-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.revisao-value {
    font-weight: 600;
    color: var(--text-color);
}

/* --- TELA DE CONFIRMAÇÃO --- */
.success-screen {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #d1fae5;
    color: var(--success-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 25px;
}

.success-title {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.success-text {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- DIALOG / POPOVER MOBILE (PARA AJUDA) --- */
.mobile-help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 33, 55, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mobile-help-content {
    background-color: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--secondary-color);
    animation: modalSlideUp 0.3s ease-out;
}

.mobile-help-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}

.mobile-help-title {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mobile-help-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- INDICADOR DE PROCESSAMENTO --- */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(13, 33, 55, 0.1);
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-text {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* --- RODAPÉ --- */
footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: auto;
}

/* --- SWITCH DESLIZANTE (TOGGLE) --- */
.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 15px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    flex-shrink: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s ease;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .slider {
    background-color: var(--secondary-color);
}
input:focus + .slider {
    box-shadow: 0 0 1px var(--secondary-color);
}
input:checked + .slider:before {
    transform: translateX(28px);
}
.switch-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    user-select: none;
    cursor: pointer;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    body {
        padding-top: 90px;
        font-size: 17px;
    }
    
    .container {
        margin: 15px auto;
    }
    
    .card-header {
        padding: 25px 20px;
    }
    
    .portal-title {
        font-size: 24px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-row.thirds {
        grid-template-columns: 1fr;
    }
    
    .form-row.halves {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}

/* --- ESTILOS DO TERMO E MODAL (LGPD) --- */
.btn-ver-termo {
    background-color: var(--secondary-light);
    color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-ver-termo:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(201, 162, 39, 0.25);
}

.link-termo {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.15s ease;
}

.link-termo:hover {
    color: var(--primary-light);
}

/* Modal Overlay */
.termo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: termoFadeIn 0.25s ease-out;
}

@keyframes termoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.termo-modal-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 800px;
    max-height: 88vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: termoSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes termoSlideUp {
    from { transform: translateY(20px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.termo-modal-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--secondary-color);
}

.termo-modal-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.termo-modal-icon {
    font-size: 22px;
}

.termo-modal-header h3 {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #ffffff;
}

.termo-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.termo-modal-close:hover {
    color: var(--secondary-color);
}

.termo-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    flex: 1;
}

.termo-intro {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.termo-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.termo-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.termo-section h4 {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.termo-section p {
    margin-bottom: 8px;
    color: #334155;
}

.termo-section ol {
    padding-left: 20px;
    margin-top: 8px;
}

.termo-section ol li {
    margin-bottom: 8px;
    color: #334155;
}

.termo-section-aceite {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 24px;
}

.termo-modal-footer {
    padding: 16px 24px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

