/* RC VideoMaker - Design System */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Container Principal */
.wizard-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 100vh;
    background: white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
}

/* Sidebar */
.wizard-sidebar {
    background: linear-gradient(180deg, #6C63FF 0%, #5a52e8 100%);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    margin-bottom: 3rem;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Steps */
.steps-container {
    flex: 1;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-item.active {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.step-item.completed {
    opacity: 0.7;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.step-item.active .step-number {
    background: white;
    color: #6C63FF;
}

.step-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.step-content p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Conteúdo Principal */
.wizard-content {
    background: white;
    padding: 3rem;
    overflow-y: auto;
}

.content-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

/* Step Panels */
.step-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.step-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: #666;
    font-size: 1rem;
}

/* Formulário */
.wizard-form {
    background: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6C63FF;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

/* Container do Telefone */
.phone-container {
    display: flex;
    gap: 0.5rem;
}

.phone-container select {
    flex: 0 0 120px;
    background: white;
}

.phone-container input {
    flex: 1;
}

/* Upload de Arquivo */
.file-upload-container {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.file-upload-area {
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.file-upload-area:hover {
    border-color: #6C63FF;
    background: #f8f9ff;
}

.file-upload-area.dragover {
    border-color: #6C63FF;
    background: #f8f9ff;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.file-upload-area p {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #333;
}

.file-upload-area small {
    color: #666;
    font-size: 0.85rem;
}

.file-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e1e5e9;
}

.file-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.remove-file {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Textarea */
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Botões */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-primary {
    background: #6C63FF;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5a52e8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #d1d5db;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Mensagens de Erro */
.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.2rem;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #e74c3c;
}

/* Tela de Sucesso */
.success-screen {
    text-align: center;
    padding: 2rem 0;
}

.success-content {
    max-width: 400px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.success-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 1rem;
}

.success-content p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsividade */
@media (max-width: 768px) {
    .wizard-container {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }
    
    .wizard-sidebar {
        padding: 1.5rem;
    }
    
    .wizard-content {
        padding: 2rem 1.5rem;
    }
    
    .steps-container {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .step-item {
        flex-shrink: 0;
        margin-bottom: 0;
        min-width: 200px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wizard-content {
        padding: 1.5rem 1rem;
    }
    
    .step-header h2 {
        font-size: 1.6rem;
    }
    
    .phone-container {
        flex-direction: column;
    }
    
    .phone-container select {
        flex: none;
    }
}

/* Animações de Loading */
.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline;
}

/* Estados de Validação */
.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #27ae60;
}

.form-group.success::after {
    content: "✓";
    color: #27ae60;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}
