/**
 * Papo CF7 Professional 1.1
 * CSS isolado dentro de .wpcf7 para não interferir no tema.
 */

.wpcf7 {
	--papo-cf7-accent: #c84f68;
	--papo-cf7-accent-hover: #ad3f56;
	--papo-cf7-text: #202433;
	--papo-cf7-muted: #697080;
	--papo-cf7-border: #dde1e8;
	--papo-cf7-border-hover: #c7ccd6;
	--papo-cf7-surface: #ffffff;
	--papo-cf7-field: #fbfbfc;
	--papo-cf7-danger: #b42318;
	--papo-cf7-success: #18794e;
	width: min(100%, 760px);
	margin: clamp(24px, 5vw, 56px) auto;
	padding: clamp(24px, 4vw, 44px);
	box-sizing: border-box;
	color: var(--papo-cf7-text);
	background: var(--papo-cf7-surface);
	border: 1px solid rgba(32, 36, 51, 0.08);
	border-radius: 22px;
	box-shadow: 0 18px 50px rgba(32, 36, 51, 0.09);
}

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

.wpcf7 form.papo-cf7-form,
.wpcf7 form {
	margin: 0;
}

.wpcf7 form.papo-cf7-form > p,
.wpcf7 form > p,
.wpcf7 form.papo-cf7-form > div:not(.wpcf7-response-output):not(.screen-reader-response),
.wpcf7 form > div:not(.wpcf7-response-output):not(.screen-reader-response) {
	margin: 0 0 20px;
}

.wpcf7 form > p:last-of-type {
	margin-bottom: 0;
}

.wpcf7 label {
	display: block;
	margin: 0;
	color: var(--papo-cf7-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.wpcf7 label > br {
	display: none;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-top: 8px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 input[type="time"],
.wpcf7 input[type="search"],
.wpcf7 select,
.wpcf7 textarea {
	display: block;
	width: 100%;
	max-width: none;
	min-height: 52px;
	margin: 0;
	padding: 13px 15px;
	color: var(--papo-cf7-text);
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	background: var(--papo-cf7-field);
	border: 1px solid var(--papo-cf7-border);
	border-radius: 12px;
	outline: 0;
	box-shadow: none;
	appearance: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.wpcf7 textarea {
	min-height: 180px;
	resize: vertical;
}

.wpcf7 select {
	cursor: pointer;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: #9298a5;
	opacity: 1;
}

.wpcf7 input[type="text"]:hover,
.wpcf7 input[type="email"]:hover,
.wpcf7 input[type="url"]:hover,
.wpcf7 input[type="tel"]:hover,
.wpcf7 input[type="number"]:hover,
.wpcf7 input[type="date"]:hover,
.wpcf7 input[type="time"]:hover,
.wpcf7 input[type="search"]:hover,
.wpcf7 select:hover,
.wpcf7 textarea:hover {
	border-color: var(--papo-cf7-border-hover);
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 input[type="time"]:focus,
.wpcf7 input[type="search"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	background: #ffffff;
	border-color: var(--papo-cf7-accent);
	box-shadow: 0 0 0 4px rgba(200, 79, 104, 0.14);
}

.wpcf7 .wpcf7-not-valid {
	border-color: var(--papo-cf7-danger) !important;
	box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.10);
}

.wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 7px;
	color: var(--papo-cf7-danger);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0 8px 0 0;
	vertical-align: -3px;
	accent-color: var(--papo-cf7-accent);
}

.wpcf7 .wpcf7-list-item {
	margin: 0 18px 8px 0;
}

.wpcf7 .wpcf7-list-item-label {
	color: var(--papo-cf7-muted);
	font-size: 14px;
	font-weight: 500;
}

.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"],
.wpcf7 .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	min-height: 50px;
	margin: 4px 0 0;
	padding: 13px 24px;
	color: #ffffff;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none;
	background: var(--papo-cf7-accent);
	border: 1px solid var(--papo-cf7-accent);
	border-radius: 12px;
	box-shadow: 0 10px 24px rgba(200, 79, 104, 0.24);
	cursor: pointer;
	appearance: none;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
	color: #ffffff;
	background: var(--papo-cf7-accent-hover);
	border-color: var(--papo-cf7-accent-hover);
	box-shadow: 0 12px 28px rgba(173, 63, 86, 0.28);
	transform: translateY(-1px);
}

.wpcf7 input[type="submit"]:focus-visible,
.wpcf7 button[type="submit"]:focus-visible,
.wpcf7 .wpcf7-submit:focus-visible {
	outline: 3px solid rgba(200, 79, 104, 0.28);
	outline-offset: 3px;
}

.wpcf7 input[type="submit"]:active,
.wpcf7 button[type="submit"]:active,
.wpcf7 .wpcf7-submit:active {
	transform: translateY(0);
}

.wpcf7 input[type="submit"]:disabled,
.wpcf7 button[type="submit"]:disabled,
.wpcf7 .wpcf7-submit:disabled,
.wpcf7 form.submitting .wpcf7-submit {
	opacity: 0.62;
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}

.wpcf7 .wpcf7-spinner {
	width: 22px;
	height: 22px;
	margin: 0 0 0 12px;
	vertical-align: middle;
	background-color: var(--papo-cf7-text);
}

.wpcf7 form .wpcf7-response-output {
	margin: 22px 0 0;
	padding: 13px 15px;
	color: var(--papo-cf7-text);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.5;
	background: #f7f8fa;
	border: 1px solid var(--papo-cf7-border);
	border-radius: 12px;
}

.wpcf7 form.sent .wpcf7-response-output {
	color: var(--papo-cf7-success);
	background: #f0faf5;
	border-color: rgba(24, 121, 78, 0.28);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	color: var(--papo-cf7-danger);
	background: #fff5f4;
	border-color: rgba(180, 35, 24, 0.25);
}

body.papo-cf7-page .entry-header,
body.papo-cf7-page .wp-block-post-title,
body.papo-cf7-page h1.entry-title {
	width: min(100% - 32px, 760px);
	margin-right: auto;
	margin-left: auto;
}

body.papo-cf7-page h1.entry-title,
body.papo-cf7-page .wp-block-post-title {
	margin-top: clamp(28px, 5vw, 60px);
	margin-bottom: -8px;
	color: #202433;
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 850;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

@media (max-width: 640px) {
	.wpcf7 {
		width: calc(100% - 24px);
		margin-top: 20px;
		margin-bottom: 32px;
		padding: 22px 18px;
		border-radius: 18px;
	}

	.wpcf7 form > p,
	.wpcf7 form > div:not(.wpcf7-response-output):not(.screen-reader-response) {
		margin-bottom: 17px;
	}

	.wpcf7 input[type="submit"],
	.wpcf7 button[type="submit"],
	.wpcf7 .wpcf7-submit {
		width: 100%;
	}

	.wpcf7 .wpcf7-spinner {
		display: block;
		margin: 12px auto 0;
	}

	body.papo-cf7-page h1.entry-title,
	body.papo-cf7-page .wp-block-post-title {
		font-size: clamp(30px, 10vw, 40px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcf7 input,
	.wpcf7 select,
	.wpcf7 textarea,
	.wpcf7 button,
	.wpcf7 .wpcf7-submit {
		transition: none !important;
	}
}
