@font-face {
    font-family: Steelr;
    src: url('https://consultasegura.com.br/fonts/SteelrDemo.ttf');
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== CORES ===== */
:root {
    --primary: #0a2540;
    --primary-light: #1a3a5c;
    --secondary: #0066cc;
    --accent: #00c853;
    --accent-light: #69f0ae;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
}

/* ===== HEADER ===== */
.header-custom {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-custom .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-custom .logo img {
    width: 50px;
    height: auto;
}

.header-custom .logo span {
    font-weight: 700;
    font-size: 1.4rem;
    color: #0a2540;
}

/* ===== CONTAINER PRINCIPAL ===== */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.card-cadastro {
    max-width: 900px;
    width: 100%;
    background: white;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 30px 30px 40px;
    transition: all 0.3s ease;
}

.card-cadastro .step-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 8px;
}

.card-cadastro .step-subtitle {
    color: var(--gray-600);
    margin-bottom: 24px;
}

.card-cadastro .form-label {
    font-weight: 500;
    color: #0a2540;
}

.card-cadastro .form-control,
.card-cadastro .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-cadastro .form-control:focus,
.card-cadastro .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
}

.card-cadastro .btn-primary-custom {
    background: var(--secondary);
    border: none;
    border-radius: 40px;
    padding: 10px 32px;
    font-weight: 600;
    color: white;
    transition: all 0.2s ease;
}

.card-cadastro .btn-primary-custom:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.card-cadastro .btn-success-custom {
    background: var(--accent);
    border: none;
    border-radius: 40px;
    padding: 10px 32px;
    font-weight: 600;
    color: #0a2540;
    transition: all 0.2s ease;
}

.card-cadastro .btn-success-custom:hover {
    background: #00e676;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.3);
}

.card-cadastro .btn-outline-secondary-custom {
    border: 1.5px solid var(--gray-200);
    border-radius: 40px;
    padding: 10px 32px;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.2s ease;
    background: transparent;
}

.card-cadastro .btn-outline-secondary-custom:hover {
    background: var(--gray-100);
    border-color: var(--gray-600);
}

.erroInput {
    border: 2px solid #dc2626 !important;
}

.form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

/* ===== ETAPA 1 (CPF/CNPJ) ===== */
#div_cpf .input-group-custom {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#div_cpf .input-group-custom input {
    flex: 1;
    min-width: 220px;
}

@media (max-width: 576px) {
    #div_cpf .input-group-custom {
        flex-direction: column;
    }

    #div_cpf .input-group-custom input,
    #div_cpf .input-group-custom button {
        width: 100%;
    }
}

/* ===== TERMOS ===== */
.termos-link {
    color: var(--secondary);
    font-weight: 500;
    cursor: pointer;
}

.termos-link:hover {
    text-decoration: underline;
}

/* ===== BOTÃO VOLTAR ===== */
.btn-voltar {
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.2s ease;
}

.btn-voltar:hover {
    color: var(--primary);
}

/* ===== FOOTER ===== */
.footer-custom {
    background: #0a2540;
    color: #e2e8f0;
    padding: 30px 0 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-custom a {
    color: #94a3b8;
    transition: color 0.2s ease;
    margin: 0 12px;
}

.footer-custom a:hover {
    color: white;
}

/* ===== MODAL PDF ===== */
.modal-pdf .modal-content {
    border-radius: var(--radius);
}

.modal-pdf .modal-body {
    padding: 20px;
}

.modal-pdf iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: var(--radius-sm);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .card-cadastro {
        padding: 20px 16px 30px;
    }

    .card-cadastro .step-title {
        font-size: 1.5rem;
    }

    .header-custom .logo span {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .card-cadastro .step-title {
        font-size: 1.3rem;
    }
}

/* ===== UTILITÁRIOS ===== */
.text-gradient {
    background: linear-gradient(135deg, #00c853, #69f0ae);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fs-14 {
    font-size: 0.9rem;
}

.mt-8 {
    margin-top: 8px;
}

.mb-8 {
    margin-bottom: 8px;
}

@font-face {
    font-family: Steelr;
    src: url('https://consultasegura.com.br/fonts/SteelrDemo.ttf')
}

.logo {
    font-family: Steelr;
}

.hidden {
    display: none;
}

/* ===== TOGGLE PASSWORD ===== */
.toggle-password {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: none;
    background: white;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.toggle-password:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.toggle-password:focus {
    box-shadow: none;
}

.input-group .form-control:focus {
    border-right: none;
}

.input-group .form-control:focus+.toggle-password {
    border-color: var(--secondary);
}

/* ============================================================
   RESET E BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    color: #1e293b;
    min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */
.header-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.03);
}

.logo-img-wrapper {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(10, 37, 64, 0.1));
}

