/* ============================================
   SISTEMA DE INSCRIÇÃO - prosel.v1.dev.br
   Arquivo: style.css
   Versão: 3.0 - Completo e Otimizado
   ============================================ */

/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    color: #1e293b;
    line-height: 1.6;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== VARIÁVEIS CSS ===== */
:root {
    /* Cores principais */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-ultralight: #eff6ff;
    
    /* Cores de status */
    --secondary: #64748b;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --info: #06b6d4;
    
    /* Tons de cinza */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Cores funcionais */
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Bordas */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Espaçamentos */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Tipografia */
    --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    
    /* Transições */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.5s ease;
}

/* ===== BADGE DO SUBDOMÍNIO ===== */
.domain-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    z-index: var(--z-fixed);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.domain-badge i {
    font-size: 0.9rem;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.logo-icon {
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.subtitle {
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.header-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item i {
    font-size: 1rem;
}

/* ===== INFO DO SUBDOMÍNIO ===== */
.subdomain-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #92400e;
    font-size: 0.95rem;
    animation: slideIn 0.5s ease;
}

.subdomain-info i {
    color: #d97706;
    font-size: 1.3rem;
    margin-top: 2px;
}

.subdomain-info strong {
    font-weight: 600;
}

.subdomain-info small {
    font-size: 0.85rem;
    opacity: 0.8;
    display: block;
    margin-top: 4px;
}

/* ===== BARRA DE PROGRESSO ===== */
.progress-container {
    padding: 30px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--border);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 25px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 80px;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 12px;
    transition: all var(--transition);
    position: relative;
    z-index: 2;
    font-size: 1rem;
}

.step.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.step.completed .step-circle::after {
    content: '✓';
    font-weight: bold;
    font-size: 1.1rem;
}

.step-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-align: center;
    font-weight: 500;
    margin-top: 5px;
    transition: color var(--transition);
}

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

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

.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 25%;
}

/* ===== FORMULÁRIO ===== */
.form-container {
    padding: 40px;
}

.form-step {
    display: none;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.active {
    display: block;
}

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

h2 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

h2 i {
    font-size: 1.3rem;
    width: 30px;
}

.step-description {
    color: var(--gray-600);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 42px;
}

/* ===== GRUPOS DE FORMULÁRIO ===== */
.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* ===== INPUTS ===== */
.input-wrapper {
    position: relative;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition);
    background: white;
    color: var(--gray-800);
    line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: white;
}

input::placeholder,
textarea::placeholder,
select:invalid {
    color: var(--gray-400);
}

input[type="date"] {
    position: relative;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM2 2a1 1 0 0 0-1 1v1h14V3a1 1 0 0 0-1-1H2zm13 3H1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 45px;
}

/* ===== LAYOUT RESPONSIVO ===== */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* ===== CHECKBOX E RADIO ===== */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    transition: all var(--transition);
    user-select: none;
    border: 1px solid transparent;
    flex: 1;
    min-width: 120px;
}

.checkbox-label:hover {
    background: var(--gray-100);
    border-color: var(--border);
    transform: translateY(-2px);
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ===== UPLOAD DE ARQUIVOS ===== */
.file-upload {
    position: relative;
    margin-top: 10px;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--gray-50);
    text-align: center;
    min-height: 200px;
}

.file-label:hover {
    border-color: var(--primary);
    background: var(--primary-ultralight);
    transform: translateY(-2px);
}

.file-label i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    opacity: 0.8;
    transition: transform var(--transition);
}

.file-label:hover i {
    transform: translateY(-5px);
}

.file-label span:first-of-type {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.file-info {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 8px;
    line-height: 1.4;
}

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

.file-preview {
    margin-top: 15px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    display: none;
}

.file-preview.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.file-preview-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    font-size: 2rem;
    width: 40px;
    text-align: center;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 4px;
    word-break: break-all;
}

.file-size {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.file-remove {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 1rem;
}

.file-remove:hover {
    color: var(--danger);
    background: var(--gray-100);
}

/* ===== VALIDAÇÃO ===== */
.validation-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    font-size: 1.1rem;
}

.input-wrapper.valid .validation-icon {
    display: block;
    color: var(--success);
}

