/* Shared flow styles: the mount decides whether this component is in a modal. */
.guided-job {
	--guided-job-selected: #43d9a3;
	--gj-ink: #15334a;
	--gj-muted: #4a5666;
	--gj-line: #c5d1db;
	--gj-surface: #f5f8fa;
	--gj-tint: #eaf7fe;
	color: var(--gj-ink);
	font-family: var(--font-display, 'Maven Pro', Arial, sans-serif);
	font-size: 16px;
	line-height: 1.45;
}
.dark-theme .guided-job {
	color-scheme: dark;
	--gj-ink: #e0eaf3;
	--gj-muted: #b3c4d5;
	--gj-line: #667b90;
	--gj-surface: #293747;
	--gj-tint: #153e55;
}
.dark-theme .guided-job .btn-outline-primary { color: #87d5ff; border-color: #87d5ff; }
body.guided-job-modal-open #site-cookie-notice,
body.guided-job-modal-open [data-clerks-local-login] { visibility: hidden !important; pointer-events: none !important; }
#guided-job-modal .modal-dialog,
#guided-job-edit-modal .modal-dialog { max-width: 720px; display: flex; align-items: center; margin: 24px auto; min-height: calc(100% - 48px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); }
#guided-job-modal .modal-dialog-centered::before,
#guided-job-edit-modal .modal-dialog-centered::before { content: none !important; display: none !important; height: 0 !important; }
#guided-job-modal .modal-content,
#guided-job-edit-modal .modal-content { display: flex; flex-direction: column; width: 100%; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: hidden; }
#guided-job-modal .guided-job-header,
#guided-job-modal .guided-job-progress,
#guided-job-modal .guided-job-footer,
#guided-job-edit-modal .guided-job-header,
#guided-job-edit-modal .guided-job-progress,
#guided-job-edit-modal .guided-job-footer { flex-shrink: 0; }
#guided-job-modal .guided-job-content,
#guided-job-edit-modal .guided-job-content { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
.guided-job-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; font-size: 14px; }
.guided-job-header .fas { color: #0a7abb; font-size: 20px; margin-right: 10px; }
.guided-job-header .close { width: 44px; height: 44px; padding: 8px; border: 0; background: transparent; color: var(--gj-muted); opacity: 1; font-size: 20px; line-height: 1; cursor: pointer; float: none; text-shadow: none; }
.dark-theme .guided-job-header .close { color: var(--gj-ink); }
.guided-job-header .close:hover, .guided-job-header .close:focus { color: var(--gj-ink); opacity: 1; }
.guided-job-header .close:focus-visible { outline: 3px solid #0a7abb; outline-offset: 2px; }
.guided-job-progress { display: flex; gap: 4px; padding: 0 24px 15px; border-bottom: 1px solid var(--gj-line); }
.guided-job-progress button { flex: 1; min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: var(--gj-muted); font-size: 12px; }
.guided-job-progress button[aria-current="step"] { color: var(--gj-ink); font-weight: 700; border-bottom: 2px solid #0a7abb; }
.guided-job-progress button.is-done { color: #0a7abb; font-weight: 700; border-bottom: 2px solid #0a7abb; }
.dark-theme .guided-job-progress button.is-done { color: #87d5ff; border-bottom-color: #87d5ff; }
.guided-job-progress button:disabled { color: var(--gj-muted); cursor: default; }
.guided-job-content { padding: 24px; }
.guided-job .form-control { min-height: 44px; padding: 10px 12px; border-radius: 4px; font-size: 16px; color: var(--gj-ink); font-family: inherit; }
.guided-job .input-group { display: flex; flex-wrap: nowrap; align-items: stretch; }
.guided-job .input-group > .form-control { flex: 1 1 auto; width: 1%; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.guided-job .input-group-append { display: flex; }
.guided-job .input-group-append .btn { margin: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.guided-job .form-control::placeholder { color: var(--gj-muted); opacity: 1; }
.guided-job select.form-control { height: auto; }
.guided-job textarea.form-control { min-height: 122px; }
/* The Brief description grows to its content, capped with internal scrolling. */
.guided-job #gj-description {
	min-height: 122px;
	max-height: min(520px, 55vh);
	box-sizing: border-box;
	overflow-y: auto;
}
.guided-job .btn:not(.guided-job-link) { min-height: 44px; font-weight: 600; }
.guided-job .btn { font-size: 16px; font-family: inherit; }
.dark-theme .guided-job .form-control { background-color: #202c3b; color: var(--gj-ink); border-color: var(--gj-line); }
.dark-theme .guided-job .form-control::placeholder { color: var(--gj-muted); opacity: 1; }
.guided-job-content h2 { font-size: 24px; margin: 4px 0 8px; color: var(--gj-ink); }
.guided-job-content h2:focus { outline: none; box-shadow: none; }
.guided-job-content #guided-job-heading:focus, .guided-job-content #guided-job-heading:focus-visible { outline: none; box-shadow: none; }
.guided-job-content label:not(.guided-job-choice):not(.csr-surface) { display: block; font-weight: 600; margin-top: 18px; }
.guided-job-content textarea { min-height: 122px; resize: vertical; }
.guided-job-content details { margin: 16px 0; }
.guided-job-content details p { white-space: pre-wrap; }
.guided-job-field-error { color: #a32541; font-size: 13px; margin: 6px 0 0; }
.guided-job-field-error:empty { display: none; }
.dark-theme .guided-job-field-error { color: #ffb1c2; }
.guided-job-sub, .guided-job-hint, .guided-job-counter { color: var(--gj-muted); }
.guided-job-hint, .guided-job-counter { font-size: 13px; }
.guided-job-ai-status { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--gj-muted); font-size: 14px; }
.guided-job-ai-status .finder-spinner { flex: none; margin: 0; }
.guided-job-counter { text-align: right; margin: 4px 0; }
.guided-job-overline { color: #0a7abb; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.guided-job-badge { display: inline-block; padding: 4px 8px; background: var(--gj-tint); border-radius: 4px; }
.guided-job-notice { margin-top: 18px; padding: 12px; background: var(--gj-tint); border-left: 3px solid #0a7abb; }
.guided-job-link { border: 0; background: transparent; color: #0a7abb; padding: 8px 0; }
.dark-theme .guided-job-link, .dark-theme .guided-job-overline { color: #87d5ff; }
.guided-job-footer { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid var(--gj-line); }
.guided-job-progress:empty { display: none; }
/* A confirmed completion is a short result card: the empty progress, action
 * row and Cancel link are removed, while the header close remains available
 * when the same component is mounted in a popup. */
.is-completed .guided-job-footer { display: none; }
#guided-job-page.is-completed { min-height: 240px; }
#guided-job-modal.is-completed .modal-content,
#guided-job-edit-modal.is-completed .modal-content { min-height: 240px; }
.guided-job-completion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.guided-job-completion-actions .btn { margin: 0; }
.guided-job-footer [data-actions] { display: flex; flex-wrap: wrap; gap: 8px; }
.guided-job-footer .btn, .guided-job-inline-actions .btn { margin: 0; }
.guided-job-footer .guided-job-link { min-height: 44px; }
.guided-job-summary-row > .guided-job-link { flex: none; width: 44px; min-height: 44px; padding: 8px; font-size: 15px; }
.guided-job .btn:disabled { opacity: 1; cursor: not-allowed; }
/* Match the finder: disabled primary actions retain the brand, not a pale fill. */
.guided-job .btn-primary:disabled,
.guided-job .btn-primary.disabled { background: #007db5; border-color: #007db5; color: #ffffff; opacity: 1; cursor: not-allowed; }
.guided-job .btn-outline-primary:disabled { background-color: #eef7fc; border-color: #9fcfe9; color: #15334a; }
.dark-theme .guided-job .btn-outline-primary:disabled { background-color: #22384a; border-color: #35698a; color: #e0eaf3; }
.guided-job-next-wrap { display: inline-block; }
.guided-job-next-wrap[tabindex]:focus { outline: 3px solid #0a7abb; outline-offset: 3px; }
.guided-job-next-wrap[data-toggle="tooltip"] { cursor: help; }
.guided-job-keyboard-hint { flex-basis: 100%; color: var(--gj-muted); font-size: 12px; }
.guided-job-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.guided-job .guided-job-chips .btn { margin: 0; background: var(--gj-tint); }
/* Nonselected suggestions are reusable brand links, not muted chips. */
.guided-job-suggestions { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin: 4px 0 10px; }
.guided-job .guided-job-suggest { padding: 6px 0; font-size: 14px; text-decoration: underline; }
.guided-job .guided-job-suggest:focus-visible { outline: 3px solid #0a7abb; outline-offset: 2px; }
.dark-theme .guided-job .guided-job-suggest:focus-visible { outline-color: #87d5ff; }
.guided-job .guided-job-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
/* Compact question cards: two readable columns on desktop, natural wrapping. */
.guided-job .guided-job-question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guided-job .guided-job-question-grid .guided-job-choice { margin: 0; min-height: 44px; padding: 10px 12px; align-items: center; font-size: 15px; font-weight: 400; }
.guided-job .guided-job-question-grid .guided-job-choice strong { font-size: 15px; font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; }
.guided-job .guided-job-question-grid .guided-job-choice:last-child { grid-column: 1 / -1; min-height: 44px; align-items: center; }
.guided-job .guided-job-choice {
	border: 1px solid var(--gj-line);
	border-radius: 4px;
	padding: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}
.guided-job .guided-job-choice.is-selected {
	border-color: var(--guided-job-selected);
	box-shadow: inset 0 0 0 1px var(--guided-job-selected);
}
.guided-job .guided-job-choice input[type='radio'],
.guided-job .guided-job-choice input[type='checkbox'] {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 2px solid var(--gj-line);
	background-color: var(--gj-surface);
	box-shadow: none;
}
.guided-job .guided-job-choice input[type='radio'] { border-radius: 50%; }
.guided-job .guided-job-choice input[type='checkbox'] { border-radius: 3px; }
.guided-job .guided-job-choice input[type='radio']:checked {
	border-color: var(--guided-job-selected);
	background-color: var(--guided-job-selected);
	box-shadow: inset 0 0 0 3px var(--gj-surface);
}
.guided-job .guided-job-choice input[type='checkbox']:checked {
	/* The global bare-checkbox reset has many :not() selectors. Keep the
	 * component's approved green state rather than inheriting its sky tint. */
	border-color: var(--guided-job-selected) !important;
	background-color: var(--guided-job-selected) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 12px;
}
.guided-job .guided-job-choice input[type='checkbox']:checked::after {
	content: none !important;
}
.guided-job .guided-job-choice input[type='radio']:focus-visible,
.guided-job .guided-job-choice input[type='checkbox']:focus-visible {
	outline: 2px solid var(--guided-job-selected) !important;
	outline-offset: 2px;
}
.guided-job-choice small { display: block; color: var(--gj-muted); margin-top: 5px; }
.guided-job-payment-card { border: 1px solid var(--gj-line); border-radius: 4px; padding: 14px; }
.guided-job-payment-card.is-selected { border-color: var(--guided-job-selected); box-shadow: inset 0 0 0 1px var(--guided-job-selected); }
.guided-job .guided-job-payment-card .guided-job-choice { border: 0; box-shadow: none; padding: 0; align-items: flex-start; min-height: 90px; }
.guided-job-payment-card .fas { display: block; font-size: 22px; color: #0a7abb; margin-bottom: 10px; }
.guided-job-payment-card .guided-job-help { margin-left: 23px; text-decoration: underline; font-size: 12px; }
.dark-theme .guided-job-payment-card .fas { color: #87d5ff; }
.guided-job-choice:has(input:disabled) { background: var(--gj-surface); cursor: not-allowed; }
.dark-theme .guided-job-choice:has(input:disabled) { background: #22384a; }
.guided-job-summary { border: 1px solid var(--gj-line); border-radius: 4px; overflow: hidden; }
.guided-job-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px; }
.guided-job-summary .guided-job-summary-row:nth-child(odd) { background: var(--gj-surface); }
.guided-job-summary-row span { color: var(--gj-muted); font-size: 13px; }
.guided-job-summary-row p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 3px 0; }
.guided-job-summary-row > div { flex: 1; min-width: 0; }
.guided-job-inline-actions { display: flex; gap: 8px; margin-top: 16px; }
.guided-job-error { color: #a32541; margin-top: 12px; }
.dark-theme .guided-job-error { color: #ffb1c2; }
@media (max-width: 600px) {
	.guided-job .guided-job-options { grid-template-columns: 1fr; }
	.guided-job .guided-job-question-grid { grid-template-columns: 1fr; }
	.guided-job .guided-job-question-grid .guided-job-choice,
	.guided-job .guided-job-question-grid .guided-job-choice:last-child { grid-column: auto; min-height: 44px; }
	#guided-job-modal .modal-dialog,
	#guided-job-edit-modal .modal-dialog { margin: 8px; min-height: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
	#guided-job-modal .modal-content,
	#guided-job-edit-modal .modal-content { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
	.guided-job-content { padding: 16px; }
	.guided-job-header, .guided-job-footer { padding: 12px 16px; }
	.guided-job-progress { padding: 0 12px 10px; }
	.guided-job-progress button { font-size: 9px; }
	.guided-job .guided-job-payment-card .guided-job-choice { min-height: 0; }
	.guided-job-payment-card .fas { display: inline-block; font-size: 18px; margin: 0 8px 0 0; }
	.guided-job-payment-card .guided-job-help { margin-top: 3px; }
	.guided-job-keyboard-hint { display: none; }
}
/* Inline full-page mount. It reuses every component token and control; only
 * the surrounding card differs from the popup host. */
.guided-job-page-shell { padding-top: 24px; padding-bottom: 40px; }
.job-buyer-page-intro { margin: 0 0 20px; max-width: 900px; }
.job-buyer-page-intro h1 { margin: 4px 0 8px; }
.job-buyer-page-intro p { color: var(--gj-muted, #4a5666); margin: 0; max-width: 760px; }
/* The intro lives outside .guided-job, so it cannot inherit --gj-muted. Mirror
 * the component's dark muted color here for readable contrast on the page. */
.dark-theme .job-buyer-page-intro p { color: #b3c4d5; }
.job-buyer-page-intro .job-buyer-eyebrow { color: #0a7abb; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.job-buyer-page-intro .job-buyer-eyebrow .fas { margin-right: 6px; }
.guided-job-page { width: 100%; max-width: none; background: #ffffff; border: 1px solid var(--gj-line); border-radius: 6px; overflow: hidden; }
.dark-theme .guided-job-page { background: #202c3b; }
.guided-job-page .guided-job-header { border-bottom: 1px solid var(--gj-line); }
.guided-job-page .guided-job-content { padding: 24px; }
.guided-job-page .guided-job-footer { background: var(--gj-surface); }
/* Keep the component's written button labels, including sentence case and
 * spacing, on the full-page host. Chip, starter and Add buttons otherwise
 * inherit the site-wide uppercase/spaced button text that the popup does not. */
.guided-job-page .btn { text-transform: none; letter-spacing: normal; }
.guided-job-page-fallback { margin: 12px 0 0; font-size: 13px; }
.guided-job-page-fallback a { color: #0a7abb; }
.dark-theme .guided-job-page-fallback a { color: #87d5ff; }
.guided-job-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.guided-job-amounts > div { min-width: 0; }
.guided-job-amounts label { margin-top: 18px; }
@media (max-width: 600px) {
	.guided-job-page-shell { padding-top: 12px; }
	.guided-job-page .guided-job-content { padding: 16px; }
	.guided-job-amounts { grid-template-columns: 1fr; gap: 0; }
}
/* Private receiver: the same guided-job shell with only its own row/list layout. */
#guided-private-modal .modal-dialog { max-width: 720px; display: flex; align-items: center; margin: 24px auto; min-height: calc(100% - 48px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); }
#guided-private-modal .modal-dialog-centered::before { content: none !important; display: none !important; height: 0 !important; }
#guided-private-modal .modal-content { display: flex; flex-direction: column; width: 100%; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: hidden; }
#guided-private-modal .guided-job-header,
#guided-private-modal .guided-job-progress,
#guided-private-modal .guided-job-footer { flex-shrink: 0; }
#guided-private-modal .guided-job-content { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
.guided-private-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0; }
.guided-private-search .btn { margin: 0; }
.guided-private-search [data-private-search-status] { flex: 1 1 220px; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.guided-private-sellers { margin: 12px 0; border: 1px solid var(--gj-line); border-radius: 4px; overflow: hidden; }
.guided-private-sellers > .guided-job-hint { margin: 0; padding: 12px; }
.guided-private-scope-box,
.guided-private-review-block { margin: 12px 0; }
.guided-private-scope-box > span,
.guided-private-review-block > span { display: block; color: var(--gj-muted); font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.guided-private-scope { margin: 0; padding: 12px; border: 1px solid var(--gj-line); border-radius: 4px; background: var(--gj-surface); white-space: pre-wrap; overflow-wrap: anywhere; }
.guided-private-recipients { border: 1px solid var(--gj-line); border-radius: 4px; overflow: hidden; }
.guided-private-summary { margin: 12px 0; }
.guided-private-summary .guided-job-summary-row { padding: 10px 12px; }
.guided-private-summary .guided-job-summary-row p { margin: 1px 0; }
@media (max-width: 600px) {
	#guided-private-modal .modal-dialog { margin: 8px; min-height: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
	#guided-private-modal .modal-content { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
}
