/* ============================================================
   Booking Enquiry Form (White Card)
   SCOPING RULE: SEMUA selector di-scope di bawah .tlv-wrap
   (root shortcode). Tidak ada style yang bocor keluar halaman,
   dan specificity lebih tinggi dari reset/theme umum.
   ============================================================ */

/* Root = scope boundary */
.tlv-wrap {
	background: transparent;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
}

/* Reset ringan anti bleed-IN dari theme (scoped, aman) */
.tlv-wrap,
.tlv-wrap *,
.tlv-wrap *::before,
.tlv-wrap *::after {
	box-sizing: border-box;
}

.tlv-wrap .tlv-card {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	width: 100%;
	max-width: none;
	/* ponytail: padding 0 — semua spacing (termasuk atas) urusan container luar.
	   Ceiling: kalau plugin dipakai tanpa container berpadding, konten nempel tepi. */
	padding: 0;
	color: #030712;
}

/* ---------- Typography ---------- */

/* ---------- Section titles ----------
   Satu sumber kebenaran spacing: heading pertama = 0 atas (spacing
   urusan container luar), heading berikutnya = 48px. Tidak ada rule
   ganda yang saling menimpa. */

.tlv-wrap .tlv-section-title {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
	font-size: 24px;
	font-weight: 300;
	line-height: 120%;
	color: #030712;
	margin: 48px 0 24px;
}
.tlv-wrap .tlv-section-title:first-of-type {
	margin-top: 0;
}

.tlv-wrap .tlv-label {
	display: block;
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 100%;
	letter-spacing: 0;
	color: #030712;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.tlv-wrap .tlv-req {
	color: #04658B;
}
.tlv-wrap .tlv-optional {
	font-weight: 400;
	color: #9CA3AF;
}

/* ---------- Layout grid ---------- */

.tlv-wrap .tlv-field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 20px;
}
.tlv-wrap .tlv-field-grid .tlv-field {
	min-width: 0;
}
.tlv-wrap .tlv-field {
	margin-bottom: 20px;
	min-width: 0;
}

/* ---------- Inputs ---------- */

.tlv-wrap .tlv-input {
	width: 100%;
	border: 1px solid #DADFE5;
	border-radius: 0;
	padding: 12px 14px;
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0.4%;
	color: #030712;
	background: #FFFFFF;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease;
}
.tlv-wrap .tlv-input:focus {
	outline: none;
	border-color: #04658B;
}
.tlv-wrap .tlv-input::placeholder {
	color: #9CA3AF;
}
.tlv-wrap textarea.tlv-input.tlv-textarea {
	resize: vertical;
	min-height: 90px;
}

.tlv-wrap .tlv-input-wrap {
	position: relative;
}
.tlv-wrap .tlv-input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	pointer-events: none;
	object-fit: contain;
}
.tlv-wrap .tlv-input-wrap .tlv-input {
	padding-left: 42px;
}
.tlv-wrap .tlv-input-wrap select.tlv-input {
	padding-left: 42px;
}
/* Field tanpa icon kiri — jangan ada padding kosong */
.tlv-wrap .tlv-input-wrap.tlv-no-icon .tlv-input,
.tlv-wrap .tlv-input-wrap.tlv-no-icon select.tlv-input {
	padding-left: 14px;
}

/* Chevron kanan — satu file untuk semua field yang bisa dibuka */
.tlv-wrap .tlv-input-caret {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	pointer-events: none;
	object-fit: contain;
}
.tlv-wrap .tlv-select-wrap select.tlv-input {
	padding-right: 40px;
	background-image: none;
}

/* ---------- Phone (compound: code + number in one bordered row) ---------- */

