/* ==========================================================================
   Form intake — lima panel
   ========================================================================== */

/* --- Stepper --- */

.stepper {
    position: relative;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 var(--s-7);
}

/* Satu garis utuh di belakang semua titik, berhenti di tengah titik pertama & terakhir. */
.stepper::before,
.stepper::after {
    content: "";
    position: absolute;
    top: 1rem;
    left: 10%;
    right: 10%;
    height: 3px;
    border-radius: 999px;
    translate: 0 -50%;
}

.stepper::before {
    background: var(--line);
}

.stepper::after {
    background: var(--green-live);
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stepper li {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
}

.stepper__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0 auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-faint);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stepper li.done .stepper__dot {
    font-size: 0;
    background: var(--green-live);
    border-color: var(--green-live);
}

.stepper li.done .stepper__dot::after {
    content: "";
    width: 0.5rem;
    height: 0.28rem;
    border-left: 2px solid var(--bg);
    border-bottom: 2px solid var(--bg);
    border-radius: 1px;
    rotate: -45deg;
    translate: 1px -1px;
}

.stepper li.now .stepper__dot {
    color: var(--bg);
    background: var(--clay);
    border-color: var(--clay);
    transform: scale(1.1);
    animation: stepper-halo 2.4s ease-in-out infinite;
}

@keyframes stepper-halo {

    0%,
    100% {
        box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--clay-wash);
    }

    50% {
        box-shadow: 0 0 0 4px var(--bg), 0 0 0 11px var(--clay-wash);
    }
}

.stepper__name {
    margin-top: var(--s-3);
    font-size: 0.8125rem;
    color: var(--ink-faint);
    transition: color 0.3s ease;
}

.stepper li.now .stepper__name {
    color: var(--ink);
    font-weight: 500;
}

.stepper li.done .stepper__name {
    color: var(--ink-muted);
}

@media (max-width: 560px) {
    .stepper__name {
        display: none;
    }

    .stepper {
        margin-bottom: var(--s-6);
    }
}

/* --- Panel --- */

.panel[hidden] {
    display: none;
}

.panel__head {
    margin-bottom: var(--s-6);
}

.panel__head h2 {
    margin-bottom: var(--s-2);
}

.panel__head p {
    margin: 0;
    color: var(--ink-muted);
}

/* --- Kartu pilihan olahraga --- */

.choices {
    display: grid;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
}

@media (min-width: 560px) {
    .choices {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sport-card {
    position: relative;
    display: block;
    height: 128px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sport-card:hover {
    background: color-mix(in srgb, var(--clay-wash) 50%, var(--bg));
}



.sport-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sport-card svg {
    position: absolute;
    right: -16px;
    bottom: -34px;
    width: 78px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 3;
    opacity: 0.12;
    transition: opacity 0.2s ease, stroke 0.2s ease;
}

.sport-card__text {
    position: absolute;
    top: var(--s-4);
    left: var(--s-4);
}

.sport-card b {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.sport-card:has(input:checked) {
    background: var(--clay-wash);
    border-color: var(--clay);
}

.sport-card:has(input:checked) svg {
    stroke: var(--clay);
    opacity: 0.2;
}

.sport-card:has(input:checked) b {
    color: var(--clay);
}

.sport-card:has(input:focus-visible) {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
}

.link-row {
    margin: 0 0 var(--s-5);
    font-size: 0.875rem;
}

/* --- Kolom rupiah --- */

.money {
    display: flex;
    align-items: stretch;
    margin-bottom: var(--s-4);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    transition: border-color 0.15s ease;
}

.money:hover {
    border-color: var(--ink-faint);
}

.money:has(input:focus-visible) {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
}

.money__prefix {
    display: flex;
    align-items: center;
    padding: 0 var(--s-4);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-muted);
    background: var(--surface);
    border-right: 1px solid var(--line);
    border-radius: var(--r-sm) 0 0 var(--r-sm);
}

.money input {
    flex: 1;
    margin: 0;
    border: none;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-variant-numeric: tabular-nums;
}

.money input:hover {
    border-color: transparent;
}

.money input:focus-visible {
    outline: none;
}

#price-words {
    margin-top: calc(var(--s-4) * -1 + var(--s-2));
    margin-bottom: var(--s-4);
    color: var(--clay);
    font-weight: 500;
}

/* --- Blok per olahraga --- */

.sport-block[hidden] {
    display: none;
}

/* --- Kelompok satu pertanyaan --- */

.spec-q,
.cond-q {
    margin-bottom: var(--s-4);
}

.spec-q small,
.cond-q small {
    margin-top: calc(var(--s-1) * -1);
    margin-bottom: var(--s-2);
}

.cond-q>label:first-child {
    font-weight: 500;
}

/* --- Pemeriksaan wajib --- */

.gate {
    padding: var(--s-5);
    margin-bottom: var(--s-6);
    background: var(--surface);
    border-radius: var(--r-lg);
}

.gate>h3 {
    margin-top: 0;
    color: var(--clay);
}

.gate>p {
    font-size: 0.9375rem;
    color: var(--ink-muted);
}

.gate-q {
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
}

.gate-q>p {
    margin-bottom: var(--s-1);
    font-weight: 500;
    color: var(--ink);
}

.gate-q small {
    margin-bottom: var(--s-3);
}

.pills {
    display: flex;
    gap: var(--s-2);
    margin-bottom: var(--s-4);
}

.pill {
    margin: 0;
    position: relative;
    padding: var(--s-2) var(--s-5);
    font-size: 0.9375rem;
    font-weight: 500;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pill:hover {
    border-color: var(--ink-faint);
}

.pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pill:has(input:checked) {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
}

.pill:has(input:focus-visible) {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
}

/* --- Tegangan senar berdampingan --- */

.tension-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
}

@media (max-width: 480px) {
    .tension-row {
        grid-template-columns: 1fr;
    }
}


/* --- Pengajuan ditutup --- */

.blocked {
    padding: var(--s-5);
    margin-bottom: var(--s-5);
    background: var(--clay-wash);
    border-left: 3px solid var(--clay);
    border-radius: var(--r-md);
}

.blocked[hidden] {
    display: none;
}

.blocked p {
    font-size: 0.9375rem;
}

.blocked p:last-child {
    margin-bottom: 0;
}

/* --- Ubin foto --- */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
    margin-bottom: var(--s-5);
}

@media (min-width: 560px) {
    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.photo-slot {
    position: relative;
}

.photo-slot input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.photo-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    aspect-ratio: 1;
    margin: 0;
    padding: var(--s-3);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    color: var(--ink-muted);
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

/* --- Ubin lebar untuk unggah nota senar --- */

.photo-tile--wide {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--s-3);
    aspect-ratio: auto;
    height: auto;
    padding: var(--s-4);
    text-align: left;
}

.restring-upload {
    margin-bottom: var(--s-4);
}

.photo-tile:hover {
    border-color: var(--ink-faint);
}

.photo-tile__mark {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    color: var(--ink-faint);
}

.photo-slot.filled .photo-tile {
    color: var(--green);
    background: var(--green-wash);
    border-style: solid;
    border-color: var(--green-live);
}

.photo-slot.filled .photo-tile__mark {
    color: var(--green-live);
}

.photo-slot input:focus-visible+.photo-tile {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
}

.check {
    display: flex;
    gap: var(--s-3);
    align-items: flex-start;
    margin-bottom: var(--s-3);
    font-size: 0.9375rem;
    font-weight: 400;
    cursor: pointer;
}

.check input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--green-live);
}

