:root {
    --gayatri-primary: #0d6efd;
    --gayatri-primary-dark: #0a58ca;
    --gayatri-accent: #25d366;
    --gayatri-bg-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

html.is-day body {
    background: linear-gradient(180deg, #64b5f6 0%, #9fd0f4 28%, #cfe8c9 50%, #6fb361 75%, #2e7d32 100%) fixed;
    color: #212529;
}

html.is-night body {
    background: linear-gradient(135deg, #070b1f 0%, #131c3d 50%, #2a3a68 100%) fixed;
    color: #212529;
}

#bg3d {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.page-shell {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* ---------- Kartu wizard ---------- */

.wizard-card {
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
    animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wizard-header {
    margin-bottom: 1rem;
}

.brand-logo {
    width: 230px;
    filter: drop-shadow(0 0.35rem 0.75rem rgba(0, 0, 0, 0.4));
}

.wizard-title {
    font-weight: 700;
    background: var(--gayatri-bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
    padding-bottom: 1.25rem;
}

/* ---------- Indikator langkah ---------- */

.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    counter-reset: step;
}

.wizard-steps .step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.wizard-steps .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #cbd5e1;
    color: #fff;
    font-size: 0.8rem;
    transition: background 0.35s ease;
}

.wizard-steps .step.active {
    background: linear-gradient(135deg, var(--gayatri-primary) 0%, var(--gayatri-primary-dark) 100%);
    color: #fff;
    transform: scale(1.05);
}

.wizard-steps .step.active .step-num,
.wizard-steps .step.done .step-num {
    background: rgba(255, 255, 255, 0.25);
}

.wizard-steps .step.done {
    color: var(--gayatri-primary-dark);
    background: #e2ecff;
}

@media (max-width: 575.98px) {
    .wizard-steps .step-label {
        display: none;
    }
}

/* ---------- Pane wizard ---------- */

.wizard-pane {
    display: none;
}

.wizard-pane.active {
    display: block;
    animation: paneIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes paneIn {
    from {
        opacity: 0;
        transform: translateX(32px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pane-head {
    margin-bottom: 0.75rem;
}

.btn-back {
    border: none;
    background: transparent;
    color: var(--gayatri-primary);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-back:hover {
    background: #e7f0ff;
    transform: translateX(-3px);
}

/* ---------- Kartu pilihan (langkah 1) ---------- */

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    padding: 1.75rem 1.25rem;
    border: 1px solid #e3e8ef;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 0.35rem 1rem rgba(15, 32, 39, 0.08);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    animation: optionIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#pane-pilih.active .option-card {
    animation-delay: calc(var(--stagger, 0) * 90ms);
}

#pane-pilih.active .col-md-4:nth-child(1) .option-card { --stagger: 1; }
#pane-pilih.active .col-md-4:nth-child(2) .option-card { --stagger: 2; }
#pane-pilih.active .col-md-4:nth-child(3) .option-card { --stagger: 3; }

@keyframes optionIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-card:hover {
    transform: translateY(-6px);
    border-color: var(--gayatri-primary);
    box-shadow: 0 1rem 1.75rem rgba(13, 110, 253, 0.18);
}

.option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #e7f0ff 0%, #d3e5ff 100%);
    color: var(--gayatri-primary);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.option-card:hover .option-icon {
    transform: scale(1.12) rotate(-4deg);
}

.option-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.option-desc {
    font-size: 0.85rem;
    color: #6c757d;
}

/* ---------- Tombol WhatsApp ---------- */

.btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: var(--gayatri-accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-wa:hover {
    background: #1ebe5a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(37, 211, 102, 0.35);
}

/* ---------- Branding ---------- */

.branding-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e3e8ef;
}

.branding-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.branding-logos {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.branding-logo {
    height: 44px;
    width: auto;
    opacity: 0.75;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.branding-logo:hover {
    opacity: 1;
    transform: scale(1.06);
}

.branding-logo-round {
    border-radius: 50%;
}

/* ---------- Form ---------- */

.form-control,
.form-select {
    border-radius: 0.75rem;
    border: 1px solid #dee2e6;
    padding-top: 1.35rem;
    padding-bottom: 0.55rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gayatri-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.btn-submit {
    background: linear-gradient(135deg, var(--gayatri-primary) 0%, var(--gayatri-primary-dark) 100%);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-submit:hover,
.btn-submit:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.35);
}

.btn-submit:disabled {
    opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
    .wizard-card,
    .wizard-pane.active,
    .option-card {
        animation: none;
    }

    .btn-back,
    .btn-submit,
    .btn-wa,
    .option-card,
    .option-icon {
        transition: none;
    }
}

@media (max-width: 575.98px) {
    .wizard-card {
        padding: 1.5rem;
    }

    .page-shell {
        padding: 1.5rem 1rem;
    }
}
