/**
 * Window Wizard Styles
 */

/* Container */
.wizard-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Progress Section */
.wizard-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: #ec7405;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.step-indicator {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-indicator.active .step-number {
    background: #ec7405;
    color: white;
    border-color: #ec7405;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transform: scale(1.1);
}

.step-indicator.completed .step-number {
    background: #ec7405;
    color: white;
}

.step-indicator.completed .step-number::after {
    content: "✓";
    position: absolute;
    font-size: 10px;
    top: -3px;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    transition: color 0.3s ease;
}

.step-indicator.active .step-label {
    color: #ec7405;
    font-weight: 600;
}

.step-indicator.completed .step-label {
    color: #4CAF50;
}

/* Wizard Content */
.wizard-content {
    min-height: 400px;
    padding: 2rem 0;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.step-description {
    font-size: 16px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 2rem;
}

/* Options Grid */
.options-grid {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.option-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    /* overflow: hidden; */
    width: 100%;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    padding: 2rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-height: 140px;
    justify-content: center;
}

.option-icon {
    font-size: 48px;
    transition: transform 0.3s ease;
}

.option-text {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.option-card:hover .option-content {
    border-color: #ec7405;
    background: #f0f8f0;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.15);
}

.option-card:hover .option-icon {
    transform: scale(1.1);
}

.option-card.selected .option-content {
    background: #ec7405;
    border-color: #9d5819;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.option-card.selected .option-text {
    color: white;
}

.option-card.selected .option-icon {
    transform: scale(1.15);
}

/* Result Container */
.result-container {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    animation: fadeIn 0.5s ease;
}

.result-icon {
    font-size: 72px;
    color: #4CAF50;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.result-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.result-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 150px;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
}
span.option-icon img {
    width: 65px;
    height: auto;
}
div#resultContent img {
    max-width: 150px;
}
.result-text {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    text-align: left;
}

.formatted-result {
    text-align: left;
    font-size: 16px;
    line-height: 2;
}

.result-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.result-summary h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.selection-summary {
    list-style: none;
    padding: 0;
    margin: 0;
}

.selection-summary li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 16px;
    color: #495057;
    text-align: left;
}

.selection-summary li:last-child {
    border-bottom: none;
}

.selection-summary strong {
    color: #2c3e50;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e9ecef;
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.wizard-navigation .btn {
    padding: 0.875rem 2rem;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.wizard-navigation .btn-primary {
    background: #ec7405;
    color: white;
    margin-left: auto;
}

.wizard-navigation .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
}

.wizard-navigation .btn-secondary {
    background: #6c757d;
    color: white;
}

.wizard-navigation .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.3);
}

.wizard-navigation .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    margin-left: auto;
}

.wizard-navigation .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

.wizard-navigation .btn-outline-primary {
    background: white;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    margin-left: auto;
}

.wizard-navigation .btn-outline-primary:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
}

/* Error Messages */
.wizard-error {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-container {
        padding: 1rem;
        margin: 1rem;
    }

    .step-indicators {
        flex-wrap: wrap;
    }

    .step-indicator {
        flex: 0 0 calc(33.333% - 0.5rem);
    }

    .step-label {
        font-size: 10px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .option-content {
        padding: 1.5rem 1rem;
        min-height: 120px;
    }

    .option-icon {
        font-size: 36px;
    }

    .step-title {
        font-size: 22px;
    }

    .step-description {
        font-size: 14px;
    }

    .wizard-navigation {
        flex-direction: column-reverse;
    }

    .wizard-navigation .btn {
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
    }

    .result-title {
        font-size: 24px;
    }

    .result-icon {
        font-size: 56px;
    }
}

@media (max-width: 480px) {
    .step-indicator {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Form Styles for Step 9 */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #ec7405;
    background: white;
    box-shadow: 0 0 0 3px rgba(236, 116, 5, 0.1);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 14px;
    color: #6c757d;
}