.logo-text {
    font-family: Steelr;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0a2540;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-highlight {
    background: linear-gradient(135deg, #0066cc, #00c853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-voltar-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #475569;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-voltar-header:hover {
    background: #f8fafc;
    border-color: #0066cc;
    color: #0066cc;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.btn-voltar-header i {
    font-size: 1rem;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.main-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px 60px;
    min-height: calc(100vh - 70px);
}

.card-cadastro {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(10, 37, 64, 0.08);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.card-cadastro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #00c853, #69f0ae);
}

/* ============================================================
   BARRA DE PROGRESSO (STEP)
   ============================================================ */
.step-progress {
    margin-bottom: 32px;
}

.step-progress-bar {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 40px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.step-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066cc, #00c853);
    border-radius: 40px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.3);
}

.step-progress-labels {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-item.active {
    color: #0066cc;
}

.step-item.completed {
    color: #00a040;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, #0066cc, #0a2540);
    color: #ffffff;
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.step-item.completed .step-number {
    background: linear-gradient(135deg, #00c853, #00a040);
    color: #ffffff;
    border-color: #00c853;
}

/* ============================================================
   STEP HEADER (TÍTULOS DAS ETAPAS)
   ============================================================ */
.step-header {
    text-align: center;
    margin-bottom: 32px;
}

.step-header-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0066cc, #0a2540);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 28px rgba(0, 102, 204, 0.35);
    transition: transform 0.3s ease;
}

.step-header-icon:hover {
    transform: scale(1.05) rotate(-4deg);
}

.step-header-icon-green {
    background: linear-gradient(135deg, #00c853, #00a040);
    box-shadow: 0 10px 28px rgba(0, 200, 83, 0.35);
}

.step-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0a2540;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.step-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   INPUT GROUP CUSTOM (CPF/CNPJ)
   ============================================================ */
.input-group-custom {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 600px;
    margin: 0 auto;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper>i {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    font-size: 1.15rem;
    z-index: 1;
    pointer-events: none;
    transition: color 0.25s ease;
}

.input-icon-wrapper:focus-within>i {
    color: #0066cc;
}

.input-icon-wrapper .form-control {
    padding: 16px 20px 16px 52px;
    font-size: 1.05rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    transition: all 0.25s ease;
    width: 100%;
}

.input-icon-wrapper .form-control:focus {
    border-color: #0066cc;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    outline: none;
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0066cc, #0a2540);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
    font-family: inherit;
    min-height: 56px;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #0a2540, #0066cc);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 102, 204, 0.45);
    color: #ffffff;
}

.btn-primary-custom i {
    font-size: 1.15rem;
    transition: transform 0.3s ease;
}

.btn-primary-custom:hover i {
    transform: translateX(4px);
}

.step-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed #e2e8f0;
}

.login-link {
    color: #0066cc;
    text-decoration: none !important;
    font-weight: 700;
    transition: color 0.25s ease;
}

.login-link:hover {
    color: #0a2540;
    text-decoration: underline !important;
}

/* ============================================================
   SEÇÕES DO FORMULÁRIO
   ============================================================ */
.form-section {
    padding: 24px;
    margin-bottom: 20px;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(10, 37, 64, 0.04);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e2e8f0;
}

.form-section-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #0066cc;
}

.form-section-icon-blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #0066cc;
}

.form-section-icon-green {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #00a040;
}

.form-section-icon-orange {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #d97706;
}

.form-section-icon-purple {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #7c3aed;
}

.form-section-icon-red {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #dc2626;
}

.form-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0a2540;
    margin: 0 0 2px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.form-section-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
}

/* ============================================================
   LABELS E CAMPOS
   ============================================================ */
.form-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #0a2540;
    margin-bottom: 8px;
}

.form-label i {
    font-size: 0.9rem;
}

.required-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid #fecaca;
    line-height: 1.4;
}

.optional-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    line-height: 1.4;
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    background: #ffffff;
    color: #0a2540;
    font-family: inherit;
}

.form-control:focus,
.form-select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    background: #ffffff;
    outline: none;
}

.form-control::placeholder {
    color: #94a3b8;
}

.help-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.4;
}

.help-text i {
    color: #94a3b8;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ============================================================
   INPUT GROUP (SENHAS)
   ============================================================ */
.input-group .form-control {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.btn-toggle-password {
    border-radius: 0 12px 12px 0;
    border: 2px solid #e2e8f0;
    border-left: none;
    background: #f8fafc;
    padding: 12px 18px;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-toggle-password:hover {
    background: #f1f5f9;
    color: #0066cc;
}

.btn-toggle-password:focus {
    box-shadow: none;
    outline: none;
}

/* ============================================================
   CUPOM
   ============================================================ */
.btn-aplicar-cupom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00c853, #00a040);
    color: #ffffff;
    border: none;
    border-radius: 0 12px 12px 0;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.btn-aplicar-cupom:hover:not(:disabled) {
    background: linear-gradient(135deg, #00a040, #00c853);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
    color: #ffffff;
}

.btn-aplicar-cupom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-aplicar-cupom i {
    font-size: 0.9rem;
}

/* ============================================================
   TERMOS E POLÍTICAS
   ============================================================ */
.terms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terms-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.terms-item:hover {
    border-color: #0066cc;
    background: #f8fafc;
}

.terms-item .form-check-input {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
}

.terms-item .form-check-input:checked {
    background-color: #00c853;
    border-color: #00c853;
}

.terms-item .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.15);
    border-color: #00c853;
}

.terms-item .form-check-label {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.55;
    cursor: pointer;
}

.termos-link {
    color: #0066cc;
    text-decoration: none !important;
    font-weight: 700;
    transition: color 0.25s ease;
}

.termos-link:hover {
    color: #0a2540;
    text-decoration: underline !important;
}

/* ============================================================
   BOTÕES DE AÇÃO
   ============================================================ */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f1f5f9;
}

.btn-cancelar {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: #ffffff;
    color: #64748b;
    border: 2px solid #0a2540;        /* ← Borda preta */
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    min-height: 52px;
    cursor: pointer;
    font-family: inherit;
}

.btn-cancelar:hover {
    background: #f8fafc;
    border-color: #000000;            /* ← Mantém preta no hover */
    color: #0a2540;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cadastrar {
    flex: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #00c853, #00a040);
    color: #ffffff;
    border: none;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.3);
    min-height: 52px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-cadastrar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine-cadastro 3s ease-in-out infinite;
}

