/* Ancient Culture Trail Booking Form
   Everything is scoped under .bk-form so it won't leak into the rest of the theme. */

.bk-form {
	--bk-bg:           #ffffff;
	--bk-text:         #1a1a1a;
	--bk-muted:        #6b7280;
	--bk-border:       #d1d5db;
	--bk-border-hover: #9ca3af;
	--bk-accent:       #115100;
	--bk-accent-hover: #0d3e00;
	--bk-accent-soft:  #e1f0dc;  /* in-range tint */
	--bk-focus-ring:   rgba(17, 81, 0, 0.18);
	--bk-radius:       8px;
	--bk-shadow:       0 12px 32px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);

	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--bk-bg);
	color: var(--bk-text);
	padding: 20px;
	border-radius: var(--bk-radius);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	max-width: 100%;
	box-sizing: border-box;
}

.bk-form * { box-sizing: border-box; }

.bk-form .bk-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	align-items: end;
}

.bk-form .bk-field { min-width: 0; }

.bk-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--bk-text);
}

/* ---------- Custom inputs (trigger + select) ---------- */

.bk-form .bk-trigger,
.bk-form select {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--bk-border);
	border-radius: var(--bk-radius);
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: var(--bk-text);
	line-height: 1.2;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bk-form .bk-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	cursor: pointer;
	text-align: left;
}

.bk-form .bk-trigger .bk-trigger-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
}

.bk-form .bk-trigger .bk-icon { color: var(--bk-muted); flex-shrink: 0; }

.bk-form .bk-trigger:hover,
.bk-form select:hover { border-color: var(--bk-border-hover); }

.bk-form .bk-trigger:focus,
.bk-form .bk-trigger.is-active,
.bk-form select:focus {
	outline: none;
	border-color: var(--bk-accent);
	box-shadow: 0 0 0 3px var(--bk-focus-ring);
}

/* ---------- Submit button ---------- */

.bk-form .bk-col-submit button[type="submit"] {
	width: 100%;
	height: 44px;
	background: var(--bk-accent);
	color: #fff;
	border: 0;
	border-radius: var(--bk-radius);
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease;
}

.bk-form .bk-col-submit button[type="submit"]:hover,
.bk-form .bk-col-submit button[type="submit"]:focus {
	background: var(--bk-accent-hover);
}

/* ---------- Error line ---------- */

.bk-form .bk-error {
	color: #b91c1c;
	font-size: 13px;
	margin-top: 10px;
	min-height: 18px;
}

/* ---------- Datepicker popup ---------- */

.bk-form .bk-popup {
	position: absolute;
	top: 100px;
	left: 20px;
	right: 20px;
	margin-top: 8px;
	z-index: 50;
	background: #fff;
	border: 1px solid var(--bk-border);
	border-radius: 12px;
	box-shadow: var(--bk-shadow);
	padding: 16px;
	max-width: 660px;
}

.bk-form .bk-popup[hidden] { display: none; }

.bk-form .bk-popup-inner {
	position: relative;
}

.bk-form .bk-nav {
	position: absolute;
	top: 0;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	background: transparent;
	color: var(--bk-text);
	border-radius: 8px;
	cursor: pointer;
	padding: 0;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.bk-form .bk-nav:hover { background: #f3f4f6; }
.bk-form .bk-nav:focus { outline: none; border-color: var(--bk-accent); box-shadow: 0 0 0 3px var(--bk-focus-ring); }
.bk-form .bk-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.bk-form .bk-nav-prev { left: 0; }
.bk-form .bk-nav-next { right: 0; }

.bk-form .bk-months {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	padding: 0 40px;
}

.bk-form .bk-month {
	min-width: 0;
}

.bk-form .bk-month-head {
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 12px;
	text-transform: capitalize;
	color: var(--bk-text);
}

.bk-form .bk-month-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.bk-form .bk-weekday {
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: var(--bk-muted);
	text-transform: uppercase;
	padding: 6px 0;
	letter-spacing: 0.05em;
}

.bk-form .bk-day {
	height: 36px;
	border: 0;
	background: transparent;
	color: var(--bk-text);
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-family: inherit;
	padding: 0;
	transition: background 0.12s ease, color 0.12s ease;
}

.bk-form .bk-day-blank {
	visibility: hidden;
	cursor: default;
}

.bk-form .bk-day:not(:disabled):hover {
	background: #f3f4f6;
}

.bk-form .bk-day-disabled,
.bk-form .bk-day:disabled {
	color: #c7c7c7;
	cursor: not-allowed;
}

.bk-form .bk-day-today {
	box-shadow: inset 0 0 0 1px var(--bk-border);
	font-weight: 700;
}

.bk-form .bk-day-in-range {
	background: var(--bk-accent-soft);
	border-radius: 0;
}

.bk-form .bk-day-start,
.bk-form .bk-day-end {
	background: var(--bk-accent);
	color: #fff;
	font-weight: 700;
}

.bk-form .bk-day-start { border-radius: 8px 0 0 8px; }
.bk-form .bk-day-end   { border-radius: 0 8px 8px 0; }
.bk-form .bk-day-start.bk-day-end { border-radius: 8px; }

.bk-form .bk-day-start:hover,
.bk-form .bk-day-end:hover {
	background: var(--bk-accent-hover);
}

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

@media (max-width: 760px) {
	.bk-form .bk-row { grid-template-columns: 1fr 1fr; }
	.bk-form .bk-col-submit { grid-column: 1 / -1; }

	.bk-form .bk-popup {
		left: 12px;
		right: 12px;
		padding: 12px;
	}
	.bk-form .bk-months {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 0 36px;
	}
}
