/* CSS do Wizard de Orçamentos - Mobile First */

/* Reset básico */
.so-wizard-container * {
    box-sizing: border-box;
}

/* Container principal */
.so-wizard-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

/* Indicador de progresso */
.wizard-progress {
    margin-bottom: 30px;
}

.progress-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: #2196F3;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.step.active .step-number {
    background: #2196F3;
}

.step.completed .step-number {
    background: #4CAF50;
}

.step-label {
    font-size: 12px;
    text-align: center;
}

/* Steps do wizard */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Títulos */
.step-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.section-title {
    font-size: 18px;
    margin: 20px 0 15px;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

/* Formulários */
.wizard-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2196F3;
}

/* Radio buttons customizados */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    position: relative;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #2196F3;
    background: #f8f9fa;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-option input[type="radio"]:checked + .radio-label::before {
    background: #2196F3;
    border-color: #2196F3;
}

.radio-label {
    display: flex;
    align-items: center;
    padding-left: 30px;
}

.radio-label::before {
    content: '';
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #fff;
    transition: all 0.3s ease;
}

/* Tipos de eventos */
.event-types-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.event-type-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-type-card:hover {
    border-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-type-card.selected {
    border-color: #2196F3;
    border-width: 2px;
}

.event-image {
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    padding: 15px;
}

.event-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.event-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.event-selected-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.event-type-card.selected .event-selected-badge {
    opacity: 1;
    transform: scale(1);
}

/* Produtos */
.products-list {
    margin-bottom: 20px;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
}

.product-item.required {
    background: #f0f8ff;
}

.product-checkbox {
    margin-right: 15px;
}

.product-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.product-info {
    flex: 1;
    margin-right: 15px;
}

.product-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.product-info p {
    margin: 0 0 8px;
    color: #666;
    font-size: 14px;
}

.product-price {
    font-weight: bold;
    color: #2196F3;
}

.product-quantity {
    display: flex;
    align-items: center;
}

.qty-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
}

/* Total */
.total-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 18px;
    font-weight: 500;
}

.total-value {
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
}

/* Resumo */
.summary-section {
    margin-bottom: 20px;
}

.summary-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.summary-group h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
}

.summary-group p {
    margin: 8px 0;
}

.products-summary {
    max-height: 300px;
    overflow-y: auto;
}

.product-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.summary-total {
    background: #2196F3;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.summary-total .total-value {
    color: #fff;
}

/* Botões */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #2196F3;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: #1976D2;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.btn-success {
    background: #4CAF50;
    color: #fff;
}

.btn-success:hover:not(:disabled) {
    background: #388E3C;
}

.btn-login {
    background: #fff;
    border: 2px solid #2196F3;
    color: #2196F3;
}

.btn-login:hover {
    background: #2196F3;
    color: #fff;
}

.arrow {
    font-size: 18px;
}

/* Login notice */
.login-notice {
    background: #fff8dc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #ffd700;
}

.login-notice p {
    margin: 0 0 15px;
}

/* Mensagem de sucesso */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: #4CAF50;
}

.success-message h2 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.success-message p {
    margin: 10px 0;
    color: #666;
}

/* Loading */
.loading-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* No results */
.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Responsividade - Tablet */
@media (min-width: 768px) {
    .so-wizard-container {
        padding: 30px;
    }
    
    .radio-group {
        flex-direction: row;
    }
    
    .event-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-actions {
        justify-content: space-between;
    }
    
    .btn-prev {
        order: -1;
    }
}

/* Responsividade - Desktop */
@media (min-width: 1024px) {
    .so-wizard-container {
        max-width: 800px;
    }
    
    .event-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Estados de foco para acessibilidade */
.btn:focus,
.form-control:focus,
.radio-option input:focus + .radio-label,
.product-checkbox input:focus,
.qty-input:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

/* Animações adicionais */
.wizard-step {
    animation: slideIn 0.3s ease;
}

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

/* Correções para mobile */
@media (max-width: 480px) {
    .step-label {
        display: none;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}