.inail-form-complesso-1,
.inail-form-complesso-2 {
  margin-bottom: 32px;
}

.inail-form {
  border-radius: 8px;
  padding: 24px;
}

.inail-form h2 {
  color: #19191a !important;
  margin: 0 15px 24px !important;
}

.inail-form h2.inail-h2-with-msg {
  color: #19191a !important;
  margin: 0 15px 16px !important;
}

.inail-form div.inail-form-title {
  color: #19191a !important;
  margin: 0 15px 16px !important;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0px;
  vertical-align: middle;
}

 div.inail-form-general-title {
  color: #19191a !important;
  margin: 0 15px 16px !important;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0px;
  vertical-align: middle;
}

.inail-form-complesso-1 > div:first-child span,
.inail-form-complesso-3 > div:first-child span {
  margin-left: 15px;
}

.inail-form-complesso-1 > div:first-child,
.inail-form-complesso-3 > div:first-child {
  margin-bottom: 40px;
}

.inail-form-complesso-1 > div:nth-child(2) > div:first-child {
  margin-bottom: 24px;
}

.inail-form-complesso-1 hr,
.inail-form-complesso-3 hr {
  margin: 40px 15px;
  border: 1px solid #d4d7d9;
  border-radius: 4px;
}

.inail-form-complesso-1 h4 {
  color: #19191a;
  margin: 0 0 0 15px;
}

.inail-form-complesso-1 .inail-custom-radio-group {
  flex-direction: row;
  gap: 56px;
  margin: 24px 15px 0 !important;
  flex-wrap: wrap;
}

/* .inail-form-complesso-1 button.inail-button-link {
  margin: 24px 15px 0 !important;
} */

.inail-form-complesso-2 h4 {
  margin: 0 15px 24px;
  color: #19191a;
}

.inail-filter-documents-checkbox {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  padding: 8px 0;
  margin: 4px 0;
}

.inail-container-filter-documents {
  display: flex;
  flex-direction: column;
}

.inail-form-complesso-2 .inail-container-filter-documents .inail-label {
  padding: 0 !important;
}

.inail-form-complesso-2 table td {
  background-color: white;
}

.inail-form-complesso-2 .tabella table.table > tbody > tr:last-child {
  border-bottom: none !important;
}

.inail-form-complesso-2 table i {
  color: #54595d;
  font-size: 20px;
}

.inail-form-complesso-2 table a {
  color: #19191a !important;
}

.inail-form-complesso-2 table a:hover {
  color: #19191a !important;
}

.inail-form-complesso-3 div:has(.fa-trash-alt) {
  margin: 36px 0 0;
}

.inail-form-complesso-3 button:has(.fa-trash-alt) {
  margin: 0 !important;
  padding: 0 !important;
}

.inail-spacer {
  height: 36px;
}

@media (max-width: 991px) {
  .inail-spacer {
    display: none;
  }
}

/* Patterns - FORM */
.inail-form-info-message {
  font-family: "Open Sans", sans-serif, semibold !important;
  color: #19191a !important;
  font-size: 14px !important;
  line-height: 20px !important;
  letter-spacing: 0px !important;
  vertical-align: middle !important;
  margin-bottom: 20px;
  font-weight: 700 !important;
}

.inail-legend-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0;
  vertical-align: middle;
  color: #19191a;
  padding: 0 !important;
  margin: 0 15px;
}

.inail-legend-title.inail-first-title {
  position: absolute;
  top: 24px;
  left: 39px;
  margin: 0 !important;
  width: auto !important;
}

.inail-form-complesso-container fieldset.inail-fieldset-container {
  background-color: #f2f2f2;
  padding: 24px;
  border-radius: 8px;
  position: relative;
}

.inail-form-complesso-message {
  font-family: "Open Sans";
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #19191a;
  margin: 48px 15px 40px 15px;
}

.inail-div-first-child {
  margin-top: 56px;
}

@media (min-width: 992px) {
  .inail-date-exp-lav {
    margin-top: -43px;
  }

  #rowExpLav {
    margin-top: 80px;
  }

  #rowLastOcc {
    margin-top: 40px;
  }

  .inail-form-complesso-container .inail-button-danger {
    margin-top: 68px;
  }
}

.inail-form-title-modulo {
  font-family: "Open Sans", sans-serif !important;
  color: #19191a !important;
  font-weight: 600 !important;
  font-size: 24px !important;
  line-height: 32px !important;
  letter-spacing: 0px !important;
  vertical-align: middle !important;
  margin: 15px 15px 20px 15px !important;
  text-transform: none;
}

.inail-form-section-title {
  color: #19191a !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  line-height: 24px !important;
  letter-spacing: 0px !important;
  vertical-align: middle !important;
}

form legend {
  margin-top: unset !important;
}

button[aria-expanded="true"] strong.inail-button-show-more::before {
  content: "Nascondi opzioni";
}

button[aria-expanded="true"] strong {
  position: relative;
}

button[aria-expanded="false"] strong.inail-button-show-more::before {
  content: "Altre opzioni";
}

button[aria-expanded="false"] strong {
  position: relative;
}

.form-grey {
  margin-top: 30px;
}