.input-wrapper.invalid .validation-icon {
    display: block;
    color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.error-message i {
    font-size: 1rem;
}

input.error,
select.error,
textarea.error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

input.error:focus,
select.error:focus,
textarea.error:focus {
    border-color: var(--danger) !important;
}

.text-muted {
    color: var(--gray-500) !important;
}

.d-block {
    display: block !important;
}

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

/* ===== REVISÃO ===== */
.review-container {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 35px;
    border: 1px solid var(--border);
    animation: fadeIn 0.5s ease;
}

.review-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

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

.review-section h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.review-item {
    display: flex;
    flex-direction: column;
}

.review-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.review-value {
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.5;
    word-break: break-word;
}

.confirmation-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 35px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.1); }
    50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}

.confirmation-box h3 {
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.confirmation-box p {
    margin-bottom: 18px;
    line-height: 1.7;
    color: var(--gray-700);
}

.confirmation-box i.text-warning {
    color: var(--warning);
    margin-right: 8px;
}

/* ===== CONTADOR DE CARACTERES ===== */
.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 6px;
}

.char-counter.warning {
    color: var(--warning);
}

.char-counter.error {
    color: var(--danger);
}

/* ===== BOTÕES ===== */
.form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 45px;
    padding-top: 35px;
    border-top: 2px solid var(--border);
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all var(--transition);
    text-decoration: none;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-200);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--success-dark) 0%, #047857 100%);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: auto;
}

.step-counter {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
    background: var(--gray-100);
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.step-counter span {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: var(--z-modal-backdrop);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 50px;
    max-width: 550px;
    width: 100%;
    text-align: center;
    animation: modalSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 25px;
    animation: bounce 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-content h2 {
    color: var(--success);
    margin-bottom: 20px;
    justify-content: center;
    font-size: 1.8rem;
    border: none;
    padding: 0;
}

.success-details {
    text-align: left;
}

.success-info {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--gray-600);
    font-weight: 500;
}

.info-value {
    color: var(--gray-800);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.modal-note {
    font-style: italic;
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Modal LGPD */
.lgpd-content {
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.lgpd-content h3 {
    color: var(--primary);
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

.lgpd-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.lgpd-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ===== LOADING ===== */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(4px);
}

.spinner {
    width: 70px;
    height: 70px;
    border: 5px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 25px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
    margin-bottom: 5px;
}

.loading-sub {
    font-size: 0.9rem;
    color: var(--gray-500);
    animation: none;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-50);
    padding: 30px 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--gray-500);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-bottom i {
    font-size: 0.9rem;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ===== UTILITÁRIOS ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-muted { color: var(--gray-500); }

.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .container {
        border-radius: var(--radius-lg);
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .form-container {
        padding: 30px 25px;
    }
    
    .progress-container {
        padding: 20px;
    }
    
    .footer {
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: var(--radius);
    }
    
    .header {
        padding: 25px 15px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        font-size: 2.5rem;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .step {
        flex: none;
        width: calc(50% - 10px);
        margin-bottom: 10px;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    h2 {
        font-size: 1.3rem;
        margin-bottom: 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    h2 i {
        font-size: 1.1rem;
    }
    
    .step-description {
        padding-left: 0;
        margin-bottom: 20px;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 35px;
        padding-top: 25px;
    }
    
    .btn {
        width: 100%;
        padding: 16px 24px;
    }
    
    .step-counter {
        order: -1;
        width: 100%;
        text-align: center;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }
    
    .domain-badge {
        top: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .checkbox-group {
        flex-direction: column;
    }
    
    .checkbox-label {
        min-width: 100%;
    }
    
    .review-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .info-item {
        width: 100%;
        justify-content: center;
    }
    
    .step {
        width: 100%;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .modal-icon {
        font-size: 4rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .subdomain-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 10px;
        padding: 15px;
    }
    
    .file-label {
        padding: 30px 15px;
        min-height: 150px;
    }
    
    .file-label i {
        font-size: 2.5rem;
    }
}

/* ===== IMPRESSÃO ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        padding: 0 !important;
        font-size: 12pt !important;
    }
    
    .container {
        box-shadow: none !important;
        border-radius: 0 !important;
        max-width: 100% !important;
    }
    
    .header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid #000;
    }
    
    .form-buttons,
    .footer,
    .progress-container,
    .subdomain-info,
    .domain-badge {
        display: none !important;
    }
    
    .form-step.active {
        display: block !important;
    }
    
    .review-container,
    .confirmation-box {
        border: 1px solid #000 !important;
        background: white !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .btn {
        display: none !important;
    }
}