/* Heaven & Earth Bookings – public booking form */
.hae-app {
	--f-primary: #7B5330;
	--f-primary-d: #5E3F24;
	--f-soft: #F3E6D0;
	--f-text: #1A202C;
	--f-muted: #5A6170;
	--f-line: #E2D6BC;
	--f-bg: #FFFDF8;
	--f-ok: #1F7A4D;
	--f-full: #A23B2A;
	--f-hover: #5E3F24;   /* site brown, used for hover states */
	font-family: Jost, "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--f-text);
	font-size: 15px;
	line-height: 1.5;
	max-width: 920px;
	margin: 0 auto;
}
.hae-app *, .hae-app *::before, .hae-app *::after { box-sizing: border-box; }
.hae-app button, .hae-app input, .hae-app select, .hae-app textarea { font-family: inherit; font-size: 15px; }
/* Theme guard: many themes give every <button> big padding, minimum sizes, a shadow and a coloured hover.
   The form's own buttons reset those box rules so they keep their layout (lettering is left to the theme). */
.hae-app button:not(.hae-f-btn) { min-width: 0 !important; min-height: 0 !important; margin: 0 !important; box-shadow: none !important; line-height: 1.2 !important; }
.hae-app .hae-f-trail { padding: 0 !important; }
.hae-app .hae-f-link { padding: 0 !important; background: none !important; }
.hae-app .hae-f-link:hover { text-decoration: underline; }
.hae-loading { padding: 40px; text-align: center; color: var(--f-muted); }