/* --- Ketentuan dan batas waktu --- */

.terms {
    padding: var(--s-6);
    margin: var(--s-6) 0;
    background: var(--surface);
    border-radius: var(--r-lg);
}

.terms__title {
    margin: 0 0 var(--s-4);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* --- Alur setelah form dikirim --- */

.flow {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}

.flow li {
    position: relative;
    padding-left: var(--s-7);
    padding-bottom: var(--s-5);
    counter-increment: flow;
}

.flow li:last-child {
    padding-bottom: 0;
}

/* Nomor langkah */
.flow li::before {
    content: counter(flow);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-muted);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 50%;
}

/* Garis penghubung antar langkah */
.flow li::after {
    content: "";
    position: absolute;
    top: 1.75rem;
    left: calc(0.75rem - 1px);
    bottom: 0;
    width: 1px;
    background: var(--line);
}

.flow li:last-child::after {
    display: none;
}

.flow {
    counter-reset: flow;
}

.flow__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--s-3);
    min-height: 1.5rem;
}

.flow__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
}

.flow__time {
    padding: 2px var(--s-3);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clay);
    background: var(--clay-wash);
    border-radius: 999px;
    white-space: nowrap;
}

.flow__desc {
    max-width: none;
    margin: var(--s-2) 0 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--ink-muted);
}

.terms__note {
    max-width: none;
    margin: var(--s-5) 0 0;
    padding-top: var(--s-5);
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--ink-muted);
    border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
    .terms__row {
        grid-template-columns: 1fr;
        gap: var(--s-1);
    }
}

/* --- Persetujuan --- */

.consent {
    display: flex;
    gap: var(--s-3);
    padding: var(--s-4);
    margin-bottom: var(--s-3);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    background: var(--surface);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background 0.15s ease;
}

.consent:has(input:checked) {
    background: var(--green-wash);
}

.consent input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--green-live);
    cursor: pointer;
}

/* --- Navbar bawah --- */

.navbar {
    position: sticky;
    bottom: 0;
    padding: var(--s-4) var(--s-5);
    margin-top: var(--s-6);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
}

.navbar__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    max-width: 720px;
    margin: 0 auto;
}

.navbar button[hidden] {
    display: none;
}

.navbar__count {
    font-size: 0.8125rem;
    color: var(--ink-faint);
}

/* Isian foto kelengkapan, muncul di bawah centangnya. */
.acc__shot {
    margin: var(--s-2) 0 var(--s-4) var(--s-6);
}