/* =========================================================
   SIMULASI — Wizard 7 langkah
========================================================= */

.simulasi-main {
    position: relative;
}

.content-section {
    padding: 40px 0 80px;
}

/* Sticky bar */
.wizard-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bs-body-bg) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 0.85rem 0;
}

.wizard-sticky-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wizard-progress-wrap {
    flex: 1 1 220px;
    min-width: 0;
}

.wizard-progress-label {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.wizard-progress-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--bs-border-color);
    overflow: hidden;
    margin-bottom: 0.65rem;
}

.wizard-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--brand, #0d6efd);
    transition: width 0.35s ease;
}

.wizard-steps-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.wizard-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 2px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
    padding: 0;
}

.wizard-dot:hover {
    border-color: var(--dot-color, var(--brand));
    color: var(--dot-color, var(--brand));
}

.wizard-dot.active {
    background: var(--dot-color, var(--brand));
    border-color: var(--dot-color, var(--brand));
    color: #fff;
    transform: scale(1.08);
}

.wizard-dot.done {
    border-color: var(--dot-color, var(--brand));
    color: var(--dot-color, var(--brand));
    background: color-mix(in srgb, var(--dot-color, var(--brand)) 12%, transparent);
}

.wizard-ipk-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.5rem 1rem;
    border-radius: 0.85rem;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    min-width: 120px;
}

.wizard-ipk-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color);
}

.wizard-ipk-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand, var(--bs-primary));
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

/* Panels */
.wizard-panels {
    position: relative;
    min-height: 320px;
}

.wizard-panel {
    display: none;
    animation: wizardFade 0.3s ease;
}

.wizard-panel.is-active {
    display: block;
}

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

/* Card */
.wizard-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 1.25rem;
    background: var(--bs-body-bg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-top: 3px solid var(--dim-color, var(--brand));
}

.wizard-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.25rem;
    padding: 1.5rem 1.5rem 1.25rem;
    background: color-mix(in srgb, var(--dim-color, transparent) 6%, var(--bs-tertiary-bg));
    border-bottom: 1px solid var(--bs-border-color);
}

.wizard-card-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.wizard-card-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dim-color, var(--brand));
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.wizard-card-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.wizard-card-desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--bs-secondary-color);
    line-height: 1.5;
    max-width: 36rem;
}

.wizard-card-score {
    margin-left: auto;
    text-align: right;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    min-width: 110px;
}

.wizard-card-score > span {
    display: block;
    font-size: 0.72rem;
    color: var(--bs-secondary-color);
    font-weight: 600;
}

.wizard-card-score .d-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dim-color, var(--brand));
    font-variant-numeric: tabular-nums;
}

.wizard-card-body {
    padding: 1.35rem 1.5rem 1.5rem;
}

.wizard-hint {
    font-size: 0.88rem;
    color: var(--bs-secondary-color);
    margin-bottom: 1.25rem;
}

.wizard-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.wizard-ind-row {
    display: grid;
    grid-template-columns: 1fr minmax(200px, 280px);
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wizard-ind-row:focus-within {
    border-color: color-mix(in srgb, var(--dim-color, var(--brand)) 50%, var(--bs-border-color));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dim-color, var(--brand)) 15%, transparent);
}

.wizard-ind-kode {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--dim-color, var(--brand)) 14%, transparent);
    color: var(--dim-color, var(--brand));
    margin-bottom: 0.35rem;
}

.wizard-ind-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 0.2rem;
}

.wizard-ind-range {
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
}

.wizard-ind-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    justify-content: flex-end;
}

.wizard-ind-controls .input-group {
    max-width: 160px;
}

.wizard-minmax-manual {
    display: flex;
    gap: 0.35rem;
}

.wizard-minmax-manual .form-control {
    width: 72px;
}

.wizard-s {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 4.5rem;
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
}

.wizard-s .s-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bs-body-color);
    font-variant-numeric: tabular-nums;
}

.wizard-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.wizard-nav .btn {
    min-width: 140px;
}

.wizard-nav-mid {
    flex: 1;
    text-align: center;
}

.wizard-result-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.wizard-result-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.wizard-result-sub {
    color: var(--bs-secondary-color);
    margin-bottom: 1.5rem;
}

.wizard-result-ipk {
    display: inline-flex;
    flex-direction: column;
    padding: 1.25rem 2.5rem;
    border-radius: 1rem;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    margin-bottom: 1.75rem;
}

.wizard-result-ipk > span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wizard-result-ipk strong {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--brand, var(--bs-primary));
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.wizard-result-dims {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    text-align: left;
    margin-bottom: 1.75rem;
}

.wizard-result-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--bs-border-color);
    border-left: 3px solid var(--dim-color);
    background: var(--bs-tertiary-bg);
}

.wizard-result-chip i {
    font-size: 1.25rem;
    color: var(--dim-color);
}

.wizard-result-chip span {
    display: block;
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
}

.wizard-result-chip strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dim-color);
    font-variant-numeric: tabular-nums;
}

.wizard-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.cta-section {
    padding: 3rem 0 4rem;
}

.cta-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 2.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-tertiary-bg);
}

.simulasi-disclaimer {
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .wizard-ind-row {
        grid-template-columns: 1fr;
    }

    .wizard-ind-controls {
        justify-content: flex-start;
    }

    .wizard-card-score {
        margin-left: 0;
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .wizard-card-score .d-value {
        font-size: 1.5rem;
    }

    .wizard-ipk-preview {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .wizard-nav .btn {
        flex: 1;
        min-width: 0;
    }
}
