/* Invitation Core — Checkout (TrueFrame: Open Sauce One, aksen oranye) */
@font-face { font-family: "Open Sauce One"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sauce-one-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce One"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/open-sauce-one-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce One"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sauce-one-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce One"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sauce-one-latin-700-normal.woff2") format("woff2"); }

.tfc {
	--tfc-accent: #b64626;
	--tfc-accent-deep: #9a3a1f;
	--tfc-soft: rgba(182, 70, 38, .1);
	--tfc-ring: rgba(182, 70, 38, .18);
	--tfc-ink: #14181a;
	--tfc-muted: rgba(20, 24, 26, .58);
	--tfc-line: rgba(20, 24, 26, .1);
	--tfc-field: #f6f4ef;
	--tfc-font: "Open Sauce One", system-ui, -apple-system, "Segoe UI", sans-serif;
	box-sizing: border-box;
	/* keluar dari container sempit tema/Elementor, maksimal 1120px */
	--tfc-w: min(1120px, calc(100vw - 32px));
	width: var(--tfc-w) !important;
	max-width: none !important;
	margin: 0 0 0 calc(50% - var(--tfc-w) / 2) !important;
	padding: 32px 0 64px;
	color: var(--tfc-ink);
	font-family: var(--tfc-font);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.tfc *, .tfc *::before, .tfc *::after { box-sizing: border-box; }
.tfc, .tfc input, .tfc select, .tfc button, .tfc textarea, .tfc h1, .tfc h2, .tfc p, .tfc a, .tfc small, .tfc b, .tfc span, .tfc label, .tfc dt, .tfc dd, .tfc li, .tfc summary {
	font-family: var(--tfc-font) !important;
	letter-spacing: normal;
}
.tfc [hidden] { display: none !important; }
.tfc.tfc--center { --tfc-w: min(480px, calc(100vw - 32px)); display: grid; place-items: center; min-height: 60vh; }

/* ---------- Tata letak 2 kolom ---------- */
.tfc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 24px;
	align-items: start;
	margin: 0;
}
.tfc-main { display: grid; gap: 16px; min-width: 0; }
.tfc-side { position: sticky; top: 96px; min-width: 0; }
.tfc-fields { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tfc-fields:disabled { opacity: .55; }

/* ---------- Judul halaman ---------- */
.tfc-head { grid-column: 1 / -1; padding: 4px 4px 0; }
.tfc-pill {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 99px;
	background: var(--tfc-soft);
	color: var(--tfc-accent);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .12em !important;
	text-transform: uppercase;
}
.tfc .tfc-title { margin: 14px 0 6px; padding: 0; color: var(--tfc-ink); font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em !important; }
.tfc-note { margin: 0; color: var(--tfc-muted); font-size: 15px; line-height: 1.55; }
.tfc-hint { margin: 8px 0 0; color: var(--tfc-muted); font-size: 12.5px; line-height: 1.5; }
.tfc-center { text-align: center; }

/* ---------- Kartu bagian (kiri) ---------- */
.tfc-sec, .tfc-box {
	padding: 24px;
	border: 1px solid var(--tfc-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(20, 24, 26, .04);
}
.tfc .tfc-sec__t {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	padding: 0;
	color: var(--tfc-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
}
.tfc-sec__t i {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--tfc-accent);
	color: #fff;
	font-size: 13px;
	font-style: normal;
	font-weight: 600;
}
.tfc-sec__hint { display: block; margin-top: -4px; color: var(--tfc-muted); font-size: 12.5px; }

.tfc-field { display: grid; align-content: start; gap: 7px; margin: 0 0 16px; }
.tfc-sec > .tfc-field:last-child, .tfc-grid:last-child .tfc-field { margin-bottom: 0; }
.tfc-field > span { color: var(--tfc-ink); font-size: 13px; font-weight: 600; }
.tfc-field small { color: var(--tfc-muted); font-size: 12px; line-height: 1.45; }
.tfc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: start; }
.tfc-grid + .tfc-field, .tfc-grid + .tfc-sec__hint { margin-top: 0; }

.tfc input[type="text"], .tfc input[type="email"], .tfc input[type="tel"], .tfc select {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--tfc-line);
	border-radius: 14px;
	background: var(--tfc-field);
	box-shadow: none;
	color: var(--tfc-ink);
	font-size: 15px;
	font-weight: 400;
	line-height: 48px;
	outline: 0;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.tfc select {
	padding-right: 44px;
	line-height: normal;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314181a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}
.tfc input::placeholder { color: rgba(20, 24, 26, .38); }
.tfc input:focus, .tfc select:focus { border-color: var(--tfc-accent); background-color: #fff; box-shadow: 0 0 0 3px var(--tfc-ring); }

.tfc-slug { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--tfc-line); border-radius: 14px; background: var(--tfc-field); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.tfc-slug:focus-within { border-color: var(--tfc-accent); background: #fff; box-shadow: 0 0 0 3px var(--tfc-ring); }
.tfc-slug em { flex: none; padding: 0 0 0 16px; color: var(--tfc-muted); font-size: 15px; font-style: normal; white-space: nowrap; }
.tfc .tfc-slug input { height: 46px; padding-left: 1px; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.tfc-slug-msg.is-ok { color: #15803d; }
.tfc-slug-msg.is-bad { color: #b42318; }

.tfc-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tfc-pack { position: relative; display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--tfc-line); border-radius: 16px; background: #fff; cursor: pointer; }
.tfc-pack input { position: absolute; opacity: 0; pointer-events: none; }
.tfc-pack:has(input:checked) { border-color: var(--tfc-ink); box-shadow: inset 0 0 0 1px var(--tfc-ink); }
.tfc-pack small { color: var(--tfc-muted); }

.tfc-dl { display: grid; gap: 0; margin: 0; }
.tfc-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--tfc-line); }
.tfc-dl > div:first-child { border-top: 0; padding-top: 0; }
.tfc-dl dt { color: var(--tfc-muted); font-size: 14px; }
.tfc-dl dd { margin: 0; font-size: 14px; font-weight: 500; text-align: right; word-break: break-word; }

/* ---------- Ringkasan (kanan) ---------- */
.tfc-box { padding: 24px; }
.tfc .tfc-box__t { margin: 0 0 14px; color: var(--tfc-ink); font-size: 18px; font-weight: 600; }
.tfc-chip { display: grid; gap: 2px; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--tfc-field); }
.tfc-chip b { font-size: 15px; font-weight: 600; }
.tfc-chip span { color: var(--tfc-muted); font-size: 13px; }
.tfc-sum { display: grid; gap: 8px; padding: 0 0 14px; border-bottom: 1px dashed var(--tfc-line); }
.tfc-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.tfc-sum span { color: var(--tfc-muted); }
.tfc-sum small { font-size: 11.5px; }
.tfc-sum b { font-weight: 500; text-align: right; }
.tfc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 18px; }
.tfc-total span { font-size: 15px; font-weight: 600; }
.tfc-total b { color: var(--tfc-accent); font-size: 26px; font-weight: 700; letter-spacing: -.02em !important; }

.tfc-actions { display: grid; gap: 12px; }
.tfc-agree { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--tfc-muted); font-size: 13px; line-height: 1.5; cursor: pointer; }
.tfc-agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--tfc-accent); }
.tfc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tfc-error { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fdecea; color: #b42318; font-size: 13.5px; }
.tfc-soon { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--tfc-soft); color: var(--tfc-accent); font-size: 13px; line-height: 1.5; }

