/* (1.99.32) The smart form's start page (app/pages/start.php). (c) SenTech Australia */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.sf {
	--sf-c: #007297;
	--sf-ink: #14212b;
	--sf-mute: #5b6873;
	--sf-line: #d9e0e5;
	--sf-bg: #f3f6f8;
	--sf-card: #ffffff;
	--sf-err: #b3261e;
	font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.45;
	color: var(--sf-ink);
	background: var(--sf-bg);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.sf-preview { background: #fff4d6; color: #6b4e00; text-align: center; font-size: 13px; padding: 6px 12px; border-bottom: 1px solid #f0d98a; }
.sf-top { background: var(--sf-card); border-bottom: 4px solid var(--sf-c); padding: 14px 16px; text-align: center; }
.sf-logo { max-height: 70px; max-width: min(320px, 80vw); height: auto; }
.sf-name { font-size: 24px; font-weight: 700; color: var(--sf-c); }
.sf-main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 22px 16px 30px; }
.sf-card { background: var(--sf-card); border: 1px solid var(--sf-line); border-radius: 14px; padding: 22px 22px 26px; box-shadow: 0 2px 10px rgba(20, 33, 43, .06); }
.sf-card[hidden] { display: none; }
.sf-card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; }
.sf-home h1 { text-align: center; margin-bottom: 18px; }
.sf-note { margin: 0 0 16px; color: var(--sf-mute); }

