We investigate the low-energy electric-dipole response of 40Mg using a 38Mg+n+n three-body model. This model is implemented using a three-body hyperspherical formalism with an analytical transformed harmonic oscillator basis. In this study, two different neutron-neutron interactions are considered: a scalar Gaussian density-dependent central potential and a more realistic finite-range potential which includes central, spin-orbit, and tensor components. We examine how electric-dipole response is affected by the choice of the interaction.