@import '../../scss/mixin';

.formRecapTitle {
  @include text(display4);
  margin-bottom: size(3);
}

.formRecapFields {
  display: flex;
  flex-direction: column;
  gap: size(4);

  @include bp(sm) {
    gap: size(2);
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
  }
}

.formRecapCta {
  margin: 0 auto;
  order: 3;

  @include bp(sm) {
    order: 1;
    margin: 0;
  }
}

.formRecapField {
  width: 100%;

  @include bp(sm) {
    width: auto;
    min-width: 250px;
  }

  input[type='text'],
  input[type='email'] {
    @include text(label-2);
    appearance: none;
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 size(4);
    border-radius: 5px;
    border: var(--llm-border);
    font-family: var(--llm-input-font-family);
    background: var(--llm-input-background);
    color: var(--llm-input-foreground);
  }
}

.formRecapFieldPrivacy {
  width: 100%;
  order: 99;
  position: relative;
  order: 2;

  @include bp(sm) {
    order: auto;
  }

  label {
    @include text(body5);
    line-height: 140%;
    position: relative;
    display: block;
    padding-left: 24px;
    pointer-events: auto;
    cursor: pointer;

    &:before,
    &:after {
      content: '';
      display: block;
      position: absolute;
      width: 16px;
      height: 16px;
      top: 2px;
      left: 0;
      border-radius: 2px;
      border: var(--llm-checkbox-border);
    }

    &:after {
      display: none;
      background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjEyIiB2aWV3Qm94PSIwIDAgMTIgMTIiIHdpZHRoPSIxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtNC42NjYyNSA5LjUwNTQyLTIuNzYtMi43NiAxLjI1Nzc4LTEuMjU3NzggMS41MDIyMiAxLjUwNjY3IDQuMzkxMTEtNC4zOTU1NiAxLjI1Nzc0IDEuMjU3Nzh6IiBmaWxsPSIjZmZmIi8+PC9zdmc+');
      background-repeat: no-repeat;
      background-position: center;
    }
  }

  input {
    position: absolute;
    opacity: 0;

    &:checked+label:after {
      display: block;
    }
  }
}
