/**
 * Stepper Calculator Styles
 * These styles are isolated to prevent conflicts with themes
 */

.stepper-calculator-container * {
    box-sizing: border-box;
}

.stepper-calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Stepper Navigation */
.stepper-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.stepper-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
    transform: translateY(-50%);
}

.stepper-nav-item {
    background-color: #e0e0e0;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stepper-nav-item::after {
    content: attr(data-step);
}

.stepper-nav-item.active {
    background-color: #000000;
    color: #ffffff;
}

.stepper-nav-item.completed {
    background-color: #000000;
    color: #ffffff;
}

/* Stepper Content */
.stepper-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.stepper-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.stepper-input,
.stepper-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.stepper-input:focus,
.stepper-select:focus {
    border-color: #000000;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

/* Buttons */
.stepper-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stepper-next,
.stepper-prev,
.stepper-calculate,
.stepper-reset {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.stepper-next,
.stepper-calculate {
    background-color: #000000;
    color: #ffffff;
}

.stepper-prev,
.stepper-reset {
    background-color: #f5f5f5;
    color: #333;
}

.stepper-next:hover,
.stepper-calculate:hover {
    background-color: #333333;
}

.stepper-prev:hover,
.stepper-reset:hover {
    background-color: #e0e0e0;
}

/* Results Container */
.results-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

#calculation-results {
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .stepper-calculator-container {
        padding: 15px;
    }
    
    .stepper-nav-item {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .stepper-next,
    .stepper-prev,
    .stepper-calculate,
    .stepper-reset {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stepper-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .stepper-nav::before {
        display: none;
    }
    
    .stepper-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .stepper-next,
    .stepper-prev,
    .stepper-calculate,
    .stepper-reset {
        width: 100%;
        text-align: center;
    }
} 