/* Calculator Container */
.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step.active {
    border-color: #1a4b84;
    background: #1a4b84;
    color: #fff;
}

.step.completed {
    border-color: #1a4b84;
    background: #1a4b84;
    color: #fff;
}

.step-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    color: #666;
}

.step.active .step-label {
    color: #1a4b84;
    font-weight: 600;
}

/* Calculator Steps */
.calculator-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.calculator-step.active {
    display: block;
}

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

/* Project Options */
.project-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-option:hover {
    border-color: #1a4b84;
    transform: translateY(-2px);
}

.project-option.selected {
    border-color: #1a4b84;
    background: rgba(26, 75, 132, 0.05);
}

.project-option img {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

/* Material Options */
.material-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.material-option {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.material-option:hover {
    border-color: #1a4b84;
}

.material-option.selected {
    border-color: #1a4b84;
    background: rgba(26, 75, 132, 0.05);
}

/* Dimensions Input */
.dimensions-input {
    max-width: 400px;
    margin: 1.5rem auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1a4b84;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 75, 132, 0.1);
}

/* Results */
.estimate-results {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.result-item.total {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a4b84;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e0e0e0;
}

/* Navigation Buttons */
.calculator-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-container {
        padding: 1rem;
    }

    .progress-steps {
        gap: 0.25rem;
    }

    .step {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .step-label {
        font-size: 0.7rem;
        white-space: normal;
        max-width: 70px;
        text-align: center;
    }

    .project-options {
        grid-template-columns: 1fr;
    }

    .material-options {
        grid-template-columns: 1fr 1fr;
    }
}

/* Error States */
.form-control.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #1a4b84;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Post Size Options */
.post-size-options {
    margin-top: 1.5rem;
}

.post-size-options label {
    color: #333;
    font-weight: 500;
}

.form-check {
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-input:checked {
    background-color: #1a4b84;
    border-color: #1a4b84;
}

.form-check-label {
    color: #333;
    cursor: pointer;
} 

.calculator-step h4{
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    text-align: center;
}