/* =========================================================
   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;
    }
}


/* ========== Intro: pilih provinsi ========== */
.wizard-intro {
    max-width: 520px;
    margin: 0 auto 2rem;
}
.wizard-intro-card {
    text-align: center;
    padding: 2.25rem 1.75rem;
    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-intro-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: color-mix(in srgb, var(--brand, #0d6efd) 14%, transparent);
    color: var(--brand, #0d6efd);
}
.wizard-intro-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.wizard-intro-desc {
    color: var(--bs-secondary-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.55;
}
.wizard-intro-form {
    text-align: left;
    max-width: 360px;
    margin: 0 auto;
}
.wizard-provinsi-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    font-size: 0.9rem;
}
.wizard-provinsi-chip i { color: var(--brand, #0d6efd); }

/* Warning input > max */
.wizard-ind-row {
    grid-template-columns: 1fr minmax(200px, 280px);
}
.wizard-input-warn {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.15rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.4;
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f1aeb5;
}
.wizard-input-warn i {
    flex-shrink: 0;
    margin-top: 0.1rem;
}
[data-bs-theme="dark"] .wizard-input-warn {
    background: rgba(220, 53, 69, 0.2);
    color: #f1aeb5;
    border-color: rgba(220, 53, 69, 0.35);
}
.input-x.is-invalid {
    border-color: var(--bs-danger) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-danger-rgb), 0.25) !important;
}

/* Interpretasi hasil (tanpa saran) */
.wizard-result-interpret {
    max-width: 520px;
    margin: 0 auto 1.75rem;
    text-align: left;
    padding: 1.25rem 1.35rem;
    border-radius: 1rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}
.interpret-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.interpret-danger { background: #f8d7da; color: #842029; }
.interpret-warning { background: #fff3cd; color: #664d03; }
.interpret-info { background: #cff4fc; color: #055160; }
.interpret-success { background: #d1e7dd; color: #0f5132; }
.interpret-primary { background: #cfe2ff; color: #084298; }
.interpret-secondary { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
[data-bs-theme="dark"] .interpret-danger { background: rgba(220,53,69,.25); color: #f1aeb5; }
[data-bs-theme="dark"] .interpret-warning { background: rgba(255,193,7,.2); color: #ffda6a; }
[data-bs-theme="dark"] .interpret-info { background: rgba(13,202,240,.2); color: #6edff6; }
[data-bs-theme="dark"] .interpret-success { background: rgba(25,135,84,.25); color: #75b798; }
[data-bs-theme="dark"] .interpret-primary { background: rgba(13,110,253,.25); color: #6ea8fe; }
.interpret-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--bs-body-color);
}

@media (max-width: 767.98px) {
    .wizard-input-warn {
        grid-column: 1;
    }
}
