/* Businesses and jobs round 2, marks 8 and 9 (Kyle 28 Oct 9:21pm: "Bad layout too much padding and spacing on the form. All fields - small
   select doesn't make sense on the size" and "clean compact easy"): one compact scale for Add business, Edit business and Post a job, loaded
   after the form kit (forms-listing.css), the stepper (ld-steps.css) and each form's own CSS. Scoped to those two pages by body class, so Post a
   room, Sell a car and Create an event keep their spacing until the shared base kit is done.
   Scale: 48px fields, 14px labels 6px above, 14px between fields, 20 to 24px panel padding, step title 22px (26px desktop), no min-height.
   One field style at every width (design audit 29 Oct: "white on grey at 390, grey on white at 1440"): grey filled fields on a white surface.
   Phone: the form is one white surface edge to edge. Desktop: one white panel (max 640) and the rail (320) centred together. */

:is(body.ld-bizf, body.ld-jobs--submit) { --fc-gap: 14px; --fc-h: 48px; }

/* the field: label, control, hint */
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-f { margin-top: var(--fc-gap); }
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-pair > .ldlf-f { margin-top: var(--fc-gap); }
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-f__l,
body.ld-jobs--submit .ljp .ljp-f > label { margin: 0 0 6px; font: 600 14px/1.3 var(--ld-text, Inter, sans-serif); color: var(--ld-ink, #0B0D1A); }
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-f__hint { margin: -2px 0 6px; font-size: 13px; }
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-sec > .ldlf-f:first-of-type,
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-sec > .ldlf-pair:first-of-type { margin-top: 12px; }
body.ld-jobs--submit .ljp .ljp-f { gap: 0; margin: var(--fc-gap) 0 0; }
body.ld-jobs--submit .ljp .ljp-step > .ljp-f:first-of-type, body.ld-jobs--submit .ljp .ljp-step > .ljp-yesgroup:first-of-type { margin-top: 12px; }

/* WP Job Manager draws label 29% and field 70% side by side, floated: one column here */
body.ld-jobs--submit .ljp .ljp-f > label, body.ld-jobs--submit .ljp .ljp-f > .field { float: none !important; width: 100% !important; max-width: none; }
body.ld-jobs--submit .ljp .fieldset-remote_position > label { width: auto !important; margin: 0; font-weight: 500; }
body.ld-jobs--submit .ljp .fieldset-remote_position > .field { width: auto !important; }

/* the control: the site's one field (builder-mindset 2: 48px, white, 1px hairline, 12px corners, 16px text), value centred (PAD-3) */
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf .ldlf-in,
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf select.idu-suburb-select,
body.ld-jobs--submit .ljp .ljp-f :is(input[type=text], input[type=email], input[type=url], input[type=number], input[type=tel], select),
body.ld-jobs--submit .ljpw .ljp-f input:not([type=checkbox]):not([type=radio]):not([type=file]) {
	height: var(--fc-h); min-height: var(--fc-h); padding: 0 14px; border: 0; border-radius: 12px;
	background-color: #fff !important; box-shadow: inset 0 0 0 1px #E4E7EF !important; font: 500 16px/1.2 var(--ld-text, Inter, sans-serif); }
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf select.ldlf-sel,
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf select.idu-suburb-select,
body.ld-jobs--submit .ljp .ljp-f select, body.ld-jobs--submit .ljpw .ljp-f select { padding: 0 36px 0 14px; line-height: var(--fc-h); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%230B0D1A' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf textarea.ldlf-in,
body.ld-jobs--submit .ljp .ljp-f textarea, body.ld-jobs--submit .ljpw .ljp-f textarea { height: auto; min-height: 112px; padding: 12px 14px; border: 0; border-radius: 12px; background-color: #fff !important; box-shadow: inset 0 0 0 1px #E4E7EF !important; line-height: 1.45; }
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf .ldlf-in:focus,
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf select:focus,
body.ld-jobs--submit .ljp .ljp-f :is(input, select, textarea):focus, body.ld-jobs--submit .ljpw .ljp-f input:not([type=checkbox]):not([type=radio]):not([type=file]):focus { background-color: var(--ld-white, #fff) !important; box-shadow: inset 0 0 0 2px var(--ld-electric, #3D6BFF) !important; outline: 0; }
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf .is-bad .ldlf-in, body.ld-jobs--submit .ljp .ljp-f.is-bad :is(input, select, textarea) { box-shadow: inset 0 0 0 2px #E0565F !important; background-color: #FFF7F7 !important; }
body.ld-jobs--submit form[data-ldst].ldlf-form#submit-job-form .ljp-f .select2-container .select2-selection--multiple { min-height: var(--fc-h); padding: 2px 10px; background: #fff !important; box-shadow: inset 0 0 0 1px #E4E7EF !important; }
body.ld-jobs--submit form[data-ldst].ldlf-form#submit-job-form .ljp-f .select2-selection--multiple .select2-search__field { height: 38px !important; line-height: 38px !important; }
body.ld-jobs--submit form[data-ldst].ldlf-form#submit-job-form .ljp-f .select2-selection--multiple .select2-selection__choice { height: 30px; }

/* the step: compact title, no min-height, no empty band */
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-form.is-stepped .ldlf-sec__h,
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-form .ldlf-sec__h { margin-bottom: 4px; font-size: 22px; line-height: 1.15; }
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-form .ldlf-sec__hint { margin: 0 0 2px; font-size: 14px; }
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-formwrap.is-stepped .ldlf-head { margin-bottom: 14px; }
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-head { margin-bottom: 14px; }
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-switch { margin-top: var(--fc-gap); padding: 10px 14px; background: var(--ld-pearl, #F3F5FA) !important; box-shadow: none !important; }
:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-photos__add { padding: 20px 16px; }
body.ld-jobs--submit .ljp .ljp-yes { padding: 12px 14px; border: 0; background: var(--ld-pearl, #F3F5FA); }
body.ld-jobs--submit .ljp .ljp-yesgroup { display: grid; gap: 8px; }
body.ld-jobs--submit .ljp .ljp-co { padding: 12px 14px; background: var(--ld-pearl, #F3F5FA); }
body.ld-jobs--submit .ljp .fieldset-remote_position { display: flex; align-items: center; gap: 10px; }

/* short fields side by side, sized to their content: Work type | Category, Where | remote, Suburb | Street */
body.ld-jobs--submit .ljp .ljp-step--job { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; align-items: start; }
body.ld-jobs--submit .ljp .ljp-f select:has(> option[value=""]:checked) { color: rgba(11,13,26,.45); }
body.ld-jobs--submit .ljp .ljp-step--job > * { grid-column: 1 / -1; }
body.ld-jobs--submit .ljp .ljp-step--job > :is(.fieldset-job_type, .fieldset-job_category) { grid-column: auto; }
body.ld-jobs--submit .ljp .ljp-pay { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 12px; align-items: end; }
body.ld-jobs--submit .ljp .ljp-pay > .ljp-f { margin-top: var(--fc-gap); }
body.ld-bizf .ldbf-where-hint { margin: 6px 0 0; }
body.ld-bizf .ldbf-logo { grid-template-columns: 72px 1fr; gap: 6px 14px; }
body.ld-bizf .ldbf-logo__now { width: 72px; height: 72px; border-radius: 18px; }
body.ld-bizf .ldbf-logo__ini { font-size: 24px; }

/* phone: the form is one white surface, edge to edge (MOB-5, CRD-2) */
/* iPad portrait (600 to 899): the one centred column now lives in forms-listing.css, for every create form */
@media (max-width: 899px) {
	:is(body.ld-bizf, body.ld-jobs--submit), :is(body.ld-bizf, body.ld-jobs--submit) #page, html :is(body.ld-bizf, body.ld-jobs--submit) #page.site, html :is(body.ld-bizf, body.ld-jobs--submit) #content.site-content { background: var(--ld-white, #fff) !important; }
	:is(body.ld-bizf, body.ld-jobs--submit) .ldlf { padding-top: 14px; }
	:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-sec { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
	body.ld-jobs--submit .ljp .ljp-step { padding: 0; border: 0; background: transparent; }
	/* one-page Edit on a phone: sections split by a hairline, not boxed */
	body.ld-bizf .ldbf-onepage .ldlf-main { gap: 0; }
	body.ld-bizf .ldbf-onepage .ldlf-sec + .ldlf-sec { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--ld-line, #E3E7F1); }
}

/* desktop: one white panel and the rail, centred together */
@media (min-width: 900px) {
	:is(body.ld-bizf, body.ld-jobs--submit) { --fc-gap: 16px; }
	:is(body.ld-bizf, body.ld-jobs--submit) .ldlf { max-width: 1000px; padding-top: 28px; }
	:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-grid { grid-template-columns: minmax(0, 640px) 320px; justify-content: center; gap: 24px; }
	:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-head { max-width: 984px; margin: 0 auto 16px; }
	:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-alert, :is(body.ld-bizf, body.ld-jobs--submit) .ldlf-kept { max-width: 984px; margin-left: auto; margin-right: auto; }
	:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-form.is-stepped .ldlf-main { min-height: 0; padding: 24px 28px 28px; }
	:is(body.ld-bizf, body.ld-jobs--submit) .ldlf-form .ldlf-sec__h, :is(body.ld-bizf, body.ld-jobs--submit) .ldlf-form.is-stepped .ldlf-sec__h { font-size: 26px; }
	:is(body.ld-bizf, body.ld-jobs--submit) .ldst-track { display: none; } /* the rail's step list already says where you are (audit: three indicators at once) */
	body.ld-jobs--submit .ljp .ljp-step--job > .fieldset-job_location { grid-column: 1; }
	body.ld-jobs--submit .ljp .ljp-step--job > .fieldset-remote_position { grid-column: 2; align-self: center; margin-top: calc(var(--fc-gap) + 20px); }
	/* a select on its own line stops at its content's width (FRM-1) */
	body.ld-bizf .ldlf-sec > .ldlf-f > select.ldlf-sel { max-width: 340px; }
	/* Edit business: one panel holding every section, hairlines between them */
	body.ld-bizf .ldbf-onepage .ldlf-main { gap: 0; padding: 8px 28px 28px; border-radius: var(--lf-r, 16px); background: var(--ld-white, #fff); box-shadow: var(--lf-shadow); }
	body.ld-bizf .ldbf-onepage .ldlf-sec { padding: 22px 0 0; border-radius: 0; background: transparent; box-shadow: none; scroll-margin-top: 96px; }
	body.ld-bizf .ldbf-onepage .ldlf-sec + .ldlf-sec { margin-top: 24px; border-top: 1px solid var(--ld-line, #E3E7F1); }
	body.ld-bizf .ldbf-onepage .ldlf-sec__h { font-size: 20px; }
	body.ld-bizf .ldbf-onepage ~ .ldlf-bar, body.ld-bizf .ldbf-onepage .ldlf-bar { display: none; }
	body.ld-bizf .ldbf-onepage .ldlf-steps a.is-now { background: var(--ld-info-bg, #EAF0FF); color: var(--ld-midnight, #141A66) !important; }
	body.ld-bizf .ldbf-onepage .ldlf-steps a.is-now .ldlf-steps__dot { box-shadow: inset 0 0 0 5px var(--ld-electric, #3D6BFF); }
	body.ld-bizf .ldbf-railsave { display: grid; gap: 8px; }
	body.ld-bizf .ldbf-railsave__go { width: 100%; min-height: 48px; justify-content: center; }
}
body.ld-bizf .ldbf-railsave__x { justify-self: center; color: var(--ld-text-muted, rgba(11,13,26,.66)) !important; font: 600 14px/1.2 var(--ld-text, Inter, sans-serif); text-decoration: none !important; }
body.ld-bizf .ldlf-bar__prog .ldbf-railsave__x { justify-self: start; }

/* opening hours: seven compact rows (business-form.js hoursPicker) */
.ldbf-hours[hidden], .ldbf-copy[hidden] { display: none !important; }
.ldbh2 { display: grid; gap: 4px; margin-top: 12px; }
.ldbh2-sw { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ldbh2-sw + i { position: relative; flex: none; display: block; width: 44px; height: 26px; border-radius: 999px; background: #D3D8E4; transition: background-color 180ms cubic-bezier(.2,0,0,1); cursor: pointer; }
.ldbh2-sw + i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11,13,26,.3); transition: transform 200ms cubic-bezier(.2,0,0,1); }
.ldbh2-sw:checked + i { background: var(--ld-success, #1F7D57); }
.ldbh2-sw:checked + i::after { transform: translateX(18px); }
.ldbh2-sw:focus-visible + i { outline: 3px solid rgba(61,107,255,.45); outline-offset: 2px; }
.ldbh2-appt { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--ld-pearl, #F3F5FA); cursor: pointer; }
.ldbh2-appt__t { flex: 1; display: grid; gap: 2px; min-width: 0; }
.ldbh2-appt__t b { font: 600 14.5px/1.25 var(--ld-text, Inter, sans-serif); color: var(--ld-ink, #0B0D1A); }
.ldbh2-appt__t small { font: 400 13px/1.3 var(--ld-text, Inter, sans-serif); color: var(--ld-text-muted, rgba(11,13,26,.66)); }
.ldbh2.is-appt .ldbh2-rows, .ldbh2.is-appt .ldbh2-copy { display: none; }
.ldbh2-rows { display: grid; margin-top: 4px; }
.ldbh2-row { display: grid; grid-template-columns: 40px 44px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--ld-line, #E3E7F1); }
.ldbh2-row:last-child { border-bottom: 0; }
.ldbh2-n { font: 600 14.5px/1 var(--ld-text, Inter, sans-serif); color: var(--ld-ink, #0B0D1A); }
.ldbh2-on { position: relative; display: flex; }
.ldbh2-t { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.ldlf .ldbh2-s.ldlf-in { height: 38px; min-height: 38px; padding: 0 28px 0 12px !important; line-height: 38px !important; background-position: right 10px center !important; font-size: 15px !important; font-variant-numeric: tabular-nums; }
.ldbh2-to { font-size: 13px; color: var(--ld-text-muted, rgba(11,13,26,.66)); }
.ldbh2-closed { display: none; font: 500 14.5px/1 var(--ld-text, Inter, sans-serif); color: var(--ld-text-muted, rgba(11,13,26,.66)); }
.ldbh2-row.is-off .ldbh2-t { display: none; }
.ldbh2-row.is-off .ldbh2-closed { display: block; }
.ldlf .ldbh2-copy { all: unset; justify-self: start; margin-top: 4px; padding: 4px 0; cursor: pointer; color: var(--ld-electric, #3D6BFF) !important; font: 600 14px/1.3 var(--ld-text, Inter, sans-serif) !important; }
.ldbh2-copy[hidden] { display: none !important; }
.ldbh2-copy:focus-visible { outline: 3px solid rgba(61,107,255,.45); outline-offset: 2px; border-radius: 6px; }
.ldbh2-sum { margin: 6px 0 0; font: 500 13.5px/1.4 var(--ld-text, Inter, sans-serif); color: var(--ld-text-muted, rgba(11,13,26,.66)); }
@media (min-width: 600px) {
	.ldbh2-row { grid-template-columns: 96px 44px minmax(0, 340px); }
}
@media (prefers-reduced-motion: reduce) { .ldbh2-sw + i, .ldbh2-sw + i::after { transition: none; } }

/* Category is WP Job Manager's multi-select (select2): it wears the same chevron and placeholder as the selects beside it */
body.ld-jobs--submit form[data-ldst].ldlf-form#submit-job-form .ljp-f .select2-container .select2-selection--multiple { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%230B0D1A' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; display: flex; align-items: center; }
body.ld-jobs--submit form[data-ldst].ldlf-form#submit-job-form .ljp-f .select2-selection--multiple .select2-search__field { margin: 0 !important; font: 500 16px/38px var(--ld-text, Inter, sans-serif) !important; }
body.ld-jobs--submit form[data-ldst].ldlf-form#submit-job-form .ljp-f .select2-selection--multiple .select2-search__field::placeholder { color: rgba(11, 13, 26, .45); }
body.ld-jobs--submit form[data-ldst].ldlf-form#submit-job-form .ljp-f .select2-container .select2-selection--multiple { padding-left: 14px; }
body.ld-jobs--submit form[data-ldst].ldlf-form#submit-job-form .ljp-f .select2-selection--multiple :is(.select2-selection__rendered, .select2-search--inline) { margin: 0 !important; padding: 0 !important; }
