/* Hallmark · formulário de contato · tema da CTE
 * pre-emit critique: P5 H5 E4 S5 R5 V4
 */
@font-face {
  font-family: 'Archivo';
  src: url('/archivo.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/plex.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --controle: 3.125rem;
  --erro: #a12620;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
[hidden] { display: none !important; }

body {
  margin: 0;
  border-top: .375rem solid var(--yellow);
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.4 var(--font-body);
}

.contato {
  width: min(100%, 29rem);
  margin-inline: auto;
  padding: clamp(1.125rem, 4vw, 2rem);
}

.logo {
  display: block;
  width: 9rem;
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

h1 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  font: 700 clamp(1.65rem, 5vw, 2.25rem)/1.08 var(--font-head);
  letter-spacing: -.025em;
  text-wrap: balance;
}

p { margin: .5rem 0 0; }
section > p { color: var(--muted); }
form { display: grid; gap: .75rem; margin-top: 1rem; }
.campo { display: grid; gap: .25rem; min-width: 0; }
label { color: var(--navy); font-weight: 600; }

input, select, .botao {
  width: 100%;
  min-width: 0;
  min-height: var(--controle);
  border-radius: var(--radius-btn);
  padding: .65rem .8rem;
  font: inherit;
}

input, select {
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
}

select { text-overflow: ellipsis; }
input::placeholder { color: var(--muted); }

.botao {
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.botao:active { transform: translateY(1px); }
.botao:disabled { opacity: .65; cursor: wait; }
.botao--retorno { margin-top: 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--erro); }
.erro { color: var(--erro); font-size: .875rem; }
.privacidade { margin: 0; color: var(--muted); font-size: .8125rem; }

.whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: .75rem;
  color: var(--royal);
  font-weight: 600;
  text-underline-offset: .2em;
  white-space: nowrap;
}

@media (hover: hover) {
  .botao:hover:not(:disabled) { background: var(--yellow-hover); }
  input:hover, select:hover { background: var(--blue-light); }
}
