/* Comanfy - Fale conosco */

.cfc {
	--cfc-cor: #f26b1d;
	--cfc-preto: #000000;
	--cfc-lona: #efece4;
	--cfc-texto: #1c1c1a;
	--cfc-cinza: #5f5f58;
	--cfc-linha: #d9d6cc;
	--cfc-erro: #b3261e;
	color: var(--cfc-texto);
	font-size: 16px;
	line-height: 1.55;
	padding-bottom: 64px;
}

.cfc *, .cfc *::before, .cfc *::after { box-sizing: border-box; }
.cfc [hidden] { display: none !important; }

/* Zera o que vem do tema (com :where, para as regras da página valerem sobre isto). */
.cfc :where(h1, h2, h3) { font-family: inherit; color: inherit; margin: 0; line-height: 1.08; }
.cfc :where(p, ul, ol, dl, dd, dt) { margin: 0; padding: 0; }
.cfc :where(ul, ol) { list-style: none; }
.cfc :where(input, select, textarea, button) { font-family: inherit; }
.cfc :where(label) { margin: 0; max-width: none; font-weight: normal; }
.cfc .breadcrumb { margin: 0; padding-left: 0; padding-right: 0; }

.cfc-largura { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ----- Botões ----- */

.cfc-botao { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--cfc-texto); color: #fff !important; font-size: 15.5px; font-weight: 800; text-decoration: none !important; cursor: pointer; transition: filter 0.15s ease, transform 0.1s ease, background 0.15s ease; }
.cfc-botao:hover { filter: brightness(1.12); }
.cfc-botao:active { transform: translateY(1px); }
.cfc-botao[disabled] { opacity: 0.65; cursor: progress; }
.cfc-botao-cor { background: var(--cfc-cor); color: #150b03 !important; }
.cfc-botao-cor:hover { filter: brightness(1.07); }
.cfc-botao-claro { background: #fff; color: var(--cfc-texto) !important; border: 1.5px solid var(--cfc-texto); min-height: 44px; font-size: 14.5px; }
.cfc-botao-claro:hover { background: var(--cfc-lona); filter: none; }
.cfc-botao-largo { width: 100%; min-height: 56px; font-size: 17px; margin-top: 24px; }
.cfc a:focus-visible, .cfc button:focus-visible { outline: 3px solid var(--cfc-cor); outline-offset: 3px; }

/* ----- Topo ----- */

.cfc-topo { background: var(--cfc-preto); color: #fff; padding: 48px 0 92px; margin-top: 10px; }
.cfc-topo h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; text-wrap: balance; }
.cfc-topo p { margin-top: 14px; font-size: 18px; color: rgba(255, 255, 255, 0.8); max-width: 36em; }

/* ----- Atalhos: sobem por cima do topo ----- */

.cfc-atalhos { margin-top: -56px; position: relative; }
.cfc-atalhos h2 { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.85); margin-bottom: 12px; }
.cfc-atalhos ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cfc-atalhos a { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 18px; background: #fff; border: 1.5px solid var(--cfc-linha); border-radius: 12px; color: var(--cfc-texto) !important; text-decoration: none !important; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1); transition: border-color 0.15s ease, transform 0.15s ease; }
.cfc-atalhos a:hover { border-color: var(--cfc-texto); transform: translateY(-2px); }
.cfc-atalhos svg { flex-shrink: 0; width: 40px; height: 40px; padding: 8px; border-radius: 8px; background: var(--cfc-texto); fill: none; stroke: var(--cfc-cor); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cfc-atalhos strong { display: block; font-size: 16.5px; font-weight: 800; line-height: 1.25; }
.cfc-atalhos small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--cfc-cinza); }

/* ----- Formulário e dados da loja ----- */

.cfc-corpo { padding-top: 44px; scroll-margin-top: 56px; }
.cfc-corpo-grade { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 36px; align-items: start; }
.cfc-cartao { background: #fff; border: 1.5px solid var(--cfc-linha); border-radius: 12px; padding: 34px; }
.cfc-cartao h2, .cfc-loja h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
.cfc-form-texto { margin-top: 6px; color: var(--cfc-cinza); font-size: 14.5px; }
.cfc-form-texto + .cfc-aviso, .cfc-form-texto + .cfc-campo { margin-top: 22px; }

.cfc-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.cfc-grade > .cfc-campo:not(.cfc-meia) { grid-column: 1 / -1; }
.cfc-campo { display: flex; flex-direction: column; gap: 6px; }
.cfc-campo > span { font-size: 14px; font-weight: 700; }
.cfc-campo small { font-weight: 400; color: var(--cfc-cinza); font-size: 13px; }

.cfc input[type=text], .cfc input[type=email], .cfc input[type=tel], .cfc textarea { width: 100%; min-height: 48px; margin: 0; padding: 10px 12px; border: 1.5px solid #c9c6bc; border-radius: 8px; background: #fff; color: var(--cfc-texto); font-size: 16px; line-height: 1.4; box-shadow: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.cfc textarea { min-height: 150px; resize: vertical; }
.cfc input::placeholder, .cfc textarea::placeholder { color: #8d8b83; opacity: 1; }
.cfc input[type=text]:focus, .cfc input[type=email]:focus, .cfc input[type=tel]:focus, .cfc textarea:focus { outline: none; border-color: var(--cfc-texto); box-shadow: 0 0 0 3px rgba(242, 107, 29, 0.3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cfc-cor) 35%, transparent); }

/* Assuntos em forma de etiqueta. */
.cfc-opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.cfc-opcao { position: relative; cursor: pointer; }
.cfc-opcao input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cfc-opcao span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid #c9c6bc; border-radius: 8px; background: #fff; font-size: 15px; font-weight: 600; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.cfc-opcao:hover span { border-color: var(--cfc-texto); }
.cfc-opcao input:checked + span { background: var(--cfc-texto); border-color: var(--cfc-texto); color: #fff; }
.cfc-opcao input:focus-visible + span { outline: 3px solid var(--cfc-cor); outline-offset: 2px; }

/* Dica do assunto: a página que resolve mais rápido. */
.cfc-dica { margin-top: 14px; padding: 14px 16px; border-left: 4px solid var(--cfc-cor); background: var(--cfc-lona); border-radius: 0 8px 8px 0; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; }
.cfc-dica p { flex: 1 1 260px; font-size: 14.5px; }

/* Anexos */
.cfc-solta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 16px; border: 1.5px dashed #b9b6ab; border-radius: 8px; background: #fbfaf7; transition: border-color 0.15s ease, background 0.15s ease; }
.cfc-solta.cfc-sobre { border-color: var(--cfc-texto); background: var(--cfc-lona); }
.cfc-solta svg { flex-shrink: 0; width: 26px; height: 26px; fill: none; stroke: var(--cfc-cinza); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cfc-solta p { flex: 1 1 200px; font-size: 14px; color: var(--cfc-cinza); }
.cfc-arquivos { display: grid; gap: 8px; }
.cfc-arquivos:empty { display: none; }
.cfc-arquivos li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1.5px solid var(--cfc-linha); border-radius: 8px; font-size: 14px; }
.cfc-arquivos img, .cfc-arquivos .cfc-pdf { flex-shrink: 0; width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--cfc-lona); }
.cfc-arquivos .cfc-pdf { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--cfc-cinza); }
.cfc-arquivos .cfc-arquivo-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cfc-arquivos .cfc-arquivo-tamanho { color: var(--cfc-cinza); font-size: 13px; white-space: nowrap; }
.cfc-arquivos button { border: 0; background: none; padding: 6px 4px; color: var(--cfc-texto); font-size: 13.5px; font-weight: 700; text-decoration: underline; cursor: pointer; }

.cfc-dados { margin-top: 12px; font-size: 13.5px; color: var(--cfc-cinza); text-align: center; }
.cfc-dados a { color: var(--cfc-texto); font-weight: 600; text-decoration: underline; }

.cfc-invalido input[type=text], .cfc-invalido input[type=email], .cfc-invalido input[type=tel], .cfc-invalido textarea, .cfc-invalido .cfc-opcao span, .cfc-invalido .cfc-solta { border-color: var(--cfc-erro); }
.cfc-erro { color: var(--cfc-erro); font-size: 13.5px; font-weight: 600; font-style: normal; }
.cfc-aviso { padding: 12px 14px; border-radius: 8px; background: #fdecea; color: #7f1d16; font-weight: 600; font-size: 15px; }
.cfc-aviso + .cfc-campo { margin-top: 18px; }
.cfc-some { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Depois de enviar: o protocolo em forma de etiqueta costurada. */
.cfc-enviada { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; outline: none; }
.cfc-enviada svg { width: 60px; height: 60px; fill: none; stroke: var(--cfc-cor); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.cfc-protocolo { position: relative; display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 20px; border-radius: 5px; background: var(--cfc-texto); color: #fff; }
.cfc-protocolo::before { content: ''; position: absolute; inset: 3px; border: 1px dashed rgba(255, 255, 255, 0.5); border-radius: 3px; }
.cfc-protocolo span { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.cfc-protocolo strong { font-size: 26px; font-weight: 900; line-height: 1; color: var(--cfc-cor); }
.cfc-enviada-guarde { font-size: 14.5px; color: var(--cfc-cinza); }
.cfc-enviada .cfc-botao { margin-top: 6px; }

/* Dados da loja */
.cfc-lado { display: grid; gap: 20px; }
.cfc-loja { background: var(--cfc-lona); border-radius: 12px; padding: 30px 28px; }
.cfc-loja dl { margin-top: 18px; display: grid; gap: 16px; }
.cfc-loja dt { font-size: 13px; font-weight: 700; color: var(--cfc-cinza); }
.cfc-loja dd { margin-top: 2px; font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.cfc-loja a { color: var(--cfc-texto); text-decoration: underline; text-underline-offset: 3px; }
.cfc-seguranca { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border: 1.5px solid var(--cfc-linha); border-left: 4px solid var(--cfc-cor); border-radius: 0 12px 12px 0; background: #fff; }
.cfc-seguranca svg { flex-shrink: 0; width: 28px; height: 28px; fill: none; stroke: var(--cfc-texto); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cfc-seguranca strong { display: block; font-weight: 800; }
.cfc-seguranca p { margin-top: 4px; font-size: 14.5px; color: var(--cfc-cinza); }

@media (max-width: 980px) {
	.cfc-corpo-grade { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.cfc-topo { padding: 38px 0 84px; }
}

@media (max-width: 640px) {
	.cfc-largura { padding: 0 16px; }
	.cfc-topo p { font-size: 16.5px; }
	.cfc-atalhos ul { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.cfc-atalhos a { padding: 14px; }
	.cfc-cartao { padding: 24px 18px; }
	.cfc-grade { grid-template-columns: minmax(0, 1fr); }
	.cfc-loja { padding: 24px 20px; }
	.cfc-arquivos .cfc-arquivo-tamanho { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.cfc-botao, .cfc-opcao span, .cfc-atalhos a, .cfc-solta { transition: none; }
	.cfc-atalhos a:hover { transform: none; }
}
