.webform-submission-form {
  display: flex;
  align-items: start;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;

  > .form-wrapper {
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    gap: 1.5rem;
    margin: 0;
    padding: 0;

    label,
    legend,
    div {
      display: flex;
      padding: 0;
      margin: 0;
    }

    > div,
    > fieldset,
    > fieldset .fieldset-wrapper,
    > fieldset .fieldset-wrapper > div {
      display: flex;
      align-items: center;
      justify-content: start;
      width: 100%;
      gap: 0.75rem;
      padding: 0;
      margin: 0;

      label,
      legend {
        width: 140px;
        flex-shrink: 0;
        white-space: nowrap;
      }

      input,
      textarea {
        flex: 1 1 auto; /* si espande per riempire lo spazio rimanente */
        min-width: 0;   /* impedisce che forzi l’overflow */
      }
    }

    /* Textarea */
    div.js-form-type-textarea {
      align-items: start;

      > div {
        flex: 1 1 auto;
        min-width: 0;
      }

      textarea {
        width: auto;
        height: 150px;
        min-height: 150px;
        max-height: 150px;
        resize: none;
      }
    }

    /* Privacy & Cookie Policy */
    div.form-item-privacy-consent {
      justify-content: end;
      width: auto;
      gap: 0.5rem;

      input.form-checkbox {
        margin: 0;
        margin-top: -2px;
      }

      label.option {
        display: flex;
        gap: 0.25rem;
        width: auto !important;

        &::after {
          content: none !important;
        }
      }

      .description {
        margin-left: -0.25rem;

        &::after {
          display: inline-block;
          content: "*";
          --color: #F00 !important;
          color: var(--color);
          margin-left: 0.25rem;
        }
      }
    }

    /* Actions */
    div.form-actions {
      justify-content: center;

      input {
        width: auto !important;
        flex: 0 0 auto !important;
        padding: 0.75rem 3rem;
      }
    }
  }
}
