/*
 * Consulthic: etalase & booking.
 * Bahasa visual sama dengan ruang chat: netral bersih, satu warna aksen dari
 * Pengaturan. Focal point tiap langkah: kartu paket, jam, lalu nominal bayar.
 * Nominal bayar memakai angka tabular dan kode unik ditandai warna aksen,
 * karena itu satu-satunya hal yang harus diketik persis oleh klien.
 */
.cs {
	--ch-accent: #A9C5EB;
	--ch-accent-ink: #15201E;
	--ch-accent-soft: #F0F5FB;
	--ch-accent-strong: #2D6DC3;
	--cs-line: #e3e6e9;
	--cs-text: #16191d;
	--cs-muted: #5a626b;
	--cs-bg: #f6f7f8;
	max-width: 760px;
	margin: 0 auto;
	color: var(--cs-text);
	font-family: "Plus Jakarta Sans", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}
.cs *, .cs *::before, .cs *::after { box-sizing: border-box; }
.cs [hidden] { display: none !important; }
.cs :focus-visible { outline: 2px solid var(--ch-accent-strong); outline-offset: 2px; }
.cs button, .cs input, .cs textarea { font-family: inherit; }

.cs-head { margin: 0 0 20px; }
.cs-title { margin: 0 0 6px; font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--cs-text); }
.cs-intro { margin: 0 0 16px; color: var(--cs-muted); }
.cs-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: cs; }
.cs-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 3px solid var(--cs-line); font-size: 13px; font-weight: 600; color: var(--cs-muted); counter-increment: cs; }
.cs-steps li::before { content: counter(cs); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef0f2; font-size: 12px; }
.cs-steps li.is-done { border-top-color: var(--ch-accent); }
.cs-steps li.is-on { border-top-color: var(--ch-accent-strong); color: var(--cs-text); }
.cs-steps li.is-on::before { background: var(--ch-accent-strong); color: #fff; }
.cs-steps li.is-done::before { background: var(--ch-accent-soft); color: var(--ch-accent-strong); }

.cs-card { background: #fff; border: 1px solid var(--cs-line); border-radius: 16px; padding: 20px; }
.cs-empty { text-align: center; color: var(--cs-muted); }

/* Paket */
.cs-packages { display: grid; gap: 12px; }
.cs-package {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "top price" "desc desc" "cta cta";
	gap: 6px 16px;
	width: 100%;
	padding: 18px 20px;
	border: 1px solid var(--cs-line);
	border-radius: 16px;
	background: #fff;
	color: var(--cs-text);
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.cs-package:hover { border-color: var(--ch-accent-strong); box-shadow: 0 0 0 3px var(--ch-accent-soft); }
.cs-package__top { grid-area: top; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cs-package__name { font-size: 17px; font-weight: 700; }
.cs-package__dur { font-size: 13px; color: var(--cs-muted); }
.cs-package__desc { grid-area: desc; color: var(--cs-muted); font-size: 14px; }
.cs-package__price { grid-area: price; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs-package__cta { grid-area: cta; justify-self: start; margin-top: 6px; padding: 8px 16px; border-radius: 10px; background: var(--ch-accent); color: var(--ch-accent-ink); font-size: 14px; font-weight: 600; }

/* Jadwal */
.cs-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 16px; padding: 0 0 14px; border-bottom: 1px solid var(--cs-line); font-weight: 600; }
.cs-link { padding: 6px 0; border: 0; background: none; color: var(--ch-accent-strong); font: inherit; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cs-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cs-day { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; min-height: 64px; padding: 8px 10px; border: 1px solid var(--cs-line); border-radius: 14px; background: #fff; color: var(--cs-text); cursor: pointer; }
.cs-day__name { font-size: 12px; color: var(--cs-muted); }
.cs-day__date { font-size: 15px; font-weight: 700; }
.cs-day.is-on { background: var(--cs-text); border-color: var(--cs-text); color: #fff; }
.cs-day.is-on .cs-day__name { color: #d6dade; }
.cs-times__label { margin: 4px 0 10px; font-size: 13px; font-weight: 600; color: var(--cs-muted); }
.cs-times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cs-time { min-height: 46px; border: 1px solid var(--cs-line); border-radius: 12px; background: #fff; color: var(--cs-text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.cs-time:hover { border-color: var(--ch-accent-strong); background: var(--ch-accent-soft); color: var(--ch-accent-strong); }
.cs-state { margin: 12px 0; color: var(--cs-muted); }
.cs-state--error { color: #a3292b; }

/* Form */
.cs-form { display: flex; flex-direction: column; gap: 14px; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cs-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 600; font-size: 14px; }
.cs-field em { font-style: normal; font-weight: 500; color: var(--cs-muted); font-size: 12px; }
.cs-field input, .cs-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d3d8dd; border-radius: 12px; background: #fff; color: var(--cs-text); font-size: 16px; font-weight: 400; }
.cs-field textarea { resize: vertical; }
.cs-field input:focus, .cs-field textarea:focus { outline: 0; border-color: var(--ch-accent-strong); box-shadow: 0 0 0 1px var(--ch-accent-strong); }
.cs-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fbeaea; color: #a3292b; font-size: 14px; }

/* Tombol */
.cs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--ch-accent); border-radius: 12px; background: var(--ch-accent); color: var(--ch-accent-ink); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.cs-btn:hover { filter: brightness(.95); color: var(--ch-accent-ink); }
.cs-btn:disabled { opacity: .6; cursor: default; }
.cs-btn--lg { min-height: 52px; width: 100%; font-size: 16px; }
.cs-btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.cs-btn--ghost { background: #fff; border-color: var(--cs-line); color: var(--cs-text); }
.cs-btn--ghost:hover { background: var(--cs-bg); filter: none; color: var(--cs-text); }

/* Bayar */
.cs-pay { display: flex; flex-direction: column; gap: 14px; }
.cs-pay__eyebrow { margin: 0; font-size: 13px; color: var(--cs-muted); font-variant-numeric: tabular-nums; }
.cs-pay__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.cs-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs-amount__code { padding: 0 3px; border-radius: 6px; background: var(--ch-accent-soft); color: var(--ch-accent-strong); box-shadow: inset 0 -2px 0 var(--ch-accent-strong); }
.cs-pay__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cs-pay__left { font-size: 14px; font-weight: 600; color: #a84b06; font-variant-numeric: tabular-nums; }
.cs-pay__lead { margin: 0; color: var(--cs-muted); }
.cs-sum { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--cs-bg); font-size: 14px; }
.cs-sum dt { color: var(--cs-muted); }
.cs-sum dd { margin: 0; }
.cs-qris { margin: 0; text-align: center; }
.cs-qris img { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto 6px; border-radius: 12px; border: 1px solid var(--cs-line); }
.cs-qris figcaption { font-size: 13px; color: var(--cs-muted); }
.cs-banks { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cs-bank { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--cs-line); border-radius: 12px; }
.cs-bank__info { display: flex; flex-direction: column; min-width: 0; }
.cs-bank__num { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; overflow-wrap: anywhere; }
.cs-bank__holder { font-size: 13px; color: var(--cs-muted); }
.cs-note { margin: 0; white-space: pre-wrap; font-size: 14px; color: var(--cs-muted); }
.cs-wait { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--ch-accent-soft); color: var(--ch-accent-strong); font-size: 14px; font-weight: 500; }
.cs-spinner { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: cs-spin .8s linear infinite; }
.cs-pay.is-paid { border-color: var(--ch-accent-strong); box-shadow: 0 0 0 3px var(--ch-accent-soft); }
.cs-help { margin: 0; font-size: 13px; color: var(--cs-muted); }
@keyframes cs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cs-spinner { animation: none; } }

@media (max-width: 640px) {
	.cs-title { font-size: 22px; }
	.cs-card { padding: 16px; border-radius: 14px; }
	.cs-grid { grid-template-columns: 1fr; }
	.cs-steps li { font-size: 12px; gap: 6px; }
	.cs-package { grid-template-columns: 1fr; grid-template-areas: "top" "desc" "price" "cta"; padding: 16px; }
	.cs-package__cta { justify-self: stretch; text-align: center; padding: 12px; }
	.cs-times__grid { grid-template-columns: repeat(3, 1fr); }
	.cs-pay__title { font-size: 20px; }
}

/* Tawaran pasang aplikasi (HP) */
.ch-install { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--ch-accent, #A9C5EB); color: #16191d; font-size: 14px; }
.ch-install p { margin: 0 0 10px; }
.ch-install__row { display: flex; gap: 8px; }
.ch-install__go, .ch-install__no { flex: 1; min-height: 44px; border-radius: 12px; font: inherit; font-weight: 600; cursor: pointer; }
.ch-install__go { border: 0; background: var(--ch-accent, #A9C5EB); color: var(--ch-accent-ink, #15201E); }
.ch-install__no { border: 1px solid #e3e6e9; background: #fff; color: #16191d; }

/* Reset gaya tombol dari tema. */
.cs button { text-transform: none; letter-spacing: normal; min-width: 0; text-shadow: none; text-decoration: none; }
