/**
 * Coteia — Contato.
 * Formulário + canais + redes do Rodapé + coluna complementar padrão Coteia.
 * @since 0.9.2-beta.1
 */

.coteia-contact-page .coteia-site-main { background: #f8fafc; }
.coteia-contact-page .coteia-site-main > .coteia-container {
	padding-top: clamp(32px, 5vw, 64px);
	padding-bottom: clamp(40px, 6vw, 80px);
}
.coteia-contact-page .coteia-site-main article { width:100%; max-width:1200px; margin:0 auto; }
.coteia-contact-page .coteia-site-main article > h1 {
	margin:0 0 28px;
	color:#1e293b;
	font-family:var(--coteia-font-heading, inherit);
	font-size:clamp(1.55rem, 2.5vw, 2.1rem);
	font-weight:var(--coteia-font-heading-weight, 700);
	line-height:1.2;
	text-align:left;
}
.coteia-contact-page .coteia-site-main article > h1::after {
	content:'';
	display:block;
	width:100%;
	height:4px;
	margin:12px 0 0;
	border-radius:999px;
	background:linear-gradient(90deg,#2968c8 0 76%,#ffe600 76% 100%);
}
.coteia-contact-page.coteia-contact-hide-title .coteia-site-main article > h1 { display:none; }
.coteia-contact-page .entry-content { max-width:none; padding:0; border:0; background:transparent; box-shadow:none; }

.coteia-contact-layout {
	display:grid;
	width:100%;
	gap:clamp(20px,3vw,32px);
	align-items:stretch;
}
.coteia-contact-layout--single { grid-template-columns:minmax(0,920px); justify-content:center; }
.coteia-contact-layout--with-sidebar { grid-template-columns:minmax(0,1fr) minmax(280px,360px); }
.coteia-contact-main,
.coteia-contact-sidebar { min-width:0; }
.coteia-contact-main { display:grid; align-content:start; gap:20px; }

.coteia-contact-row,
.coteia-contact-sidebar-row {
	padding:clamp(18px,2.6vw,28px);
	border:1px solid #e2e8f0;
	border-radius:16px;
	background:#fff;
	box-shadow:0 8px 24px rgba(15,23,42,.08);
}

.coteia-contact-page .coteia-contact-intro {
	margin:0 0 22px;
	color:#64748b;
	font-size:1.02rem;
	line-height:1.7;
	text-align:left;
}
.coteia-contact-form-wrap { padding:0; border:0; background:transparent; box-shadow:none; }
.coteia-contact-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.coteia-contact-field { margin:0 0 18px; }
.coteia-contact-field label { display:block; margin-bottom:7px; font-weight:700; color:#24364f; }
.coteia-contact-field input,
.coteia-contact-field textarea {
	width:100%;
	border:1px solid #ccd5e3;
	border-radius:10px;
	background:#fff;
	color:#1f2937;
	font:inherit;
	padding:12px 14px;
	transition:border-color .2s ease, box-shadow .2s ease;
}
.coteia-contact-field textarea { resize:vertical; min-height:150px; }
.coteia-contact-field input:focus,
.coteia-contact-field textarea:focus { outline:none; border-color:#2968c8; box-shadow:0 0 0 3px rgba(41,104,200,.14); }
.coteia-contact-submit { margin:4px 0 0; }
.coteia-contact-submit button {
	border:0;
	border-radius:10px;
	background:#2968c8;
	color:#fff;
	font:inherit;
	font-weight:700;
	padding:12px 22px;
	cursor:pointer;
	transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.coteia-contact-submit button:hover { background:#2159ad; box-shadow:0 8px 18px rgba(41,104,200,.22); transform:translateY(-1px); }
.coteia-contact-submit button:focus-visible,
.coteia-contact-info a:focus-visible,
.coteia-contact-social-link:focus-visible,
.coteia-contact-product-card.is-clickable:focus-visible { outline:3px solid #ffe600; outline-offset:3px; }

.coteia-contact-notice { border-radius:10px; margin-bottom:20px; padding:12px 14px; font-weight:600; }
.coteia-contact-notice--success { background:#edf9f1; border:1px solid #b8e2c5; color:#1d6333; }
.coteia-contact-notice--warning { background:#fff9df; border:1px solid #f0df8a; color:#6b5800; }
.coteia-contact-notice--error { background:#fff1f1; border:1px solid #edc2c2; color:#8a2525; }
.coteia-contact-hp { position:absolute!important; left:-9999px!important; width:1px!important; height:1px!important; overflow:hidden!important; }

.coteia-contact-info h2,
.coteia-contact-socials h2 { margin:0 0 14px; color:#1e293b; font-size:1.1rem; }
.coteia-contact-info-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.coteia-contact-info-list .coteia-contact-info-item {
	display:flex;
	flex-direction:column;
	gap:4px;
	min-width:0;
	padding:12px 14px;
	border:1px solid #e2e8f0;
	border-radius:10px;
	color:#334155;
	text-decoration:none;
	transition:border-color .18s ease, background .18s ease;
}
.coteia-contact-info-list a.coteia-contact-info-item:hover { border-color:rgba(41,104,200,.45); background:rgba(41,104,200,.035); }
.coteia-contact-info-list strong { color:#2968c8; font-size:.84rem; }
.coteia-contact-info-list span { overflow-wrap:anywhere; font-size:.94rem; }

.coteia-contact-social-list { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.coteia-contact-social-link {
	display:inline-flex;
	align-items:center;
	gap:8px;
	min-height:38px;
	padding:8px 12px;
	border:1px solid #e2e8f0;
	border-radius:999px;
	background:#fff;
	color:#334155;
	font-size:.9rem;
	font-weight:700;
	text-decoration:none;
	transition:border-color .18s ease, color .18s ease, transform .18s ease;
}
a.coteia-contact-social-link:hover { border-color:#2968c8; color:#2968c8; transform:translateY(-1px); }
.coteia-contact-social-link--disabled { opacity:.72; cursor:default; }
.coteia-contact-social-icon { display:inline-grid; width:20px; height:20px; place-items:center; font-size:18px; }
.coteia-contact-social-icon img { width:20px; height:20px; object-fit:contain; }

/* Segunda coluna: mesma altura da primeira no desktop. */
.coteia-contact-sidebar {
	display:grid;
	gap:16px;
	min-width:0;
	min-height:0;
	height:100%;
}
.coteia-contact-sidebar-row { min-width:0; min-height:0; }
.coteia-contact-sidebar.has-ads-row { display:flex; flex-direction:column; }
.coteia-contact-sidebar.has-ads-row .coteia-contact-sidebar-row--ads {
	flex:0 0 28%;
	max-height:28%;
	padding:8px;
	overflow:hidden;
}
.coteia-contact-sidebar.has-ads-row .coteia-contact-sidebar-row--content { flex:1 1 auto; min-height:0; }
.coteia-contact-sidebar.no-ads-row { grid-template-rows:minmax(0,1fr); }
.coteia-contact-sidebar.no-ads-row .coteia-contact-sidebar-row--content { min-height:100%; }
.coteia-contact-sidebar-row--content { display:flex; flex-direction:column; overflow:hidden; }

.coteia-contact-ad-html { width:100%; height:100%; min-width:0; min-height:0; max-height:100%; overflow:hidden; }
.coteia-contact-ad-html > * { max-width:100%; max-height:100%; }
.coteia-contact-ad-html iframe,
.coteia-contact-ad-html ins,
.coteia-contact-ad-html img { display:block; max-width:100%; max-height:100%; }
.coteia-contact-ad-html iframe { width:100%; border:0; }
.coteia-contact-ad-demo {
	display:grid;
	height:100%;
	max-height:100%;
	align-content:center;
	gap:4px;
	padding:8px 12px;
	border:1px dashed rgba(41,104,200,.35);
	border-radius:12px;
	background:#f8fafc;
	text-align:center;
}
.coteia-contact-ad-demo span { color:#64748b; font-size:.72rem; font-weight:700; letter-spacing:.08em; }
.coteia-contact-ad-demo strong { color:#172033; font-size:.98rem; }
.coteia-contact-ad-demo small { color:#64748b; font-size:.78rem; }

/* Adaptação do HTML demonstrativo aprovado quando usado em PUBLICIDADE / ADS. */
.coteia-contact-sidebar-row--ads .adsdemo-display-card {
	height:100%;
	max-height:100%;
	margin:0 auto!important;
	border-radius:10px!important;
	display:flex!important;
	flex-direction:column!important;
}
.coteia-contact-sidebar-row--ads .adsdemo-display-banner {
	flex:1 1 auto;
	min-height:0;
	padding:12px 14px 8px!important;
	overflow:hidden;
}
.coteia-contact-sidebar-row--ads .adsdemo-display-label { top:7px!important; right:10px!important; padding:1px 7px!important; font-size:.55rem!important; }
.coteia-contact-sidebar-row--ads .adsdemo-display-banner h3 { margin:0 0 4px!important; font-size:clamp(.92rem,1.35vw,1.16rem)!important; line-height:1.08!important; max-width:78%!important; }
.coteia-contact-sidebar-row--ads .adsdemo-display-banner p { margin:0 0 7px!important; font-size:.68rem!important; line-height:1.25!important; max-width:96%!important; }
.coteia-contact-sidebar-row--ads .adsdemo-display-cta { padding:5px 10px!important; font-size:.68rem!important; line-height:1.1!important; }
.coteia-contact-sidebar-row--ads .adsdemo-display-footer { flex:0 0 auto; padding:5px 8px!important; font-size:.58rem!important; line-height:1.15!important; gap:6px; }

.coteia-contact-products {
	display:grid;
	flex:1 1 auto;
	grid-auto-rows:minmax(0,1fr);
	gap:14px;
	min-height:0;
	height:100%;
}
.coteia-contact-product-card {
	display:grid;
	height:100%;
	align-items:center;
	grid-template-columns:minmax(0,1fr);
	gap:12px;
	padding:12px;
	border:1px solid #e7ecf3;
	border-radius:12px;
	background:#fff;
	color:inherit;
	text-decoration:none;
	transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.coteia-contact-product-card.has-image { grid-template-columns:70px minmax(0,1fr); }
.coteia-contact-product-card.is-clickable { cursor:pointer; }
.coteia-contact-product-card.is-clickable:hover { border-color:rgba(41,104,200,.5); box-shadow:0 8px 20px rgba(41,104,200,.12); transform:translateY(-1px); }
.coteia-contact-product-image { display:flex; align-items:center; justify-content:center; align-self:center; min-height:0; height:64px; overflow:hidden; border-radius:9px; background:#f8fafc; }
.coteia-contact-product-image img { width:100%; height:100%; max-height:64px; object-fit:contain; }
.coteia-contact-product-image--placeholder { color:#94a3b8; }
.coteia-contact-product-image--placeholder svg { width:42px; height:42px; }
.coteia-contact-product-body h3 { margin:0 0 8px; color:#172033; font-size:.95rem; line-height:1.3; }
.coteia-contact-product-price { display:flex; gap:8px; align-items:baseline; justify-content:space-between; width:100%; margin:0; }
.coteia-contact-product-price del { color:#94a3b8; font-size:.78rem; text-align:left; white-space:nowrap; }
.coteia-contact-product-price strong { margin-left:auto; color:#2968c8; font-size:.98rem; text-align:right; white-space:nowrap; }

@media (min-width:901px) {
	.coteia-contact-main,
	.coteia-contact-sidebar { height:100%; }
}

@media (max-width:900px) {
	.coteia-contact-layout--with-sidebar { grid-template-columns:1fr; }
	.coteia-contact-sidebar { height:auto; }
	.coteia-contact-sidebar.has-ads-row { display:grid; }
	.coteia-contact-sidebar.has-ads-row .coteia-contact-sidebar-row--ads,
	.coteia-contact-sidebar.has-ads-row .coteia-contact-sidebar-row--content { flex:none; max-height:none; }
	.coteia-contact-sidebar-row--content { overflow:visible; }
	.coteia-contact-products { height:auto; grid-auto-rows:auto; }
}

@media (max-width:767px) {
	.coteia-contact-page .coteia-site-main > .coteia-container { padding-top:24px; padding-bottom:40px; }
	.coteia-contact-page .coteia-site-main article > h1 { margin-bottom:20px; }
	.coteia-contact-row,
	.coteia-contact-sidebar-row { padding:14px; border-radius:10px; }
	.coteia-contact-info-list { grid-template-columns:1fr; }
}
@media (max-width:700px) { .coteia-contact-grid { grid-template-columns:1fr; gap:0; } }
@media (max-width:480px) {
	.coteia-contact-social-link { width:100%; justify-content:center; }
	.coteia-contact-product-card.has-image { grid-template-columns:64px minmax(0,1fr); }
	.coteia-contact-product-image { height:58px; }
	.coteia-contact-product-image img { max-height:58px; }
}

/* Canais públicos flexíveis — 1, 2 ou 3 itens na linha. */
.coteia-contact-info-list.is-count-1 { grid-template-columns:minmax(0,1fr); }
.coteia-contact-info-list.is-count-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.coteia-contact-info-list.is-count-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.coteia-contact-info-list .coteia-contact-info-item {
	flex-direction:row;
	align-items:center;
	gap:12px;
}
.coteia-contact-info-icon {
	display:grid;
	flex:0 0 38px;
	width:38px;
	height:38px;
	place-items:center;
	border-radius:10px;
	background:rgba(41,104,200,.08);
	color:#2968c8;
	font-size:18px;
}
.coteia-contact-info-copy {
	display:flex;
	min-width:0;
	flex:1 1 auto;
	flex-direction:column;
	gap:4px;
}
@media (max-width:767px) {
	.coteia-contact-info-list.is-count-1,
	.coteia-contact-info-list.is-count-2,
	.coteia-contact-info-list.is-count-3 { grid-template-columns:1fr; }
}

/* Canais públicos: título acima do valor, independentemente do tamanho do conteúdo. */
.coteia-contact-info-copy {
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	justify-content:center;
	gap:5px;
	line-height:1.35;
}
.coteia-contact-info-copy strong,
.coteia-contact-info-copy > span {
	display:block;
	width:100%;
	min-width:0;
}
.coteia-contact-info-copy strong {
	margin:0;
	white-space:normal;
}
.coteia-contact-info-copy > span {
	color:#334155;
	overflow-wrap:anywhere;
	word-break:normal;
}

.coteia-contact-info-list > div.coteia-contact-info-item{cursor:default;}

/* Slots públicos: <a> e <div> compartilham o mesmo card; somente links têm hover/interação. */
.coteia-contact-info-list .coteia-contact-info-item {
	display:flex;
	flex-direction:row;
	align-items:center;
	gap:12px;
	min-width:0;
	padding:12px 14px;
	border:1px solid #e2e8f0;
	border-radius:10px;
	color:#334155;
	text-decoration:none;
	transition:border-color .18s ease, background .18s ease;
}
.coteia-contact-info-list div.coteia-contact-info-item {
	cursor:default;
}

/* Confirmação visual e estado alternativo do formulário. */
.coteia-contact-human-check {
	display:flex;
	align-items:flex-start;
	gap:10px;
	margin:18px 0 4px;
	padding:12px 14px;
	border:1px solid #dbe4f0;
	border-radius:10px;
	background:#f8fbff;
	color:#334155;
	font-size:.94rem;
	line-height:1.4;
	cursor:pointer;
}
.coteia-contact-human-check input {
	flex:0 0 auto;
	margin-top:2px;
	width:18px;
	height:18px;
	accent-color:#2968c8;
}
.coteia-contact-form-disabled-wrap {
	padding:18px 20px;
	border:1px solid #dbe4f0;
	border-radius:12px;
	background:#f8fbff;
}
.coteia-contact-form-disabled-wrap h3 {
	margin:0 0 8px;
	color:#172033;
	font-size:1.12rem;
}
.coteia-contact-form-disabled-wrap p:last-child {
	margin-bottom:0;
}

/* Espaçamento entre confirmação humana e ação de envio. */
.coteia-contact-human-check {
	margin-bottom:20px;
}
.coteia-contact-submit {
	margin-top:0;
}

/* Fluxo progressivo do formulário: confirmação e envio surgem apenas quando aplicáveis. */
.coteia-contact-human-check[hidden],
.coteia-contact-submit[hidden] {
	display:none !important;
}
.coteia-contact-submit button:disabled {
	opacity:.55;
	cursor:not-allowed;
}
