/* Briefing Rápido — formulário de página única.
   Mesma linguagem visual do Pré-Briefing completo, sem a trilha de etapas. */

.pbx {
	--pbx-accent: #d9412a;
	--pbx-highlight: #f5b324;
	--pbx-ink: #171c3a;
	--pbx-paper: #f7f4ee;
	--pbx-line: rgba(23, 28, 58, 0.16);
	--pbx-muted: rgba(23, 28, 58, 0.6);
	--pbx-danger: #b3261e;
	--pbx-display: "Anton", "Archivo", Impact, ui-sans-serif, sans-serif;
	--pbx-body: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--pbx-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");

	max-width: 860px;
	margin: 0 auto;
	background: var(--pbx-paper);
	color: var(--pbx-ink);
	font-family: var(--pbx-body);
	font-size: 16px;
	line-height: 1.55;
	overflow: hidden;
	border-radius: 4px;
}

.pbx *,
.pbx *::before,
.pbx *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------ cabeçalho */

.pbx-head {
	position: relative;
	padding: clamp(30px, 5vw, 52px) clamp(22px, 4vw, 46px) clamp(34px, 5vw, 54px);
	background: var(--pbx-ink);
	isolation: isolate;
}

.pbx-head::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--pbx-grain);
	opacity: 0.16;
	mix-blend-mode: overlay;
	pointer-events: none;
}

.pbx-eyebrow {
	position: relative;
	margin: 0;
	padding-left: 26px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--pbx-highlight);
}

/* marcador chevron, eco do símbolo da marca */
.pbx-eyebrow::before {
	content: "";
	position: absolute;
	left: 0;
	top: 5px;
	width: 13px;
	height: 13px;
	border-top: 3px solid var(--pbx-highlight);
	border-left: 3px solid var(--pbx-highlight);
	transform: rotate(45deg);
}

.pbx-title {
	max-width: 16ch;
	margin: 16px 0 0;
	font-family: var(--pbx-display);
	font-weight: 400;
	font-size: clamp(38px, 6.4vw, 62px);
	line-height: 0.92;
	letter-spacing: 0.002em;
	text-transform: uppercase;
	color: #fff;
}

.pbx-lede {
	max-width: 46ch;
	margin: 16px 0 0;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------- corpo */

.pbx-body {
	padding: clamp(28px, 4vw, 46px) clamp(22px, 4vw, 46px) clamp(30px, 4vw, 50px);
}

.pbx-block {
	animation: pbx-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pbx-block + .pbx-block {
	margin-top: clamp(34px, 4.5vw, 52px);
}

.pbx-block--plain {
	margin-top: clamp(26px, 3.5vw, 38px);
	padding-top: clamp(22px, 3vw, 30px);
	border-top: 1.5px solid var(--pbx-line);
}

@keyframes pbx-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

.pbx-block-head {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 13px;
	align-items: start;
	margin-bottom: 26px;
}

.pbx-block-code {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	background: var(--pbx-accent);
	color: #fff;
	font-family: var(--pbx-display);
	font-size: 18px;
	line-height: 1;
	padding-top: 2px;
}

/* tarja amarela, como as legendas dos posts */
.pbx-block-title {
	display: inline-block;
	margin: 0;
	padding: 6px 12px 5px;
	background: var(--pbx-highlight);
	font-family: var(--pbx-display);
	font-size: clamp(22px, 3.2vw, 30px);
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	color: var(--pbx-ink);
}

.pbx-block-desc {
	margin: 9px 0 0;
	font-size: 14.5px;
	color: var(--pbx-muted);
}

/* ---------------------------------------------------------------- campos */

.pbx-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	align-items: start;
}

.pbx-field {
	min-width: 0;
	grid-column: span 2;
}

.pbx-field--half {
	grid-column: span 1;
}

.pbx-fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.pbx-label {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--pbx-ink);
}

.pbx-req {
	margin-left: 8px;
	font-size: 10px;
	font-style: italic;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pbx-accent);
	vertical-align: 1px;
}

.pbx-help {
	margin: -3px 0 9px;
	font-size: 13.5px;
	color: var(--pbx-muted);
}

.pbx-input {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--pbx-ink);
	background: #fff;
	border: 1.5px solid var(--pbx-line);
	border-radius: 3px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	appearance: none;
}

.pbx-input::placeholder {
	color: rgba(23, 28, 58, 0.38);
}

.pbx-input:focus {
	outline: none;
	border-color: var(--pbx-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pbx-accent) 20%, transparent);
}

textarea.pbx-input {
	resize: vertical;
	min-height: 108px;
}

.pbx-select-wrap {
	position: relative;
}

.pbx-select-wrap::after {
	content: "";
	position: absolute;
	right: 17px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid var(--pbx-ink);
	border-bottom: 2px solid var(--pbx-ink);
	transform: rotate(45deg);
	pointer-events: none;
}

.pbx-select {
	padding-right: 42px;
	cursor: pointer;
}

/* ------------------------------------------------------- radio/checkbox */

.pbx-options {
	display: grid;
	gap: 8px;
}

