/**
 * @file
 * Form component's rules.
 *
 * Defines rules for form components : input, label, etc.
 *
 */

/**
 * Forms bases
 */
input,
textarea {
	max-width: 100%;
}

form {
  margin-left: 1rem;
}
.confirm-parent, .password-parent {
  max-width: none;
}
fieldset{
  border: 0;
  margin: 0;
  padding: 0;
}

tr.odd .form-item, tr.even .form-item {
  margin: 1rem 0;
}
.label-wrapper {
  display: flex;
  align-items: center;
}

/**
 * Form
 */


.form form{
  background-color: var(--brand-secondary-light-color);
  margin: 0;
  padding: 2rem;
}
.form input[type="submit"] {
  background-color: var(--brand-primary-color);
  background-image: url('../../images/arrow--white.svg');
  background-repeat: no-repeat;
  background-position: 0.778rem 50%;
  background-size: 16px 14px;
  color: var(--brand-white);
  transition: color 0.2s, background-color 0.2s;
  border-radius: 2px;
  position: relative;
  display: block;
  line-height: 1.2;
  padding: 0.5rem 1rem 0.5rem 2rem;
  border: none;
  margin: 1rem 0 1rem;
}
.form input[type="submit"]:hover {
  background-color: var(--brand-secondary-color);
  text-decoration: none;
}
@media (min-width: 768px) {
  .form form{
    padding: 3rem;
  }
}


/**
 * Description
 */

.form-composite > .fieldset-wrapper > .description, .form-item .description {
  font-size: 0.813rem;
  max-width: 327px;
  margin: 0.5rem 0;
  font-size: var(--paragraph-size-small);
}
.form-composite > .fieldset-wrapper > .description, .form-item .description a{
  text-decoration: underline;
}
@media all and (min-width: 1300px) {
  .form-composite > .fieldset-wrapper > .description, .form-item .description {
    font-size: 0.778rem;
    max-width: 349px;
  }
}

/**
 * Input Text
 */
label:not(.option) {
  display: block;
}
input[type="text"],
input[type="password"],
input[type="email"] {
  padding: 0.5rem 1rem;
  border-radius: 2px;
  border: 1px solid var(--brand-secondary-color);
  max-width: 327px;
  margin: 0.5rem 0;
  width: 100%;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  border: 1px solid var(--brand-primary-color);
}
@media all and (min-width: 750px) {
  input[type="text"],
  input[type="password"],
  input[type="email"] {
    max-width: 348px;
  }
}

/**
 * Input Radio
 */

.form-type-radio {
  position: relative;
}
.form-type-radio .optional {
  display: none;
}
.form-type-radio label {
  padding: 0.5rem 1rem 0.5rem 2.875rem;
  background-color: var(--brand-primary-light-color);
  border-radius: 2px;
  max-width: 300px;
  display: block;
  transition: background-color 0.1s;
  width: 100%;
}
.form-type-radio label:hover {
  background-color: var(--brand-primary-medium-color);
}
input[type="radio"] {
  appearance: none;
  background-color: var(--brand-primary-light-color);
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 22px;
  height: 22px;
  border: 3px solid var(--brand-primary-color);
  border-radius: 50%;
  display: grid;
  place-content: center;
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  z-index: 1;
}
input[type="radio"]::before {
  content: "";
  width: 0.889rem;
  height: 0.889rem;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--brand-secondary-color);
}
input[type="radio"]:checked {
  border: 4px solid var(--brand-primary-color);
}
input[type="radio"]:checked + label {
  background-color: var(--brand-primary-medium-color);
}
input[type="radio"]:checked::before {
  transform: scale(1);
}
@media all and (min-width: 750px) {
  .form-type-radio {
    max-width: 348px;
  }
}
@media all and (min-width: 1300px) {
  input[type="radio"] {
    width: 24px;
    height: 24px;
  }
}


/**
 * Select List
 */