@keyframes shine-cadastro {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.btn-cadastrar:hover {
    background: linear-gradient(135deg, #00a040, #00c853);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 200, 83, 0.45);
    color: #ffffff;
}

.btn-cadastrar i,
.btn-cancelar i {
    font-size: 1.1rem;
}

/* ============================================================
   RESPONSIVO - TABLETS (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .header-custom {
        padding: 12px 0;
    }

    .logo-text {
        font-family: Steelr;
        font-size: 1rem;
    }

    .logo-img-wrapper {
        width: 36px;
        height: 36px;
    }

    .btn-voltar-header {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .main-container {
        padding: 24px 14px 40px;
    }

    .card-cadastro {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .step-header-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        border-radius: 16px;
    }

    .step-title {
        font-size: 1.4rem;
    }

    .step-subtitle {
        font-size: 0.85rem;
    }

    .form-section {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .form-section-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .form-section-title {
        font-size: 0.95rem;
    }

    .form-section-desc {
        font-size: 0.75rem;
    }

    .form-control,
    .form-select {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .btn-primary-custom {
        padding: 14px 24px;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancelar,
    .btn-cadastrar {
        width: 100%;
        padding: 12px 24px;
        font-size: 0.9rem;
        min-height: 48px;
    }
}

/* ============================================================
   RESPONSIVO - MOBILE (≤ 576px)
   ============================================================ */
@media (max-width: 576px) {
    .header-container {
        gap: 10px;
    }

    .logo-text {
        font-family: Steelr;
        font-size: 0.9rem;
    }

    .logo-img-wrapper {
        width: 32px;
        height: 32px;
    }

    .btn-voltar-header span {
        display: none;
    }

    .btn-voltar-header {
        padding: 8px 12px;
    }

    .btn-voltar-header i {
        font-size: 1.1rem;
    }

    .main-container {
        padding: 20px 10px 32px;
    }

    .card-cadastro {
        padding: 20px 14px;
        border-radius: 16px;
    }

    .step-progress-labels {
        gap: 8px;
    }

    .step-item {
        flex-direction: column;
        gap: 4px;
        font-size: 0.7rem;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.68rem;
    }

    .step-header {
        margin-bottom: 24px;
    }

    .step-header-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        border-radius: 14px;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .step-subtitle {
        font-size: 0.8rem;
    }

    .input-icon-wrapper>i {
        left: 16px;
        font-size: 1rem;
    }

    .input-icon-wrapper .form-control {
        padding: 14px 16px 14px 46px;
        font-size: 0.95rem;
    }

    .form-section {
        padding: 16px 12px;
        margin-bottom: 14px;
    }

    .form-section-header {
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .form-section-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .form-section-title {
        font-size: 0.9rem;
    }

    .form-section-desc {
        font-size: 0.72rem;
    }

    .form-label {
        font-size: 0.82rem;
    }

    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 0.88rem;
        border-radius: 10px;
    }

    .btn-toggle-password {
        padding: 10px 14px;
        border-radius: 0 10px 10px 0;
    }

    .terms-item {
        padding: 12px 14px;
    }

    .terms-item .form-check-label {
        font-size: 0.8rem;
    }

    .form-actions {
        gap: 10px;
        margin-top: 24px;
        padding-top: 20px;
    }

    .btn-cancelar,
    .btn-cadastrar {
        padding: 11px 20px;
        font-size: 0.85rem;
        min-height: 44px;
    }
}

/* ============================================================
   RESPONSIVO - TELAS MUITO PEQUENAS (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
    .logo-text {
        font-family: Steelr;
        font-size: 0.82rem;
    }

    .logo-img-wrapper {
        width: 28px;
        height: 28px;
    }

    .card-cadastro {
        padding: 16px 10px;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .step-header-icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .form-section {
        padding: 14px 10px;
    }

    .form-control,
    .form-select {
        padding: 9px 11px;
        font-size: 0.82rem;
    }

    .terms-item .form-check-label {
        font-size: 0.74rem;
    }
}