.custom-form {
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  font-family: Arial, sans-serif;
}

.custom-form fieldset {
  margin-bottom: 20px;
  border: none;
  padding: 40px 0;
  border-top: 1px solid #919298;
}

.form-section {
  display: flex;
  flex-wrap: nowrap; /* Ensure sections stay side-by-side */
  align-items: flex-start;
  margin-bottom: 20px;
}

.form-header {
  flex: 1 1 30%; /* Left section occupies 30% of the width */
  margin-right: 80px;
}

.form-header h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  color: var(--e-global-color-abadce1);
  font-family: var(--e-global-typography-5dcc33f-font-family), Sans-serif;
  font-size: var(--e-global-typography-5dcc33f-font-size);
  font-weight: var(--e-global-typography-5dcc33f-font-weight);
  line-height: var(--e-global-typography-5dcc33f-line-height);
}

.form-header p {
  color: var(--e-global-color-21ebde7);
  font-family: var(--e-global-typography-6309541-font-family), Sans-serif;
  font-size: var(--e-global-typography-6309541-font-size);
  font-weight: var(--e-global-typography-6309541-font-weight);
  line-height: var(--e-global-typography-6309541-line-height);
  font-size: 14px;
  color: #666;
}

.form-body {
  flex: 2 1 70%; /* Right section occupies 70% of the width */
}

.form-body label {
  display: block;
  margin-bottom: 5px;
	flex-wrap: wrap;
}

.form-body input,
.form-body select,
.form-body textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-body .form-group {
  display: flex;
  gap: 10px; /* Add spacing between inputs on the same row */
  width: 100%;
  flex-wrap: wrap;
}

.form-body .form-group input {
  flex: 1; /* Ensure inputs within the same row share available space */
  margin: 0 0 10 0 !important;
}

.form-button {
  background-color: #0073aa;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.form-button:hover {
  background-color: #005f8d;
}

@media (max-width: 768px) {
  .form-section {
    flex-wrap: wrap; /* Stack sections vertically on smaller screens */
  }

  .form-header {
    flex: 1 1 100%; /* Full width on smaller screens */
    margin-right: 0;
    margin-bottom: 10px;
  }

  .form-body {
    flex: 1 1 100%; /* Full width on smaller screens */
  }
}

.custom-form .upload-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.upload-field {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: 999px;
  border: 1px solid #919298;
	flex-wrap: nowrap !important;
}

.upload-field:hover {
  background-color: #f3f3f3;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.upload-field label {
  font-size: 14px;
  color: #333;
  margin-right: 10px;
  white-space: nowrap;
}

.upload-field input[type="file"] {
  flex-grow: 1;
  margin-left: 10px;
  border: none;
  font-size: 14px;
  color: #555;
}

.upload-field .upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ddd;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  font-weight: bold;
  color: #555;
  margin-left: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.upload-field .upload-icon:hover {
  background-color: #bbb;
  color: #333;
}

.character-boxes {
  display: flex;
  gap: 5px;
}

.character-boxes input.character-input {
  text-align: center;
  border: 1px solid #ccc;
  font-size: 18px;
  border-radius: 5px;
  outline: none;
}

.character-boxes input.character-input:focus {
  border-color: #4caf50;
  box-shadow: 0 0 5px #4caf50;
}


/* Hide the actual file input
.upload-field input[type="file"] {
  display: none;
}
 */

.upload-field input[type="file"] {
  opacity: 0;
/*  position: absolute; */
	position:relative !important;
  z-index: -9999999999 !important; /* Para evitar interferências de clique */
}

/*
.page-id-3714 .upload-field input[type="file"] {
 display: none;
}
*/

@media (min-width: 769px) {
.upload-field > div {
white-space: nowrap !important;
}
}

/* Style the custom label */
.upload-field .upload-icon {
  display: flex;
  padding: 10px 20px;
  color: white;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
}

.upload-field .upload-icon:hover {
}

/* Container for all inputs */
.character-boxes {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(40px, 1fr)
  ); /* Dynamic columns */
  gap: 5px; /* Space between inputs */
  justify-content: center; /* Center-align inputs in the container */
  margin-top: 15px;
  max-width: 100%; /* Ensure it scales within the screen size */
}