.form-type-select select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: transparent;
  border: none;
  padding: 0.5rem 40px 0.5rem 0.5rem;
  margin: 0;
  width: 100%;
  cursor: inherit;
  line-height: inherit;
  z-index: 1;
  outline: none;
}
.form-type-select select::-ms-expand {
  display: none;
}
.select {
  display: grid;
  grid-template-areas: "select";
  align-items: center;
  position: relative;
  max-width: 350px;
  border: 1px solid #191E33;
  border-radius: 2px;
  cursor: pointer;
  background-color: var(--brand-white);
  margin-top: 0.5rem;
}
.select select, .select::after {
  grid-area: select;
}
.select::after {
  content: "";
  justify-self: end;
  width: 40px;
  height: 100%;
  background-image: url('../../images/select-arrow.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
  background-color: var(--brand-primary-color);
}
.select:focus-within {
  border: 1px solid var(--brand-primary-color);
}

/**
 * Select Date
 */

.field--type-datetime h4 {
  font-weight: 400;
}
input[type="date"],
input[type="time"] {
  padding: 0.4rem 45px 0.5rem 0.5rem;
  border-radius: 2px;
  border: 1px solid var(--brand-secondary-color);
  margin: 0.5rem 0;
  width: 100%;
  background-position: right center;
  background-size: 43px;
  background-repeat: no-repeat;
  position: relative;
}
input[type="time"] {
  max-width: 170px;
  background-image: url('../../images/icon-time.svg');
}
input[type="date"] {
  max-width: 200px;
  background-image: url('../../images/icon-date.svg');
}
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
  background-image: url("../../images/icon-date.svg");
  width: 40px;
  height: 40px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 9;
}
input[type="date"]:focus,
input[type="time"]:focus {
  border: 1px solid var(--brand-primary-color);
}

/**
 * Textaera
 */


.form-textarea-wrapper {
  position: relative;
  width: fit-content;
  background-color: var(--brand-white);
}
.form-textarea-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
  background-image: url('../../images/corner-textaera.svg');
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: white;
}
.form-textarea-wrapper textarea {
  border: 1px solid var(--brand-secondary-color);
  min-height: 135px;
  max-width: 327px;
  width: 100%;
  border-radius: 2px;
  background-color: transparent;
  z-index: 2;
  position: relative;
}
.form-textarea-wrapper textarea:focus {
  border: 1px solid var(--brand-primary-color);
}
.form-textarea-wrapper textarea:focus-visible {
  outline: none;
}
@media all and (min-width: 750px) {
  .form-textarea-wrapper textarea {
    min-height: 180px;
    max-width: 433px;
  }
}

/**
 * Checkbox
 */