.tfc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 99px;
	background: var(--tfc-accent);
	box-shadow: 0 10px 24px -10px rgba(182, 70, 38, .7);
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s, transform .2s;
}
.tfc-btn:hover, .tfc-btn:focus { background: var(--tfc-accent-deep); color: #fff !important; }
.tfc-btn:active { transform: translateY(1px); }
.tfc-btn:disabled { opacity: .6; cursor: progress; }
.tfc-btn--ghost, .tfc-btn--ghost:hover, .tfc-btn--ghost:focus { width: auto; height: 40px; padding: 0 18px; border: 1px solid var(--tfc-line); background: #fff; box-shadow: none; color: var(--tfc-ink) !important; font-size: 14px; font-weight: 500; }
.tfc-btn--ghost:hover { border-color: rgba(20, 24, 26, .3); }

/* ---------- QR di kolom kanan ---------- */
.tfc-paybox { padding-top: 4px; text-align: center; animation: tfcIn .45s cubic-bezier(.22, .61, .36, 1); }
@keyframes tfcIn { from { opacity: 0; transform: translateX(16px); } }
.tfc .tfc-paybox__t { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.tfc-qr { display: grid; place-items: center; width: 100%; max-width: 280px; margin: 0 auto 10px; padding: 12px; border: 1px solid var(--tfc-line); border-radius: 18px; background: #fff; }
.tfc-qr canvas, .tfc-qr img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.tfc-apps { margin: 0; color: var(--tfc-muted); font-size: 12px; }
.tfc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 12px; }
.tfc-timer { color: var(--tfc-muted); font-size: 13.5px; }
.tfc-timer b { color: var(--tfc-ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.tfc-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 10px; border-radius: 12px; background: var(--tfc-field); color: var(--tfc-muted); font-size: 13.5px; }
.tfc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tfc-accent); animation: tfcPulse 1.2s ease-in-out infinite; }
@keyframes tfcPulse { 50% { opacity: .3; transform: scale(.8); } }
.tfc-how { margin: 12px 0 0; text-align: left; }
.tfc-how summary { color: var(--tfc-ink); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.tfc-how ol { margin: 8px 0 0; padding-left: 20px; color: var(--tfc-muted); font-size: 13px; line-height: 1.55; }
.tfc-check { display: grid; place-items: center; width: 64px; height: 64px; margin: 6px auto 12px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 30px; box-shadow: 0 10px 30px rgba(22, 163, 74, .3); }
.tfc-pay__done .tfc-btn, .tfc-pay__fail .tfc-btn { margin-top: 14px; }
.tfc-ref { margin: 16px 0 0; color: var(--tfc-muted); font-size: 12px; text-align: center; }

/* ---------- Tablet & HP: 1 kolom, ringkasan di bawah ---------- */
@media (max-width: 899px) {
	.tfc { padding: 20px 0 48px; }
	.tfc-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.tfc-side { position: static; scroll-margin-top: 90px; }
	.tfc .tfc-title { font-size: 28px; }
}
@media (max-width: 520px) {
	.tfc-sec, .tfc-box { padding: 20px 18px; border-radius: 20px; }
	.tfc-grid { grid-template-columns: 1fr; }
	.tfc-grid .tfc-field:last-child { margin-bottom: 16px; }
	.tfc-grid:last-child .tfc-field:last-child { margin-bottom: 0; }
	.tfc-total b { font-size: 24px; }
}

/* ---------- Bayar sekarang / coba gratis ---------- */
.tfc-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 18px; padding: 4px; border-radius: 99px; background: var(--tfc-field); }
.tfc-mode label { position: relative; margin: 0; cursor: pointer; }
.tfc-mode input { position: absolute; opacity: 0; pointer-events: none; }
.tfc-mode span { display: block; padding: 10px 8px; border-radius: 99px; color: var(--tfc-muted); font-size: 13px; font-weight: 600; text-align: center; transition: background-color .2s, color .2s, box-shadow .2s; }
.tfc-mode input:checked + span { background: #fff; color: var(--tfc-ink); box-shadow: 0 1px 3px rgba(20, 24, 26, .12); }
.tfc-mode input:focus-visible + span { outline: 2px solid var(--tfc-accent); outline-offset: 2px; }
.tfc-pay .tfc-only-trial { display: none; }
.tfc-pay.is-trial .tfc-only-trial { display: block; }
.tfc-pay.is-trial .tfc-only-pay { display: none !important; }
.tfc-trialinfo { margin: 0 0 4px; padding: 14px 16px; border-radius: 14px; background: var(--tfc-soft); color: var(--tfc-ink); font-size: 13.5px; line-height: 1.5; }
.tfc-trialinfo p { margin: 0 0 6px; }
.tfc-trialinfo b { color: var(--tfc-accent); }
.tfc-trialinfo ul { margin: 0; padding-left: 18px; color: var(--tfc-muted); }
.tfc-pay.is-trial .tfc-total b { color: var(--tfc-accent); }

/* ---------- Voucher ---------- */
.tfc-voucher { padding: 12px 0 0; }
.tfc .tfc-voucher__open { padding: 0; border: 0; background: none; box-shadow: none; color: var(--tfc-accent); font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tfc-voucher__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.tfc .tfc-voucher__row input { height: 42px; text-transform: uppercase; letter-spacing: .04em; }
.tfc-voucher__msg { display: block; margin-top: 6px; font-size: 12.5px; }
.tfc-voucher__msg.is-ok { color: #15803d; }
.tfc-voucher__msg.is-bad { color: #b42318; }
.tfc-sum__disc b { color: #15803d; }
.tfc-agree a { color: var(--tfc-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Pilihan bahasa (ID / EN) ---------- */
.tfc-lang { display: flex; justify-content: flex-end; gap: 2px; margin: 0 0 8px; font-size: 13px; line-height: 1; }
.tfc.tfc--center .tfc-lang { justify-self: end; }
.tfc-lang a, .tfc-lang b { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 8px; font-weight: 600; letter-spacing: .02em; }
.tfc-lang b { color: var(--tfc-ink); background: var(--tfc-field); }
.tfc-lang a { color: var(--tfc-muted); text-decoration: none; cursor: pointer; }
.tfc-lang a:hover { color: var(--tfc-accent); background: var(--tfc-soft); }
.tfc-lang a:focus-visible { outline: 2px solid var(--tfc-accent); outline-offset: 2px; }

/* Cloudflare Turnstile */
.tfc-ts { margin: 4px 0 12px; min-height: 65px; }
.tfc-ts iframe { max-width: 100%; }
