
.agreement {
  width: 687px;
  margin: 0 auto;

  .page-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 23.73px;
    color: #020309;
    text-align: center;
    margin-bottom: 49px;
  }
  .page-sub-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 34px;
    color: #020309;
    text-align: center;
    margin-bottom: 89px;
  }
  .row {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 42px;
    display: flex;
    flex-direction: column;
    gap: 16px;

    .col-md-6 {
      padding-left: 0;
      padding-right: 0;
    }

    .col-md-12 {
      padding-left: 0;
      padding-right: 0;
    }
  }
  input[type="checkbox"] {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: relative;
    margin-right: 16px;

    &::before {
      width: 20px;
      height: 20px;
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      transform: none;
      margin: auto;
      background-color: #f9f9f9;
      border-radius: 5px;
      border: 0;
    }
    &::after {
      width: 13px;
      height: 8px;
      display: none;
      content: "";
      position: absolute;
      top: calc((100% - 13px) / 2);
      left: calc((100% - 13px) / 2);
      margin: auto;
      border-left: 3px solid #fff;
      border-bottom: 3px solid #fff;
      transform: rotate(-45deg);
    }
    &:checked {
      &::before {
        background-color: #28a745;
      }
      &::after {
        display: block;
      }
    }
  }
  .form-label {
    cursor: pointer;
    font-size: 19px;
    font-weight: 500;
    line-height: 30px;
    color: #333;
    margin-bottom: 0;
  }
  .agreement-textarea {
    width: 100%;
    height: 152px;
    border-radius: 10px;
    background-color: #f9f9f9;
    padding: 8px;

    textarea {
      width: 100%;
      height: 100%;
      border: 0;
      background-color: transparent;
      resize: none;
      padding: 18px 20px;
      font-size: 14px;
      font-weight: 300;
      line-height: 27px;
      color: #474747;

      &::-webkit-scrollbar {
        width: 5px;
      }
      &::-webkit-scrollbar-thumb {
        background-color: #767676;
        border-radius: 2.5px;
      }
      &::-webkit-scrollbar-track {
        background-color: #e4e4e4;
        border-radius: 2.5px;
      }
    }
  }
  .all-agree {
    margin-bottom: 50px;

    input[type="checkbox"] {
      width: 38px;
      height: 38px;

      &::before {
        width: 27px;
        height: 27px;
      }
      &::after {
        width: 15px;
        height: 10px;
        top: calc((100% - 15px) / 2);
        left: calc((100% - 15px) / 2);
      }
    }
    .form-label {
      font-size: 24px;
      font-weight: 700;
      line-height: 32.64px;
      color: #474747;
    }
  }
  .sale-agree {
    margin-bottom: 67px;
  }
  .btn-next {
    width: 326px;
    height: 62px;
    margin: 0 auto;
    background: #2fa41f;
    color: #fff;
    border: none;
    border-radius: 31px;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.3s ease;

    &:disabled {
      background: #cccccc;
      color: #666666;
      cursor: not-allowed;
    }

    &:not(:disabled):hover {
      background: #28a745;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
  }
}
