:root {
  --gcx-bg: #5c7a72;
  --gcx-footer: #475550;
  --gcx-input: #fcfcfc;
  --gcx-label: #ffffff;
  --gcx-button: #ff8b00;
}

/* Fundo gradiente para a página */
html,
body {
  background: linear-gradient(to bottom right, #597771 0%, #6a8a84 30%, #7d9a94 60%, #8ea9a4 100%) !important;
  background-attachment: fixed !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
}

body.PositionC,
.MainElement,
.ContactBody,
.ContactFormBorder {
  background: var(--gcx-bg) !important;
  border: none !important;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--gcx-label) !important;
  border-radius: 14px !important;
  overflow: visible !important;
}

.ContactBody {
  padding: 6px 18px 6px !important; /* Reduzido para formulário mais compacto */
}

/* Cabeçalho */
.ContactHeader {
  height: 56px !important;
  border: none !important;
  background: var(--gcx-bg) !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: 4px 0 0 !important;
}

/* Título bem próximo do logo */
.FormTitle {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 4px 0 8px !important; /* reduzido para ficar mais próximo do logo */
  text-align: left !important;
  line-height: 1.3 !important;
}

.g-FormField2-Label label {
  color: var(--gcx-label) !important;
  font-size: 12px !important; /* Label menor */
  font-weight: 600 !important;
  margin-bottom: 3px !important; /* Espaçamento reduzido */
  line-height: 1.2 !important;
}

/* Campos compactos - Menores e mais arredondados */
.TextBoxContainer {
  margin-bottom: 4px !important;
}

.TextBoxContainer input,
.TextBoxContainer textarea {
  width: 100% !important;
  padding: 3px 8px !important; /* Ainda menor - reduzido verticalmente */
  background: var(--gcx-input) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important; /* Mantém bordas arredondadas */
  color: #1e1e1e !important;
  font-size: 12px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.08) !important;
  transition: all 0.2s ease !important;
  height: auto !important;
  min-height: 24px !important; /* Altura mínima ainda menor */
  line-height: 1.4 !important;
}

.TextBoxContainer input:hover,
.TextBoxContainer textarea:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,.1) !important;
}

.TextBoxContainer input:focus,
.TextBoxContainer textarea:focus {
  outline: none !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.15), 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-1px);
}

/* Checkbox */
input[type="checkbox"] {
  margin-right: 6px !important;
}

/* Botão Chat - Sem fundo, apenas texto branco (sem círculo) */
.Button.Chat {
  background: transparent !important;
  color: #ffffff !important;
  border-radius: 0 !important; /* Removido border-radius circular */
  padding: 7px 24px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  border: none !important;
  margin-top: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}

.Button.Chat:hover {
  background: transparent !important;
  color: #ffffff !important;
  transform: scale(1.02);
  opacity: 0.9;
}

.Button.Chat::before {
  content: "💬";
  margin-right: 6px;
  color: #ffffff !important;
}

/* Garantir que todo o texto dentro do botão seja branco */
.Button.Chat * {
  color: #ffffff !important;
}

/* Rodapé */
.ContactFooter {
  background: var(--gcx-footer) !important;
  border: none !important;
  padding: 7px 14px !important;
  border-radius: 0 0 14px 14px !important;
}

.ButtonsPanel {
  justify-content: flex-start !important;
  gap: 8px;
}

/* Remove "Fornecido por" */
.Branding,
.la-branding,
.la-watermark,
[href*="liveagent"],
[title*="LiveAgent"] {
  display: none !important;
}


/* Remover bordas circuladas de todos os botões do LiveAgent */
button:not(input),
.Button:not(input),
[class*="button"]:not(input),
[class*="Button"]:not(input) {
  border-radius: 0 !important; /* Remove bordas circuladas dos botões */
}