/* the four big buttons */
.sf-big { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sf-bigbtn {
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
	min-height: 150px; padding: 18px 14px; border: 2px solid var(--sf-line); border-radius: 14px;
	background: var(--sf-card); color: var(--sf-ink); font: inherit; cursor: pointer; text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sf-bigbtn svg { width: 44px; height: 44px; color: var(--sf-c); }
.sf-bigbtn span { display: flex; flex-direction: column; gap: 4px; }
.sf-bigbtn b { font-size: 19px; }
.sf-bigbtn small { color: var(--sf-mute); font-size: 14px; }
.sf-bigbtn:hover, .sf-bigbtn:focus-visible { border-color: var(--sf-c); box-shadow: 0 4px 16px rgba(20, 33, 43, .12); transform: translateY(-2px); outline: none; }

/* What do you need? picture buttons */
.sf-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sf-pick {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
	padding: 16px 10px; border: 2px solid var(--sf-line); border-radius: 12px; background: var(--sf-card);
	color: var(--sf-ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.sf-pick svg { width: 36px; height: 36px; color: var(--sf-c); }
.sf-pick b { font-size: 16px; }
.sf-pick small { color: var(--sf-mute); font-size: 13px; }
.sf-pick:hover, .sf-pick:focus-visible { border-color: var(--sf-c); outline: none; }
.sf-pick.is-on { border-color: var(--sf-c); background: color-mix(in srgb, var(--sf-c) 8%, #fff); }

/* the follow-up question */
.sf-ask { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--sf-bg); border: 1px solid var(--sf-line); }
.sf-ask[hidden] { display: none; }
.sf-ask h2 { margin: 0 0 12px; font-size: 18px; }
.sf-opts { display: grid; gap: 10px; }
.sf-opt {
	display: block; padding: 13px 16px; border-radius: 10px; background: var(--sf-card); border: 2px solid var(--sf-line);
	color: var(--sf-ink); text-decoration: none; font-weight: 600;
}
.sf-opt::after { content: "›"; float: right; color: var(--sf-c); font-size: 20px; line-height: 1; }
.sf-opt:hover, .sf-opt:focus-visible { border-color: var(--sf-c); outline: none; }

/* back, links, buttons */
.sf-back { border: 0; background: none; color: var(--sf-c); font: inherit; font-weight: 600; cursor: pointer; padding: 0; margin: 0 0 10px; }
.sf-link { border: 0; background: none; color: var(--sf-c); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.sf-btn {
	display: inline-block; padding: 13px 26px; border: 0; border-radius: 10px; background: var(--sf-c); color: #fff;
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.sf-btn:hover, .sf-btn:focus-visible { filter: brightness(1.08); outline: 2px solid color-mix(in srgb, var(--sf-c) 40%, #fff); outline-offset: 2px; }
.sf-btn[disabled] { opacity: .6; cursor: wait; }

/* the enquiry form */
.sf-form { display: grid; gap: 14px; }
.sf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sf-f { display: flex; flex-direction: column; gap: 5px; }
.sf-f > span { font-weight: 600; font-size: 15px; }
.sf-f i { color: var(--sf-err); font-style: normal; }
.sf-f input, .sf-f textarea {
	font: inherit; width: 100%; padding: 11px 12px; border: 1.5px solid var(--sf-line); border-radius: 9px; background: #fff; color: var(--sf-ink);
}
.sf-f input[type=file] { padding: 9px; }
.sf-f textarea { resize: vertical; min-height: 130px; }
.sf-f input:focus, .sf-f textarea:focus { border-color: var(--sf-c); outline: 2px solid color-mix(in srgb, var(--sf-c) 25%, #fff); }
.sf-err { color: var(--sf-err); font-size: 14px; }
.sf-card > .sf-err { display: block; margin-bottom: 12px; padding: 10px 12px; background: #fdecea; border-radius: 8px; }
.sf-hint { padding: 10px 12px; border-radius: 8px; background: #eaf6ee; border: 1px solid #b7dfc3; font-size: 15px; }
.sf-hint[hidden] { display: none; }
.sf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sf-send { justify-self: start; }

/* sent */
.sf-thanks { text-align: center; }
.sf-tick { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--sf-c); color: #fff; font-size: 36px; line-height: 64px; }

.sf-foot { text-align: center; padding: 16px; font-size: 13px; }
.sf-foot a { color: var(--sf-mute); text-decoration: none; }
.sf-pow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; }
.sf-pow svg { flex: none; }
.sf-foot a:hover { text-decoration: underline; }

@media (max-width: 600px) {
	.sf-main { padding: 14px 12px 24px; }
	.sf-card { padding: 18px 14px 20px; border-radius: 12px; }
	.sf-card h1 { font-size: 22px; }
	.sf-big { grid-template-columns: 1fr; gap: 10px; }
	.sf-bigbtn { min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px; gap: 14px; }
	.sf-bigbtn svg { width: 36px; height: 36px; flex: none; }
	.sf-bigbtn b { font-size: 17px; }
	.sf-picks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.sf-row { grid-template-columns: 1fr; }
	.sf-btn { width: 100%; text-align: center; }
}

/* the quote forms */
.sf-h { margin: 10px 0 0; font-size: 18px; padding-top: 12px; border-top: 1px solid var(--sf-line); }
.sf-h[hidden], .sf-f[hidden], .sf-chk[hidden], .sf-radios[hidden], .sf-hint[hidden] { display: none; }
.sf-form > .sf-h:first-of-type { border-top: 0; padding-top: 0; }
.sf-tip { color: var(--sf-mute); font-size: 13px; }
.sf-f select { font: inherit; width: 100%; padding: 11px 12px; border: 1.5px solid var(--sf-line); border-radius: 9px; background: #fff; color: var(--sf-ink); }
.sf-f input.sf-find { margin-bottom: 6px; }
.sf-findn { display: block; font-size: .85em; color: var(--sf-mute); margin-top: 4px; }
.sf-f select:focus { border-color: var(--sf-c); outline: 2px solid color-mix(in srgb, var(--sf-c) 25%, #fff); }
.sf-chk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.sf-chk input, .sf-radio input { width: 20px; height: 20px; accent-color: var(--sf-c); margin: 0; }
.sf-chk .sf-tip { flex-basis: 100%; font-weight: 400; padding-left: 28px; }
.sf-radios { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.sf-radios legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.sf-radios legend i { color: var(--sf-err); font-style: normal; }
.sf-radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--sf-line); border-radius: 10px; cursor: pointer; }
/* (1.99.54) "Who is the trip for?": two columns of boxes, not six full-width rows */
.sf-radios:has(input[name=who]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-radios:has(input[name=who]) .sf-radio { padding: 10px 12px; line-height: 1.3; }
.sf-radio input { flex-shrink: 0; }
.sf-radio:has(input:checked) { border-color: var(--sf-c); background: color-mix(in srgb, var(--sf-c) 7%, #fff); }
.sf-trips { display: flex; flex-wrap: wrap; gap: 10px; }
.sf-btn2, .sf-btn3 { font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 9px; cursor: pointer; }
.sf-btn2 { background: #dff3e4; color: #000; border: 1.5px solid #9fd3ad; }
.sf-btn3 { background: #fff; color: var(--sf-mute); border: 1.5px solid var(--sf-line); }
.sf-btn2[hidden], .sf-btn3[hidden] { display: none; }
.sf-form > .sf-err { display: block; padding: 10px 12px; background: #fdecea; border-radius: 8px; }
.sf-pl { position: relative; }
.sf-sug { position: absolute; z-index: 15; top: 100%; left: 0; right: 0; margin: 3px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #b9c5cf; border-radius: 7px; box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.sf-sug li { padding: 8px 12px; cursor: pointer; font-size: 15px; }
.sf-sug li.is-on, .sf-sug li:hover { background: color-mix(in srgb, var(--sf-c) 9%, #fff); }
.sf-long { color: var(--sf-c); font-weight: 600; font-size: 14px; }
.sf-long:empty { display: none; }

/* who and what trip */
.sf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sf-tiles[hidden] { display: none; }
.sf-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 14px 8px; border: 2px solid var(--sf-line); border-radius: 12px; background: #fff; cursor: pointer; }
.sf-tile input { position: absolute; opacity: 0; pointer-events: none; }
.sf-tile svg { width: 32px; height: 32px; color: var(--sf-c); }
.sf-tile b { font-size: 15px; }
.sf-tile small { color: var(--sf-mute); font-size: 12.5px; }
.sf-tile:has(input:checked) { border-color: var(--sf-c); background: color-mix(in srgb, var(--sf-c) 8%, #fff); box-shadow: 0 0 0 1px var(--sf-c) inset; }
.sf-tile:has(input:focus-visible) { outline: 2px solid var(--sf-c); outline-offset: 2px; }
.sf-gap { visibility: hidden; }
@media (max-width: 600px) { .sf-tiles { grid-template-columns: repeat(2, 1fr); } .sf-gap { display: none; } }
.sf-tile[hidden] { display: none; }

/* (1.99.38) the finish-time timeline */
.sf-timeline { padding: 12px 14px; border-radius: 10px; background: #fff8e6; border: 1px solid #f1d58a; font-size: 15px; }
.sf-timeline:empty, .sf-timeline[hidden] { display: none; }
.sf-timeline p { margin: 0 0 6px; line-height: 1.6; }
.sf-timeline small { color: var(--sf-mute); }

/* (1.99.39) the files chosen (public/assets/uploads.js) */
.up-box { margin-top: 6px; }
.up-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.up-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 7px 10px; border: 1px solid #d9e0e5; border-radius: 8px; background: #f7fafc; font-size: 14px; }
.up-n { font-weight: 600; word-break: break-all; }
.up-s { color: #5b6873; font-size: 13px; }
.up-x { margin-left: auto; border: 0; background: none; color: #b3261e; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 2px 4px; }
.up-sum { margin: 0; color: #5b6873; font-size: 13px; }
.up-err { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: #fdecea; color: #8a1c1c; font-size: 14px; }

/* (1.99.40) luggage */
.sf-warn { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #fff4e5; border: 2px solid #f0a33a; }
.sf-warn[hidden] { display: none; }
.sf-warn span { font-size: 22px; line-height: 1.2; }
.sf-warn p { margin: 0; line-height: 1.5; }
.sf-fit { padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.sf-fit:empty, .sf-fit[hidden] { display: none; }
.sf-fit.is-ok { background: #eaf6ee; border: 1px solid #b7dfc3; }
.sf-fit.is-big { background: #fdecea; border: 1px solid #f5a3a3; color: #8a1c1c; }
.sf-must { padding: 10px 12px; border-radius: 10px; background: #f3f6f8; border: 1px solid var(--sf-line); }
.sf-must i { color: var(--sf-err); font-style: normal; }
/* (1.99.40) a tick and its words side by side, also on a phone */
.sf-chk { display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: 10px; }
.sf-chk input { margin-top: 2px; }
.sf-chk .sf-tip { grid-column: 2; padding-left: 0; }

/* (1.99.41) the booking's payment terms */
.sf-late { font-style: italic; color: var(--sf-mute); font-size: 13px; }

/* (1.99.42) a required box left empty */
.sf-f.is-missing input, .sf-f.is-missing select, .sf-f.is-missing textarea { border-color: var(--sf-err); background: #fff7f6; box-shadow: 0 0 0 2px rgba(179, 38, 30, .15); }
.sf-f.is-missing > span:first-child, fieldset.is-missing legend { color: var(--sf-err); }
fieldset.is-missing .sf-radio, .sf-tiles.is-missing .sf-tile { border-color: #e6a19c; }
.sf-chk.is-missing { border-color: var(--sf-err); background: #fff7f6; }
.sf-miss { display: block; margin-top: 4px; font-weight: 600; }
.sf-misstop { display: block; padding: 10px 12px; border-radius: 8px; background: #fdecea; font-weight: 600; }

/* (1.99.43) the school list */
.sf-school-ok { color: #1b7a3a; font-weight: 700; }
.sf-school-ok[hidden], .sf-radio[hidden] { display: none; }
.sf-sug small { color: var(--sf-mute); }
.sf-pay-note { margin: -2px 0 4px; }

/* (1.99.47) inside a website page ([icm_start] in the iCM Quote plugin): no header, the page's own background, one part */
body.sf.is-embed { background: transparent; min-height: 0; }
body.sf.is-embed .sf-main { max-width: none; padding: 0; }
body.sf.is-embed .sf-card { box-shadow: none; }
body.sf.is-embed .sf-preview { border-radius: 8px; margin-bottom: 10px; }
body.sf[data-part]:not([data-part=""]) .sf-back[data-show="home"] { display: none; }
body.sf[data-part]:not([data-part=""]) .sf-home { display: none; }
.sf-card h1[tabindex="-1"]:focus { outline: none; }
/* inside a website page the page has its own heading */
body.sf.is-embed .sf-card > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* (1.99.74) the tolls on the trip, above Send */
.sf-tolls { margin: 14px 0 10px; padding: 10px 12px; border-left: 4px solid var(--sf-c); background: rgba(127,127,127,.08); border-radius: 4px; font-size: 15px; }
/* (1.99.74) Ask me (SenTech AU) */
.sf-askme { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; font-size: 15px; }
.am-fab { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 6px; border: 0; border-radius: 999px; background: var(--sf-c); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.am-fab-q { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 18px; }
.am-panel { position: absolute; right: 0; bottom: 58px; width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 100px)); display: flex; flex-direction: column; background: #fff; color: var(--sf-ink); border: 1px solid var(--sf-line); border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.25); overflow: hidden; }
.am-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--sf-c); color: #fff; }
.am-head b { font-size: 16px; }
.am-by { font-size: 12px; opacity: .85; flex: 1; }
.am-x { background: transparent; border: 0; color: #fff; font-size: 18px; width: 44px; height: 36px; cursor: pointer; }
.am-log { padding: 12px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.am-msg { padding: 8px 11px; border-radius: 10px; line-height: 1.45; max-width: 90%; white-space: pre-wrap; }
.am-bot { background: var(--sf-bg); align-self: flex-start; }
.am-me { background: var(--sf-c); color: #fff; align-self: flex-end; }
.am-wait { opacity: .7; font-style: italic; }
.am-fill { border: 1px solid var(--sf-line); border-radius: 10px; padding: 8px 11px; font-size: 14px; }
.am-fill ul { margin: 6px 0; padding-left: 18px; }
.am-quick { padding: 0 12px 8px; }
.am-chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--sf-c); background: #fff; color: var(--sf-c); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.am-go { background: var(--sf-c); color: #fff; }
.am-form { display: flex; gap: 8px; padding: 8px 12px 12px; border-top: 1px solid var(--sf-line); }
.am-in { flex: 1; font: inherit; font-size: 16px; padding: 8px; border: 1px solid var(--sf-line); border-radius: 8px; resize: none; min-width: 0; }
.am-send { min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--sf-c); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.am-send:disabled, .am-chip:disabled { opacity: .5; cursor: default; }
@media (max-width: 480px) { .am-fab-t { display: none; } .am-fab { padding: 0 6px; } }
/* inside a website page (an iframe that grows with the form): Ask me sits under the form, not fixed to the screen */
.is-embed .sf-askme { position: static; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding: 0 16px 8px; }
.is-embed .am-panel { position: static; order: 2; max-height: 520px; }
/* (1.99.145) an expired booking link: the reason and "Ask for an updated quote"; the thank-you after */
.sf-reask { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #f0c36d; border-left: 5px solid #b45309; border-radius: 10px; background: #fff8eb; }
.sf-reask-msg { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: #3b2a06; }
.sf-form > .sf-ok { display: block; padding: 10px 12px; background: #e7f6ec; color: #14532d; border-radius: 8px; font-size: 15px; }

/* (1.99.299) right to left (Arabic): the hidden spam trap goes off the right edge, so the page doesn't scroll sideways */
[dir="rtl"] .sf-hp{left:auto!important;right:-9999px!important}

/* (1.99.316) the small-group check above the Send button */
.sf-small { margin: 0 0 14px; padding: 14px 16px; border: 2px solid #e0a800; background: #fff8e1; color: #3d3000; border-radius: 8px; }
.sf-small p { margin: 0 0 8px; line-height: 1.5; }
.sf-small .sf-small-h { font-weight: 700; font-size: 1.05em; }
.sf-small-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.sf-small-btns .sf-btn { margin: 0; }
.sf-small-btns .sf-small-go { background: #fff; color: var(--sf-c); border: 2px solid var(--sf-c); }
