@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700&display=swap');

.form-container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 0;
}

.form-container .button,
.form-container button,
.form-container fieldset,
.form-container input,
.form-container select,
.form-container textarea {
    margin-bottom: 0;
}

.talent-bank-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.form-section-box .form-section-body {
  background: rgba(248, 248, 248, 0.5);
  box-shadow: inset 5px 0px 0px rgba(221, 221, 221, 0.5);
  padding: 0px 30px 24px;
  width: 100%;
}

.form-section-container {
  width: 100%;
}

.form-section-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1.875rem;
  margin-top: 1.875rem;
} 

.form-section-title,
.input-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #777771;
}

.form-section-title span,
.input-label span {
  color: #E04562;
}

.input {
  font-family: "Plus Jakarta Sans", sans-serif;
  padding: 0.5rem;
  width: 100%;
  border-radius: 6px !important;
  border: 1px solid #e6e6e6;
  font-size: 1rem;
  color: #000;
  outline: 0;
  margin-top: 0.2rem;
  width: -webkit-fill-available;
}

.input-subtitle {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.75rem;
  color: #777771;
  margin-top: 0.2rem;
}

.talent-bank-form .button {
  background-color: #1ABCA1 !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-size: 0.875rem !important;
  font-family: inherit !important;
  padding: 0.625rem 1.25rem !important;
  border: 1px solid #1ABCA1 !important;
  outline: 0 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: 0.2s ease !important;
  align-self: flex-start !important;
}

.talent-bank-form .button:hover {
  background-color: #138f70 !important;
}

.select:hover,
.textarea:focus,
.input:focus {
  border: 1px solid #138f70;
}

.textarea {
  resize: vertical;
}

#autorizacao_dados+span {
  width: 2rem;
}

/* Interest Areas */
.interest-area-section {
  display: grid;
  grid-template-areas: "adm man";
  width: 100%;
  justify-content: space-between;
}

.interest-area-section .sub-area-container.adm {
  grid-area: adm;
}

.interest-area-section .sub-area-container.man {
  grid-area: man;
}

.sub-area-options {
  margin-left: 2rem;
}

.interest-area-section label {
  font-weight: 400;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-right: 1.25rem;
  margin-top: 0.625rem;
  font-size: 0.875rem;
  font-weight: 400;
}

.checkbox-container .checkmark {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  text-align: center;
}

.checkbox-container input:checked + .checkmark {
  border-color: #138f70;
}

.checkbox-container input:checked + .checkmark:after {
  content: '\2714';
  font-size: 0.875rem;
  color: #138f70;
  text-align: center;
}

/* Genders */
.radio-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-top: 0.625rem;
  gap: 0.25rem;
}

.radio-container label {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.gender-input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  outline: none;
  margin-right: 5px;
  cursor: pointer;
  padding: 1px;
}

.gender-input[type="radio"]:checked {
  background-color: #138f70;
  border: 4px solid #e6e6e6;
  outline: 1px solid green;
}

/* Curriculum Upload */
.file-input-container {
  margin-top: 1.25rem;
}

.file-input {
  display: none;
}

.input-file-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  display: inline-block;
  background-color: #1ABCA1;
  color: #fff;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  width: max-content;
  padding: 0.625rem;
  outline: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
  margin-right: 0.625rem;
}

.input-file-label:hover {
  background-color: #159C85;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.6);
}

.file-name {
  display: inline-block;
}

.file-subtitle {
  margin-top: 0.625rem;
  font-size: 0.75rem;
  font-weight: 400;
}

/* Responsive */
@media screen and (max-width: 576px) {
  .interest-area-section,
  .form-section-row {
    flex-direction: column;
  }

  .interest-area-section {
    display: flex;
  }

  .talent-bank-form .button {
    width: 100%;
  }

  #mensagem_responsavel {
    font-size: 0.875rem;
  }

  #autorizacao_dados+span {
    width: 6rem;
  }
}

.toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  position: fixed;
  z-index: 1;
  left: 50%;
  padding: 10px 20px;
  bottom: 30px;
  font-size: 17px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.6s, bottom 0.6s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

.toast.success {
  background-color: #4CAF50;
}

.toast.error {
  background-color: #f44336;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group input {
  width: auto;
}

.input-group input[name="ddd_tel"],
.input-group input[name="ddd_cel"] {
  max-width: 90px;
  min-width: 90px;
}
.input-group-ddd {
  max-width: 90px;
  min-width: 90px;
}

.input-group input[name="telefone"],
.input-group input[name="celular"] {
  width: 100%;
}

.input-with-count {
  position: relative;
  display: flex;
}

.input {
  flex-grow: 1;
}

.char-count {
  position: absolute;
  right: 10px; /* Adjust as needed */
  top: 50%;
  transform: translateY(-50%);
  color: #888; /* Light grey color; adjust as needed */
  font-size: 0.75rem; /* Smaller font size for subtlety */
  background: rgba(255, 255, 255, 0.8); /* Slightly transparent background */
  padding: 0 5px; /* Padding to not stick to the border */
  border-radius: 3px; /* Rounded corners */
  pointer-events: none; /* Allows clicking through to the input */
}

.input:focus + .char-count {
  color: #555; /* Darker color when input is focused */
}

.xsPlaceholder input::placeholder {
  font-size: 14px;
  width: 100%;
}

.xsPlaceholder {
  width: 100%;
}
.flatpickr-current-month {
  display: flex !important;
  justify-content: space-between;
}

.input-error-feedback {
  display: block;
  background-color: #F9E4E8;
  color: #E04562;
  font-size: 12px;
  padding: 2px 10px;
  margin-top: 5px;
  border-radius: 2px;
}

.input-error {
  border: 1px solid #E04562;
}

.form-section-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}