/**
 * Page Builder — Contact form section (CF7 · identidade Stein).
 */

.cortex-pb-contact-form-section__form-wrap .wpcf7 {
	margin: 0;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-form {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-form > p {
	margin: 0;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-form br {
	display: none;
}

/* Layout em grid (markup .alpine-contact-grid) */
.cortex-pb-contact-form-section__form-wrap .alpine-contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.cortex-pb-contact-form-section__form-wrap .alpine-contact-grid {
		grid-template-columns: 1fr 1fr;
	}

	.cortex-pb-contact-form-section__form-wrap .alpine-contact-grid .alpine-field--full {
		grid-column: 1 / -1;
	}
}

/* Labels (CF7 wrap padrão ou .alpine-field) */
.cortex-pb-contact-form-section__form-wrap .wpcf7-form label,
.cortex-pb-contact-form-section__form-wrap .alpine-field > span.alpine-label,
.cortex-pb-contact-form-section__form-wrap .alpine-fieldset > legend {
	display: block;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	color: #3a3d3b;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
	margin-top: 0.25rem;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-form-control.wpcf7-text,
.cortex-pb-contact-form-section__form-wrap .wpcf7-form-control.wpcf7-email,
.cortex-pb-contact-form-section__form-wrap .wpcf7-form-control.wpcf7-tel,
.cortex-pb-contact-form-section__form-wrap .wpcf7-form-control.wpcf7-select,
.cortex-pb-contact-form-section__form-wrap .wpcf7-form-control.wpcf7-textarea,
.cortex-pb-contact-form-section__form-wrap .cortex-select__trigger {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0.625rem 0.75rem;
	border: 1px solid #c5cbc6;
	border-radius: 2px;
	background-color: rgba(231, 233, 231, 0.6);
	color: #3a3d3b;
	font-size: 0.875rem;
	font-family: inherit;
	line-height: 1.4;
	outline: none;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
	appearance: none;
	-webkit-appearance: none;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-form-control.wpcf7-select,
.cortex-pb-contact-form-section__form-wrap .cortex-select__trigger {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231d4422' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	padding-right: 2.25rem;
	cursor: pointer;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-form-control.wpcf7-textarea {
	min-height: 7.5rem;
	resize: vertical;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-form-control::placeholder {
	color: #6b726e;
	opacity: 0.85;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-form-control:hover,
.cortex-pb-contact-form-section__form-wrap .cortex-select__trigger:hover {
	border-color: #a8b0aa;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-form-control:focus,
.cortex-pb-contact-form-section__form-wrap .cortex-select__trigger:focus-visible,
.cortex-pb-contact-form-section__form-wrap .cortex-select.is-open .cortex-select__trigger {
	border-color: #1d4422;
	background-color: #fff;
	box-shadow: 0 0 0 3px rgba(29, 68, 34, 0.12);
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-not-valid {
	border-color: #b42318 !important;
}

/* Grupo de radio (fieldset + legend) */
.cortex-pb-contact-form-section__form-wrap .alpine-fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.cortex-pb-contact-form-section__form-wrap .alpine-fieldset > legend {
	padding: 0;
}

.cortex-pb-contact-form-section__form-wrap .alpine-fieldset p {
	margin: 0;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-radio .wpcf7-list-item {
	flex: 1 1 8rem;
	margin: 0;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-radio .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	box-sizing: border-box;
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid #c5cbc6;
	border-radius: 2px;
	background-color: rgba(231, 233, 231, 0.6);
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-radio .wpcf7-list-item label:hover {
	border-color: #a8b0aa;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-radio input[type="radio"] {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: #1d4422;
	cursor: pointer;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-radio .wpcf7-list-item label:has(input:checked) {
	border-color: #1d4422;
	background-color: #fff;
	color: #1d4422;
	font-weight: 600;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-radio .wpcf7-list-item label:has(input:focus-visible) {
	border-color: #1d4422;
	box-shadow: 0 0 0 3px rgba(29, 68, 34, 0.12);
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-radio.wpcf7-not-valid .wpcf7-list-item label {
	border-color: #b42318;
}

/* Dropdown customizado do select (desktop · contact-form-section.js) */
.cortex-pb-contact-form-section__form-wrap .cortex-select {
	position: relative;
}

.cortex-pb-contact-form-section__form-wrap .cortex-select__native {
	display: none;
}

.cortex-pb-contact-form-section__form-wrap .cortex-select__trigger {
	display: block;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cortex-pb-contact-form-section__form-wrap .cortex-select__trigger.is-placeholder {
	color: #6b726e;
}

.cortex-pb-contact-form-section__form-wrap .cortex-select__list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 30;
	max-height: 20rem;
	margin: 0;
	padding: 0.25rem 0;
	overflow-y: auto;
	list-style: none;
	border: 1px solid #c5cbc6;
	border-radius: 2px;
	background-color: #fff;
	box-shadow: 0 12px 24px -8px rgba(29, 68, 34, 0.18);
	outline: none;
}

.cortex-pb-contact-form-section__form-wrap .cortex-select__list[hidden] {
	display: none;
}

.cortex-pb-contact-form-section__form-wrap .cortex-select__option {
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #3a3d3b;
	cursor: pointer;
}

.cortex-pb-contact-form-section__form-wrap .cortex-select__option.is-active {
	background-color: rgba(29, 68, 34, 0.08);
	color: #1d4422;
}

.cortex-pb-contact-form-section__form-wrap .cortex-select__option[aria-selected="true"] {
	font-weight: 600;
	color: #1d4422;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.75rem;
	color: #b42318;
}

/* Submit · CTA laranja Stein */
.cortex-pb-contact-form-section__form-wrap .wpcf7-form input[type="submit"],
.cortex-pb-contact-form-section__form-wrap .wpcf7-submit {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0.25rem 0 0;
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: 2px;
	background-color: #f59a3d;
	color: #1d4422;
	font-size: 0.875rem;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter 160ms ease, box-shadow 160ms ease;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-form input[type="submit"]:hover,
.cortex-pb-contact-form-section__form-wrap .wpcf7-submit:hover {
	filter: brightness(0.96);
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-form input[type="submit"]:focus-visible,
.cortex-pb-contact-form-section__form-wrap .wpcf7-submit:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(245, 154, 61, 0.45);
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-spinner {
	display: none;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7-response-output {
	margin: 0.75rem 0 0;
	padding: 0.75rem 1rem;
	border-radius: 2px;
	border: 1px solid #c5cbc6;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #3a3d3b;
	background: #e7e9e7;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.cortex-pb-contact-form-section__form-wrap .wpcf7 form.unaccepted .wpcf7-response-output,
.cortex-pb-contact-form-section__form-wrap .wpcf7 form.payment-required .wpcf7-response-output {
	border-color: rgba(180, 35, 24, 0.35);
	background: rgba(180, 35, 24, 0.08);
	color: #7a1a12;
}

.cortex-pb-contact-form-section__form-wrap .wpcf7 form.sent .wpcf7-response-output {
	border-color: rgba(29, 68, 34, 0.35);
	background: rgba(29, 68, 34, 0.08);
	color: #1d4422;
}

/* Lista de canais */
.cortex-pb-contact-form-section__channels {
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.cortex-pb-contact-form-section__channels li {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.75rem 0;
	border-top: 1px solid #c5cbc6;
	font-size: 0.875rem;
}

.cortex-pb-contact-form-section__channels li:last-child {
	border-bottom: 1px solid #c5cbc6;
}

.cortex-pb-contact-form-section__channels strong {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #3e5f6b;
}

.cortex-pb-contact-form-section__channels a {
	color: #1d4422;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cortex-pb-contact-form-section__channels a:hover {
	color: #f59a3d;
}
