/* Tampilan formulir kunjungan yang ringkas dan responsif. */
.registration-page {
    max-width: 1020px;
    padding-top: 44px;
    padding-bottom: 64px;
}
.registration-heading {
    margin-bottom: 28px;
}
.registration-heading h1 {
    font-size: clamp(28px, 3.5vw, 42px);
    margin: 10px 0 14px;
}
.registration-heading p {
    color: #617771;
}
.registration-shell {
    border: 1px solid #dce7e1;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}
.registration-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    list-style: none;
    padding: 24px 32px;
    margin: 0;
    background: #f6f9f7;
    border-bottom: 1px solid #e3ece6;
}
.registration-progress li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #71817a;
    font-size: 14px;
}
.registration-progress span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid #ccdcd2;
    border-radius: 50%;
    flex-shrink: 0;
}
.registration-progress .is-current {
    color: #126548;
    font-weight: 700;
}
.registration-progress .is-current span,
.registration-progress .is-complete span {
    background: #126548;
    border-color: #126548;
    color: #fff;
}
.registration-shell form {
    padding: 28px 32px;
}
.registration-shell [hidden] {
    display: none !important;
}
.registration-shell h2 {
    font-size: clamp(23px, 3vw, 29px);
    margin: 8px 0 12px;
}
.registration-status {
    background: #f3f7f5;
    border-left: 3px solid #88b59c;
    padding: 12px 16px;
    font-size: 13px;
    margin: 0 0 28px;
}
.registration-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.registration-choices label {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 6px 12px;
    padding: 22px;
    border: 1px solid #d5e3da;
    border-radius: 12px;
    cursor: pointer;
    margin: 0;
}
.registration-choices label:has(input:checked) {
    background: #f1f8f3;
    border-color: #29835c;
    box-shadow: 0 0 0 1px #29835c;
}
.registration-choices input {
    width: 18px;
    height: 18px;
    margin: 3px 0;
    accent-color: #126548;
}
.registration-choices strong {
    font-size: 17px;
}
.registration-choices small {
    grid-column: 2;
    color: #6a7e74;
    line-height: 1.6;
}
.registration-jkn {
    background: #f0f7fc;
    border-radius: 12px;
    padding: 20px;
}
.registration-jkn h3 {
    margin-top: 0;
}
.registration-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid #e3ece6;
    margin-top: 24px;
}
.registration-actions [data-back] {
    margin-right: auto;
}
.registration-actions button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.registration-feedback {
    color: #89551a;
    font-size: 14px;
}

.registration-shell input[readonly] {
    background: #f5f7f6;
}
.registration-shell .check {
    margin-top: 22px;
}
@media (max-width: 640px) {
    .registration-page {
        padding-top: 28px;
    }
    .registration-progress {
        padding: 18px 14px;
        gap: 8px;
    }
    .registration-progress li {
        flex-direction: column;
        gap: 6px;
        font-size: 11px;
        text-align: center;
    }
    .registration-shell form {
        padding: 24px 18px;
    }
    .registration-choices {
        grid-template-columns: 1fr;
    }
    .registration-actions .button {
        padding: 12px 16px;
        font-size: 13px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .registration-page * {
        scroll-behavior: auto;
    }
}

/* Kalender kunjungan: tanggal tanpa sesi API tidak dapat dipilih. */
[data-visit-calendar] {
    max-width: 340px;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #d5e3dc;
    border-radius: 10px;
    background: #fff;
}
.visit-calendar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.visit-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    text-align: center;
    margin-bottom: 10px;
}
[data-visit-calendar] button {
    padding: 6px;
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    background: #edf6f0;
    color: #146347;
    cursor: pointer;
}
[data-visit-calendar] button:disabled {
    background: #f3f4f3;
    color: #a4aba7;
    cursor: default;
}
[data-visit-calendar] button[aria-pressed='true'] {
    background: #146347;
    color: #fff;
}
[data-visit-calendar] button:focus-visible {
    outline: 2px solid #146347;
    outline-offset: 2px;
}

/* Kolom tanggal tetap ringkas seperti input sebelumnya; kalender berupa popover. */
.visit-date-field {
    position: relative;
    margin-bottom: 19px;
}
/* Label tanggal terpisah dari input; samakan jaraknya dengan label pembungkus select. */
.visit-date-field > label {
    margin-bottom: 0;
}
.registration-shell input[name='visit_date'],
.registration-shell select[name='session'],
.visit-date-trigger {
    box-sizing: border-box;
    height: 44px;
    font-size: 14px;
}
.visit-date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #cbded5;
    border-radius: 5px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.visit-date-trigger::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 1px solid currentColor;
    border-radius: 2px;
    background: linear-gradient(currentColor, currentColor) 0 3px / 100% 1px no-repeat;
}
.visit-date-trigger:disabled {
    color: #89958f;
    background: #f7f9f8;
    cursor: default;
}
.visit-date-field [data-visit-calendar] {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    width: min(310px, 100%);
    box-sizing: border-box;
    box-shadow: 0 5px 18px #143d2920;
}
