/* ── Order Wizard Styles ── */
::-webkit-scrollbar {
    width: 10px; /* Width of vertical scrollbar */
    height: 10px; /* Height of horizontal scrollbar */
}

.wizard-container {
    width: 100%;
    /*max-width: 960px;*/
}

.wizard-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    margin-bottom: 1rem;
    gap: 0;
}

.wizard-step-indicator {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wizard-step-circle {
    width: auto;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #ccc;
    background: #fff;
    color: #999;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
    padding: 15px;
}

.wizard-step-circle.active {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(106, 27, 154, 0.2);
}

    .wizard-step-circle.success {
        border-color: var(--bs-success);
        background: var(--bs-success);
        color: #fff;
        box-shadow: 0 0 0 4px rgba(106, 27, 154, 0.2);
    }

.wizard-step-circle.completed {
    border-color: #28a745;
    background: #28a745;
    color: #fff;
}

.wizard-step-label {
    display: none;
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
    text-align: center;
    max-width: 100px;
}

.wizard-step-label.active {
    color: var(--bs-primary);
    font-weight: 600;
}

.wizard-step-label.completed {
    color: #28a745;
}

.wizard-step-connector {
    width: 60px;
    height: 3px;
    background: #ccc;
    transition: background 0.3s ease;
    margin-left: 8px;
    margin-right: 8px;
}

.wizard-step-connector.completed {
    background: #28a745;
    position: center;

}

.wizard-card {
    /*background: #fff;*/
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 1.5rem;
    overflow: auto;
    overflow-y: auto;
    max-height: 80vh;
    min-height: 80vh;
}

.wizard-step-header {
    font-size: 1.1rem;
    font-weight: 500;
    color: darkblue;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(106, 27, 154, 0.1);
    line-height: 1.5;
    border-radius: 6px;
    border: var(--dxbl-text-border-width) var(--dxbl-text-border-style) var(--dxbl-text-border-color);
    /*display: inline-flex;*/
    background-color: #f2f2f2;
    padding-left: 12px;
    padding-top: 5px;
    opacity: 0.8;
    cursor: help;
    position: relative;
}

    /* The actual tooltip box */
    .wizard-step-header:hover::after {
        content: attr(data-tooltip); /* Pulls text from data-tooltip attribute */
        position: inherit;
        /*bottom: 125%;*/ /* Positions it above the text */
        /*left: 50%;*/
        transform: translateX(-50%);
        background-color: #333;
        color: #fff;
        padding: 8px 12px;
        border-radius: 4px;
        white-space: nowrap;
        font-size: 10px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 100;
    }

.wizard-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.wizard-nav-buttons .btn {
    min-width: 140px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
}

.wizard-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.wizard-section-title:first-child {
    margin-top: 0;
}

/* Map placeholder */
.wizard-map-container {
    width: 100%;
    height: 300px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 1rem;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.wizard-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Feature checkboxes grid */
.wizard-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Multi-family unit grid */
.wizard-unit-grid {
    margin-top: 0.5rem;
}

/* Conditional sections */
.wizard-conditional {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(106, 27, 154, 0.15);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Validation */
.wizard-validation-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

::deep .required-caption:after {
    content: '(Required)';
    color: red;
    font-style: italic;
}

/* Responsive */
@media (min-width: 576px) {
    .wizard-step-label {
        display: block;
    }
}

@media (max-width: 768px) {
    .wizard-card {
        padding: 1rem;
    }

    .wizard-nav-buttons .btn {
        min-width: 100px;
        font-size: 0.85rem;
    }

    .wizard-step-connector {
        width: 30px;
    }

    .wizard-step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .wizard-features-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

.icon-add {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: currentColor;
    opacity: 0.7;
    -webkit-mask-image: url("../icons/Add.svg");
    mask-image: url("../icons/add.svg");
}

.icon-remove {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: currentColor;
    opacity: 0.7;
    -webkit-mask-image: url("../icons/delete.svg");
    mask-image: url("../icons/delete.svg");
}
