/* ============================================ */
/* DULOCAL - CADASTRO PROFISSIONAL              */
/* Design Startup Moderno                       */
/* ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #F8FAFC;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    color: #1F2937;
}

/* Header */
.cadastro-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    padding: 40px 24px 32px;
    text-align: center;
    color: white;
    border-radius: 0 0 24px 24px;
    position: relative;
    overflow: hidden;
}

.cadastro-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -60px;
    right: -60px;
}

.cadastro-header::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
}

.cadastro-header h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 4px;
    position: relative;
    z-index: 1;
}

.cadastro-header p {
    font-size: 13px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cadastro-header .emoji {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cadastro-header .badge-seguranca {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

/* Container */
.cadastro-container {
    padding: 0 16px 100px;
    margin-top: -16px;
    position: relative;
    z-index: 2;
}

/* Cards */
.cadastro-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}

.cadastro-card h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cadastro-card h2 .icon {
    font-size: 22px;
}

/* Steps */
.steps-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px 0;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #9CA3AF;
    transition: all 0.3s;
    position: relative;
}

.step-dot.active {
    background: #059669;
    color: white;
    box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}

.step-dot.done {
    background: #059669;
    color: white;
}

.step-line {
    width: 24px;
    height: 2px;
    background: #E5E7EB;
    align-self: center;
}

.step-line.done {
    background: #059669;
}

/* Formulário */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #F9FAFB;
    color: #1F2937;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5,150,105,0.1);
    background: white;
}

.form-group input::placeholder {
    color: #9CA3AF;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

/* Upload de documentos */
.upload-area {
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #F9FAFB;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #059669;
    background: #ECFDF5;
}

.upload-area.has-file {
    border-color: #059669;
    background: #ECFDF5;
}

.upload-area .upload-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.upload-area p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

.upload-area .upload-hint {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 4px;
}

.upload-area img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 12px;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    width: 100%;
}

.btn-primary {
    background: #059669;
    color: white;
    box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}

.btn-primary:hover {
    background: #047857;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: #F3F4F6;
    color: #6B7280;
}

.btn-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-nav button {
    flex: 1;
}

/* Status cards */
.status-card {
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.status-card .status-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.status-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.status-card p {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 8px;
    line-height: 1.6;
}

.status-card .tempo-estimado {
    font-size: 12px;
    color: #D97706;
    font-weight: 600;
    margin: 12px 0;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    margin: 16px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #059669, #047857);
    border-radius: 2px;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Selo de segurança */
.selo-seguranca {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #ECFDF5;
    border-radius: 12px;
    margin-top: 24px;
    font-size: 12px;
    color: #059669;
    font-weight: 600;
}

.selo-seguranca .lock-icon {
    font-size: 18px;
}

/* Footer */
.cadastro-footer {
    text-align: center;
    padding: 16px;
    font-size: 11px;
    color: #9CA3AF;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #F8FAFC;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 28px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.toast.show { opacity: 1; bottom: 90px; }
.toast-success { background: #059669; }
.toast-error { background: #DC2626; }
.toast-warning { background: #D97706; }

/* Loading spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #E5E7EB;
    border-top-color: #059669;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

/* Animação de entrada */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cadastro-card {
    animation: slideUp 0.4s ease both;
}

.cadastro-card:nth-child(2) { animation-delay: 0.1s; }
.cadastro-card:nth-child(3) { animation-delay: 0.2s; }
.cadastro-card:nth-child(4) { animation-delay: 0.3s; }