/* =============================================================
   FORMULÁRIOS, BOTÕES E FOCO
============================================================= */

/* -------------------------------------------------------------
   FORMULÁRIOS
------------------------------------------------------------- */
label {
  display: block;
  margin: 18px 0 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(84, 42, 52, 0.04);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.62;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
  outline: none;
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(155, 86, 102, 0.12);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

input[type="file"] {
  padding: 9px 12px;
  font-size: 0.84rem;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 17px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
  background: var(--rose);
  color: var(--on-rose);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.cta {
  width: 100%;
  margin-top: 22px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: var(--brand-ink);
  box-shadow: 0 10px 26px rgba(120, 59, 74, 0.24);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, opacity 0.2s ease;
}

.cta:hover:not(:disabled) {
  box-shadow: 0 14px 32px rgba(120, 59, 74, 0.3);
  transform: translateY(-1px);
}

.cta:active:not(:disabled) {
  transform: translateY(0);
}

.cta:disabled {
  opacity: 0.44;
  box-shadow: none;
  cursor: not-allowed;
}

/* -------------------------------------------------------------
   CONSENTIMENTO LGPD (AGENDAMENTO)
------------------------------------------------------------- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.consent span {
  flex: 1;
  min-width: 0;
  color: var(--muted);
}

.consent a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent:has(input:focus-visible) {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}