.pbx-option {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 11px;
	align-items: start;
	padding: 12px 14px;
	background: #fff;
	border: 1.5px solid var(--pbx-line);
	border-radius: 3px;
	font-size: 15px;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.pbx-option:hover {
	border-color: color-mix(in srgb, var(--pbx-accent) 50%, var(--pbx-line));
}

.pbx-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.pbx-option-mark {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border: 2px solid var(--pbx-line);
	border-radius: 50%;
	background: #fff;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pbx-field--checkbox .pbx-option-mark {
	border-radius: 2px;
}

.pbx-option input:checked ~ .pbx-option-mark {
	border-color: var(--pbx-accent);
	box-shadow: inset 0 0 0 4px var(--pbx-accent);
}

.pbx-option:has(input:checked) {
	border-color: var(--pbx-accent);
	background: color-mix(in srgb, var(--pbx-highlight) 18%, #fff);
}

.pbx-option input:focus-visible ~ .pbx-option-mark {
	outline: 2px solid var(--pbx-accent);
	outline-offset: 3px;
}

.pbx-option-text {
	line-height: 1.45;
}

/* ----------------------------------------------------------------- erros */

.pbx-error {
	margin: 7px 0 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--pbx-danger);
}

.pbx-field.has-error .pbx-input,
.pbx-field.has-error .pbx-option {
	border-color: var(--pbx-danger);
}

.pbx-alert {
	margin-top: 22px;
	padding: 13px 16px;
	border-radius: 3px;
	border-left: 4px solid var(--pbx-danger);
	background: color-mix(in srgb, var(--pbx-danger) 8%, #fff);
	font-size: 14.5px;
	color: var(--pbx-danger);
}

.pbx-alert[hidden] {
	display: none;
}

/* ------------------------------------------------------------- navegação */

.pbx-nav {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 34px;
	padding-top: 24px;
	border-top: 1.5px solid var(--pbx-line);
}

.pbx-btn {
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 14px 26px;
	border: 2px solid var(--pbx-accent);
	border-radius: 3px;
	background: var(--pbx-accent);
	color: #fff;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.pbx-btn:hover {
	transform: translateY(-1px);
	background: color-mix(in srgb, var(--pbx-accent) 88%, #000);
}

.pbx-btn:focus-visible {
	outline: 3px solid var(--pbx-highlight);
	outline-offset: 2px;
}

.pbx-btn[disabled] {
	opacity: 0.55;
	cursor: progress;
	transform: none;
}

/* --------------------------------------------------------------- sucesso */

.pbx-done {
	padding: clamp(34px, 5vw, 60px) clamp(22px, 4vw, 46px);
	background: var(--pbx-ink);
	animation: pbx-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pbx-done[hidden] {
	display: none;
}

.pbx-done .pbx-title {
	color: #fff;
}

.pbx-done .pbx-lede {
	color: rgba(255, 255, 255, 0.75);
}

.pbx-done-mark {
	display: block;
	width: 42px;
	height: 42px;
	margin-bottom: 20px;
	background: var(--pbx-highlight);
	position: relative;
}

.pbx-done-mark::after {
	content: "";
	position: absolute;
	left: 14px;
	top: 11px;
	width: 10px;
	height: 17px;
	border-right: 3px solid var(--pbx-ink);
	border-bottom: 3px solid var(--pbx-ink);
	transform: rotate(42deg);
}

/* ------------------------------------------------------------- honeypot */

.pbx-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------ responsivo */

@media (max-width: 640px) {
	.pbx-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.pbx-field,
	.pbx-field--half {
		grid-column: span 1;
	}

	.pbx-nav .pbx-btn {
		flex: 1;
		padding: 15px 14px;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pbx *,
	.pbx *::before,
	.pbx *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------------------------------------------------------------- anexos */

.pbx-file {
	position: relative;
	padding: 16px;
	background: #fff;
	border: 1.5px dashed var(--pbx-line);
	border-radius: 3px;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.pbx-file:hover {
	border-color: color-mix(in srgb, var(--pbx-accent) 50%, var(--pbx-line));
}

/* O input fica invisível, mas continua no fluxo do teclado: quem navega por
   Tab precisa alcançar o campo, e display:none tiraria ele da ordem. */
.pbx-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.pbx-file-btn {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 10px 16px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--pbx-ink);
	background: var(--pbx-highlight);
	border-radius: 3px;
	cursor: pointer;
	transition: filter 0.18s ease;
}

.pbx-file-btn:hover {
	filter: brightness(0.95);
}

.pbx-file-input:focus-visible + .pbx-file-btn {
	outline: 2px solid var(--pbx-accent);
	outline-offset: 2px;
}

.pbx-file-btn-icon {
	font-size: 17px;
	line-height: 1;
}

.pbx-file-status {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--pbx-muted);
}

.pbx-file-list {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
}

.pbx-file-item {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 10px;
	align-items: center;
	padding: 8px 10px;
	font-size: 14px;
	background: var(--pbx-paper);
	border-radius: 3px;
}

.pbx-file-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pbx-file-size {
	font-size: 12.5px;
	color: var(--pbx-muted);
	white-space: nowrap;
}

.pbx-file-remove {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	padding: 0;
	font-family: inherit;
	font-size: 17px;
	line-height: 1;
	color: var(--pbx-muted);
	background: none;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	transition: color 0.18s ease, background 0.18s ease;
}

.pbx-file-remove:hover {
	color: #fff;
	background: var(--pbx-danger);
}

.pbx-file-hint {
	margin: 8px 0 0;
	font-size: 12.5px;
	color: var(--pbx-muted);
}

.pbx-field.has-error .pbx-file {
	border-color: var(--pbx-danger);
}

.pbx-done-avisos {
	margin: 14px auto 0;
	max-width: 46ch;
	padding: 12px 14px;
	font-size: 14px;
	text-align: left;
	background: color-mix(in srgb, var(--pbx-highlight) 22%, #fff);
	border-left: 3px solid var(--pbx-highlight);
	border-radius: 3px;
}
