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

/* CSS Variables for Premium Design */
:root {
    /* Color Palette */
    --primary: #2563eb;
    /* Royal Blue */
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;

    --secondary: #10b981;
    /* Emerald */
    --secondary-hover: #059669;

    --dark-bg: #0f172a;
    /* Slate 900 */
    --dark-surface: #1e293b;
    /* Slate 800 */

    --bg-body: #f8fafc;
    /* Slate 50 */
    --card-bg: #ffffff;

    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */

    --border: #e2e8f0;
    /* Slate 200 */
    --input-bg: #f1f5f9;
    /* Slate 100 */

    --error: #ef4444;
    --error-bg: #fef2f2;
    --success: #10b981;
    --warning: #f59e0b;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.15);

    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 600;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar (Premium Dark Mode Look) */
.sidebar {
    width: 320px;
    background: var(--dark-bg);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 50;
}

.sidebar-header {
    padding: 32px 24px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: white;
}

.sidebar h2,
.sidebar h3 {
    color: white;
}

.logo i {
    color: var(--primary);
}

.sidebar-header p {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 400;
}

.sidebar-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Glassmorphic Info Cards */
.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.info-card h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
}

.info-card h3 i {
    color: var(--primary);
}

.info-card p,
.info-card ul {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.info-card ul {
    padding-left: 20px;
    margin-top: 8px;
}

.info-card li {
    margin-bottom: 6px;
}

/* Downloads Section */
.download-section h3 {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
}

.download-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 14px;
    border-radius: var(--radius-md);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.download-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.download-link i {
    color: #ef4444;
    /* PDF Red */
    font-size: 1.2rem;
}

.sidebar-footer {
    padding: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Main Content Area */
.main-content {
    margin-left: 320px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 48px;
}

.main-content>* {
    width: 100%;
    max-width: 860px;
}

.main-header {
    margin-bottom: 40px;
}

.main-header h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-main), #334155);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Refined Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--bg-body);
}

.step-circle {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    box-shadow: 0 0 0 4px var(--bg-body);
    /* Fake background clip */
}

.step.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px var(--bg-body), 0 0 0 8px var(--primary-light);
}

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

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

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

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

.step-line {
    display: none;
}

/* Removed old lines */

/* Form Animations */
.form-step {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Cards */
.section-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
}

