.container__pqrs-form-v2 {
  --pqrs-primary: #00a592;
  --pqrs-bg-primary: #f2f2f2;
  --pqrs-bg-secondary: #e6e6e6;
  --pqrs-text-primary: #606060;

  max-width: 900px;
  margin: 0 auto;
  color: var(--pqrs-text-primary);

  p {
    line-height: 1.2;
    font-size: 1.3rem;

    + p {
      margin-top: 1rem;
    }

    a {
      color: inherit;
      text-decoration: underline;

      &:hover {
        text-decoration: none;
      }
    }
  }

  .legal-information {
    max-width: 350px;

    .legal-name {
      color: var(--pqrs-primary);
      font-weight: 500;
      font-size: 2.4rem;
      line-height: 1.2;
    }
    .legal-address {
      color: var(--pqrs-primary);
      font-weight: 300;
      font-size: 1.5rem;
      letter-spacing: -1.4px;
      line-height: 1.2;
      margin-top: 1rem;
    }
  }
  .main-date {
    color: var(--pqrs-text-primary);
    text-align: right;
    font-weight: 500;
    font-size: 1.8rem;
    margin-top: 1rem;
  }

  .grid {
    display: flex;
    justify-content: space-between;
    flex-direction: column;

    .grid-item {
      width: 100%;
    }
  }

  .pqrs-form-section {
    margin: 0.5rem 0;
    padding: 1rem;
    background-color: var(--pqrs-bg-primary);
  }

  .pqrs-form-section-title {
    margin: 0 0 1.5rem;
    text-align: center;
    color: var(--pqrs-primary);
    font-weight: 500;
  }

  .pqrs-form-section-subtitle {
    text-align: center;
    margin: -1rem 0 2.3rem;

    p {
      letter-spacing: -0.3px;
      font-size: 1.1rem;
    }
  }

  .pqrs-form-section-line {
    margin: 1rem -1rem;
    padding: 1rem 1rem;
    background-color: var(--pqrs-bg-secondary);
  }

  .pqrs-form-section-line-title {
    margin: 0 0 0.5rem;
    color: var(--pqrs-text-primary);
    font-weight: 500;
    font-size: 1.4rem;
  }

  .pqrs-form-input-line {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;

    p {
      letter-spacing: -0.3px;
      font-size: 1.1rem;
      width: 100%;
    }

    label {
      font-weight: 500;
      font-size: 1.4rem;
      user-select: none;
      display: inline-flex;
      align-items: baseline;
      gap: 1rem;

      i {
        font-weight: 300;
      }
    }

    label + label:not([for]) {
      margin-bottom: 1rem;
    }
  }

  form {
    input[type="date"],
    input[type="email"],
    input[type="tel"],
    input[type="text"],
    input[type="number"],
    select,
    textarea {
      border: 1px solid #ccc;
      border-radius: 50px;
      font-size: 1.4rem;
      margin: 0;
      padding: 0.5rem 1rem;
      width: 100%;
      color: #898989;
      font-weight: 500;

      &.validation-error {
        border-color: #d72638;
      }
    }

    select {
      box-shadow: 0 0 0 1px #ccc;
      border: none;
      border-right: 1rem solid transparent;

      &.validation-error {
        box-shadow: 0 0 0 1px #d72638;
        border-color: transparent !important;
      }
    }

    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    input[type="number"] {
      -moz-appearance: textfield;
    }

    textarea {
      border-radius: 10px;
      min-height: 8rem;
      display: block;
      resize: vertical;
    }
  }

  .disclamer {
    text-align: center;
    margin-top: 3rem;

    p + p {
      margin-top: 2rem;
    }
  }

  .pqrs-form-submit {
    text-align: center;
    margin: 3rem 0 2rem;

    .pqrs-form-submit-status-banner {
      margin: 0 -1rem 3rem;
      text-align: left;
      border-left: 1rem solid;
      padding: 1rem 2rem;
      line-height: 1.3;

      &:empty {
        display: none;
      }

      &.error {
        border-left-color: #d72638;
        background-color: #d7263815;
      }
      &.success {
        border-left-color: #00a592;
        background-color: #00a59215;
      }

      ul {
        list-style: inside circle;
      }
      p {
        font-size: inherit;
        line-height: inherit;
      }
    }

    button {
      background-color: var(--pqrs-primary);
      width: auto;
      max-width: 288px;
      height: auto;
      display: block;
      margin: 0 auto;
      padding: 14px 32px;
      border: none;
      box-sizing: border-box;
      border-radius: 32px;
      text-align: center;
      font-size: 2rem;
      line-height: 1;
      font-weight: 600;
      color: #fff;
      text-transform: uppercase;
      cursor: pointer;
      position: relative;

      &:hover {
        text-decoration: underline;
      }

      &:before {
        content: "Enviando...";
        display: none;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-color: inherit;
        border-radius: inherit;
        align-items: center;
        justify-content: center;
        letter-spacing: -1.5px;
      }

      &.loading {
        pointer-events: none;
        &:before {
          display: flex;
        }
      }
    }
  }

  input[type="checkbox"],
  input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.8rem;
    height: 1.8rem;
    border: 1px solid currentColor;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
    flex-shrink: 0;

    &:before {
      content: "";
      width: 1rem;
      height: 1rem;
      transform: scale(0);
      transform-origin: center;
      transition: 120ms transform ease-in-out;
      box-shadow: inset 1em 1em var(--pqrs-text-primary);
    }
    &:checked::before {
      transform: scale(1) !important;
    }
  }

  input[type="radio"] {
    &,
    &:before {
      border-radius: 50%;
    }
  }

  @media screen and (max-width: 749px) {
    form {
      input[type="date"],
      input[type="email"],
      input[type="tel"],
      input[type="text"],
      input[type="number"],
      select,
      textarea {
        + label {
          margin-top: 1rem;
        }
      }
    }

    /* css form layout fixes */
    form {
      input[name="UsrDatereclamo"] {
        margin-bottom: 1rem;
      }
    }
  }
  @media screen and (min-width: 750px) {
    p {
      font-size: 1.4rem;
    }
    .legal-information {
      .legal-name {
        font-size: 3.4rem;
      }
      .legal-address {
        font-size: 2rem;
      }
    }
    .main-date {
      margin-top: 0;
    }

    .grid {
      flex-direction: row;
      gap: 0;

      .grid-item {
        width: 50%;
      }
    }
    .pqrs-form-section {
      margin: 1rem 0;
      padding: 2rem 4rem 4rem;
    }

    .pqrs-form-section-title {
      margin: 1rem 0 2.3rem;
    }

    .pqrs-form-section-line {
      margin: 2rem -4rem;
      padding: 2rem 4rem;
    }

    .pqrs-form-section-line-title {
      margin: 0 0 2rem;
      font-size: 1.6rem;
    }

    .pqrs-form-input-line {
      flex-direction: row;

      &.half {
        max-width: 50%;
      }
      &.wrap {
        flex-wrap: wrap;
      }

      p {
        font-size: 1.2rem;
      }

      label {
        white-space: nowrap;
        margin-right: 1rem;
        font-size: 1.6rem;
      }
      * + label {
        margin-left: 3.5rem;
      }
      label + label:not([for]) {
        margin-bottom: 0;
        margin-left: 1rem;
      }
    }

    form {
      input[type="date"],
      input[type="email"],
      input[type="tel"],
      input[type="text"],
      input[type="number"],
      select,
      textarea {
        font-size: 1.6rem;
        padding: 0.75rem 2rem;
      }

      textarea {
        padding: 1rem 2rem;
        border-radius: 14px;
      }
    }

    .disclamer {
      margin-top: 5rem;
    }
    .pqrs-form-submit {
      margin: 5rem 0 0;

      .pqrs-form-submit-status-banner {
        margin: 0 0 3rem;
      }
    }

    /* css form layout fixes */
    form {
      input[name="UsrDNIperu"] {
        max-width: 12rem;
      }
      input[name="UsrDatereclamo"] {
        margin-right: min(6%, 10rem);
      }
    }
  }
}
