:root {
    --primary: #003399; /* Azul Cury */
    --primary-light: #1a53ff;
    --primary-dark: #002060;
    --secondary: #ff6600; /* Laranja Cury */
    --secondary-hover: #e65c00;
    
    --bg-color: #f0f4f8;
    --card-bg: rgba(255, 255, 255, 0.95);
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-focus: #cbd5e1;
    
    --success: #10b981;
    --success-bg: #d1fae5;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-lg: 0 20px 40px -5px rgba(0, 51, 153, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Decorativo */
.background-decor {
    position: fixed;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(0, 51, 153, 0.05) 0%, rgba(255, 102, 0, 0.02) 50%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0, 51, 153, 0.2);
    transform: rotate(-5deg);
}

.logo-icon {
    font-size: 32px;
    color: white;
    transform: rotate(5deg);
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

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

/* Card Principal */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out;
}

/* Seções (Steps) */
.step-section {
    margin-bottom: 40px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(26, 83, 255, 0.3);
}

.step-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
}

.section-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: -15px 0 20px 50px;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 40px 0;
}

/* Formulário e Inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 10px;
}

@media (min-width: 600px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .full-width { grid-column: span 2; }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-main);
    background: white;
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 51, 153, 0.1);
}

.input-wrapper input:focus + i, .input-wrapper input:not(:placeholder-shown) + i {
    color: var(--primary);
}

/* Grid de Documentos */
.docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 600px) {
    .docs-grid { grid-template-columns: 1fr 1fr; }
}

.doc-item {
    position: relative;
    border: 2px dashed var(--border-focus);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.doc-item:hover {
    border-color: var(--primary-light);
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.doc-item.has-file {
    border-color: var(--success);
    background: var(--success-bg);
    border-style: solid;
}

.doc-icon {
    width: 45px;
    height: 45px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.doc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doc-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.file-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.doc-item.has-file .file-status {
    color: var(--success);
    font-weight: 500;
}

.file-input {
    display: none;
}

.upload-check {
    position: absolute;
    right: 15px;
    opacity: 0;
    color: var(--success);
    font-size: 1.2rem;
    transform: scale(0.5);
    transition: var(--transition);
}

.doc-item.has-file .upload-check {
    opacity: 1;
    transform: scale(1);
}

/* Botão de Submit */
.action-area {
    margin-top: 40px;
    text-align: center;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: var(--radius-md);
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.25);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 102, 0, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    transition: transform 0.3s;
}

.btn-submit:hover i {
    transform: translateX(5px);
}

.security-notice {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Estados (Loading e Success) */
.loading-state, .success-state {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-out;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 25px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-state h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.success-state p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--primary);
    border: 2px solid var(--border-color);
    padding: 12px 25px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Animações */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 600px) {
    .card { padding: 30px 20px; }
    .header h1 { font-size: 1.8rem; }
    .step-header h2 { font-size: 1.2rem; }
}
