/* Wizard Preventivo - Step by Step UI */

.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
z-index: 0;
}

.wizard-progress-bar {
    position: absolute;
    top: 20px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    z-index: 1;
}

.wizard-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.wizard-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wizard-step.active .wizard-step-circle {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: scale(1.1);
}

.wizard-step.completed .wizard-step-circle {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.wizard-step.completed .wizard-step-circle::before {
    content: '✓';
    font-size: 1.2rem;
}

.wizard-step-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.wizard-step.active .wizard-step-label {
    color: #667eea;
}

.wizard-step.completed .wizard-step-label {
    color: #10b981;
}

/* Wizard Content */
.wizard-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-height: 400px;
}

.wizard-section {
    display: none;
}

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

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

.wizard-section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.wizard-section-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

.wizard-btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-btn-prev {
    background: #f3f4f6;
    color: #333;
}

.wizard-btn-prev:hover {
    background: #e5e7eb;
    transform: translateX(-5px);
}

.wizard-btn-next {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    margin-left: auto;
}

.wizard-btn-next:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Wizard Summary */
.wizard-summary {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

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

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

.wizard-summary-label {
    font-weight: 600;
    color: #333;
}

.wizard-summary-value {
    color: #667eea;
    font-weight: 600;
}

.wizard-summary-item.editable {
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 -20px;
    padding: 12px 20px;
}

.wizard-summary-item.editable:hover {
    background: #e8ecff;
}

.wizard-summary-item.editable::after {
    content: '✏️';
    font-size: 0.9rem;
}

/* Required service indicator */
.feature-checkbox input:disabled {
    opacity: 0.7;
}

.feature-checkbox.required {
    background: #e8ecff !important;
    border-color: #667eea !important;
}

.feature-checkbox.required::before {
    content: '🔒';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-progress {
        flex-wrap: wrap;
    }
    
    .wizard-step {
        min-width: 33%;
        margin-bottom: 20px;
    }
    
    .wizard-step-label {
        font-size: 0.75rem;
    }
    
    .wizard-content {
        padding: 20px;
    }
    
    .wizard-navigation {
        flex-direction: column;
    }
    
    .wizard-btn-next {
        margin-left: 0;
    }
}

/* Wizard Summary Styles */
.wizard-summary {
    margin-bottom: 30px;
}

.wizard-summary h3 {
    margin-bottom: 20px;
    color: #2563eb;
    font-size: 1.5rem;
}

.summary-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.summary-item:hover {
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    border-color: #cbd5e1;
}

.summary-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
    min-width: 140px;
}

.summary-value {
    flex: 1;
    color: #1e293b;
    font-size: 0.95rem;
    padding: 0 15px;
}

.summary-edit {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.summary-edit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.summary-edit:active {
    transform: translateY(0);
}

/* Save Section in Wizard Step 6 */
.wizard-section[data-step="6"] .save-section {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.wizard-section[data-step="6"] .account-form {
    display: block !important;
    visibility: visible !important;
}

.wizard-section[data-step="6"] #submit-btn {
    display: block !important;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .summary-label {
        min-width: auto;
    }
    
    .summary-value {
        padding: 0;
    }
    
    .summary-edit {
        align-self: flex-end;
    }
}