.tlv-wrap .tlv-phone {
	display: flex;
	align-items: stretch;
	border: 1px solid #DADFE5;
	background: #FFFFFF;
	height: 46px;
}
.tlv-wrap .tlv-phone:focus-within {
	border-color: #04658B;
}
.tlv-wrap .tlv-phone-code-wrap {
	width: 78px;
	flex-shrink: 0;
	position: relative;
	display: flex;
	align-items: center;
}
.tlv-wrap .tlv-phone-code-wrap .tlv-input {
	border: none;
	height: 100%;
	padding: 0 24px 0 12px;
	background-color: transparent;
	background-image: none;
	font-size: 14px;
}
.tlv-wrap .tlv-phone-caret {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	pointer-events: none;
	object-fit: contain;
}
.tlv-wrap .tlv-phone-divider {
	width: 1px;
	background: #DADFE5;
	flex-shrink: 0;
}
.tlv-wrap .tlv-phone .tlv-phone-number {
	border: none;
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 14px;
}

/* ---------- Multiselect dropdown ---------- */

.tlv-wrap .tlv-multiselect {
	position: relative;
}
.tlv-wrap .tlv-ms-trigger {
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
	cursor: pointer;
	position: relative;
	padding-right: 40px;
}
.tlv-wrap .tlv-ms-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	object-fit: contain;
}
.tlv-wrap .tlv-ms-label {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	color: #9CA3AF;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tlv-wrap .tlv-ms-trigger.has-value .tlv-ms-label {
	color: #030712;
}
.tlv-wrap .tlv-ms-caret {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	object-fit: contain;
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
}
.tlv-wrap .tlv-ms-panel {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 30;
	background: #FFFFFF;
	border: 1px solid #DADFE5;
	box-shadow: 0 6px 24px rgba(3, 7, 18, 0.12);
	max-height: 240px;
	overflow-y: auto;
	padding: 6px 0;
}
.tlv-wrap .tlv-multiselect.open .tlv-ms-panel {
	display: block;
}
.tlv-wrap .tlv-ms-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	cursor: pointer;
	position: relative;
	-webkit-user-select: none;
	user-select: none;
}
.tlv-wrap .tlv-ms-item:hover {
	background: #F3F4F6;
}
.tlv-wrap .tlv-ms-item input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.tlv-wrap .tlv-ms-checkmark {
	width: 16px;
	height: 16px;
	border: 1px solid #D1D5DB;
	border-radius: 0;
	background: #fff;
	flex-shrink: 0;
	position: relative;
}
.tlv-wrap .tlv-ms-checkmark::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.1s ease;
}
.tlv-wrap .tlv-ms-item input:checked + .tlv-ms-checkmark {
	background: #030712;
	border-color: #030712;
}
.tlv-wrap .tlv-ms-item input:checked + .tlv-ms-checkmark::after {
	transform: rotate(45deg) scale(1);
}
.tlv-wrap .tlv-ms-item-label {
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	color: #030712;
}

/* ---------- Alerts ---------- */

.tlv-wrap .tlv-alert {
	border-radius: 0;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 13px;
	line-height: 1.5;
}
.tlv-wrap .tlv-alert-error {
	background: #FDF2F2;
	color: #B91C1C;
	border-left: 3px solid #B91C1C;
}
.tlv-wrap .tlv-alert-success {
	background: #F0FDF4;
	color: #15803D;
	border-left: 3px solid #15803D;
}

/* ---------- Submit (solid primary #043C52, auto-width, left) ---------- */

.tlv-wrap .tlv-submit {
	width: auto;
	border: none;
	border-radius: 0;
	padding: 14px 30px;
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #FFFFFF;
	background: #043C52;
	cursor: pointer;
	transition: background 0.15s ease;
	display: inline-block;
	margin-top: 8px;
}
.tlv-wrap .tlv-submit:hover {
	background: #04658B;
}
.tlv-wrap .tlv-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ---------- Pikaday datepicker (dd/mm/yyyy) ---------- */

.tlv-wrap .tlv-input-wrap .pika-single {
	margin-top: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
	.tlv-wrap .tlv-card {
		padding: 24px 20px;
	}
	.tlv-wrap .tlv-field-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.tlv-wrap .tlv-section-title {
		font-size: 20px;
	}
}

/* ponytail: pikaday.css (vendor, .pika-*) belum discope — kalender
   di-append ke <body> oleh Pikaday, bukan di dalam .tlv-wrap. Nama
   .pika-* jarang bentrok. Upgrade path: render pakai opsi `container`
   lalu prefix semua rule vendor. */
