/* =====================================================
   LANDING ENHANCE — Alur Pendaftaran, Pilihan Studi, Metode Pembayaran
   Ringan: hanya transform/opacity, tanpa library, hormati prefers-reduced-motion
   ===================================================== */

.sec-white { background: #fff; }

/* ---------- Reveal ringan (diatur oleh landing-enhance.js) ---------- */
.js-rv .rv { opacity: 0; }
/* animation + fill backwards: setelah selesai gaya normal (hover/transition elemen) kembali berlaku */
.js-rv .rv.in { opacity: 1; animation: rvIn .6s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rvIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =====================================================
   ALUR PENDAFTARAN
   ===================================================== */
.alur {
    --rail: #e3e8f7;
    list-style: none; position: relative;
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    counter-reset: alur;
}
.alur-item { position: relative; padding-top: 26px; }
.alur-num {
    position: absolute; top: 0; left: 24px; z-index: 2;
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--dark); color: #fff; font-weight: 700; font-size: 1.15rem;
    border: 4px solid #fff; box-shadow: var(--shadow-sm);
    transition: background .4s, transform .4s;
}
.alur-item.in .alur-num { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.alur-item.in .alur-num::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid var(--primary); opacity: 0; animation: alurPulse 2.4s ease-out 1;
    animation-delay: calc(var(--i, 0) * 90ms + .3s);
}
@keyframes alurPulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

.alur-card {
    height: 100%; padding: 40px 24px 26px; background: var(--light);
    border: 1px solid #eceffa; border-radius: 18px;
    transition: transform .3s, box-shadow .3s, border-color .3s, background .3s;
}
.alur-item:hover .alur-card, .alur-item:focus-within .alur-card {
    transform: translateY(-6px); background: #fff; border-color: rgba(67,97,238,.3); box-shadow: var(--shadow-md);
}
.alur-item:hover .alur-num { transform: scale(1.08); }
.alur-ico {
    width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
    color: var(--primary); background: #e7ecff; transition: transform .35s, background .3s, color .3s;
}
.alur-item:hover .alur-ico { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; transform: rotate(-8deg) scale(1.08); }
.alur-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.alur-card p { color: var(--gray); font-size: .9rem; line-height: 1.6; }
.alur-cta { text-align: center; margin-top: 40px; }
.alur-cta .btn i { transition: transform .25s; }
.alur-cta .btn:hover i { transform: translateX(4px); }

/* Tablet: 2 kolom */
@media (max-width: 992px) {
    .alur { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile: timeline vertikal dengan garis progres */
@media (max-width: 640px) {
    .alur { grid-template-columns: 1fr; gap: 18px; padding-left: 0; }
    .alur::before, .alur::after {
        content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 3px; border-radius: 3px;
    }
    .alur::before { background: var(--rail); }
    .alur::after {
        background: linear-gradient(var(--primary), var(--secondary));
        transform-origin: top; transform: scaleY(var(--p, 0)); will-change: transform;
    }
    .alur-item { padding: 0 0 0 66px; }
    .alur-num { top: 0; left: 0; width: 52px; height: 52px; }
    .alur-card { padding: 18px 18px 20px; }
    .alur-ico { width: 40px; height: 40px; margin-bottom: 10px; }
}

/* =====================================================
   PILIHAN STUDI
   ===================================================== */
.prodi-toolbar {
    max-width: 920px; margin: 0 auto 14px;
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.prodi-search {
    position: relative; flex: 1 1 300px; display: flex; align-items: center;
}
.prodi-search > i { position: absolute; left: 16px; color: var(--gray); pointer-events: none; }
.prodi-search input {
    width: 100%; height: 48px; padding: 0 44px 0 44px; font: inherit; font-size: .93rem; color: var(--dark);
    background: #fff; border: 1.5px solid #e1e6f3; border-radius: 50px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.prodi-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(67,97,238,.12); }
.prodi-search input::-webkit-search-cancel-button { display: none; }
.prodi-clear {
    position: absolute; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%;
    background: #eef1fb; color: var(--gray); cursor: pointer; transition: background .2s, color .2s;
}
.prodi-clear:hover { background: var(--primary); color: #fff; }
.prodi-clear[hidden] { display: none; }

.prodi-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 9px 18px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
    color: var(--dark); background: #fff; border: 1.5px solid #e1e6f3; border-radius: 50px;
    transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--primary); transform: translateY(-1px); }
.chip.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: transparent; color: #fff; }
.chip:focus-visible, .pay-toggle:focus-visible, .prodi-clear:focus-visible { outline: 3px solid rgba(67,97,238,.4); outline-offset: 2px; }

.prodi-count { max-width: 920px; margin: 0 auto 8px; font-size: .84rem; color: var(--gray); }
.prodi-count b { color: var(--primary-dark); }

.prodi-group.is-hidden, .prodi-card.is-hidden { display: none; }
.prodi-group { max-width: 1200px; margin-left: auto; margin-right: auto; }
.prodi-fakultas-title { position: relative; padding-left: 14px; }
.prodi-fakultas-title::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px;
    background: linear-gradient(var(--primary), var(--secondary));
}
.prodi-card { position: relative; overflow: hidden; border: 1px solid #edf0fa; }
.prodi-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.prodi-card:hover::before, .prodi-card:focus-within::before { transform: scaleX(1); }
.prodi-card .btn i { transition: transform .25s; }
.prodi-card .btn:hover i { transform: translateX(4px); }
.prodi-card h4 { line-height: 1.35; }
.prodi-card .badge i { font-size: .7rem; margin-right: 2px; }
.prodi-card .btn { margin-top: auto; }

.prodi-empty { text-align: center; padding: 40px 20px; color: var(--gray); }
.prodi-empty[hidden] { display: none; }
.prodi-empty i { font-size: 2.4rem; color: #c3cbe6; margin-bottom: 10px; display: block; }
.prodi-empty p { margin-bottom: 14px; }

/* =====================================================
   METODE PEMBAYARAN
   ===================================================== */
.pay-grid {
    max-width: 960px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: start;
}
.pay-card {
    position: relative; background: #fff; border-radius: 20px; padding: 30px;
    border: 1px solid #edf0fa; box-shadow: var(--shadow-sm); overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.pay-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
}
.pay-tunai::before { background: linear-gradient(90deg, #ffb703, #fb8500); }
.pay-va::before { background: linear-gradient(90deg, #4361ee, #4cc9f0); }
.pay-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pay-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.pay-head .payment-icon { margin-bottom: 0; flex: 0 0 auto; transition: transform .35s; }
.pay-card:hover .payment-icon { transform: rotate(-8deg) scale(1.08); }
.pay-head h3 { font-size: 1.25rem; margin-bottom: 4px; }
.pay-card > p { color: var(--gray); font-size: .93rem; line-height: 1.65; margin-bottom: 14px; }

.pay-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 50px;
    font-size: .72rem; font-weight: 700;
}
.pay-pill-ok { background: #e3fbf8; color: #1b9a8e; }
.pay-pill-ok i { font-size: .45rem; animation: payBlink 1.8s ease-in-out infinite; }
.pay-pill-warn { background: #fff6e0; color: #ad7c00; }
@keyframes payBlink { 50% { opacity: .25; } }

.pay-banks { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pay-bank {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px;
    background: #eef1ff; color: var(--primary-dark); font-size: .85rem;
}
.pay-bank i { color: var(--success); }
.pay-bank small { font-size: .7rem; font-weight: 600; }
.pay-bank.off { background: #f2f3f6; color: #8b92a5; }
.pay-bank.off b { text-decoration: line-through; }

.pay-card .payment-note { margin-bottom: 4px; }

.pay-toggle {
    width: 100%; margin-top: 16px; padding: 12px 16px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    color: var(--primary); background: #f5f7ff; border: 1.5px dashed #c9d3fb; border-radius: 12px;
    transition: background .2s, border-color .2s;
}
.pay-toggle:hover { background: #eaeeff; border-color: var(--primary); }
.pay-toggle i { transition: transform .3s; }
.pay-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

/* Akordion mulus tanpa JS ukur tinggi */
.pay-steps-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.pay-steps-wrap.open { grid-template-rows: 1fr; }
.pay-steps-inner { overflow: hidden; min-height: 0; }
.pay-steps { list-style: none; counter-reset: ps; padding: 16px 2px 2px; display: flex; flex-direction: column; gap: 12px; }
.pay-steps li {
    counter-increment: ps; position: relative; padding-left: 40px; font-size: .88rem; line-height: 1.55; color: var(--dark);
    opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .35s;
}
.pay-steps li::before {
    content: counter(ps); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
}
.pay-tunai .pay-steps li::before { background: linear-gradient(135deg, #ffb703, #fb8500); }
.pay-steps-wrap.open .pay-steps li { opacity: 1; transform: none; }
.pay-steps-wrap.open .pay-steps li:nth-child(1) { transition-delay: .08s; }
.pay-steps-wrap.open .pay-steps li:nth-child(2) { transition-delay: .16s; }
.pay-steps-wrap.open .pay-steps li:nth-child(3) { transition-delay: .24s; }
.pay-steps-wrap.open .pay-steps li:nth-child(4) { transition-delay: .32s; }

@media (max-width: 768px) {
    .pay-grid { grid-template-columns: 1fr; gap: 20px; }
    .pay-card { padding: 24px 20px; }
}
@media (max-width: 640px) {
    .prodi-toolbar { flex-direction: column; align-items: stretch; }
    /* chip bisa digeser horizontal agar tidak memakan tinggi layar */
    .prodi-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .prodi-chips::-webkit-scrollbar { display: none; }
    .chip { flex: 0 0 auto; }
    .prodi-grid { grid-template-columns: 1fr; }
}

/* Aksesibilitas: matikan animasi bila diminta perangkat */
@media (prefers-reduced-motion: reduce) {
    .js-rv .rv { opacity: 1; transform: none; }
    .js-rv .rv.in, .pay-steps-wrap, .pay-steps li, .alur-card, .prodi-card, .pay-card { transition: none !important; animation: none !important; }
    .alur-item.in .alur-num::after, .pay-pill-ok i { animation: none !important; }
}