/* ═══════════════════════════════════════════════════════════
   FORMS — campos, chips, layout do orçamento
   Usado nas 3 páginas de orçamento (web / arte / vídeo).
═══════════════════════════════════════════════════════════ */

form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
}

.fgroup {
  margin-bottom: 30px;
}

.fgroup:last-of-type { margin-bottom: 0; }

.flabel {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 14px;
}

.flabel .num { color: var(--accent); }
.flabel .opt {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: .06em;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .frow { grid-template-columns: 1fr; }
}

/* Input / textarea base */
.field {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 15px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field::placeholder { color: var(--dim); }

.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

textarea.field {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

/* ───── Chips — radio/checkbox visual (estilo pílula) ───── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 11px 17px;
  font-size: 14px;
  color: var(--dim);
  transition: .2s ease;
  user-select: none;
}

.chip span svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(.6);
  transition: .2s ease;
  color: var(--accent);
}

.chip input:hover ~ span {
  border-color: var(--fg);
  color: var(--fg);
}

.chip input:checked ~ span {
  border-color: var(--accent);
  color: var(--fg);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.chip input:checked ~ span svg {
  opacity: 1;
  transform: scale(1);
}

.chip input:focus-visible ~ span {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
