:root {
  --gunmetal: #253746;
  --silver: #727779;
  --white: #FFFFFF;
  --max-width: 1200px;
  --fraunces-font: "fraunces", serif;
  --runda-font: "runda", sans-serif;
  --source-sans-font: "source-sans-3", sans-serif;
}

ul {
  padding: 0;
  margin: 0;
}

.zf-tempHeadBdr, .zf-note {
  display: none;
}

span {
  width: 100%;
}

input, textarea {
  border: none;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--runda-font);
  letter-spacing: 0;
  color: var(--gunmetal);
  margin-bottom: 16px;
  width: 100%;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  font-family: var(--runda-font);
  letter-spacing: -1;
  color: var(--gunmetal);
  line-height: 1.05rem;
  margin-bottom: 4px;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 14px 24px;
  font-family: var(--source-sans-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background-color: var(--gunmetal);
  transition: all 0.2s ease-in-out;
  border-radius: 32px;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: var(--white);
  color: var(--gunmetal);
}

.zf-addresCols select {
  border: none;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--runda-font);
  color: var(--gunmetal);
  background-color: var(--white);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23253746' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) center;
  background-size: 16px;
  margin-bottom: 16px;
}

.zf-addresCols select:focus {
  outline: 3px solid var(--gunmetal);
}

.zf-nameWrapper span, .zf-addresCols {
  display: flex;
  flex-direction: column-reverse;
}

.zf-name .zf-labelName, .zf-address .zf-labelName, .zf-section {
  display: none;
}

.zf-tempContDiv {
  display: flex;
}

.zf-tempContDiv > div, .zf-tempContDiv > span {
  flex: 1;
}

.zf-mSelect select[multiple] {
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--runda-font);
  color: var(--gunmetal);
  background-color: var(--white);
  width: 100%;
  min-height: 160px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 16px;
  box-sizing: border-box;
  appearance: none;
}

.zf-mSelect select[multiple] option {
  padding: 10px 12px 10px 36px;
  position: relative;
  border-radius: 8px;
  margin: 2px 0;
  cursor: pointer;
}

.zf-mSelect select[multiple] option::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid var(--gunmetal);
  border-radius: 4px;
  background: #fff;
}

/* estado de erro no select múltiplo (Zoho adiciona a classe .zf-error) */
.zf-mSelect select[multiple].zf-error {
  border: 2px solid #C62828 !important;
  border-radius: 8px;
}

.zf-mSelect select[multiple] option:checked::before {
  background: var(--gunmetal);
  border-color: var(--gunmetal);
}

.zf-mSelect select[multiple] option:checked::after {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 48%;
  transform: translateY(-50%);
  font-size: 12px;
  color: white;
  font-weight: bold;
}

.zf-mSelect select[multiple] option:hover {
  background-color: rgba(37, 55, 70, 0.08);
}

.zf-mSelect select[multiple] option:checked {
  background-color: rgba(37, 55, 70, 0.15);
}

/* Estilo das mensagens de erro
   IMPORTANT: não forçar display; Zoho controla visibilidade via inline style (display:none/block).
*/
.zf-errorMessage {
  margin-top: -12px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-family: var(--runda-font);
  font-weight: 600;
  line-height: 1.2;
  color: #C62828;
}

input.zf-error,
textarea.zf-error,
select.zf-error {
  border: 2px solid #C62828 !important;
  border-radius: 8px;
}
