/* Wizard Specific Styles */

.wizard-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Progress Bar */
.progress {
    background-color: #e9ecef;
    border-radius: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%);
    transition: width 0.4s ease;
}

/* Question Wrapper */
.question-wrapper {
    margin-bottom: 1rem;
}

.question-wrapper[data-depends-on] {
    display: none;
}

.question-wrapper.show-conditional {
    display: block;
}

/* File Upload */
.uploaded-files {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-preview {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.875rem;
}

.file-preview i {
    margin-right: 0.5rem;
    color: #6c757d;
}

.file-preview .remove-file {
    margin-left: 0.5rem;
    color: #dc3545;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

/* Price Breakdown */
#priceBreakdown {
    font-size: 0.95rem;
}

#priceBreakdown .price-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

#priceBreakdown .price-option {
    font-size: 0.875rem;
    color: #6c757d;
}

#priceBreakdown .price-total {
    font-size: 1.1rem;
    padding-top: 1rem;
}

#priceBreakdown hr {
    margin: 0.5rem 0;
}

/* Material Cards */
.material-card {
    border: 2px solid transparent;
}

.material-card:hover {
    border-color: #0d6efd;
}

.material-card .badge {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
}

/* Navigation Buttons */
.wizard-nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

/* Form Validation */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Checkbox and Radio Improvements */
.form-check {
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.form-check-input {
    margin-top: 0.25rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Review Page */
.review-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.review-section h6 {
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.review-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}

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

/* Progress Sidebar - Step Summary Cards */
.step-summary-card {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.step-summary-card:hover {
    border-left-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

.step-summary-card .badge-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.step-summary-card h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #212529;
}

.step-summary .small {
    font-size: 0.8rem;
    line-height: 1.4;
}

.step-summary strong {
    color: #495057;
}

.step-summary-card .btn-link {
    color: #6c757d;
    font-size: 0.875rem;
}

.step-summary-card .btn-link:hover {
    color: #0d6efd;
}

/* Progress Sidebar Container */
#wizardProgressSidebar {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

#wizardProgressSidebar::-webkit-scrollbar {
    width: 6px;
}

#wizardProgressSidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#wizardProgressSidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#wizardProgressSidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Completed steps header */
.completed-steps-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