.form-type-checkbox {
  display: flex;
  gap: 0.5rem;
  cursor: pointer;
}
.form-type-checkbox label {
  user-select: none;
  cursor: pointer;
}
.form-type-checkbox .label-wrapper {
  width: calc(100% - calc(24px + 0.5rem));
  max-width: 500px;
}
.form-type-checkbox a {
  text-decoration: underline;
}
.form-type-checkbox em {
  font-style: normal;
}
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--brand-primary-light-color);
  margin: 0;
  font: inherit;
  color: currentColor;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border: 2px solid var(--brand-primary-color);
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
}
input[type="checkbox"]::before {
  content: "";
  width: 14px;
  height: 10px;
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  background-image: url('../../images/check.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
input[type="checkbox"]:hover {
  background-color: var(--brand-primary-color);
}
input[type="checkbox"]:checked {
  background-color: var(--brand-primary-color);
}
input[type="checkbox"]:checked::before {
  transform: scale(1);
}
input[type="checkbox"]:focus {
  outline: none;
}


/**
 * Product Variation Attribute Radio Button
 */


.field--widget-commerce-product-variation-attributes .form-radios {
}
.field--widget-commerce-product-variation-attributes .form-type-radio {
  display: block;
  max-width: 350px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.field--widget-commerce-product-variation-attributes input[type="radio"] {
  display: none;
}
.field--widget-commerce-product-variation-attributes .form-type-radio label {
  padding: 1rem 2.5rem 1rem 3rem;
  font-weight: bold;
  max-width: 350px;
  width: 100%;
  border: 2px solid var(--brand-primary-color);
  background-color: var(--brand-white);
}
.field--widget-commerce-product-variation-attributes .form-type-radio label:hover {
  background-color: var(--brand-primary-light-color);
}
.field--widget-commerce-product-variation-attributes .form-type-radio input[type="radio"]:checked + .label-wrapper label {
  background-color: var(--brand-primary-color);
  color: var(--brand-white);
}
.field--widget-commerce-product-variation-attributes .form-type-radio input[type="radio"]:checked + .label-wrapper label::before {
  content: '';
  display: block;
  width: 16px;
  height: 10px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url('../../images/check.svg');
  position: absolute;
  top: 50%;
  left: 1.25rem;
  transform: translateY(-50%);
}

@media all and (min-width: 750px) {
  .field--widget-commerce-product-variation-attributes .form-radios {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
  }
  .field--widget-commerce-product-variation-attributes .form-type-radio {
    margin:0;
  }
  .field--widget-commerce-product-variation-attributes .form-type-radio label {
    padding: 2.5rem;
    text-align: center;
  }
  .field--widget-commerce-product-variation-attributes .form-type-radio input[type="radio"]:checked + .label-wrapper label::before {
    top: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
  }
  .field--widget-commerce-product-variation-attributes .form-type-radio input[type="radio"]:checked + .label-wrapper label > div {
    transform: translateY(0.25rem);
  }
}

/**
 * Mutiple phone reservation form
 */

.form-item[data-drupal-selector="edit-field-curists-0-subform-field-phone"],
.form-item[data-drupal-selector="edit-login-register-customer-profiles-0-entity-field-phone"],
.form-item[data-drupal-selector="edit-login-register-field-phone-number"],
.form-item[data-drupal-selector="edit-field-phone-number"],
.curist-form-item .field--name-field-phone .form-item[data-drupal-selector]  {
  display: flex;
  align-items: last baseline;
  gap: 0 1rem;
  flex-wrap: wrap;
}
.form-item[data-drupal-selector="edit-field-curists-0-subform-field-phone"] input[type="submit"],
.form-item[data-drupal-selector="edit-login-register-customer-profiles-0-entity-field-phone"] input[type="submit"],
.form-item[data-drupal-selector="edit-login-register-field-phone-number"] input[type="submit"],
.form-item[data-drupal-selector="edit-field-phone-number"] input[type="submit"],
.curist-form-item .field--name-field-phone .field-add-more-submit {
  display: inline-block;
  position: relative;
  color: var(--brand-secondary-color);
  z-index: 1;
  font-size: 1rem;
  border-bottom: 1px solid var(--brand-primary-color);
  border-top: none;
  border-left: none;
  border-right: none;
  background-color: transparent;
  margin: 1rem 0;
}
.form-item[data-drupal-selector="edit-field-curists-0-subform-field-phone"] input[type="submit"]:hover,
.form-item[data-drupal-selector="edit-login-register-customer-profiles-0-entity-field-phone"] input[type="submit"]:hover,
.form-item[data-drupal-selector="edit-login-register-field-phone-number"] input[type="submit"]:hover,
.form-item[data-drupal-selector="edit-field-phone-number"] input[type="submit"]:hover{
  color: var(--brand-primary-color);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 242, 241, 0) 0%, rgba(255, 134, 116, 0) 0.01%, rgba(255, 242, 241, 0) 46.88%, var(--brand-primary-light-color) 50%, var(--brand-primary-light-color) 100%);
  border: none;
}
.phone-form-values-item .form-item{
  margin: 0;
}
.phone-form-values-item .optional{
  display: none;
}
.phone-form-values-item .form-item input{
  margin-bottom: 0;
}
.phone-form-header__name p{
  font-weight: normal;
  margin: 0;
}
.form-item .optional {
  font-size: var(--paragraph-size-small);
  margin-left: 5px;
}
.form-required::after {
  content: none
}

/**
 * File type Input
 */

.field--type-file {
  margin: 0.5rem 0;
  padding: 1rem;
  background-color: var(--brand-white);
  max-width: 400px;
}
.field--type-file .optional {
  display: none;
}
.field--type-file .form-item{
  margin: 0;
}
.field--type-file label {
  font-weight: 700;
  font-family: FuturaLT-Heavy, sans-serif;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.field--type-file label .optional {
  display: none;
}
.field--type-file .input-file input {
  display: none;
}
.field--type-file .input-file label {
  background-color: var(--brand-primary-color);
  color: var(--brand-white);
  transition: color 0.2s, background-color 0.2s;
  border-radius: 2px;
  position: relative;
  display: inline-block;
  line-height: 1.2;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  border: none;
  cursor: pointer;
}
.field--type-file .input-file label:hover {
  background-color: var(--brand-secondary-color);
  text-decoration: none;
}
.field--type-file .form-submit {
  border: none;
  background-color: transparent;
  background-image: url('../../images/close.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 30px;
  height: 30px;
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
}

/**
 * Group Files
 */

.group-files .fieldset-wrapper {
  display: flex;
  flex-direction: column;
}

.group-files .fieldset-wrapper > :last-child {
  order: -1;
}

/* .group-files .fieldset-wrapper > :first-child {
  order: 2;
}
.group-files .fieldset-wrapper > :nth-child(2){
  order: 3;
} */


/**
 * Register
 */

.form-item-login-register-name .optional,
.form-item-login-register-password .optional,
.form-item-login-register-mail .optional,
.form-item-login-register-customer-profiles-0-entity-field-birthday-0-value-date .optional,
.form-item-payment-information-billing-information-field-birthday-0-value-date .optional {
  display: none;
}

.form-item-login-register-customer-profiles-0-entity-address-0-address-address-line2 .visually-hidden,
.form-item-payment-information-billing-information-address-0-address-address-line2 .visually-hidden {
  position: static !important;
  overflow: hidden;
  clip: none;
  width: initial;
  height: initial;
  word-wrap: normal;
}

/**
 * Password policy
 */

#password-policy-status {
  font-weight: 400;
  color: #555555;
  font-size: 0.85em;
}
#password-policy-status thead{
  display: none;
}
#password-policy-status tr td:not(:last-child){
  display: none;
}
#password-policy-status .password-policy-constraint-passed::before,
#password-policy-status .password-policy-constraint-failed::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 6px 10px 6px 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
#password-policy-status .password-policy-constraint-failed::before {
  background-image: url("../../images/close-pass.svg");
}
#password-policy-status .password-policy-constraint-passed::before {
  background-image: url("../../images/check-pass.svg");
}