.hae-f-card { background: var(--f-bg); border: 1px solid var(--f-line); border-radius: 20px; box-shadow: 0 1px 2px rgba(60,40,20,.04), 0 12px 32px rgba(60,40,20,.06); overflow: hidden; }
.hae-f-body { padding: 26px 28px; }
.hae-f-foot { padding: 16px 28px; border-top: 1px solid var(--f-line); display: flex; justify-content: space-between; gap: 10px; background: #FAF5EB; }
.hae-f-h { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 18px; line-height: 1.25; color: var(--f-text); }

/* Steps */
.hae-f-steps { display: flex; align-items: center; gap: 10px; padding: 18px 28px; border-bottom: 1px solid var(--f-line); overflow-x: auto; }
.hae-f-steps .st { display: flex; align-items: center; gap: 8px; color: var(--f-muted); white-space: nowrap; font-size: 14px; font-weight: 500; }
.hae-f-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #D3C4A6; font-size: 12.5px; font-weight: 700; }
.hae-f-steps .st.on { color: var(--f-text); }
.hae-f-steps .st.on .n { background: var(--f-primary); border-color: var(--f-primary); color: #fff; }
.hae-f-steps .st.done .n { background: var(--f-soft); border-color: var(--f-soft); color: var(--f-primary); }
.hae-f-steps .bar { flex: 1; min-width: 16px; height: 2px; background: var(--f-line); border-radius: 2px; }

/* Buttons */
.hae-f-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--f-primary); background: var(--f-primary); color: #fff !important; padding: 11px 22px; border-radius: 12px; cursor: pointer; font-weight: 600; text-decoration: none !important; line-height: 1.2; transition: background .15s; }
.hae-f-btn:hover { background: var(--f-primary-d); border-color: var(--f-primary-d); }
.hae-f-btn.ghost { background: var(--f-bg); color: var(--f-text) !important; border-color: var(--f-line); }
.hae-f-btn.ghost:hover { background: #F4ECDD; }
.hae-f-btn.danger { background: var(--f-bg); color: var(--f-full) !important; border-color: #E8B9AF; }
.hae-f-btn.danger:hover { background: #fff5f5; }
.hae-f-btn[disabled] { opacity: .6; cursor: default; }
.hae-f-link { border: 0; background: none; color: var(--f-primary); cursor: pointer; font-weight: 600; padding: 0; }
.hae-f-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Trails */
.hae-f-trails { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hae-f-trail { display: flex; flex-direction: column; text-align: left; border: 1.5px solid var(--f-line); border-radius: 16px; background: var(--f-bg); cursor: pointer; overflow: hidden; padding: 0; transition: border-color .15s, box-shadow .15s, transform .15s; color: var(--f-text); }
.hae-f-trail:hover { border-color: color-mix(in srgb, var(--c) 60%, #fff); box-shadow: 0 8px 24px rgba(60,40,20,.08); transform: translateY(-1px); }
/* Hover / keyboard focus: the card turns the site's brown and ALL its text turns white
   (themes colour button hovers; this makes the result consistent and readable). */
.hae-app .hae-f-trail:hover, .hae-app .hae-f-trail:focus-visible { background: var(--f-hover); border-color: var(--f-hover); color: #fff; }
.hae-app .hae-f-trail:hover .txt, .hae-app .hae-f-trail:focus-visible .txt { background: var(--f-hover); }
.hae-app .hae-f-trail:hover b, .hae-app .hae-f-trail:hover .sh, .hae-app .hae-f-trail:hover .meta, .hae-app .hae-f-trail:hover .meta span, .hae-app .hae-f-trail:hover .meta .pr,
.hae-app .hae-f-trail:focus-visible b, .hae-app .hae-f-trail:focus-visible .sh, .hae-app .hae-f-trail:focus-visible .meta, .hae-app .hae-f-trail:focus-visible .meta span, .hae-app .hae-f-trail:focus-visible .meta .pr { color: #fff !important; }
.hae-app .hae-f-trail:focus-visible { outline: 3px solid color-mix(in srgb, var(--f-hover) 40%, #fff); outline-offset: 2px; }
.hae-f-trail.sel { border-color: var(--f-primary); box-shadow: 0 0 0 3px rgba(123,83,48,.15); }
.hae-f-trail .img { display: block; height: 130px; background: color-mix(in srgb, var(--c) 18%, #fff) center/cover no-repeat; }
.hae-f-trail .img.ph { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 10%, #fff)); }
.hae-f-trail .txt { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.hae-f-trail b { font-size: 16px; line-height: 1.3; }
.hae-f-trail .sh { color: var(--f-muted); font-size: 13.5px; }
.hae-f-trail .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; font-size: 13px; color: var(--f-muted); align-items: center; }
.hae-f-trail .meta span { display: inline-flex; align-items: center; gap: 5px; }
.hae-f-trail .meta .pr { margin-left: auto; color: var(--f-text); font-weight: 700; }

.hae-f-chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--f-soft); border: 1px solid var(--f-line); margin-bottom: 14px; }
.hae-f-chosen small { display: block; color: var(--f-muted); font-size: 12px; }
.hae-f-notes { border: 1px solid var(--f-line); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.hae-f-notes summary { cursor: pointer; font-weight: 600; }
.hae-f-notes div { margin-top: 8px; color: #3A3F4A; }
.hae-f-notes p { margin: 0 0 8px; }

.hae-f-riders { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--f-line); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.hae-f-riders small { display: block; color: var(--f-muted); }
.hae-f-stepper { display: flex; align-items: center; gap: 6px; }
/* !important on box metrics: themes add padding, min-sizes and shadows to every button. */
.hae-app .hae-f-stepper button { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 40px !important; height: 40px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; line-height: 1 !important; border-radius: 10px; border: 1px solid #E2D6BC; background: var(--f-bg); color: var(--f-text); box-shadow: none !important; cursor: pointer; text-transform: none; letter-spacing: 0; }
.hae-app .hae-f-stepper button svg { width: 16px; height: 16px; display: block; flex: none; }
.hae-app .hae-f-stepper button:hover { border-color: var(--f-hover); background: var(--f-hover); color: #fff; }
.hae-app .hae-f-stepper button:focus-visible { outline: 3px solid color-mix(in srgb, var(--f-hover) 40%, #fff); outline-offset: 2px; }
.hae-app .hae-f-stepper button[disabled] { opacity: .4; cursor: default; background: var(--f-bg); color: var(--f-text); border-color: #E2D6BC; }
.hae-f-stepper output { min-width: 36px; text-align: center; font-size: 18px; font-weight: 700; line-height: 40px; }

/* Date + time */
.hae-f-dt { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.hae-f-cal { border: 1px solid var(--f-line); border-radius: 16px; padding: 14px; }
.hae-f-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hae-f-cal-h button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--f-line); background: var(--f-bg); cursor: pointer; display: grid; place-items: center; color: var(--f-text); padding: 0; }
.hae-f-cal-h button[disabled] { opacity: .35; cursor: default; }
.hae-f-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hae-f-cal-g .dw { text-align: center; font-size: 12px; color: var(--f-muted); padding: 4px 0; }
.hae-f-cal-g .d { aspect-ratio: 1; border: 0; background: none; border-radius: 10px; cursor: pointer; display: grid; place-items: center; position: relative; font-weight: 600; color: var(--f-text); padding: 0; }
.hae-f-cal-g .d span { position: relative; z-index: 1; }
.hae-f-cal-g .d.available { background: var(--f-soft); color: var(--f-primary-d); }
.hae-f-cal-g .d.available:hover { background: #EAD8BA; }
.hae-f-cal-g .d.full { color: #B9AD98; text-decoration: line-through; }
.hae-f-cal-g .d.closed, .hae-f-cal-g .d[disabled] { color: #C9BEA9; cursor: default; font-weight: 500; }
.hae-f-cal-g .d.today span { text-decoration: underline; text-underline-offset: 3px; }
.hae-f-cal-g .d.sel { background: var(--f-primary) !important; color: #fff !important; }
.hae-f-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--f-muted); }
.hae-f-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hae-f-legend i.available { background: var(--f-soft); border: 1px solid #D9BF97; }
.hae-f-legend i.full { background: #F0E7D4; }
.hae-f-cal-load { min-height: 260px; display: grid; place-items: center; }

.hae-f-times-h { font-weight: 700; margin-bottom: 10px; }
.hae-f-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.hae-f-slot { border: 1.5px solid var(--f-line); background: var(--f-bg); border-radius: 12px; padding: 10px 8px; cursor: pointer; text-align: center; color: var(--f-text); }
.hae-f-slot b { display: block; font-size: 16px; }
.hae-f-slot small { color: var(--f-ok); font-size: 12px; font-weight: 600; }
.hae-f-slot:hover:not([disabled]) { border-color: var(--f-primary); }
.hae-f-slot.sel { border-color: var(--f-primary); background: var(--f-primary); color: #fff; }
.hae-f-slot.sel small { color: #F3E6D0; }
.hae-f-slot[disabled] { background: #F6EFE2; color: #A89D88; cursor: default; }
.hae-f-slot[disabled] small { color: var(--f-full); }

/* Theme guard for the calendar and time buttons: own padding, and hovers that never inherit the theme's colour. */
.hae-app .hae-f-cal-h button { padding: 0 !important; width: 34px !important; height: 34px !important; }
.hae-app .hae-f-cal-h button:hover:not([disabled]) { background: #F1E8D6; color: var(--f-text); border-color: #D3C4A6; }
.hae-app .hae-f-cal-h button[disabled]:hover { background: var(--f-bg); color: var(--f-text); }
.hae-app .hae-f-cal-g .d { padding: 0 !important; width: 100%; height: auto; }
.hae-app .hae-f-cal-g .d:hover { color: var(--f-text); background: none; }
.hae-app .hae-f-cal-g .d.available:hover { background: #EAD8BA; color: var(--f-primary-d); }
.hae-app .hae-f-cal-g .d.full:hover { color: #B9AD98; }
.hae-app .hae-f-cal-g .d.closed:hover, .hae-app .hae-f-cal-g .d[disabled]:hover { color: #C9BEA9; background: none; }
.hae-app .hae-f-slot { padding: 10px 8px !important; }
.hae-app .hae-f-slot:hover:not([disabled]):not(.sel) { background: var(--f-bg); color: var(--f-text); }
.hae-app .hae-f-slot[disabled]:hover { background: #F6EFE2; color: #A89D88; }
.hae-f-hint { color: var(--f-muted); font-size: 14px; padding: 6px 0; }
.hae-f-req { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--f-line); }
.hae-f-req-in { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.hae-f-req-in input { max-width: 150px; }
.hae-f-req-in small { color: var(--f-muted); }

/* Fields */
.hae-f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.hae-f-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.hae-f-field.full { grid-column: 1 / -1; }
.hae-f-field > span { font-size: 14px; font-weight: 600; color: #3A3F4A; }
.hae-f-field i { color: var(--f-full); font-style: normal; }
.hae-f-field small { color: var(--f-muted); font-size: 12.5px; }
.hae-f-lab { font-size: 16px; }
.hae-app input[type=text], .hae-app input[type=email], .hae-app input[type=tel], .hae-app input[type=number], .hae-app input[type=date], .hae-app input[type=time], .hae-app select, .hae-app textarea {
	width: 100%; border: 1px solid #E2D6BC; border-radius: 11px; padding: 11px 13px; background: var(--f-bg); color: var(--f-text); min-height: 46px; box-shadow: none; margin: 0; line-height: 1.3;
}
.hae-app textarea { min-height: 100px; resize: vertical; }
.hae-app input:focus, .hae-app select:focus, .hae-app textarea:focus { border-color: var(--f-primary); box-shadow: 0 0 0 3px rgba(123,83,48,.15); outline: none; }
.hae-f-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.hae-f-radios label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--f-line); border-radius: 10px; padding: 9px 13px; cursor: pointer; font-weight: 500; }
.hae-f-radios label:has(input:checked) { border-color: var(--f-primary); background: var(--f-soft); }
.hae-f-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 500; }
.hae-f-check input { margin-top: 4px; width: 17px; height: 17px; }
.hae-f-check.terms { margin-top: 14px; font-weight: 400; }
.hae-f-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Summary */
.hae-f-sum { border: 1px solid var(--f-line); border-radius: 16px; overflow: hidden; }
.hae-f-sum .r { display: flex; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid #f0f2f5; }
.hae-f-sum .r:last-child { border-bottom: 0; }
.hae-f-sum .r span { color: var(--f-muted); }
.hae-f-sum .r b { text-align: right; }
.hae-f-sum .r em { font-weight: 500; color: #b45309; font-style: normal; font-size: 13px; }
.hae-f-sum .r.tot { background: #FAF5EB; font-size: 17px; }
.hae-f-sum .r.tot span { color: var(--f-text); font-weight: 600; }

.hae-f-err { margin-top: 14px; background: #fdeeee; color: #9b1c1c; border-radius: 12px; padding: 11px 14px; font-size: 14px; }
.hae-f-alert { background: #fdeeee; color: #9b1c1c; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.hae-f-alert.ok { background: #e9f9ef; color: #166534; }
.hae-f-done { text-align: center; }
.hae-f-done .ok { width: 64px; height: 64px; border-radius: 50%; background: #e9f9ef; color: var(--f-ok); display: grid; place-items: center; margin: 4px auto 14px; }
.hae-f-done .hae-f-sum { text-align: left; max-width: 520px; margin: 18px auto 0; }
.hae-f-done .hae-f-row { justify-content: center; }
.hae-f-msg { color: #3A3F4A; }
.hae-f-st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; background: #F1E8D6; color: #4E5361; }
.hae-f-st.ok { background: #e9f9ef; color: #15803d; }
.hae-f-st.wait { background: #fff6e8; color: #b45309; }
.hae-f-spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: haefspin .7s linear infinite; vertical-align: -3px; color: var(--f-primary); }
.hae-f-btn .hae-f-spin { color: #fff; }
@keyframes haefspin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
	.hae-f-body { padding: 20px 16px; }
	.hae-f-foot { padding: 14px 16px; }
	.hae-f-steps { padding: 14px 16px; }
	.hae-f-steps .st:not(.on) .l { display: none; }
	.hae-f-dt { grid-template-columns: 1fr; }
	.hae-f-grid { grid-template-columns: 1fr; }
	.hae-f-h { font-size: 19px; }
	.hae-f-foot .hae-f-btn { flex: 1; }
}

/* Guide-app look: serif headings */
.hae-app .hae-f-h, .hae-app .hae-f-trail .name, .hae-app .hae-f-cal-h b { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: 0; }
.hae-app .hae-f-h { font-size: 1.7rem; }
