/* Multi-step Form CSS for order.html */

/* Progress bar container */
.multisteps-form__progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 2rem;
    position: relative;
}

/* The horizontal line connecting the steps */
.multisteps-form__progress::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 3px;
    background-color: #dee2e6;
    z-index: 0;
    transform: translateY(-50%);
    transition: background-color 0.4s;
}

.multisteps-form__progress-btn {
    border: none;
    background-color: transparent;
    cursor: pointer;
    text-align: center;
    position: relative;
    z-index: 1;
    color: #6c757d;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
}

.multisteps-form__progress-btn span {
    display: block;
    margin-top: 0.5rem;
}

/* The circle for each step */
.multisteps-form__progress-btn::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s;
}

/* Styles for the active step */
.multisteps-form__progress-btn.js-active::before {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.multisteps-form__progress-btn.js-active {
    color: #0d6efd;
}

/* The progress bar line filling up */
.multisteps-form__progress.step-1::before {
    background: linear-gradient(to left, #dee2e6 66%, #0d6efd 33%);
}
.multisteps-form__progress.step-2::before {
    background: linear-gradient(to left, #dee2e6 33%, #0d6efd 66%);
}
.multisteps-form__progress.step-3::before {
    background-color: #0d6efd;
}


/* Hide inactive form panels */
.multisteps-form__panel {
    display: none;
}

/* Show active form panel with animation */
.multisteps-form__panel.js-active {
    display: block;
    animation: scaleIn 0.35s ease-in-out;
}

@keyframes scaleIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Enhancements Styling */
#service-details {
    transition: all 0.3s ease-in-out;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa !important;
    margin-bottom: 1rem;
}

#service-details p {
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.edit-step {
    text-decoration: none;
}
.edit-step:hover {
    text-decoration: underline;
}

#cost-breakdown h5 {
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 1rem;
}

#cost-breakdown .cost-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

#cost-breakdown .cost-total {
    font-weight: bold;
    font-size: 1.25rem;
    border-top: 2px solid #dee2e6;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.form-control-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
}

.form-select-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .multisteps-form__progress-btn span {
        display: none;
    }
}