/* Input squares */
.character-input {
  width: 40px; /* Fixed width */
  height: 40px; /* Fixed height */
  text-align: center; /* Center-align text */
  font-size: 20px; /* Larger font size */
  font-weight: bold;
  border: 1px solid #ccc;
  border-radius: 4px; /* Optional: slightly rounded corners */
  background-color: #f9f9f9;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
  outline: none;
}

/* Highlight input on focus */
.character-input:focus {
  border-color: #4caf50; /* Green border */
  background-color: #e8f5e9; /* Slightly green background */
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon svg {
  width: 24px;
  height: 24px;
  fill: #555; /* Adjust color as needed */
}

/* Tabs and Search Bar Layout */
.tabs-with-search {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.tabs-buttons {
  display: flex;
  gap: 10px;
}

.tab-button {
  padding: 10px 15px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
}

.tab-button.active {
  background-color: #0073e6;
  color: #fff;
}

.search-bar {
  position: relative;
}

.search-bar input[type="text"] {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.search-bar button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

/* Tabs Content */
.tabs-content {
  display: none;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.document-list {
  width: 100%;
  border-collapse: collapse;
}

.document-list th,
.document-list td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

.form-button-be {
  background-color: var(--e-global-color-4fca56b);
  font-family: var(--e-global-typography-a1dcd3c-font-family), Sans-serif;
  font-size: var(--e-global-typography-a1dcd3c-font-size);
  font-weight: var(--e-global-typography-a1dcd3c-font-weight);
  line-height: var(--e-global-typography-a1dcd3c-line-height);
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: var(--e-global-color-4e30d05);
  border-radius: 999px 999px 999px 999px;
  padding: 18px 24px 18px 24px;
  width: 100%;
}

.upload-field {
  padding: 8px 24px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: 999px;
  border: 1px solid #919298;
}

.link-terms {
  color: #17479c;
}

.docs-b {
  margin-top: 40px;
}

.heading-title-forms {
  font-family: "Open Sans", Sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 15px !important;
}

.form-input,
label,
input {
  color: var(--e-global-color-21ebde7);
  font-family: var(--e-global-typography-6309541-font-family), Sans-serif;
  font-size: var(--e-global-typography-6309541-font-size);
  font-weight: var(--e-global-typography-6309541-font-weight);
}

.par-form {
  font-family: var(--e-global-typography-6309541-font-family), Sans-serif;
  font-size: var(--e-global-typography-6309541-font-size);
  font-weight: var(--e-global-typography-6309541-font-weight);
  font-size: 14px;
  color: #666;
}

.field-error {
  border: 1px solid red;
  background-color: #ffe6e6;
}

.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 4px;
  display: block;
}

.field-error {
  border: 1px solid red;
  background-color: #ffe6e6;
}

.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 4px;
  display: block;
}

.form-loading {
  font-size: 1em;
  color: #555;
  margin-top: 10px;
}

.form-message {
  font-size: 1em;
  font-weight: bold;
  margin-top: 10px;
}

.field-error {
  border: 1px solid red;
  background-color: #ffe6e6;
}

.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 4px;
}

.field-error {
  color: red;
  font-size: 12px;
  margin-top: 5px;
}
input[type="file"].field-error {
  border: 1px solid red;
}


#custom-form fieldset:first-of-type {
    border-top: 0px;
}

.custom-form fieldset:first-of-type {
    border-top: 0px;
}

input[type="radio"] {
    margin-bottom: 0px !important;
}

.download-btn-form {
	    background-color: #61CE7000;
    font-family: var(--e-global-typography-a1dcd3c-font-family), Sans-serif;
    font-size: var(--e-global-typography-a1dcd3c-font-size);
    font-weight: var(--e-global-typography-a1dcd3c-font-weight);
    line-height: var(--e-global-typography-a1dcd3c-line-height);
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #17479C;
    border-radius: 999px 999px 999px 999px;
    padding: 18px 24px 18px 24px;
    display: flex;
    width: max-content;
	color: #17479C;
	gap: 6px;
	margin: 24px 0;
}

#adesao-form {
background-color: #FFF !important;
	    padding: 20px 60px;
}


.alert-box {
	   padding: 20px 0;
}