.section-header,
.section-header-no-collapse {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.section-header {
    cursor: pointer;
    user-select: none;
}

.section-header h2,
.section-header-no-collapse h2 {
    font-size: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header-no-collapse p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.toggle-icon {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    background: var(--bg-body);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.collapsible.open .toggle-icon {
    transform: rotate(180deg);
}

.section-body {
    padding: 32px;
    display: none;
    background: #ffffff;
}

.collapsible.open .section-body,
.section-header-no-collapse+.section-body {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 32px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-body);
}

/* Modern Forms */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.form-group {
    padding: 0 12px;
    margin-bottom: 24px;
}

/* Grid fractions */
.col-md-1 {
    width: 8.33%;
}

.col-md-2 {
    width: 16.66%;
}

.col-md-3 {
    width: 25%;
}

.col-md-4 {
    width: 33.33%;
}

.col-md-6 {
    width: 50%;
}

.col-md-8 {
    width: 66.66%;
}

.col-md-12 {
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group label i {
    margin-right: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group select::placeholder {
    color: #94a3b8;
}

.form-group input:hover,
.form-group select:hover {
    background-color: #e2e8f0;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-focus);
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

input.error,
select.error {
    border-color: var(--error) !important;
    background-color: var(--error-bg) !important;
}

/* Exquisite Checkboxes & Radios */
.checkbox-container,
.radio-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.checkbox-container:hover,
.radio-container:hover {
    color: var(--primary);
}

.checkbox-container input,
.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark,
.radio-circle {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--input-bg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.checkmark {
    border-radius: 6px;
}

.radio-circle {
    border-radius: 50%;
}

.checkbox-container:hover input~.checkmark,
.radio-container:hover input~.radio-circle {
    border-color: var(--primary);
}

.checkbox-container input:checked~.checkmark,
.radio-container input:checked~.radio-circle {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.radio-circle:after {
    content: "";
    position: absolute;
    display: none;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.radio-container input:checked~.radio-circle:after {
    display: block;
}

/* Dynamic Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-success:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: white;
    border: 1px solid var(--border);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background-color: var(--bg-body);
    border-color: #cbd5e1;
}

.form-actions {
    display: flex;
    margin-top: 32px;
    gap: 16px;
}

.form-actions.right {
    justify-content: flex-end;
}

.form-actions.space-between {
    justify-content: space-between;
}

/* Termo Card */
.termo-card {
    background: linear-gradient(145deg, #ffffff, var(--primary-light));
    border-left: 4px solid var(--primary);
    padding: 32px;
}

.termo-texto {
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary-hover);
}

.termo-texto small {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 8px;
    font-style: normal;
    line-height: 1.6;
}

/* Radio Cards (Assinatura) */
.radio-card input {
    display: none;
}

.radio-card .card-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.radio-card:hover .card-content {
    border-color: #cbd5e1;
    background: var(--bg-body);
}

.radio-card input:checked+.card-content {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow-focus);
}

.radio-card .card-text h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.radio-card .card-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th,
.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.data-table th {
    background-color: var(--bg-body);
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background-color: var(--bg-body);
}

/* Modal Premium */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--error);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 24px 32px;
    background: var(--bg-body);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--dark-surface);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 300px;
    font-weight: 500;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border-left: 4px solid var(--primary);
}

.toast.error {
    border-left-color: var(--error);
}

.toast.success {
    border-left-color: var(--success);
}

/* File Upload Premium Zone */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-body);
}

.drop-zone i {
    color: var(--primary);
    transition: var(--transition);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.drop-zone:hover i {
    transform: translateY(-5px);
}

.drop-zone h4 {
    margin: 16px 0 8px;
    font-size: 1.1rem;
}

/* Utilities */
.d-none {
    display: none !important;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

/* Categorized Document Upload (Step 3) */
.doc-upload-section {
    background: transparent;
    margin-bottom: 32px;
}

.doc-upload-section-title {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.doc-upload-section-title i {
    color: var(--primary);
    background: var(--primary-light);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.doc-upload-section-title.dependente-title i {
    color: #0891b2;
    background: #cffafe;
}

.dep-rel-badge {
    font-weight: 500;
    font-size: 0.8rem;
    background: var(--bg-body);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 99px;
    margin-left: auto;
    border: 1px solid var(--border);
}

.doc-upload-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-upload-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.doc-upload-row:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.doc-upload-row.has-file {
    background: var(--bg-body);
    border-color: var(--primary);
}

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

.doc-icon {
    width: 48px;
    height: 48px;
    background: var(--input-bg);
    color: var(--text-muted);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.doc-upload-row:hover .doc-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.doc-upload-row.has-file .doc-icon {
    background: var(--success);
    color: white;
}

.doc-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doc-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge-required {
    display: inline-block;
    background: var(--error-bg);
    color: var(--error);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.doc-action {
    display: flex;
    align-items: center;
    min-width: 200px;
    justify-content: flex-end;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.doc-preview {
    display: none;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    max-width: 300px;
}

.doc-upload-row.has-file .doc-preview {
    display: flex;
}

.doc-upload-row.has-file .doc-upload-btn {
    display: none;
}

.slot-file-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.slot-file-name-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.slot-file-size {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

.slot-remove-btn {
    background: #fee2e2;
    color: var(--error);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slot-remove-btn:hover {
    background: #fca5a5;
    color: #991b1b;
}

@media (max-width: 768px) {
    .doc-upload-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .doc-action {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Alert Boxes */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-box i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1rem;
}

.alert-box.info {
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #1e40af;
}

.alert-box.info i {
    color: var(--primary);
}

.alert-box.warning {
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.alert-box.warning i {
    color: #f59e0b;
}

/* Danger Button */
.btn-danger {
    background-color: var(--error);
    color: white;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

/* Document Checklist (Step 3 - Anexos) */
.doc-checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.doc-checklist-block {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.doc-checklist-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: white;
}

.doc-checklist-header.titular {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.doc-checklist-header.dependente {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

.doc-checklist-list {
    list-style: none;
    padding: 14px 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-checklist-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.45;
}

.doc-checklist-list li i {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.doc-note {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: normal;
}

.doc-eligible {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px 18px 0;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.doc-eligible i {
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.text-primary {
    color: var(--primary);
}

/* Custom Tabs for Step 3 */
.tabs-container {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--primary);
    background: white;
}

.tab-btn.active {
    color: var(--primary);
    font-weight: 600;
    background: white;
    border-bottom: 2px solid var(--primary);
}

.tabs-content {
    padding: 24px;
}

.tab-pane {
    animation: fadeIn 0.3s ease;
}

.tab-pane h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--text-main);
}

@media (max-width: 640px) {
    .tabs-header {
        flex-direction: column;
    }

    .doc-checklist-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
    }

    .main-content {
        margin-left: 280px;
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .main-content>* {
        max-width: 100%;
    }

    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8 {
        width: 100%;
    }

    .stepper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .stepper::before {
        display: none;
    }

    .step {
        flex: 0 0 calc(33% - 20px);
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}