/**
 * Contact form
 */
.webform-submission-contact-add-form .form-type-managed-file {
  max-width: none;
}
.webform-submission-contact-add-form .form-managed-file {
  display: grid;
  gap: 1rem;
  justify-content: flex-start;
}
.webform-submission-contact-add-form .form-managed-file label {
  margin: 0;
}
.webform-submission-contact-add-form .form-type-managed-file .button.js-hide{
  display: none;
}
.webform-submission-contact-add-form .form-type-managed-file .form-submit {
  border: none;
  width: initial;
  height: initial;
  text-indent: 0;
  overflow: hidden;
  position: relative;
  margin: 0;
}

.webform-submission-contact-add-form .form-item-inscription-newsletter .optional {
  display: none;
}

/**
 * Flexi cure new custom code
 */

body.has-duration-free .postal-block,
body.has-duration-free .field--type-datetime[data-drupal-selector="edit-field-date-stay-wrapper"] ,
body.has-duration-free [data-drupal-selector="edit-purchased-entity-0-attributes-attribute-number-of-curists"],
body.has-duration-free .price_block,
body.has-duration-free .field--name-field-curists,
body.has-duration-free .form-actions,
body.has-duration-free .online-block {
  display: none !important;
}


body.reservation-online [data-drupal-selector="edit-purchased-entity-0-attributes-attribute-number-of-curists"],
body.reservation-online .price_block,
body.reservation-online .field--name-field-curists,
body.reservation-online .form-actions,
body.reservation-online .online-block
 {
  display: block !important;
 }
body.reservation-online .field--type-datetime[data-drupal-selector="edit-field-date-stay-wrapper"] {
  display: flex !important;
}

body.reservation-postal .postal-block {
  display: flex !important;
}

/* Bloquer les interactions sur la durée en mode postal */
body.reservation-postal fieldset.fieldgroup.form-wrapper[id^="edit-purchased-entity-0-attributes-attribute-duration-free--"] .form-radios {
  pointer-events: none;
}

body.reservation-postal fieldset.fieldgroup.form-wrapper[id^="edit-purchased-entity-0-attributes-attribute-duration-health-stay--"] .form-radios {
  pointer-events: none;
}

body.reservation-postal  .cure__info.cure__info--clone {
  display: none;
}
.online-block {
  max-width: 730px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.online-block p:first-of-type {
  color: var(--brand-primary-color);
  font-size: var(--heading-size);
  text-align: center;
  font-weight: 700;
}

.reservation-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 64px auto;
  max-width: 730px;
  width: 100%;
}
.reservation-tabs__btn {
  border: 1px solid var(--brand-primary-color);
  padding: 36px 1rem;
  text-align: center;
  cursor: pointer;
  background-color: var(--brand-white);
  transition: ease all 150ms;
  height: 100%;
  display: flex;
  justify-content: center;
  font-weight: 700;
  align-items: center;
}
.reservation-tabs__btn:hover {
  background-color: var(--brand-primary-light-color);
}
.reservation-tabs__btn.active {
  background-color: var(--brand-primary-color);
  color: #fff;
}

.postal-block {
  max-width: 730px;
  width: 100%;
  background-color: #F5F7FA;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin: auto;
  text-align: center;
}
.postal-block h2 {
  color: var(--brand-primary-color);
  margin: 0;
}
.postal-block p {
  margin: 0;
}
.postal-block__address {
  background-color: #fff;
  padding: 18px;
  width: 100%;
}
.postal-block__btn {
  background-color: var(--brand-primary-color);
  color: #fff !important;
  padding: 18px;
  width: 100%;
  max-width: 471px;
}

@media all and (min-width: 1000px){
  .postal-block {
    padding: 2rem 98px;
  }
}




.custom-select__header {
  background-color: #fff;
  padding: 1rem;
  gap: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 150px;
  cursor: pointer;
  width: 100%;
  max-width: 350px;
  margin: auto;
  position: relative;
  border: 1px solid black;
  border-radius: 2px;
}
.custom-select__arrow {
  background: var(--brand-primary-color);
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
  color: white;
}
.custom-select + div .form-type-radio {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
[id^="edit-purchased-entity-0-attributes-attribute-duration-free--"] .custom-select {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.custom-select + div .label-wrapper label {
  cursor: pointer;
  border: none;
  text-align: left;
  justify-content: start !important;
  padding: 0.5rem 1rem !important;
}
[id^="edit-purchased-entity-0-attributes-attribute-duration-free--"] .fieldset-wrapper.dropdown-closed .form-radios {
  display: none;
}
[id^="edit-purchased-entity-0-attributes-attribute-duration-free--"] .fieldset-wrapper.dropdown-open .form-radios {
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0;
  display: flex;
  width: 100%;
  max-width: 350px;
  margin: auto;
  border: 1px solid black;
}
[id^="edit-purchased-entity-0-attributes-attribute-duration-free--"] .fieldset-wrapper.dropdown-open .form-radios label {
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row-reverse;
}
[id^="edit-purchased-entity-0-attributes-attribute-duration-free--"] .fieldset-wrapper.dropdown-open .form-radios label::before {
  position: static !important;
  transform: none !important;
}

fieldset[data-drupal-selector="edit-purchased-entity-0-attributes-attribute-duration-free"].fieldgroup.form-wrapper {
  background-color: #F5F7FA;
  padding: 36px;
  padding-top: 72px;
  max-width: 730px;
  margin: auto;
}
fieldset[data-drupal-selector="edit-purchased-entity-0-attributes-attribute-duration-free"].fieldgroup.form-wrapper legend {
    transform: translateY(72px);
    margin: 0;
}
fieldset[data-drupal-selector="edit-purchased-entity-0-attributes-attribute-duration-free"].fieldgroup.form-wrapper legend span {
    margin: 0 !important;
}

/* HS cure */

[id^="edit-purchased-entity-0-attributes-attribute-duration-health-stay--"] .custom-select {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
[id^="edit-purchased-entity-0-attributes-attribute-duration-health-stay--"] .fieldset-wrapper.dropdown-closed .form-radios {
  display: none;
}
[id^="edit-purchased-entity-0-attributes-attribute-duration-health-stay--"] .fieldset-wrapper.dropdown-open .form-radios {
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0;
  display: flex;
  width: 100%;
  max-width: 350px;
  margin: auto;
  border: 1px solid black;
}
[id^="edit-purchased-entity-0-attributes-attribute-duration-health-stay--"] .fieldset-wrapper.dropdown-open .form-radios label {
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row-reverse;
}
[id^="edit-purchased-entity-0-attributes-attribute-duration-health-stay--"] .fieldset-wrapper.dropdown-open .form-radios label::before {
  position: static !important;
  transform: none !important;
}
fieldset[data-drupal-selector="edit-purchased-entity-0-attributes-attribute-duration-health-stay"].fieldgroup.form-wrapper {
  background-color: #F5F7FA;
  padding: 36px;
  padding-top: 72px;
  max-width: 730px;
  margin: auto;
}
fieldset[data-drupal-selector="edit-purchased-entity-0-attributes-attribute-duration-health-stay"].fieldgroup.form-wrapper legend {
  transform: translateY(72px);
  margin: 0;
}
fieldset[data-drupal-selector="edit-purchased-entity-0-attributes-attribute-duration-health-stay"].fieldgroup.form-wrapper legend span {
  margin: 0 !important;
}